diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index d25823d627..ee731c3577 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -820,7 +820,7 @@ where | field::fields, false => LVal.fieldName field field.getId.toString none fIdent :: toLVals fields false private partial def elabAppFn (f : Syntax) (lvals : List LVal) (namedArgs : Array NamedArg) (args : Array Arg) - (expectedType? : Option Expr) (explicit ellipsis overloaded : Bool) (acc : Array (TermElabResult Expr)) : TermElabM (Array (TermElabResult Expr)) := + (expectedType? : Option Expr) (explicit ellipsis overloaded : Bool) (acc : Array (TermElabResult Expr)) : TermElabM (Array (TermElabResult Expr)) := do if f.getKind == choiceKind then -- Set `errToSorry` to `false` when processing choice nodes. See comment above about the interaction between `errToSorry` and `observing`. withReader (fun ctx => { ctx with errToSorry := false }) do @@ -853,6 +853,23 @@ private partial def elabAppFn (f : Syntax) (lvals : List LVal) (namedArgs : Arra elabAppFn (f.getArg 1) lvals namedArgs args expectedType? (explicit := true) ellipsis overloaded acc | `(@$t) => throwUnsupportedSyntax -- invalid occurrence of `@` | `(_) => throwError "placeholders '_' cannot be used where a function is expected" + | `(.$id:ident) => + tryPostponeIfNoneOrMVar expectedType? + match expectedType? with + | none => throwError "invalid dotted identifier notation, expected type must be known" + | some expectedType => + if let Expr.const declName .. := (← instantiateMVars expectedType).getAppFn then + let idNew := declName ++ id.getId.eraseMacroScopes + unless (← getEnv).contains idNew do + throwError "invalid dotted identifier notation, unknown identifier `{idNew}` from expected type{indentExpr expectedType}" + let fConst ← mkConst idNew + addTermInfo f fConst + let s ← observing do + let e ← elabAppLVals fConst lvals namedArgs args expectedType? explicit ellipsis + if overloaded then ensureHasType expectedType? e else pure e + return acc.push s + else + throwError "invalid dotted identifier notation, expected type is not of the form (C ...) where C is a constant{indentExpr expectedType}" | _ => do let catchPostpone := !overloaded /- If we are processing a choice node, then we should use `catchPostpone == false` when elaborating terms. @@ -954,6 +971,7 @@ private def elabAtom : TermElab := fun stx expectedType? => @[builtinTermElab ident] def elabIdent : TermElab := elabAtom /-- `x@e` matches the pattern `e` and binds its value to the identifier `x`. -/ @[builtinTermElab namedPattern] def elabNamedPattern : TermElab := elabAtom +@[builtinTermElab dotIdent] def elabDotIdent : TermElab := elabAtom /-- `x.{u, ...}` explicitly specifies the universes `u, ...` of the constant `x`. -/ @[builtinTermElab explicitUniv] def elabExplicitUniv : TermElab := elabAtom /-- `e |>.x` is a shorthand for `(e).x`. It is especially useful for avoiding parentheses with repeated applications. -/ diff --git a/stage0/src/Lean/Elab/PatternVar.lean b/stage0/src/Lean/Elab/PatternVar.lean index 2c6296a242..2aa5b7cf61 100644 --- a/stage0/src/Lean/Elab/PatternVar.lean +++ b/stage0/src/Lean/Elab/PatternVar.lean @@ -142,6 +142,8 @@ partial def collect (stx : Syntax) : M Syntax := withRef stx <| withFreshMacroSc else if k == ``Lean.Parser.Term.anonymousCtor then let elems ← stx[1].getArgs.mapSepElemsM collect return stx.setArg 1 <| mkNullNode elems + else if k == ``Lean.Parser.Term.dotIdent then + return stx else if k == ``Lean.Parser.Term.structInst then /- ``` @@ -243,7 +245,15 @@ where processCtorApp (stx : Syntax) : M Syntax := do let (f, namedArgs, args, ellipsis) ← expandApp stx true - processCtorAppCore f namedArgs args ellipsis + if f.getKind == ``Parser.Term.dotIdent then + unless namedArgs.isEmpty do + throwError "invalid dotted notation in a pattern, named arguments are not supported yet" + let mut argsNew ← args.mapM fun | Arg.stx arg => collect arg | _ => unreachable! + if ellipsis then + argsNew := argsNew.push (mkNode ``Parser.Term.ellipsis #[mkAtomFrom stx ".."]) + return Syntax.mkApp f argsNew + else + processCtorAppCore f namedArgs args ellipsis processCtor (stx : Syntax) : M Syntax := do processCtorAppCore stx #[] #[] false diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index e72dea51b6..a52f73e8b2 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -40,6 +40,7 @@ lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__4; static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__12; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__4; @@ -75,6 +76,8 @@ static lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Te static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3; uint8_t l_Lean_Expr_isProp(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___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*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__4; @@ -86,6 +89,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_docString___c static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__7; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal___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_SourceInfo_fromRef(lean_object*); @@ -185,6 +189,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj(lean_object* lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__32; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; @@ -246,10 +251,12 @@ static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__7; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__2___closed__3; static lean_object* l_panic___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___spec__1___closed__1; +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__6; lean_object* l_Lean_mkRecAppWithSyntax(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPipeProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__4; +lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__6; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList___closed__2; @@ -334,6 +341,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__5___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs(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_EXPORT lean_object* l_Lean_Elab_Term_elabDotIdent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withMCtx___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__1___closed__4; @@ -361,6 +369,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___closed_ uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__3; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -399,6 +408,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern(lean_obj static lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__2; lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); @@ -409,6 +419,8 @@ lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__22; static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__16; LEAN_EXPORT lean_object* l_Lean_withEnv___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__29; static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__7; lean_object* l_Lean_Elab_Term_addNamedArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default; @@ -431,6 +443,7 @@ lean_object* l_Lean_Elab_Term_expandApp(lean_object*, uint8_t, lean_object*, lea static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_toLVals___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__2; +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__34; LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1; @@ -458,6 +471,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__ static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__3; lean_object* l_Lean_Expr_consumeMData(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30; static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -476,6 +490,7 @@ lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, l static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___rarg___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processStrictImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -489,6 +504,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__12; lean_object* l_Lean_Elab_Term_LVal_getRef(lean_object*); uint8_t l_Lean_Expr_isAutoParam(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNamedPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__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*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -500,6 +516,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVal LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageList(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__28; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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*, lean_object*); uint8_t l_Lean_BinderInfo_isImplicit(uint8_t); lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -515,6 +532,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabProj(lean_object*, lean_object*, l static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__23; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___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*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__33; uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__1; @@ -601,6 +619,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__2; lean_object* l_Lean_Exception_getRef(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__6; +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__8; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_toMessageData___closed__4; @@ -609,6 +628,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicitUniv(lean_object*, lean_ob static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__17; +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicitUnivs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__11; @@ -631,11 +651,13 @@ uint8_t l_Lean_Expr_isFVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__7; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_12436_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_12921_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5_(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_propagateExpectedTypeFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3___boxed(lean_object**); +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(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*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -664,6 +686,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(lea uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9; +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__25; static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__3; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___closed__2; @@ -691,6 +714,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_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*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__3; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__6; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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*); @@ -710,6 +734,7 @@ lean_object* l_Lean_addBuiltinDocString(lean_object*, lean_object*, lean_object* static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8; static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux___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*); +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__2; @@ -747,6 +772,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgTy LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__4; +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__27; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -764,6 +790,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent___closed__1; lean_object* l_Lean_Elab_Term_synthesizeCoeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__1; lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__5; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -774,6 +801,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__ LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__4(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2; lean_object* l_Lean_Elab_Term_ensureHasTypeAux(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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError(lean_object*); @@ -801,6 +829,7 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_proc static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicitUnivs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__2; +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___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_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__8; @@ -812,6 +841,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_docString___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwInvalidNamedArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__1(lean_object*, 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*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__31; lean_object* l_Lean_Exception_toMessageData(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); @@ -20094,6 +20124,266 @@ return x_37; } } } +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t x_7, uint8_t 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_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_5); +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ +if (x_8 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +return x_17; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_17); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_17, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_dec(x_17); +x_24 = l_Lean_Elab_Term_ensureHasType(x_5, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_23); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +x_25 = !lean_is_exclusive(x_17); +if (x_25 == 0) +{ +return x_17; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_17, 0); +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_17); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__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, uint8_t x_7, uint8_t x_8, uint8_t 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* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_12); +x_20 = l_Lean_Elab_Term_mkConst(x_1, x_19, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_box(0); +x_24 = lean_box(0); +x_25 = 0; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_21); +x_26 = l_Lean_Elab_Term_addTermInfo(x_2, x_21, x_23, x_23, x_24, x_25, x_12, x_13, x_14, x_15, x_16, x_17, x_22); +if (lean_obj_tag(x_26) == 0) +{ +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_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_box(x_7); +x_29 = lean_box(x_8); +x_30 = lean_box(x_9); +x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2___boxed), 16, 9); +lean_closure_set(x_31, 0, x_21); +lean_closure_set(x_31, 1, x_3); +lean_closure_set(x_31, 2, x_4); +lean_closure_set(x_31, 3, x_5); +lean_closure_set(x_31, 4, x_6); +lean_closure_set(x_31, 5, x_28); +lean_closure_set(x_31, 6, x_29); +lean_closure_set(x_31, 7, x_30); +lean_closure_set(x_31, 8, x_23); +x_32 = l_Lean_Elab_Term_observing___rarg(x_31, x_12, x_13, x_14, x_15, x_16, x_17, x_27); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_array_push(x_10, x_34); +lean_ctor_set(x_32, 0, x_35); +return x_32; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_32, 0); +x_37 = lean_ctor_get(x_32, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_32); +x_38 = lean_array_push(x_10, x_36); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +else +{ +uint8_t x_40; +lean_dec(x_10); +x_40 = !lean_is_exclusive(x_32); +if (x_40 == 0) +{ +return x_32; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_32, 0); +x_42 = lean_ctor_get(x_32, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_32); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_26); +if (x_44 == 0) +{ +return x_26; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_26, 0); +x_46 = lean_ctor_get(x_26, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_26); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_20); +if (x_48 == 0) +{ +return x_20; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_20, 0); +x_50 = lean_ctor_get(x_20, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_20); +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; +} +} +} +} static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1() { _start: { @@ -20224,24 +20514,25 @@ static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_ _start: { lean_object* x_1; -x_1 = lean_mk_string("placeholders '_' cannot be used where a function is expected"); +x_1 = lean_mk_string("dotIdent"); return x_1; } } static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__6; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__17() { _start: { lean_object* x_1; -x_1 = lean_mk_string("unexpected occurrence of named pattern"); +x_1 = lean_mk_string("invalid dotted identifier notation, expected type must be known"); return x_1; } } @@ -20258,21 +20549,106 @@ static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn_ _start: { lean_object* x_1; -x_1 = lean_mk_string("fieldIdx"); +x_1 = lean_mk_string("invalid dotted identifier notation, expected type is not of the form (C ...) where C is a constant"); return x_1; } } static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__20() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__19; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid dotted identifier notation, unknown identifier `"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__21; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__23() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("` from expected type"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__23; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__25() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("placeholders '_' cannot be used where a function is expected"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__25; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__27() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected occurrence of named pattern"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__27; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__29() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("fieldIdx"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30() { +_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_0__Lean_Elab_Term_elabAppFn___closed__19; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__29; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__21() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__31() { _start: { lean_object* x_1; @@ -20280,7 +20656,7 @@ x_1 = lean_mk_string("Init.Data.Option.BasicAux"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__22() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__32() { _start: { lean_object* x_1; @@ -20288,7 +20664,7 @@ x_1 = lean_mk_string("Option.get!"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__23() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__33() { _start: { lean_object* x_1; @@ -20296,15 +20672,15 @@ x_1 = lean_mk_string("value is none"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__34() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__21; -x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__22; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__31; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__32; x_3 = lean_unsigned_to_nat(16u); x_4 = lean_unsigned_to_nat(14u); -x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__23; +x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__33; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } @@ -20368,242 +20744,248 @@ lean_inc(x_1); x_35 = l_Lean_Syntax_isOfKind(x_1, x_34); if (x_35 == 0) { -uint8_t x_36; uint8_t x_37; -x_36 = l_List_isEmpty___rarg(x_2); +lean_object* x_36; uint8_t x_37; +x_36 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; +lean_inc(x_1); +x_37 = l_Lean_Syntax_isOfKind(x_1, x_36); +if (x_37 == 0) +{ +uint8_t x_38; uint8_t x_39; +x_38 = l_List_isEmpty___rarg(x_2); if (x_8 == 0) { -uint8_t x_128; -x_128 = 1; -x_37 = x_128; -goto block_127; +uint8_t x_130; +x_130 = 1; +x_39 = x_130; +goto block_129; } else { -uint8_t x_129; -x_129 = 0; -x_37 = x_129; -goto block_127; +uint8_t x_131; +x_131 = 0; +x_39 = x_131; +goto block_129; } -block_127: +block_129: { -if (x_36 == 0) +if (x_38 == 0) { -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; -x_38 = lean_box(0); -x_39 = lean_box(x_37); -x_40 = lean_box(x_6); -x_41 = lean_box(x_7); -x_42 = lean_box(x_8); -x_43 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_43, 0, x_1); -lean_closure_set(x_43, 1, x_38); -lean_closure_set(x_43, 2, x_39); -lean_closure_set(x_43, 3, x_2); -lean_closure_set(x_43, 4, x_3); -lean_closure_set(x_43, 5, x_4); -lean_closure_set(x_43, 6, x_5); -lean_closure_set(x_43, 7, x_40); -lean_closure_set(x_43, 8, x_41); -lean_closure_set(x_43, 9, x_42); -x_44 = l_Lean_Elab_Term_observing___rarg(x_43, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_44) == 0) +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; +x_40 = lean_box(0); +x_41 = lean_box(x_39); +x_42 = lean_box(x_6); +x_43 = lean_box(x_7); +x_44 = lean_box(x_8); +x_45 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_45, 0, x_1); +lean_closure_set(x_45, 1, x_40); +lean_closure_set(x_45, 2, x_41); +lean_closure_set(x_45, 3, x_2); +lean_closure_set(x_45, 4, x_3); +lean_closure_set(x_45, 5, x_4); +lean_closure_set(x_45, 6, x_5); +lean_closure_set(x_45, 7, x_42); +lean_closure_set(x_45, 8, x_43); +lean_closure_set(x_45, 9, x_44); +x_46 = l_Lean_Elab_Term_observing___rarg(x_45, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_46) == 0) { -uint8_t x_45; -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) +uint8_t x_47; +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_array_push(x_9, x_46); -lean_ctor_set(x_44, 0, x_47); -return x_44; +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_array_push(x_9, x_48); +lean_ctor_set(x_46, 0, x_49); +return x_46; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_44, 0); -x_49 = lean_ctor_get(x_44, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_44); -x_50 = lean_array_push(x_9, x_48); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -return x_51; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_46, 0); +x_51 = lean_ctor_get(x_46, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_46); +x_52 = lean_array_push(x_9, x_50); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; } } else { -uint8_t x_52; +uint8_t x_54; lean_dec(x_9); -x_52 = !lean_is_exclusive(x_44); -if (x_52 == 0) +x_54 = !lean_is_exclusive(x_46); +if (x_54 == 0) { -return x_44; +return x_46; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_44, 0); -x_54 = lean_ctor_get(x_44, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_44); -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; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_46, 0); +x_56 = lean_ctor_get(x_46, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_46); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } else { -uint8_t x_56; -x_56 = l_Array_isEmpty___rarg(x_3); -if (x_56 == 0) +uint8_t x_58; +x_58 = l_Array_isEmpty___rarg(x_3); +if (x_58 == 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; -x_57 = lean_box(0); -x_58 = lean_box(x_37); -x_59 = lean_box(x_6); -x_60 = lean_box(x_7); -x_61 = lean_box(x_8); -x_62 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_62, 0, x_1); -lean_closure_set(x_62, 1, x_57); -lean_closure_set(x_62, 2, x_58); -lean_closure_set(x_62, 3, x_2); -lean_closure_set(x_62, 4, x_3); -lean_closure_set(x_62, 5, x_4); -lean_closure_set(x_62, 6, x_5); -lean_closure_set(x_62, 7, x_59); -lean_closure_set(x_62, 8, x_60); -lean_closure_set(x_62, 9, x_61); -x_63 = l_Lean_Elab_Term_observing___rarg(x_62, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_63) == 0) +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; +x_59 = lean_box(0); +x_60 = lean_box(x_39); +x_61 = lean_box(x_6); +x_62 = lean_box(x_7); +x_63 = lean_box(x_8); +x_64 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_64, 0, x_1); +lean_closure_set(x_64, 1, x_59); +lean_closure_set(x_64, 2, x_60); +lean_closure_set(x_64, 3, x_2); +lean_closure_set(x_64, 4, x_3); +lean_closure_set(x_64, 5, x_4); +lean_closure_set(x_64, 6, x_5); +lean_closure_set(x_64, 7, x_61); +lean_closure_set(x_64, 8, x_62); +lean_closure_set(x_64, 9, x_63); +x_65 = l_Lean_Elab_Term_observing___rarg(x_64, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_65) == 0) { -uint8_t x_64; -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) +uint8_t x_66; +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_63, 0); -x_66 = lean_array_push(x_9, x_65); -lean_ctor_set(x_63, 0, x_66); -return x_63; +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_65, 0); +x_68 = lean_array_push(x_9, x_67); +lean_ctor_set(x_65, 0, x_68); +return x_65; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_63, 0); -x_68 = lean_ctor_get(x_63, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_63); -x_69 = lean_array_push(x_9, x_67); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_65, 0); +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_65); +x_71 = lean_array_push(x_9, x_69); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } else { -uint8_t x_71; +uint8_t x_73; lean_dec(x_9); -x_71 = !lean_is_exclusive(x_63); -if (x_71 == 0) +x_73 = !lean_is_exclusive(x_65); +if (x_73 == 0) { -return x_63; +return x_65; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_63, 0); -x_73 = lean_ctor_get(x_63, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_63); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_65, 0); +x_75 = lean_ctor_get(x_65, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_65); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -uint8_t x_75; -x_75 = l_Array_isEmpty___rarg(x_4); -if (x_75 == 0) +uint8_t x_77; +x_77 = l_Array_isEmpty___rarg(x_4); +if (x_77 == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_76 = lean_box(0); -x_77 = lean_box(x_37); -x_78 = lean_box(x_6); -x_79 = lean_box(x_7); -x_80 = lean_box(x_8); -x_81 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_81, 0, x_1); -lean_closure_set(x_81, 1, x_76); -lean_closure_set(x_81, 2, x_77); -lean_closure_set(x_81, 3, x_2); -lean_closure_set(x_81, 4, x_3); -lean_closure_set(x_81, 5, x_4); -lean_closure_set(x_81, 6, x_5); -lean_closure_set(x_81, 7, x_78); -lean_closure_set(x_81, 8, x_79); -lean_closure_set(x_81, 9, x_80); -x_82 = l_Lean_Elab_Term_observing___rarg(x_81, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_82) == 0) +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_78 = lean_box(0); +x_79 = lean_box(x_39); +x_80 = lean_box(x_6); +x_81 = lean_box(x_7); +x_82 = lean_box(x_8); +x_83 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_83, 0, x_1); +lean_closure_set(x_83, 1, x_78); +lean_closure_set(x_83, 2, x_79); +lean_closure_set(x_83, 3, x_2); +lean_closure_set(x_83, 4, x_3); +lean_closure_set(x_83, 5, x_4); +lean_closure_set(x_83, 6, x_5); +lean_closure_set(x_83, 7, x_80); +lean_closure_set(x_83, 8, x_81); +lean_closure_set(x_83, 9, x_82); +x_84 = l_Lean_Elab_Term_observing___rarg(x_83, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_84) == 0) { -uint8_t x_83; -x_83 = !lean_is_exclusive(x_82); -if (x_83 == 0) +uint8_t x_85; +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) { -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_82, 0); -x_85 = lean_array_push(x_9, x_84); -lean_ctor_set(x_82, 0, x_85); -return x_82; +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_84, 0); +x_87 = lean_array_push(x_9, x_86); +lean_ctor_set(x_84, 0, x_87); +return x_84; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_86 = lean_ctor_get(x_82, 0); -x_87 = lean_ctor_get(x_82, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_82); -x_88 = lean_array_push(x_9, x_86); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_88 = lean_ctor_get(x_84, 0); +x_89 = lean_ctor_get(x_84, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_84); +x_90 = lean_array_push(x_9, x_88); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } else { -uint8_t x_90; +uint8_t x_92; lean_dec(x_9); -x_90 = !lean_is_exclusive(x_82); -if (x_90 == 0) +x_92 = !lean_is_exclusive(x_84); +if (x_92 == 0) { -return x_82; +return x_84; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_82, 0); -x_92 = lean_ctor_get(x_82, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_82); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_84, 0); +x_94 = lean_ctor_get(x_84, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_84); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } @@ -20614,129 +20996,129 @@ lean_dec(x_3); lean_dec(x_2); if (x_8 == 0) { -uint8_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_94 = 1; -x_95 = lean_box(x_94); -x_96 = lean_box(x_94); -x_97 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_97, 0, x_1); -lean_closure_set(x_97, 1, x_5); -lean_closure_set(x_97, 2, x_95); -lean_closure_set(x_97, 3, x_96); -x_98 = l_Lean_Elab_Term_observing___rarg(x_97, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_98) == 0) +uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_96 = 1; +x_97 = lean_box(x_96); +x_98 = lean_box(x_96); +x_99 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_99, 0, x_1); +lean_closure_set(x_99, 1, x_5); +lean_closure_set(x_99, 2, x_97); +lean_closure_set(x_99, 3, x_98); +x_100 = l_Lean_Elab_Term_observing___rarg(x_99, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_100) == 0) { -uint8_t x_99; -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) +uint8_t x_101; +x_101 = !lean_is_exclusive(x_100); +if (x_101 == 0) { -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_98, 0); -x_101 = lean_array_push(x_9, x_100); -lean_ctor_set(x_98, 0, x_101); -return x_98; +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_100, 0); +x_103 = lean_array_push(x_9, x_102); +lean_ctor_set(x_100, 0, x_103); +return x_100; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_102 = lean_ctor_get(x_98, 0); -x_103 = lean_ctor_get(x_98, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_98); -x_104 = lean_array_push(x_9, x_102); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_103); -return x_105; +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_104 = lean_ctor_get(x_100, 0); +x_105 = lean_ctor_get(x_100, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_100); +x_106 = lean_array_push(x_9, x_104); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_105); +return x_107; } } else { -uint8_t x_106; +uint8_t x_108; lean_dec(x_9); -x_106 = !lean_is_exclusive(x_98); -if (x_106 == 0) +x_108 = !lean_is_exclusive(x_100); +if (x_108 == 0) { -return x_98; +return x_100; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_98, 0); -x_108 = lean_ctor_get(x_98, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_98); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_100, 0); +x_110 = lean_ctor_get(x_100, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_100); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } else { -lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_110 = lean_box(0); -x_111 = 1; -x_112 = lean_box(x_37); -x_113 = lean_box(x_111); -x_114 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_114, 0, x_1); -lean_closure_set(x_114, 1, x_5); -lean_closure_set(x_114, 2, x_112); -lean_closure_set(x_114, 3, x_113); -lean_closure_set(x_114, 4, x_110); -x_115 = l_Lean_Elab_Term_observing___rarg(x_114, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_115) == 0) +lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_112 = lean_box(0); +x_113 = 1; +x_114 = lean_box(x_39); +x_115 = lean_box(x_113); +x_116 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_116, 0, x_1); +lean_closure_set(x_116, 1, x_5); +lean_closure_set(x_116, 2, x_114); +lean_closure_set(x_116, 3, x_115); +lean_closure_set(x_116, 4, x_112); +x_117 = l_Lean_Elab_Term_observing___rarg(x_116, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_117) == 0) { -uint8_t x_116; -x_116 = !lean_is_exclusive(x_115); -if (x_116 == 0) +uint8_t x_118; +x_118 = !lean_is_exclusive(x_117); +if (x_118 == 0) { -lean_object* x_117; lean_object* x_118; -x_117 = lean_ctor_get(x_115, 0); -x_118 = lean_array_push(x_9, x_117); -lean_ctor_set(x_115, 0, x_118); -return x_115; +lean_object* x_119; lean_object* x_120; +x_119 = lean_ctor_get(x_117, 0); +x_120 = lean_array_push(x_9, x_119); +lean_ctor_set(x_117, 0, x_120); +return x_117; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_119 = lean_ctor_get(x_115, 0); -x_120 = lean_ctor_get(x_115, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_115); -x_121 = lean_array_push(x_9, x_119); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -return x_122; +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_117, 0); +x_122 = lean_ctor_get(x_117, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_117); +x_123 = lean_array_push(x_9, x_121); +x_124 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +return x_124; } } else { -uint8_t x_123; +uint8_t x_125; lean_dec(x_9); -x_123 = !lean_is_exclusive(x_115); -if (x_123 == 0) +x_125 = !lean_is_exclusive(x_117); +if (x_125 == 0) { -return x_115; +return x_117; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_115, 0); -x_125 = lean_ctor_get(x_115, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_115); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -return x_126; +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_117, 0); +x_127 = lean_ctor_get(x_117, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_117); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; } } } @@ -20747,25 +21129,6 @@ return x_126; } else { -lean_object* x_130; lean_object* x_131; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_130 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; -x_131 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1(x_130, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -return x_131; -} -} -else -{ lean_object* x_132; lean_object* x_133; uint8_t x_134; x_132 = lean_unsigned_to_nat(1u); x_133 = l_Lean_Syntax_getArg(x_1, x_132); @@ -20773,322 +21136,243 @@ lean_inc(x_133); x_134 = l_Lean_Syntax_isOfKind(x_133, x_28); if (x_134 == 0) { -uint8_t x_135; -lean_inc(x_133); -x_135 = l_Lean_Syntax_isOfKind(x_133, x_30); +uint8_t x_135; uint8_t x_136; +lean_dec(x_133); +x_135 = l_List_isEmpty___rarg(x_2); +if (x_8 == 0) +{ +uint8_t x_227; +x_227 = 1; +x_136 = x_227; +goto block_226; +} +else +{ +uint8_t x_228; +x_228 = 0; +x_136 = x_228; +goto block_226; +} +block_226: +{ if (x_135 == 0) { -lean_object* x_136; -lean_dec(x_133); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_136 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___rarg(x_16); -return x_136; -} -else -{ -lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_137 = lean_unsigned_to_nat(0u); -x_138 = l_Lean_Syntax_getArg(x_133, x_137); -lean_dec(x_133); -x_139 = l_Lean_Syntax_isOfKind(x_138, x_28); -if (x_139 == 0) -{ -lean_object* x_140; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_140 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___rarg(x_16); -return x_140; -} -else -{ -lean_object* x_141; uint8_t x_142; -x_141 = l_Lean_Syntax_getArg(x_1, x_132); -lean_dec(x_1); -x_142 = 1; -x_1 = x_141; -x_6 = x_142; -goto _start; -} -} -} -else +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_137 = lean_box(0); +x_138 = lean_box(x_136); +x_139 = lean_box(x_6); +x_140 = lean_box(x_7); +x_141 = lean_box(x_8); +x_142 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_142, 0, x_1); +lean_closure_set(x_142, 1, x_137); +lean_closure_set(x_142, 2, x_138); +lean_closure_set(x_142, 3, x_2); +lean_closure_set(x_142, 4, x_3); +lean_closure_set(x_142, 5, x_4); +lean_closure_set(x_142, 6, x_5); +lean_closure_set(x_142, 7, x_139); +lean_closure_set(x_142, 8, x_140); +lean_closure_set(x_142, 9, x_141); +x_143 = l_Lean_Elab_Term_observing___rarg(x_142, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_143) == 0) { uint8_t x_144; -lean_dec(x_1); -x_144 = 1; -x_1 = x_133; -x_6 = x_144; -goto _start; -} -} +x_144 = !lean_is_exclusive(x_143); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; +x_145 = lean_ctor_get(x_143, 0); +x_146 = lean_array_push(x_9, x_145); +lean_ctor_set(x_143, 0, x_146); +return x_143; } else { -lean_object* x_146; lean_object* x_147; uint8_t x_148; -x_146 = lean_unsigned_to_nat(0u); -x_147 = l_Lean_Syntax_getArg(x_1, x_146); +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_147 = lean_ctor_get(x_143, 0); +x_148 = lean_ctor_get(x_143, 1); +lean_inc(x_148); lean_inc(x_147); -x_148 = l_Lean_Syntax_isOfKind(x_147, x_28); -if (x_148 == 0) -{ -uint8_t x_149; uint8_t x_150; -lean_dec(x_147); -x_149 = l_List_isEmpty___rarg(x_2); -if (x_8 == 0) -{ -uint8_t x_241; -x_241 = 1; -x_150 = x_241; -goto block_240; -} -else -{ -uint8_t x_242; -x_242 = 0; -x_150 = x_242; -goto block_240; -} -block_240: -{ -if (x_149 == 0) -{ -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; -x_151 = lean_box(0); -x_152 = lean_box(x_150); -x_153 = lean_box(x_6); -x_154 = lean_box(x_7); -x_155 = lean_box(x_8); -x_156 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_156, 0, x_1); -lean_closure_set(x_156, 1, x_151); -lean_closure_set(x_156, 2, x_152); -lean_closure_set(x_156, 3, x_2); -lean_closure_set(x_156, 4, x_3); -lean_closure_set(x_156, 5, x_4); -lean_closure_set(x_156, 6, x_5); -lean_closure_set(x_156, 7, x_153); -lean_closure_set(x_156, 8, x_154); -lean_closure_set(x_156, 9, x_155); -x_157 = l_Lean_Elab_Term_observing___rarg(x_156, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_157) == 0) -{ -uint8_t x_158; -x_158 = !lean_is_exclusive(x_157); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; -x_159 = lean_ctor_get(x_157, 0); -x_160 = lean_array_push(x_9, x_159); -lean_ctor_set(x_157, 0, x_160); -return x_157; -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_161 = lean_ctor_get(x_157, 0); -x_162 = lean_ctor_get(x_157, 1); -lean_inc(x_162); -lean_inc(x_161); -lean_dec(x_157); -x_163 = lean_array_push(x_9, x_161); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_162); -return x_164; +lean_dec(x_143); +x_149 = lean_array_push(x_9, x_147); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_148); +return x_150; } } else { -uint8_t x_165; +uint8_t x_151; lean_dec(x_9); -x_165 = !lean_is_exclusive(x_157); -if (x_165 == 0) +x_151 = !lean_is_exclusive(x_143); +if (x_151 == 0) { -return x_157; +return x_143; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_157, 0); -x_167 = lean_ctor_get(x_157, 1); +lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_152 = lean_ctor_get(x_143, 0); +x_153 = lean_ctor_get(x_143, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_143); +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +return x_154; +} +} +} +else +{ +uint8_t x_155; +x_155 = l_Array_isEmpty___rarg(x_3); +if (x_155 == 0) +{ +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; +x_156 = lean_box(0); +x_157 = lean_box(x_136); +x_158 = lean_box(x_6); +x_159 = lean_box(x_7); +x_160 = lean_box(x_8); +x_161 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_161, 0, x_1); +lean_closure_set(x_161, 1, x_156); +lean_closure_set(x_161, 2, x_157); +lean_closure_set(x_161, 3, x_2); +lean_closure_set(x_161, 4, x_3); +lean_closure_set(x_161, 5, x_4); +lean_closure_set(x_161, 6, x_5); +lean_closure_set(x_161, 7, x_158); +lean_closure_set(x_161, 8, x_159); +lean_closure_set(x_161, 9, x_160); +x_162 = l_Lean_Elab_Term_observing___rarg(x_161, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_162) == 0) +{ +uint8_t x_163; +x_163 = !lean_is_exclusive(x_162); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; +x_164 = lean_ctor_get(x_162, 0); +x_165 = lean_array_push(x_9, x_164); +lean_ctor_set(x_162, 0, x_165); +return x_162; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_166 = lean_ctor_get(x_162, 0); +x_167 = lean_ctor_get(x_162, 1); lean_inc(x_167); lean_inc(x_166); -lean_dec(x_157); -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 -{ -uint8_t x_169; -x_169 = l_Array_isEmpty___rarg(x_3); -if (x_169 == 0) -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_170 = lean_box(0); -x_171 = lean_box(x_150); -x_172 = lean_box(x_6); -x_173 = lean_box(x_7); -x_174 = lean_box(x_8); -x_175 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_175, 0, x_1); -lean_closure_set(x_175, 1, x_170); -lean_closure_set(x_175, 2, x_171); -lean_closure_set(x_175, 3, x_2); -lean_closure_set(x_175, 4, x_3); -lean_closure_set(x_175, 5, x_4); -lean_closure_set(x_175, 6, x_5); -lean_closure_set(x_175, 7, x_172); -lean_closure_set(x_175, 8, x_173); -lean_closure_set(x_175, 9, x_174); -x_176 = l_Lean_Elab_Term_observing___rarg(x_175, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_176) == 0) -{ -uint8_t x_177; -x_177 = !lean_is_exclusive(x_176); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_176, 0); -x_179 = lean_array_push(x_9, x_178); -lean_ctor_set(x_176, 0, x_179); -return x_176; -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_180 = lean_ctor_get(x_176, 0); -x_181 = lean_ctor_get(x_176, 1); -lean_inc(x_181); -lean_inc(x_180); -lean_dec(x_176); -x_182 = lean_array_push(x_9, x_180); -x_183 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_181); -return x_183; +lean_dec(x_162); +x_168 = lean_array_push(x_9, x_166); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_167); +return x_169; } } else { -uint8_t x_184; +uint8_t x_170; lean_dec(x_9); -x_184 = !lean_is_exclusive(x_176); -if (x_184 == 0) +x_170 = !lean_is_exclusive(x_162); +if (x_170 == 0) { -return x_176; +return x_162; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_176, 0); -x_186 = lean_ctor_get(x_176, 1); +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_162, 0); +x_172 = lean_ctor_get(x_162, 1); +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_162); +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_171); +lean_ctor_set(x_173, 1, x_172); +return x_173; +} +} +} +else +{ +uint8_t x_174; +x_174 = l_Array_isEmpty___rarg(x_4); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_175 = lean_box(0); +x_176 = lean_box(x_136); +x_177 = lean_box(x_6); +x_178 = lean_box(x_7); +x_179 = lean_box(x_8); +x_180 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_180, 0, x_1); +lean_closure_set(x_180, 1, x_175); +lean_closure_set(x_180, 2, x_176); +lean_closure_set(x_180, 3, x_2); +lean_closure_set(x_180, 4, x_3); +lean_closure_set(x_180, 5, x_4); +lean_closure_set(x_180, 6, x_5); +lean_closure_set(x_180, 7, x_177); +lean_closure_set(x_180, 8, x_178); +lean_closure_set(x_180, 9, x_179); +x_181 = l_Lean_Elab_Term_observing___rarg(x_180, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_181) == 0) +{ +uint8_t x_182; +x_182 = !lean_is_exclusive(x_181); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; +x_183 = lean_ctor_get(x_181, 0); +x_184 = lean_array_push(x_9, x_183); +lean_ctor_set(x_181, 0, x_184); +return x_181; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_185 = lean_ctor_get(x_181, 0); +x_186 = lean_ctor_get(x_181, 1); lean_inc(x_186); lean_inc(x_185); -lean_dec(x_176); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; -} -} -} -else -{ -uint8_t x_188; -x_188 = l_Array_isEmpty___rarg(x_4); -if (x_188 == 0) -{ -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; -x_189 = lean_box(0); -x_190 = lean_box(x_150); -x_191 = lean_box(x_6); -x_192 = lean_box(x_7); -x_193 = lean_box(x_8); -x_194 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_194, 0, x_1); -lean_closure_set(x_194, 1, x_189); -lean_closure_set(x_194, 2, x_190); -lean_closure_set(x_194, 3, x_2); -lean_closure_set(x_194, 4, x_3); -lean_closure_set(x_194, 5, x_4); -lean_closure_set(x_194, 6, x_5); -lean_closure_set(x_194, 7, x_191); -lean_closure_set(x_194, 8, x_192); -lean_closure_set(x_194, 9, x_193); -x_195 = l_Lean_Elab_Term_observing___rarg(x_194, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_195) == 0) -{ -uint8_t x_196; -x_196 = !lean_is_exclusive(x_195); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_195, 0); -x_198 = lean_array_push(x_9, x_197); -lean_ctor_set(x_195, 0, x_198); -return x_195; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_199 = lean_ctor_get(x_195, 0); -x_200 = lean_ctor_get(x_195, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_195); -x_201 = lean_array_push(x_9, x_199); -x_202 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_200); -return x_202; +lean_dec(x_181); +x_187 = lean_array_push(x_9, x_185); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_186); +return x_188; } } else { -uint8_t x_203; +uint8_t x_189; lean_dec(x_9); -x_203 = !lean_is_exclusive(x_195); -if (x_203 == 0) +x_189 = !lean_is_exclusive(x_181); +if (x_189 == 0) { -return x_195; +return x_181; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_195, 0); -x_205 = lean_ctor_get(x_195, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_195); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; +lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_190 = lean_ctor_get(x_181, 0); +x_191 = lean_ctor_get(x_181, 1); +lean_inc(x_191); +lean_inc(x_190); +lean_dec(x_181); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +return x_192; } } } @@ -21099,129 +21383,129 @@ lean_dec(x_3); lean_dec(x_2); if (x_8 == 0) { -uint8_t x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_207 = 1; -x_208 = lean_box(x_207); -x_209 = lean_box(x_207); -x_210 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_210, 0, x_1); -lean_closure_set(x_210, 1, x_5); -lean_closure_set(x_210, 2, x_208); -lean_closure_set(x_210, 3, x_209); -x_211 = l_Lean_Elab_Term_observing___rarg(x_210, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_211) == 0) +uint8_t x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_193 = 1; +x_194 = lean_box(x_193); +x_195 = lean_box(x_193); +x_196 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_196, 0, x_1); +lean_closure_set(x_196, 1, x_5); +lean_closure_set(x_196, 2, x_194); +lean_closure_set(x_196, 3, x_195); +x_197 = l_Lean_Elab_Term_observing___rarg(x_196, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_197) == 0) { -uint8_t x_212; -x_212 = !lean_is_exclusive(x_211); -if (x_212 == 0) +uint8_t x_198; +x_198 = !lean_is_exclusive(x_197); +if (x_198 == 0) { -lean_object* x_213; lean_object* x_214; -x_213 = lean_ctor_get(x_211, 0); -x_214 = lean_array_push(x_9, x_213); -lean_ctor_set(x_211, 0, x_214); -return x_211; +lean_object* x_199; lean_object* x_200; +x_199 = lean_ctor_get(x_197, 0); +x_200 = lean_array_push(x_9, x_199); +lean_ctor_set(x_197, 0, x_200); +return x_197; } else { -lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_215 = lean_ctor_get(x_211, 0); -x_216 = lean_ctor_get(x_211, 1); -lean_inc(x_216); -lean_inc(x_215); -lean_dec(x_211); -x_217 = lean_array_push(x_9, x_215); -x_218 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_218, 0, x_217); -lean_ctor_set(x_218, 1, x_216); -return x_218; +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_201 = lean_ctor_get(x_197, 0); +x_202 = lean_ctor_get(x_197, 1); +lean_inc(x_202); +lean_inc(x_201); +lean_dec(x_197); +x_203 = lean_array_push(x_9, x_201); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +return x_204; } } else { -uint8_t x_219; +uint8_t x_205; lean_dec(x_9); -x_219 = !lean_is_exclusive(x_211); -if (x_219 == 0) +x_205 = !lean_is_exclusive(x_197); +if (x_205 == 0) { -return x_211; +return x_197; } else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_211, 0); -x_221 = lean_ctor_get(x_211, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_211); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -return x_222; +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_197, 0); +x_207 = lean_ctor_get(x_197, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_197); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } } else { -lean_object* x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_223 = lean_box(0); -x_224 = 1; -x_225 = lean_box(x_150); -x_226 = lean_box(x_224); -x_227 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_227, 0, x_1); -lean_closure_set(x_227, 1, x_5); -lean_closure_set(x_227, 2, x_225); -lean_closure_set(x_227, 3, x_226); -lean_closure_set(x_227, 4, x_223); -x_228 = l_Lean_Elab_Term_observing___rarg(x_227, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_228) == 0) +lean_object* x_209; uint8_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_209 = lean_box(0); +x_210 = 1; +x_211 = lean_box(x_136); +x_212 = lean_box(x_210); +x_213 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_213, 0, x_1); +lean_closure_set(x_213, 1, x_5); +lean_closure_set(x_213, 2, x_211); +lean_closure_set(x_213, 3, x_212); +lean_closure_set(x_213, 4, x_209); +x_214 = l_Lean_Elab_Term_observing___rarg(x_213, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_214) == 0) { -uint8_t x_229; -x_229 = !lean_is_exclusive(x_228); -if (x_229 == 0) +uint8_t x_215; +x_215 = !lean_is_exclusive(x_214); +if (x_215 == 0) { -lean_object* x_230; lean_object* x_231; -x_230 = lean_ctor_get(x_228, 0); -x_231 = lean_array_push(x_9, x_230); -lean_ctor_set(x_228, 0, x_231); -return x_228; +lean_object* x_216; lean_object* x_217; +x_216 = lean_ctor_get(x_214, 0); +x_217 = lean_array_push(x_9, x_216); +lean_ctor_set(x_214, 0, x_217); +return x_214; } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_232 = lean_ctor_get(x_228, 0); -x_233 = lean_ctor_get(x_228, 1); -lean_inc(x_233); -lean_inc(x_232); -lean_dec(x_228); -x_234 = lean_array_push(x_9, x_232); -x_235 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_233); -return x_235; +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_218 = lean_ctor_get(x_214, 0); +x_219 = lean_ctor_get(x_214, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_214); +x_220 = lean_array_push(x_9, x_218); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_219); +return x_221; } } else { -uint8_t x_236; +uint8_t x_222; lean_dec(x_9); -x_236 = !lean_is_exclusive(x_228); -if (x_236 == 0) +x_222 = !lean_is_exclusive(x_214); +if (x_222 == 0) { -return x_228; +return x_214; } else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_237 = lean_ctor_get(x_228, 0); -x_238 = lean_ctor_get(x_228, 1); -lean_inc(x_238); -lean_inc(x_237); -lean_dec(x_228); -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_237); -lean_ctor_set(x_239, 1, x_238); -return x_239; +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_214, 0); +x_224 = lean_ctor_get(x_214, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_214); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; } } } @@ -21232,37 +21516,724 @@ return x_239; } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_243 = lean_unsigned_to_nat(2u); -x_244 = l_Lean_Syntax_getArg(x_1, x_243); +lean_object* x_229; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_10); +lean_inc(x_5); +x_229 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_229) == 0) +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_dec(x_133); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_245 = l_Lean_Syntax_getArgs(x_244); +x_230 = lean_ctor_get(x_229, 1); +lean_inc(x_230); +lean_dec(x_229); +x_231 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__18; +x_232 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1(x_231, x_10, x_11, x_12, x_13, x_14, x_15, x_230); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_232; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_233 = lean_ctor_get(x_229, 1); +lean_inc(x_233); +lean_dec(x_229); +x_234 = lean_ctor_get(x_5, 0); +lean_inc(x_234); +lean_inc(x_13); +lean_inc(x_234); +x_235 = l_Lean_Meta_instantiateMVars(x_234, x_12, x_13, x_14, x_15, x_233); +x_236 = lean_ctor_get(x_235, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_235, 1); +lean_inc(x_237); +lean_dec(x_235); +x_238 = l_Lean_Expr_getAppFn(x_236); +lean_dec(x_236); +if (lean_obj_tag(x_238) == 4) +{ +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; uint8_t x_247; +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +lean_dec(x_238); +x_240 = l_Lean_Syntax_getId(x_133); +lean_dec(x_133); +x_241 = lean_erase_macro_scopes(x_240); +x_242 = l_Lean_Name_append(x_239, x_241); +lean_dec(x_239); +x_243 = lean_st_ref_get(x_15, x_237); +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +lean_dec(x_243); +x_246 = lean_ctor_get(x_244, 0); +lean_inc(x_246); lean_dec(x_244); -x_246 = l_Lean_Syntax_SepArray_getElems___rarg(x_245); -lean_dec(x_245); +lean_inc(x_242); +x_247 = l_Lean_Environment_contains(x_246, x_242); +if (x_247 == 0) +{ +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; lean_object* x_256; lean_object* x_257; uint8_t x_258; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_248 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_248, 0, x_242); +x_249 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__22; +x_250 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_248); +x_251 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24; +x_252 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_251); +x_253 = l_Lean_indentExpr(x_234); +x_254 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set(x_254, 1, x_253); +x_255 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_256 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_256, 0, x_254); +lean_ctor_set(x_256, 1, x_255); +x_257 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_256, x_10, x_11, x_12, x_13, x_14, x_15, x_245); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_258 = !lean_is_exclusive(x_257); +if (x_258 == 0) +{ +return x_257; +} +else +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_257, 0); +x_260 = lean_ctor_get(x_257, 1); +lean_inc(x_260); +lean_inc(x_259); +lean_dec(x_257); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +return x_261; +} +} +else +{ +lean_object* x_262; lean_object* x_263; +lean_dec(x_234); +x_262 = lean_box(0); +x_263 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(x_242, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_262, x_10, x_11, x_12, x_13, x_14, x_15, x_245); +return x_263; +} +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_dec(x_238); +lean_dec(x_133); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_264 = l_Lean_indentExpr(x_234); +x_265 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__20; +x_266 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_264); +x_267 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_268 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_268, 0, x_266); +lean_ctor_set(x_268, 1, x_267); +x_269 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1(x_268, x_10, x_11, x_12, x_13, x_14, x_15, x_237); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_269; +} +} +} +else +{ +uint8_t x_270; +lean_dec(x_133); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_270 = !lean_is_exclusive(x_229); +if (x_270 == 0) +{ +return x_229; +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_271 = lean_ctor_get(x_229, 0); +x_272 = lean_ctor_get(x_229, 1); +lean_inc(x_272); +lean_inc(x_271); +lean_dec(x_229); +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_271); +lean_ctor_set(x_273, 1, x_272); +return x_273; +} +} +} +} +} +else +{ +lean_object* x_274; lean_object* x_275; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_274 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26; +x_275 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1(x_274, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_275; +} +} +else +{ +lean_object* x_276; lean_object* x_277; uint8_t x_278; +x_276 = lean_unsigned_to_nat(1u); +x_277 = l_Lean_Syntax_getArg(x_1, x_276); +lean_inc(x_277); +x_278 = l_Lean_Syntax_isOfKind(x_277, x_28); +if (x_278 == 0) +{ +uint8_t x_279; +lean_inc(x_277); +x_279 = l_Lean_Syntax_isOfKind(x_277, x_30); +if (x_279 == 0) +{ +lean_object* x_280; +lean_dec(x_277); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_280 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___rarg(x_16); +return x_280; +} +else +{ +lean_object* x_281; lean_object* x_282; uint8_t x_283; +x_281 = lean_unsigned_to_nat(0u); +x_282 = l_Lean_Syntax_getArg(x_277, x_281); +lean_dec(x_277); +x_283 = l_Lean_Syntax_isOfKind(x_282, x_28); +if (x_283 == 0) +{ +lean_object* x_284; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_284 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___rarg(x_16); +return x_284; +} +else +{ +lean_object* x_285; uint8_t x_286; +x_285 = l_Lean_Syntax_getArg(x_1, x_276); +lean_dec(x_1); +x_286 = 1; +x_1 = x_285; +x_6 = x_286; +goto _start; +} +} +} +else +{ +uint8_t x_288; +lean_dec(x_1); +x_288 = 1; +x_1 = x_277; +x_6 = x_288; +goto _start; +} +} +} +else +{ +lean_object* x_290; lean_object* x_291; uint8_t x_292; +x_290 = lean_unsigned_to_nat(0u); +x_291 = l_Lean_Syntax_getArg(x_1, x_290); +lean_inc(x_291); +x_292 = l_Lean_Syntax_isOfKind(x_291, x_28); +if (x_292 == 0) +{ +uint8_t x_293; uint8_t x_294; +lean_dec(x_291); +x_293 = l_List_isEmpty___rarg(x_2); +if (x_8 == 0) +{ +uint8_t x_385; +x_385 = 1; +x_294 = x_385; +goto block_384; +} +else +{ +uint8_t x_386; +x_386 = 0; +x_294 = x_386; +goto block_384; +} +block_384: +{ +if (x_293 == 0) +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_295 = lean_box(0); +x_296 = lean_box(x_294); +x_297 = lean_box(x_6); +x_298 = lean_box(x_7); +x_299 = lean_box(x_8); +x_300 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_300, 0, x_1); +lean_closure_set(x_300, 1, x_295); +lean_closure_set(x_300, 2, x_296); +lean_closure_set(x_300, 3, x_2); +lean_closure_set(x_300, 4, x_3); +lean_closure_set(x_300, 5, x_4); +lean_closure_set(x_300, 6, x_5); +lean_closure_set(x_300, 7, x_297); +lean_closure_set(x_300, 8, x_298); +lean_closure_set(x_300, 9, x_299); +x_301 = l_Lean_Elab_Term_observing___rarg(x_300, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_301) == 0) +{ +uint8_t x_302; +x_302 = !lean_is_exclusive(x_301); +if (x_302 == 0) +{ +lean_object* x_303; lean_object* x_304; +x_303 = lean_ctor_get(x_301, 0); +x_304 = lean_array_push(x_9, x_303); +lean_ctor_set(x_301, 0, x_304); +return x_301; +} +else +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_305 = lean_ctor_get(x_301, 0); +x_306 = lean_ctor_get(x_301, 1); +lean_inc(x_306); +lean_inc(x_305); +lean_dec(x_301); +x_307 = lean_array_push(x_9, x_305); +x_308 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_306); +return x_308; +} +} +else +{ +uint8_t x_309; +lean_dec(x_9); +x_309 = !lean_is_exclusive(x_301); +if (x_309 == 0) +{ +return x_301; +} +else +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_310 = lean_ctor_get(x_301, 0); +x_311 = lean_ctor_get(x_301, 1); +lean_inc(x_311); +lean_inc(x_310); +lean_dec(x_301); +x_312 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_312, 0, x_310); +lean_ctor_set(x_312, 1, x_311); +return x_312; +} +} +} +else +{ +uint8_t x_313; +x_313 = l_Array_isEmpty___rarg(x_3); +if (x_313 == 0) +{ +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; +x_314 = lean_box(0); +x_315 = lean_box(x_294); +x_316 = lean_box(x_6); +x_317 = lean_box(x_7); +x_318 = lean_box(x_8); +x_319 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_319, 0, x_1); +lean_closure_set(x_319, 1, x_314); +lean_closure_set(x_319, 2, x_315); +lean_closure_set(x_319, 3, x_2); +lean_closure_set(x_319, 4, x_3); +lean_closure_set(x_319, 5, x_4); +lean_closure_set(x_319, 6, x_5); +lean_closure_set(x_319, 7, x_316); +lean_closure_set(x_319, 8, x_317); +lean_closure_set(x_319, 9, x_318); +x_320 = l_Lean_Elab_Term_observing___rarg(x_319, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_320) == 0) +{ +uint8_t x_321; +x_321 = !lean_is_exclusive(x_320); +if (x_321 == 0) +{ +lean_object* x_322; lean_object* x_323; +x_322 = lean_ctor_get(x_320, 0); +x_323 = lean_array_push(x_9, x_322); +lean_ctor_set(x_320, 0, x_323); +return x_320; +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +x_324 = lean_ctor_get(x_320, 0); +x_325 = lean_ctor_get(x_320, 1); +lean_inc(x_325); +lean_inc(x_324); +lean_dec(x_320); +x_326 = lean_array_push(x_9, x_324); +x_327 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_327, 0, x_326); +lean_ctor_set(x_327, 1, x_325); +return x_327; +} +} +else +{ +uint8_t x_328; +lean_dec(x_9); +x_328 = !lean_is_exclusive(x_320); +if (x_328 == 0) +{ +return x_320; +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_329 = lean_ctor_get(x_320, 0); +x_330 = lean_ctor_get(x_320, 1); +lean_inc(x_330); +lean_inc(x_329); +lean_dec(x_320); +x_331 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_331, 0, x_329); +lean_ctor_set(x_331, 1, x_330); +return x_331; +} +} +} +else +{ +uint8_t x_332; +x_332 = l_Array_isEmpty___rarg(x_4); +if (x_332 == 0) +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_333 = lean_box(0); +x_334 = lean_box(x_294); +x_335 = lean_box(x_6); +x_336 = lean_box(x_7); +x_337 = lean_box(x_8); +x_338 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_338, 0, x_1); +lean_closure_set(x_338, 1, x_333); +lean_closure_set(x_338, 2, x_334); +lean_closure_set(x_338, 3, x_2); +lean_closure_set(x_338, 4, x_3); +lean_closure_set(x_338, 5, x_4); +lean_closure_set(x_338, 6, x_5); +lean_closure_set(x_338, 7, x_335); +lean_closure_set(x_338, 8, x_336); +lean_closure_set(x_338, 9, x_337); +x_339 = l_Lean_Elab_Term_observing___rarg(x_338, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_339) == 0) +{ +uint8_t x_340; +x_340 = !lean_is_exclusive(x_339); +if (x_340 == 0) +{ +lean_object* x_341; lean_object* x_342; +x_341 = lean_ctor_get(x_339, 0); +x_342 = lean_array_push(x_9, x_341); +lean_ctor_set(x_339, 0, x_342); +return x_339; +} +else +{ +lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_343 = lean_ctor_get(x_339, 0); +x_344 = lean_ctor_get(x_339, 1); +lean_inc(x_344); +lean_inc(x_343); +lean_dec(x_339); +x_345 = lean_array_push(x_9, x_343); +x_346 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_344); +return x_346; +} +} +else +{ +uint8_t x_347; +lean_dec(x_9); +x_347 = !lean_is_exclusive(x_339); +if (x_347 == 0) +{ +return x_339; +} +else +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; +x_348 = lean_ctor_get(x_339, 0); +x_349 = lean_ctor_get(x_339, 1); +lean_inc(x_349); +lean_inc(x_348); +lean_dec(x_339); +x_350 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_350, 0, x_348); +lean_ctor_set(x_350, 1, x_349); +return x_350; +} +} +} +else +{ +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (x_8 == 0) +{ +uint8_t x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_351 = 1; +x_352 = lean_box(x_351); +x_353 = lean_box(x_351); +x_354 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_354, 0, x_1); +lean_closure_set(x_354, 1, x_5); +lean_closure_set(x_354, 2, x_352); +lean_closure_set(x_354, 3, x_353); +x_355 = l_Lean_Elab_Term_observing___rarg(x_354, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_355) == 0) +{ +uint8_t x_356; +x_356 = !lean_is_exclusive(x_355); +if (x_356 == 0) +{ +lean_object* x_357; lean_object* x_358; +x_357 = lean_ctor_get(x_355, 0); +x_358 = lean_array_push(x_9, x_357); +lean_ctor_set(x_355, 0, x_358); +return x_355; +} +else +{ +lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; +x_359 = lean_ctor_get(x_355, 0); +x_360 = lean_ctor_get(x_355, 1); +lean_inc(x_360); +lean_inc(x_359); +lean_dec(x_355); +x_361 = lean_array_push(x_9, x_359); +x_362 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_362, 0, x_361); +lean_ctor_set(x_362, 1, x_360); +return x_362; +} +} +else +{ +uint8_t x_363; +lean_dec(x_9); +x_363 = !lean_is_exclusive(x_355); +if (x_363 == 0) +{ +return x_355; +} +else +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; +x_364 = lean_ctor_get(x_355, 0); +x_365 = lean_ctor_get(x_355, 1); +lean_inc(x_365); +lean_inc(x_364); +lean_dec(x_355); +x_366 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_366, 0, x_364); +lean_ctor_set(x_366, 1, x_365); +return x_366; +} +} +} +else +{ +lean_object* x_367; uint8_t x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_367 = lean_box(0); +x_368 = 1; +x_369 = lean_box(x_294); +x_370 = lean_box(x_368); +x_371 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_371, 0, x_1); +lean_closure_set(x_371, 1, x_5); +lean_closure_set(x_371, 2, x_369); +lean_closure_set(x_371, 3, x_370); +lean_closure_set(x_371, 4, x_367); +x_372 = l_Lean_Elab_Term_observing___rarg(x_371, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_372) == 0) +{ +uint8_t x_373; +x_373 = !lean_is_exclusive(x_372); +if (x_373 == 0) +{ +lean_object* x_374; lean_object* x_375; +x_374 = lean_ctor_get(x_372, 0); +x_375 = lean_array_push(x_9, x_374); +lean_ctor_set(x_372, 0, x_375); +return x_372; +} +else +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_376 = lean_ctor_get(x_372, 0); +x_377 = lean_ctor_get(x_372, 1); +lean_inc(x_377); +lean_inc(x_376); +lean_dec(x_372); +x_378 = lean_array_push(x_9, x_376); +x_379 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_379, 0, x_378); +lean_ctor_set(x_379, 1, x_377); +return x_379; +} +} +else +{ +uint8_t x_380; +lean_dec(x_9); +x_380 = !lean_is_exclusive(x_372); +if (x_380 == 0) +{ +return x_372; +} +else +{ +lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_381 = lean_ctor_get(x_372, 0); +x_382 = lean_ctor_get(x_372, 1); +lean_inc(x_382); +lean_inc(x_381); +lean_dec(x_372); +x_383 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_383, 0, x_381); +lean_ctor_set(x_383, 1, x_382); +return x_383; +} +} +} +} +} +} +} +} +else +{ +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_387 = lean_unsigned_to_nat(2u); +x_388 = l_Lean_Syntax_getArg(x_1, x_387); +lean_dec(x_1); +x_389 = l_Lean_Syntax_getArgs(x_388); +lean_dec(x_388); +x_390 = l_Lean_Syntax_SepArray_getElems___rarg(x_389); +lean_dec(x_389); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_247 = l_Lean_Elab_Term_elabExplicitUnivs(x_246, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_246); -if (lean_obj_tag(x_247) == 0) +x_391 = l_Lean_Elab_Term_elabExplicitUnivs(x_390, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_390); +if (lean_obj_tag(x_391) == 0) { -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -lean_dec(x_247); -x_250 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(x_147, x_248, 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_249); -return x_250; +lean_object* x_392; lean_object* x_393; lean_object* x_394; +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_391, 1); +lean_inc(x_393); +lean_dec(x_391); +x_394 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(x_291, x_392, 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_393); +return x_394; } else { -uint8_t x_251; -lean_dec(x_147); +uint8_t x_395; +lean_dec(x_291); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -21274,1898 +22245,1106 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_251 = !lean_is_exclusive(x_247); -if (x_251 == 0) +x_395 = !lean_is_exclusive(x_391); +if (x_395 == 0) { -return x_247; +return x_391; } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_247, 0); -x_253 = lean_ctor_get(x_247, 1); -lean_inc(x_253); -lean_inc(x_252); -lean_dec(x_247); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_253); -return x_254; -} -} -} -} -} -else -{ -lean_object* x_255; lean_object* x_256; -x_255 = lean_box(0); -x_256 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(x_1, x_255, 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); -return x_256; -} -} -else -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; -x_257 = lean_unsigned_to_nat(0u); -x_258 = l_Lean_Syntax_getArg(x_1, x_257); -x_259 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; -x_260 = l_Lean_Syntax_isOfKind(x_258, x_259); -if (x_260 == 0) -{ -uint8_t x_261; uint8_t x_262; -x_261 = l_List_isEmpty___rarg(x_2); -if (x_8 == 0) -{ -uint8_t x_353; -x_353 = 1; -x_262 = x_353; -goto block_352; -} -else -{ -uint8_t x_354; -x_354 = 0; -x_262 = x_354; -goto block_352; -} -block_352: -{ -if (x_261 == 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_object* x_269; -x_263 = lean_box(0); -x_264 = lean_box(x_262); -x_265 = lean_box(x_6); -x_266 = lean_box(x_7); -x_267 = lean_box(x_8); -x_268 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_268, 0, x_1); -lean_closure_set(x_268, 1, x_263); -lean_closure_set(x_268, 2, x_264); -lean_closure_set(x_268, 3, x_2); -lean_closure_set(x_268, 4, x_3); -lean_closure_set(x_268, 5, x_4); -lean_closure_set(x_268, 6, x_5); -lean_closure_set(x_268, 7, x_265); -lean_closure_set(x_268, 8, x_266); -lean_closure_set(x_268, 9, x_267); -x_269 = l_Lean_Elab_Term_observing___rarg(x_268, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_269) == 0) -{ -uint8_t x_270; -x_270 = !lean_is_exclusive(x_269); -if (x_270 == 0) -{ -lean_object* x_271; lean_object* x_272; -x_271 = lean_ctor_get(x_269, 0); -x_272 = lean_array_push(x_9, x_271); -lean_ctor_set(x_269, 0, x_272); -return x_269; -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -x_273 = lean_ctor_get(x_269, 0); -x_274 = lean_ctor_get(x_269, 1); -lean_inc(x_274); -lean_inc(x_273); -lean_dec(x_269); -x_275 = lean_array_push(x_9, x_273); -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_274); -return x_276; -} -} -else -{ -uint8_t x_277; -lean_dec(x_9); -x_277 = !lean_is_exclusive(x_269); -if (x_277 == 0) -{ -return x_269; -} -else -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_278 = lean_ctor_get(x_269, 0); -x_279 = lean_ctor_get(x_269, 1); -lean_inc(x_279); -lean_inc(x_278); -lean_dec(x_269); -x_280 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_280, 0, x_278); -lean_ctor_set(x_280, 1, x_279); -return x_280; -} -} -} -else -{ -uint8_t x_281; -x_281 = l_Array_isEmpty___rarg(x_3); -if (x_281 == 0) -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_282 = lean_box(0); -x_283 = lean_box(x_262); -x_284 = lean_box(x_6); -x_285 = lean_box(x_7); -x_286 = lean_box(x_8); -x_287 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_287, 0, x_1); -lean_closure_set(x_287, 1, x_282); -lean_closure_set(x_287, 2, x_283); -lean_closure_set(x_287, 3, x_2); -lean_closure_set(x_287, 4, x_3); -lean_closure_set(x_287, 5, x_4); -lean_closure_set(x_287, 6, x_5); -lean_closure_set(x_287, 7, x_284); -lean_closure_set(x_287, 8, x_285); -lean_closure_set(x_287, 9, x_286); -x_288 = l_Lean_Elab_Term_observing___rarg(x_287, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_288) == 0) -{ -uint8_t x_289; -x_289 = !lean_is_exclusive(x_288); -if (x_289 == 0) -{ -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_288, 0); -x_291 = lean_array_push(x_9, x_290); -lean_ctor_set(x_288, 0, x_291); -return x_288; -} -else -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_292 = lean_ctor_get(x_288, 0); -x_293 = lean_ctor_get(x_288, 1); -lean_inc(x_293); -lean_inc(x_292); -lean_dec(x_288); -x_294 = lean_array_push(x_9, x_292); -x_295 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_295, 0, x_294); -lean_ctor_set(x_295, 1, x_293); -return x_295; -} -} -else -{ -uint8_t x_296; -lean_dec(x_9); -x_296 = !lean_is_exclusive(x_288); -if (x_296 == 0) -{ -return x_288; -} -else -{ -lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_297 = lean_ctor_get(x_288, 0); -x_298 = lean_ctor_get(x_288, 1); -lean_inc(x_298); -lean_inc(x_297); -lean_dec(x_288); -x_299 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_299, 0, x_297); -lean_ctor_set(x_299, 1, x_298); -return x_299; -} -} -} -else -{ -uint8_t x_300; -x_300 = l_Array_isEmpty___rarg(x_4); -if (x_300 == 0) -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; -x_301 = lean_box(0); -x_302 = lean_box(x_262); -x_303 = lean_box(x_6); -x_304 = lean_box(x_7); -x_305 = lean_box(x_8); -x_306 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_306, 0, x_1); -lean_closure_set(x_306, 1, x_301); -lean_closure_set(x_306, 2, x_302); -lean_closure_set(x_306, 3, x_2); -lean_closure_set(x_306, 4, x_3); -lean_closure_set(x_306, 5, x_4); -lean_closure_set(x_306, 6, x_5); -lean_closure_set(x_306, 7, x_303); -lean_closure_set(x_306, 8, x_304); -lean_closure_set(x_306, 9, x_305); -x_307 = l_Lean_Elab_Term_observing___rarg(x_306, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_307) == 0) -{ -uint8_t x_308; -x_308 = !lean_is_exclusive(x_307); -if (x_308 == 0) -{ -lean_object* x_309; lean_object* x_310; -x_309 = lean_ctor_get(x_307, 0); -x_310 = lean_array_push(x_9, x_309); -lean_ctor_set(x_307, 0, x_310); -return x_307; -} -else -{ -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_311 = lean_ctor_get(x_307, 0); -x_312 = lean_ctor_get(x_307, 1); -lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_307); -x_313 = lean_array_push(x_9, x_311); -x_314 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_312); -return x_314; -} -} -else -{ -uint8_t x_315; -lean_dec(x_9); -x_315 = !lean_is_exclusive(x_307); -if (x_315 == 0) -{ -return x_307; -} -else -{ -lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_316 = lean_ctor_get(x_307, 0); -x_317 = lean_ctor_get(x_307, 1); -lean_inc(x_317); -lean_inc(x_316); -lean_dec(x_307); -x_318 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_318, 0, x_316); -lean_ctor_set(x_318, 1, x_317); -return x_318; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (x_8 == 0) -{ -uint8_t x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_319 = 1; -x_320 = lean_box(x_319); -x_321 = lean_box(x_319); -x_322 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_322, 0, x_1); -lean_closure_set(x_322, 1, x_5); -lean_closure_set(x_322, 2, x_320); -lean_closure_set(x_322, 3, x_321); -x_323 = l_Lean_Elab_Term_observing___rarg(x_322, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_323) == 0) -{ -uint8_t x_324; -x_324 = !lean_is_exclusive(x_323); -if (x_324 == 0) -{ -lean_object* x_325; lean_object* x_326; -x_325 = lean_ctor_get(x_323, 0); -x_326 = lean_array_push(x_9, x_325); -lean_ctor_set(x_323, 0, x_326); -return x_323; -} -else -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; -x_327 = lean_ctor_get(x_323, 0); -x_328 = lean_ctor_get(x_323, 1); -lean_inc(x_328); -lean_inc(x_327); -lean_dec(x_323); -x_329 = lean_array_push(x_9, x_327); -x_330 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_330, 0, x_329); -lean_ctor_set(x_330, 1, x_328); -return x_330; -} -} -else -{ -uint8_t x_331; -lean_dec(x_9); -x_331 = !lean_is_exclusive(x_323); -if (x_331 == 0) -{ -return x_323; -} -else -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_332 = lean_ctor_get(x_323, 0); -x_333 = lean_ctor_get(x_323, 1); -lean_inc(x_333); -lean_inc(x_332); -lean_dec(x_323); -x_334 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_334, 0, x_332); -lean_ctor_set(x_334, 1, x_333); -return x_334; -} -} -} -else -{ -lean_object* x_335; uint8_t x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; -x_335 = lean_box(0); -x_336 = 1; -x_337 = lean_box(x_262); -x_338 = lean_box(x_336); -x_339 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_339, 0, x_1); -lean_closure_set(x_339, 1, x_5); -lean_closure_set(x_339, 2, x_337); -lean_closure_set(x_339, 3, x_338); -lean_closure_set(x_339, 4, x_335); -x_340 = l_Lean_Elab_Term_observing___rarg(x_339, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_340) == 0) -{ -uint8_t x_341; -x_341 = !lean_is_exclusive(x_340); -if (x_341 == 0) -{ -lean_object* x_342; lean_object* x_343; -x_342 = lean_ctor_get(x_340, 0); -x_343 = lean_array_push(x_9, x_342); -lean_ctor_set(x_340, 0, x_343); -return x_340; -} -else -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; -x_344 = lean_ctor_get(x_340, 0); -x_345 = lean_ctor_get(x_340, 1); -lean_inc(x_345); -lean_inc(x_344); -lean_dec(x_340); -x_346 = lean_array_push(x_9, x_344); -x_347 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_347, 0, x_346); -lean_ctor_set(x_347, 1, x_345); -return x_347; -} -} -else -{ -uint8_t x_348; -lean_dec(x_9); -x_348 = !lean_is_exclusive(x_340); -if (x_348 == 0) -{ -return x_340; -} -else -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_349 = lean_ctor_get(x_340, 0); -x_350 = lean_ctor_get(x_340, 1); -lean_inc(x_350); -lean_inc(x_349); -lean_dec(x_340); -x_351 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_351, 0, x_349); -lean_ctor_set(x_351, 1, x_350); -return x_351; -} -} -} -} -} -} -} -} -else -{ -lean_object* x_355; lean_object* x_356; lean_object* x_357; uint8_t x_358; -x_355 = lean_unsigned_to_nat(2u); -x_356 = l_Lean_Syntax_getArg(x_1, x_355); -x_357 = l_Lean_nullKind; -x_358 = l_Lean_Syntax_isNodeOf(x_356, x_357, x_257); -if (x_358 == 0) -{ -uint8_t x_359; uint8_t x_360; -x_359 = l_List_isEmpty___rarg(x_2); -if (x_8 == 0) -{ -uint8_t x_451; -x_451 = 1; -x_360 = x_451; -goto block_450; -} -else -{ -uint8_t x_452; -x_452 = 0; -x_360 = x_452; -goto block_450; -} -block_450: -{ -if (x_359 == 0) -{ -lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; -x_361 = lean_box(0); -x_362 = lean_box(x_360); -x_363 = lean_box(x_6); -x_364 = lean_box(x_7); -x_365 = lean_box(x_8); -x_366 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_366, 0, x_1); -lean_closure_set(x_366, 1, x_361); -lean_closure_set(x_366, 2, x_362); -lean_closure_set(x_366, 3, x_2); -lean_closure_set(x_366, 4, x_3); -lean_closure_set(x_366, 5, x_4); -lean_closure_set(x_366, 6, x_5); -lean_closure_set(x_366, 7, x_363); -lean_closure_set(x_366, 8, x_364); -lean_closure_set(x_366, 9, x_365); -x_367 = l_Lean_Elab_Term_observing___rarg(x_366, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_367) == 0) -{ -uint8_t x_368; -x_368 = !lean_is_exclusive(x_367); -if (x_368 == 0) -{ -lean_object* x_369; lean_object* x_370; -x_369 = lean_ctor_get(x_367, 0); -x_370 = lean_array_push(x_9, x_369); -lean_ctor_set(x_367, 0, x_370); -return x_367; -} -else -{ -lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; -x_371 = lean_ctor_get(x_367, 0); -x_372 = lean_ctor_get(x_367, 1); -lean_inc(x_372); -lean_inc(x_371); -lean_dec(x_367); -x_373 = lean_array_push(x_9, x_371); -x_374 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_374, 0, x_373); -lean_ctor_set(x_374, 1, x_372); -return x_374; -} -} -else -{ -uint8_t x_375; -lean_dec(x_9); -x_375 = !lean_is_exclusive(x_367); -if (x_375 == 0) -{ -return x_367; -} -else -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; -x_376 = lean_ctor_get(x_367, 0); -x_377 = lean_ctor_get(x_367, 1); -lean_inc(x_377); -lean_inc(x_376); -lean_dec(x_367); -x_378 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_378, 0, x_376); -lean_ctor_set(x_378, 1, x_377); -return x_378; -} -} -} -else -{ -uint8_t x_379; -x_379 = l_Array_isEmpty___rarg(x_3); -if (x_379 == 0) -{ -lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_380 = lean_box(0); -x_381 = lean_box(x_360); -x_382 = lean_box(x_6); -x_383 = lean_box(x_7); -x_384 = lean_box(x_8); -x_385 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_385, 0, x_1); -lean_closure_set(x_385, 1, x_380); -lean_closure_set(x_385, 2, x_381); -lean_closure_set(x_385, 3, x_2); -lean_closure_set(x_385, 4, x_3); -lean_closure_set(x_385, 5, x_4); -lean_closure_set(x_385, 6, x_5); -lean_closure_set(x_385, 7, x_382); -lean_closure_set(x_385, 8, x_383); -lean_closure_set(x_385, 9, x_384); -x_386 = l_Lean_Elab_Term_observing___rarg(x_385, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_386) == 0) -{ -uint8_t x_387; -x_387 = !lean_is_exclusive(x_386); -if (x_387 == 0) -{ -lean_object* x_388; lean_object* x_389; -x_388 = lean_ctor_get(x_386, 0); -x_389 = lean_array_push(x_9, x_388); -lean_ctor_set(x_386, 0, x_389); -return x_386; -} -else -{ -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_390 = lean_ctor_get(x_386, 0); -x_391 = lean_ctor_get(x_386, 1); -lean_inc(x_391); -lean_inc(x_390); -lean_dec(x_386); -x_392 = lean_array_push(x_9, x_390); -x_393 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_393, 0, x_392); -lean_ctor_set(x_393, 1, x_391); -return x_393; -} -} -else -{ -uint8_t x_394; -lean_dec(x_9); -x_394 = !lean_is_exclusive(x_386); -if (x_394 == 0) -{ -return x_386; -} -else -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_395 = lean_ctor_get(x_386, 0); -x_396 = lean_ctor_get(x_386, 1); +lean_object* x_396; lean_object* x_397; lean_object* x_398; +x_396 = lean_ctor_get(x_391, 0); +x_397 = lean_ctor_get(x_391, 1); +lean_inc(x_397); lean_inc(x_396); -lean_inc(x_395); -lean_dec(x_386); -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_391); +x_398 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_398, 0, x_396); +lean_ctor_set(x_398, 1, x_397); +return x_398; +} +} } } } else { -uint8_t x_398; -x_398 = l_Array_isEmpty___rarg(x_4); -if (x_398 == 0) -{ -lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; +lean_object* x_399; lean_object* x_400; x_399 = lean_box(0); -x_400 = lean_box(x_360); -x_401 = lean_box(x_6); -x_402 = lean_box(x_7); -x_403 = lean_box(x_8); -x_404 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_404, 0, x_1); -lean_closure_set(x_404, 1, x_399); -lean_closure_set(x_404, 2, x_400); -lean_closure_set(x_404, 3, x_2); -lean_closure_set(x_404, 4, x_3); -lean_closure_set(x_404, 5, x_4); -lean_closure_set(x_404, 6, x_5); -lean_closure_set(x_404, 7, x_401); -lean_closure_set(x_404, 8, x_402); -lean_closure_set(x_404, 9, x_403); -x_405 = l_Lean_Elab_Term_observing___rarg(x_404, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_405) == 0) -{ -uint8_t x_406; -x_406 = !lean_is_exclusive(x_405); -if (x_406 == 0) -{ -lean_object* x_407; lean_object* x_408; -x_407 = lean_ctor_get(x_405, 0); -x_408 = lean_array_push(x_9, x_407); -lean_ctor_set(x_405, 0, x_408); -return x_405; -} -else -{ -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; -x_409 = lean_ctor_get(x_405, 0); -x_410 = lean_ctor_get(x_405, 1); -lean_inc(x_410); -lean_inc(x_409); -lean_dec(x_405); -x_411 = lean_array_push(x_9, x_409); -x_412 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_410); -return x_412; +x_400 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId(x_1, x_399, 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); +return x_400; } } else { -uint8_t x_413; -lean_dec(x_9); -x_413 = !lean_is_exclusive(x_405); -if (x_413 == 0) +lean_object* x_401; lean_object* x_402; lean_object* x_403; uint8_t x_404; +x_401 = lean_unsigned_to_nat(0u); +x_402 = l_Lean_Syntax_getArg(x_1, x_401); +x_403 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; +x_404 = l_Lean_Syntax_isOfKind(x_402, x_403); +if (x_404 == 0) { -return x_405; -} -else -{ -lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_414 = lean_ctor_get(x_405, 0); -x_415 = lean_ctor_get(x_405, 1); -lean_inc(x_415); -lean_inc(x_414); -lean_dec(x_405); -x_416 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_416, 0, x_414); -lean_ctor_set(x_416, 1, x_415); -return x_416; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); +uint8_t x_405; uint8_t x_406; +x_405 = l_List_isEmpty___rarg(x_2); if (x_8 == 0) { -uint8_t x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_417 = 1; -x_418 = lean_box(x_417); -x_419 = lean_box(x_417); -x_420 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_420, 0, x_1); -lean_closure_set(x_420, 1, x_5); -lean_closure_set(x_420, 2, x_418); -lean_closure_set(x_420, 3, x_419); -x_421 = l_Lean_Elab_Term_observing___rarg(x_420, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_421) == 0) -{ -uint8_t x_422; -x_422 = !lean_is_exclusive(x_421); -if (x_422 == 0) -{ -lean_object* x_423; lean_object* x_424; -x_423 = lean_ctor_get(x_421, 0); -x_424 = lean_array_push(x_9, x_423); -lean_ctor_set(x_421, 0, x_424); -return x_421; +uint8_t x_497; +x_497 = 1; +x_406 = x_497; +goto block_496; } else { -lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_425 = lean_ctor_get(x_421, 0); -x_426 = lean_ctor_get(x_421, 1); -lean_inc(x_426); -lean_inc(x_425); -lean_dec(x_421); -x_427 = lean_array_push(x_9, x_425); -x_428 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_428, 0, x_427); -lean_ctor_set(x_428, 1, x_426); -return x_428; +uint8_t x_498; +x_498 = 0; +x_406 = x_498; +goto block_496; +} +block_496: +{ +if (x_405 == 0) +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; +x_407 = lean_box(0); +x_408 = lean_box(x_406); +x_409 = lean_box(x_6); +x_410 = lean_box(x_7); +x_411 = lean_box(x_8); +x_412 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_412, 0, x_1); +lean_closure_set(x_412, 1, x_407); +lean_closure_set(x_412, 2, x_408); +lean_closure_set(x_412, 3, x_2); +lean_closure_set(x_412, 4, x_3); +lean_closure_set(x_412, 5, x_4); +lean_closure_set(x_412, 6, x_5); +lean_closure_set(x_412, 7, x_409); +lean_closure_set(x_412, 8, x_410); +lean_closure_set(x_412, 9, x_411); +x_413 = l_Lean_Elab_Term_observing___rarg(x_412, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_413) == 0) +{ +uint8_t x_414; +x_414 = !lean_is_exclusive(x_413); +if (x_414 == 0) +{ +lean_object* x_415; lean_object* x_416; +x_415 = lean_ctor_get(x_413, 0); +x_416 = lean_array_push(x_9, x_415); +lean_ctor_set(x_413, 0, x_416); +return x_413; +} +else +{ +lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_417 = lean_ctor_get(x_413, 0); +x_418 = lean_ctor_get(x_413, 1); +lean_inc(x_418); +lean_inc(x_417); +lean_dec(x_413); +x_419 = lean_array_push(x_9, x_417); +x_420 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_420, 0, x_419); +lean_ctor_set(x_420, 1, x_418); +return x_420; } } else { -uint8_t x_429; +uint8_t x_421; lean_dec(x_9); -x_429 = !lean_is_exclusive(x_421); -if (x_429 == 0) +x_421 = !lean_is_exclusive(x_413); +if (x_421 == 0) { -return x_421; +return x_413; } else { -lean_object* x_430; lean_object* x_431; lean_object* x_432; -x_430 = lean_ctor_get(x_421, 0); -x_431 = lean_ctor_get(x_421, 1); -lean_inc(x_431); -lean_inc(x_430); -lean_dec(x_421); -x_432 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_432, 0, x_430); -lean_ctor_set(x_432, 1, x_431); +lean_object* x_422; lean_object* x_423; lean_object* x_424; +x_422 = lean_ctor_get(x_413, 0); +x_423 = lean_ctor_get(x_413, 1); +lean_inc(x_423); +lean_inc(x_422); +lean_dec(x_413); +x_424 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_423); +return x_424; +} +} +} +else +{ +uint8_t x_425; +x_425 = l_Array_isEmpty___rarg(x_3); +if (x_425 == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_426 = lean_box(0); +x_427 = lean_box(x_406); +x_428 = lean_box(x_6); +x_429 = lean_box(x_7); +x_430 = lean_box(x_8); +x_431 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_431, 0, x_1); +lean_closure_set(x_431, 1, x_426); +lean_closure_set(x_431, 2, x_427); +lean_closure_set(x_431, 3, x_2); +lean_closure_set(x_431, 4, x_3); +lean_closure_set(x_431, 5, x_4); +lean_closure_set(x_431, 6, x_5); +lean_closure_set(x_431, 7, x_428); +lean_closure_set(x_431, 8, x_429); +lean_closure_set(x_431, 9, x_430); +x_432 = l_Lean_Elab_Term_observing___rarg(x_431, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_432) == 0) +{ +uint8_t x_433; +x_433 = !lean_is_exclusive(x_432); +if (x_433 == 0) +{ +lean_object* x_434; lean_object* x_435; +x_434 = lean_ctor_get(x_432, 0); +x_435 = lean_array_push(x_9, x_434); +lean_ctor_set(x_432, 0, x_435); return x_432; } +else +{ +lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; +x_436 = lean_ctor_get(x_432, 0); +x_437 = lean_ctor_get(x_432, 1); +lean_inc(x_437); +lean_inc(x_436); +lean_dec(x_432); +x_438 = lean_array_push(x_9, x_436); +x_439 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_439, 0, x_438); +lean_ctor_set(x_439, 1, x_437); +return x_439; } } else { -lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_433 = lean_box(0); -x_434 = 1; -x_435 = lean_box(x_360); -x_436 = lean_box(x_434); -x_437 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_437, 0, x_1); -lean_closure_set(x_437, 1, x_5); -lean_closure_set(x_437, 2, x_435); -lean_closure_set(x_437, 3, x_436); -lean_closure_set(x_437, 4, x_433); -x_438 = l_Lean_Elab_Term_observing___rarg(x_437, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_438) == 0) -{ -uint8_t x_439; -x_439 = !lean_is_exclusive(x_438); -if (x_439 == 0) -{ -lean_object* x_440; lean_object* x_441; -x_440 = lean_ctor_get(x_438, 0); -x_441 = lean_array_push(x_9, x_440); -lean_ctor_set(x_438, 0, x_441); -return x_438; -} -else -{ -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_442 = lean_ctor_get(x_438, 0); -x_443 = lean_ctor_get(x_438, 1); -lean_inc(x_443); -lean_inc(x_442); -lean_dec(x_438); -x_444 = lean_array_push(x_9, x_442); -x_445 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_445, 0, x_444); -lean_ctor_set(x_445, 1, x_443); -return x_445; -} -} -else -{ -uint8_t x_446; +uint8_t x_440; lean_dec(x_9); -x_446 = !lean_is_exclusive(x_438); -if (x_446 == 0) +x_440 = !lean_is_exclusive(x_432); +if (x_440 == 0) { -return x_438; +return x_432; } else { -lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_447 = lean_ctor_get(x_438, 0); -x_448 = lean_ctor_get(x_438, 1); -lean_inc(x_448); -lean_inc(x_447); -lean_dec(x_438); -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_447); -lean_ctor_set(x_449, 1, x_448); -return x_449; -} -} -} -} -} +lean_object* x_441; lean_object* x_442; lean_object* x_443; +x_441 = lean_ctor_get(x_432, 0); +x_442 = lean_ctor_get(x_432, 1); +lean_inc(x_442); +lean_inc(x_441); +lean_dec(x_432); +x_443 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_443, 0, x_441); +lean_ctor_set(x_443, 1, x_442); +return x_443; } } } else { +uint8_t x_444; +x_444 = l_Array_isEmpty___rarg(x_4); +if (x_444 == 0) +{ +lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_445 = lean_box(0); +x_446 = lean_box(x_406); +x_447 = lean_box(x_6); +x_448 = lean_box(x_7); +x_449 = lean_box(x_8); +x_450 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_450, 0, x_1); +lean_closure_set(x_450, 1, x_445); +lean_closure_set(x_450, 2, x_446); +lean_closure_set(x_450, 3, x_2); +lean_closure_set(x_450, 4, x_3); +lean_closure_set(x_450, 5, x_4); +lean_closure_set(x_450, 6, x_5); +lean_closure_set(x_450, 7, x_447); +lean_closure_set(x_450, 8, x_448); +lean_closure_set(x_450, 9, x_449); +x_451 = l_Lean_Elab_Term_observing___rarg(x_450, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_451) == 0) +{ +uint8_t x_452; +x_452 = !lean_is_exclusive(x_451); +if (x_452 == 0) +{ lean_object* x_453; lean_object* x_454; +x_453 = lean_ctor_get(x_451, 0); +x_454 = lean_array_push(x_9, x_453); +lean_ctor_set(x_451, 0, x_454); +return x_451; +} +else +{ +lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_455 = lean_ctor_get(x_451, 0); +x_456 = lean_ctor_get(x_451, 1); +lean_inc(x_456); +lean_inc(x_455); +lean_dec(x_451); +x_457 = lean_array_push(x_9, x_455); +x_458 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_458, 0, x_457); +lean_ctor_set(x_458, 1, x_456); +return x_458; +} +} +else +{ +uint8_t x_459; lean_dec(x_9); -lean_dec(x_5); +x_459 = !lean_is_exclusive(x_451); +if (x_459 == 0) +{ +return x_451; +} +else +{ +lean_object* x_460; lean_object* x_461; lean_object* x_462; +x_460 = lean_ctor_get(x_451, 0); +x_461 = lean_ctor_get(x_451, 1); +lean_inc(x_461); +lean_inc(x_460); +lean_dec(x_451); +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_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_453 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__18; -x_454 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1(x_453, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -return x_454; -} -} -} -} -else -{ -lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; -x_455 = lean_unsigned_to_nat(0u); -x_456 = l_Lean_Syntax_getArg(x_1, x_455); -x_457 = lean_unsigned_to_nat(1u); -x_458 = l_Lean_Syntax_getArg(x_1, x_457); -x_459 = lean_unsigned_to_nat(2u); -x_460 = l_Lean_Syntax_getArg(x_1, x_459); -lean_dec(x_1); -x_461 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_461, 0, x_458); -lean_ctor_set(x_461, 1, x_460); -x_462 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_462, 0, x_461); -lean_ctor_set(x_462, 1, x_2); -x_1 = x_456; -x_2 = x_462; -goto _start; -} -} -else -{ -lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; uint8_t x_469; -x_464 = lean_unsigned_to_nat(0u); -x_465 = l_Lean_Syntax_getArg(x_1, x_464); -x_466 = lean_unsigned_to_nat(2u); -x_467 = l_Lean_Syntax_getArg(x_1, x_466); -x_468 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__20; -lean_inc(x_467); -x_469 = l_Lean_Syntax_isOfKind(x_467, x_468); -if (x_469 == 0) -{ -lean_object* x_470; uint8_t x_471; -x_470 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; -lean_inc(x_467); -x_471 = l_Lean_Syntax_isOfKind(x_467, x_470); -if (x_471 == 0) -{ -uint8_t x_472; uint8_t x_473; -lean_dec(x_467); -lean_dec(x_465); -x_472 = l_List_isEmpty___rarg(x_2); if (x_8 == 0) { -uint8_t x_564; -x_564 = 1; -x_473 = x_564; -goto block_563; +uint8_t x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; +x_463 = 1; +x_464 = lean_box(x_463); +x_465 = lean_box(x_463); +x_466 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_466, 0, x_1); +lean_closure_set(x_466, 1, x_5); +lean_closure_set(x_466, 2, x_464); +lean_closure_set(x_466, 3, x_465); +x_467 = l_Lean_Elab_Term_observing___rarg(x_466, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_467) == 0) +{ +uint8_t x_468; +x_468 = !lean_is_exclusive(x_467); +if (x_468 == 0) +{ +lean_object* x_469; lean_object* x_470; +x_469 = lean_ctor_get(x_467, 0); +x_470 = lean_array_push(x_9, x_469); +lean_ctor_set(x_467, 0, x_470); +return x_467; } else { -uint8_t x_565; -x_565 = 0; -x_473 = x_565; -goto block_563; -} -block_563: -{ -if (x_472 == 0) -{ -lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; -x_474 = lean_box(0); -x_475 = lean_box(x_473); -x_476 = lean_box(x_6); -x_477 = lean_box(x_7); -x_478 = lean_box(x_8); -x_479 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_479, 0, x_1); -lean_closure_set(x_479, 1, x_474); -lean_closure_set(x_479, 2, x_475); -lean_closure_set(x_479, 3, x_2); -lean_closure_set(x_479, 4, x_3); -lean_closure_set(x_479, 5, x_4); -lean_closure_set(x_479, 6, x_5); -lean_closure_set(x_479, 7, x_476); -lean_closure_set(x_479, 8, x_477); -lean_closure_set(x_479, 9, x_478); -x_480 = l_Lean_Elab_Term_observing___rarg(x_479, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_480) == 0) -{ -uint8_t x_481; -x_481 = !lean_is_exclusive(x_480); -if (x_481 == 0) -{ -lean_object* x_482; lean_object* x_483; -x_482 = lean_ctor_get(x_480, 0); -x_483 = lean_array_push(x_9, x_482); -lean_ctor_set(x_480, 0, x_483); -return x_480; -} -else -{ -lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; -x_484 = lean_ctor_get(x_480, 0); -x_485 = lean_ctor_get(x_480, 1); -lean_inc(x_485); -lean_inc(x_484); -lean_dec(x_480); -x_486 = lean_array_push(x_9, x_484); -x_487 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_487, 0, x_486); -lean_ctor_set(x_487, 1, x_485); -return x_487; +lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; +x_471 = lean_ctor_get(x_467, 0); +x_472 = lean_ctor_get(x_467, 1); +lean_inc(x_472); +lean_inc(x_471); +lean_dec(x_467); +x_473 = lean_array_push(x_9, x_471); +x_474 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_474, 0, x_473); +lean_ctor_set(x_474, 1, x_472); +return x_474; } } else { -uint8_t x_488; +uint8_t x_475; lean_dec(x_9); -x_488 = !lean_is_exclusive(x_480); -if (x_488 == 0) +x_475 = !lean_is_exclusive(x_467); +if (x_475 == 0) { -return x_480; +return x_467; } else { -lean_object* x_489; lean_object* x_490; lean_object* x_491; -x_489 = lean_ctor_get(x_480, 0); -x_490 = lean_ctor_get(x_480, 1); -lean_inc(x_490); -lean_inc(x_489); -lean_dec(x_480); -x_491 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_491, 0, x_489); -lean_ctor_set(x_491, 1, x_490); -return x_491; +lean_object* x_476; lean_object* x_477; lean_object* x_478; +x_476 = lean_ctor_get(x_467, 0); +x_477 = lean_ctor_get(x_467, 1); +lean_inc(x_477); +lean_inc(x_476); +lean_dec(x_467); +x_478 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_478, 0, x_476); +lean_ctor_set(x_478, 1, x_477); +return x_478; } } } else { +lean_object* x_479; uint8_t x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; +x_479 = lean_box(0); +x_480 = 1; +x_481 = lean_box(x_406); +x_482 = lean_box(x_480); +x_483 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_483, 0, x_1); +lean_closure_set(x_483, 1, x_5); +lean_closure_set(x_483, 2, x_481); +lean_closure_set(x_483, 3, x_482); +lean_closure_set(x_483, 4, x_479); +x_484 = l_Lean_Elab_Term_observing___rarg(x_483, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_484) == 0) +{ +uint8_t x_485; +x_485 = !lean_is_exclusive(x_484); +if (x_485 == 0) +{ +lean_object* x_486; lean_object* x_487; +x_486 = lean_ctor_get(x_484, 0); +x_487 = lean_array_push(x_9, x_486); +lean_ctor_set(x_484, 0, x_487); +return x_484; +} +else +{ +lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; +x_488 = lean_ctor_get(x_484, 0); +x_489 = lean_ctor_get(x_484, 1); +lean_inc(x_489); +lean_inc(x_488); +lean_dec(x_484); +x_490 = lean_array_push(x_9, x_488); +x_491 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_491, 0, x_490); +lean_ctor_set(x_491, 1, x_489); +return x_491; +} +} +else +{ uint8_t x_492; -x_492 = l_Array_isEmpty___rarg(x_3); +lean_dec(x_9); +x_492 = !lean_is_exclusive(x_484); if (x_492 == 0) { -lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; -x_493 = lean_box(0); -x_494 = lean_box(x_473); -x_495 = lean_box(x_6); -x_496 = lean_box(x_7); -x_497 = lean_box(x_8); -x_498 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_498, 0, x_1); -lean_closure_set(x_498, 1, x_493); -lean_closure_set(x_498, 2, x_494); -lean_closure_set(x_498, 3, x_2); -lean_closure_set(x_498, 4, x_3); -lean_closure_set(x_498, 5, x_4); -lean_closure_set(x_498, 6, x_5); -lean_closure_set(x_498, 7, x_495); -lean_closure_set(x_498, 8, x_496); -lean_closure_set(x_498, 9, x_497); -x_499 = l_Lean_Elab_Term_observing___rarg(x_498, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_499) == 0) -{ -uint8_t x_500; -x_500 = !lean_is_exclusive(x_499); -if (x_500 == 0) -{ -lean_object* x_501; lean_object* x_502; -x_501 = lean_ctor_get(x_499, 0); -x_502 = lean_array_push(x_9, x_501); -lean_ctor_set(x_499, 0, x_502); -return x_499; +return x_484; } else { -lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; -x_503 = lean_ctor_get(x_499, 0); -x_504 = lean_ctor_get(x_499, 1); -lean_inc(x_504); -lean_inc(x_503); -lean_dec(x_499); -x_505 = lean_array_push(x_9, x_503); -x_506 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_506, 0, x_505); -lean_ctor_set(x_506, 1, x_504); -return x_506; +lean_object* x_493; lean_object* x_494; lean_object* x_495; +x_493 = lean_ctor_get(x_484, 0); +x_494 = lean_ctor_get(x_484, 1); +lean_inc(x_494); +lean_inc(x_493); +lean_dec(x_484); +x_495 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_495, 0, x_493); +lean_ctor_set(x_495, 1, x_494); +return x_495; +} +} } } -else -{ -uint8_t x_507; -lean_dec(x_9); -x_507 = !lean_is_exclusive(x_499); -if (x_507 == 0) -{ -return x_499; } -else -{ -lean_object* x_508; lean_object* x_509; lean_object* x_510; -x_508 = lean_ctor_get(x_499, 0); -x_509 = lean_ctor_get(x_499, 1); -lean_inc(x_509); -lean_inc(x_508); -lean_dec(x_499); -x_510 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_510, 0, x_508); -lean_ctor_set(x_510, 1, x_509); -return x_510; } } } else { -uint8_t x_511; -x_511 = l_Array_isEmpty___rarg(x_4); -if (x_511 == 0) +lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; +x_499 = lean_unsigned_to_nat(2u); +x_500 = l_Lean_Syntax_getArg(x_1, x_499); +x_501 = l_Lean_nullKind; +x_502 = l_Lean_Syntax_isNodeOf(x_500, x_501, x_401); +if (x_502 == 0) { -lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; -x_512 = lean_box(0); -x_513 = lean_box(x_473); -x_514 = lean_box(x_6); -x_515 = lean_box(x_7); -x_516 = lean_box(x_8); -x_517 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_517, 0, x_1); -lean_closure_set(x_517, 1, x_512); -lean_closure_set(x_517, 2, x_513); -lean_closure_set(x_517, 3, x_2); -lean_closure_set(x_517, 4, x_3); -lean_closure_set(x_517, 5, x_4); -lean_closure_set(x_517, 6, x_5); -lean_closure_set(x_517, 7, x_514); -lean_closure_set(x_517, 8, x_515); -lean_closure_set(x_517, 9, x_516); -x_518 = l_Lean_Elab_Term_observing___rarg(x_517, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_518) == 0) -{ -uint8_t x_519; -x_519 = !lean_is_exclusive(x_518); -if (x_519 == 0) -{ -lean_object* x_520; lean_object* x_521; -x_520 = lean_ctor_get(x_518, 0); -x_521 = lean_array_push(x_9, x_520); -lean_ctor_set(x_518, 0, x_521); -return x_518; -} -else -{ -lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; -x_522 = lean_ctor_get(x_518, 0); -x_523 = lean_ctor_get(x_518, 1); -lean_inc(x_523); -lean_inc(x_522); -lean_dec(x_518); -x_524 = lean_array_push(x_9, x_522); -x_525 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_525, 0, x_524); -lean_ctor_set(x_525, 1, x_523); -return x_525; -} -} -else -{ -uint8_t x_526; -lean_dec(x_9); -x_526 = !lean_is_exclusive(x_518); -if (x_526 == 0) -{ -return x_518; -} -else -{ -lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_527 = lean_ctor_get(x_518, 0); -x_528 = lean_ctor_get(x_518, 1); -lean_inc(x_528); -lean_inc(x_527); -lean_dec(x_518); -x_529 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_529, 0, x_527); -lean_ctor_set(x_529, 1, x_528); -return x_529; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); +uint8_t x_503; uint8_t x_504; +x_503 = l_List_isEmpty___rarg(x_2); if (x_8 == 0) { -uint8_t x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; -x_530 = 1; -x_531 = lean_box(x_530); -x_532 = lean_box(x_530); -x_533 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_533, 0, x_1); -lean_closure_set(x_533, 1, x_5); -lean_closure_set(x_533, 2, x_531); -lean_closure_set(x_533, 3, x_532); -x_534 = l_Lean_Elab_Term_observing___rarg(x_533, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_534) == 0) -{ -uint8_t x_535; -x_535 = !lean_is_exclusive(x_534); -if (x_535 == 0) -{ -lean_object* x_536; lean_object* x_537; -x_536 = lean_ctor_get(x_534, 0); -x_537 = lean_array_push(x_9, x_536); -lean_ctor_set(x_534, 0, x_537); -return x_534; +uint8_t x_595; +x_595 = 1; +x_504 = x_595; +goto block_594; } else { -lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; -x_538 = lean_ctor_get(x_534, 0); -x_539 = lean_ctor_get(x_534, 1); +uint8_t x_596; +x_596 = 0; +x_504 = x_596; +goto block_594; +} +block_594: +{ +if (x_503 == 0) +{ +lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +x_505 = lean_box(0); +x_506 = lean_box(x_504); +x_507 = lean_box(x_6); +x_508 = lean_box(x_7); +x_509 = lean_box(x_8); +x_510 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_510, 0, x_1); +lean_closure_set(x_510, 1, x_505); +lean_closure_set(x_510, 2, x_506); +lean_closure_set(x_510, 3, x_2); +lean_closure_set(x_510, 4, x_3); +lean_closure_set(x_510, 5, x_4); +lean_closure_set(x_510, 6, x_5); +lean_closure_set(x_510, 7, x_507); +lean_closure_set(x_510, 8, x_508); +lean_closure_set(x_510, 9, x_509); +x_511 = l_Lean_Elab_Term_observing___rarg(x_510, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_511) == 0) +{ +uint8_t x_512; +x_512 = !lean_is_exclusive(x_511); +if (x_512 == 0) +{ +lean_object* x_513; lean_object* x_514; +x_513 = lean_ctor_get(x_511, 0); +x_514 = lean_array_push(x_9, x_513); +lean_ctor_set(x_511, 0, x_514); +return x_511; +} +else +{ +lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; +x_515 = lean_ctor_get(x_511, 0); +x_516 = lean_ctor_get(x_511, 1); +lean_inc(x_516); +lean_inc(x_515); +lean_dec(x_511); +x_517 = lean_array_push(x_9, x_515); +x_518 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_518, 0, x_517); +lean_ctor_set(x_518, 1, x_516); +return x_518; +} +} +else +{ +uint8_t x_519; +lean_dec(x_9); +x_519 = !lean_is_exclusive(x_511); +if (x_519 == 0) +{ +return x_511; +} +else +{ +lean_object* x_520; lean_object* x_521; lean_object* x_522; +x_520 = lean_ctor_get(x_511, 0); +x_521 = lean_ctor_get(x_511, 1); +lean_inc(x_521); +lean_inc(x_520); +lean_dec(x_511); +x_522 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_522, 0, x_520); +lean_ctor_set(x_522, 1, x_521); +return x_522; +} +} +} +else +{ +uint8_t x_523; +x_523 = l_Array_isEmpty___rarg(x_3); +if (x_523 == 0) +{ +lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; +x_524 = lean_box(0); +x_525 = lean_box(x_504); +x_526 = lean_box(x_6); +x_527 = lean_box(x_7); +x_528 = lean_box(x_8); +x_529 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_529, 0, x_1); +lean_closure_set(x_529, 1, x_524); +lean_closure_set(x_529, 2, x_525); +lean_closure_set(x_529, 3, x_2); +lean_closure_set(x_529, 4, x_3); +lean_closure_set(x_529, 5, x_4); +lean_closure_set(x_529, 6, x_5); +lean_closure_set(x_529, 7, x_526); +lean_closure_set(x_529, 8, x_527); +lean_closure_set(x_529, 9, x_528); +x_530 = l_Lean_Elab_Term_observing___rarg(x_529, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_530) == 0) +{ +uint8_t x_531; +x_531 = !lean_is_exclusive(x_530); +if (x_531 == 0) +{ +lean_object* x_532; lean_object* x_533; +x_532 = lean_ctor_get(x_530, 0); +x_533 = lean_array_push(x_9, x_532); +lean_ctor_set(x_530, 0, x_533); +return x_530; +} +else +{ +lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; +x_534 = lean_ctor_get(x_530, 0); +x_535 = lean_ctor_get(x_530, 1); +lean_inc(x_535); +lean_inc(x_534); +lean_dec(x_530); +x_536 = lean_array_push(x_9, x_534); +x_537 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_537, 0, x_536); +lean_ctor_set(x_537, 1, x_535); +return x_537; +} +} +else +{ +uint8_t x_538; +lean_dec(x_9); +x_538 = !lean_is_exclusive(x_530); +if (x_538 == 0) +{ +return x_530; +} +else +{ +lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_539 = lean_ctor_get(x_530, 0); +x_540 = lean_ctor_get(x_530, 1); +lean_inc(x_540); lean_inc(x_539); -lean_inc(x_538); -lean_dec(x_534); -x_540 = lean_array_push(x_9, x_538); -x_541 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_541, 0, x_540); -lean_ctor_set(x_541, 1, x_539); +lean_dec(x_530); +x_541 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_541, 0, x_539); +lean_ctor_set(x_541, 1, x_540); return x_541; } } +} else { uint8_t x_542; -lean_dec(x_9); -x_542 = !lean_is_exclusive(x_534); +x_542 = l_Array_isEmpty___rarg(x_4); if (x_542 == 0) { -return x_534; +lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; +x_543 = lean_box(0); +x_544 = lean_box(x_504); +x_545 = lean_box(x_6); +x_546 = lean_box(x_7); +x_547 = lean_box(x_8); +x_548 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_548, 0, x_1); +lean_closure_set(x_548, 1, x_543); +lean_closure_set(x_548, 2, x_544); +lean_closure_set(x_548, 3, x_2); +lean_closure_set(x_548, 4, x_3); +lean_closure_set(x_548, 5, x_4); +lean_closure_set(x_548, 6, x_5); +lean_closure_set(x_548, 7, x_545); +lean_closure_set(x_548, 8, x_546); +lean_closure_set(x_548, 9, x_547); +x_549 = l_Lean_Elab_Term_observing___rarg(x_548, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_549) == 0) +{ +uint8_t x_550; +x_550 = !lean_is_exclusive(x_549); +if (x_550 == 0) +{ +lean_object* x_551; lean_object* x_552; +x_551 = lean_ctor_get(x_549, 0); +x_552 = lean_array_push(x_9, x_551); +lean_ctor_set(x_549, 0, x_552); +return x_549; } else { -lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_543 = lean_ctor_get(x_534, 0); -x_544 = lean_ctor_get(x_534, 1); -lean_inc(x_544); -lean_inc(x_543); -lean_dec(x_534); -x_545 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_545, 0, x_543); -lean_ctor_set(x_545, 1, x_544); -return x_545; -} +lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; +x_553 = lean_ctor_get(x_549, 0); +x_554 = lean_ctor_get(x_549, 1); +lean_inc(x_554); +lean_inc(x_553); +lean_dec(x_549); +x_555 = lean_array_push(x_9, x_553); +x_556 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_556, 0, x_555); +lean_ctor_set(x_556, 1, x_554); +return x_556; } } else { -lean_object* x_546; uint8_t x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; -x_546 = lean_box(0); -x_547 = 1; -x_548 = lean_box(x_473); -x_549 = lean_box(x_547); -x_550 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_550, 0, x_1); -lean_closure_set(x_550, 1, x_5); -lean_closure_set(x_550, 2, x_548); -lean_closure_set(x_550, 3, x_549); -lean_closure_set(x_550, 4, x_546); -x_551 = l_Lean_Elab_Term_observing___rarg(x_550, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_551) == 0) -{ -uint8_t x_552; -x_552 = !lean_is_exclusive(x_551); -if (x_552 == 0) -{ -lean_object* x_553; lean_object* x_554; -x_553 = lean_ctor_get(x_551, 0); -x_554 = lean_array_push(x_9, x_553); -lean_ctor_set(x_551, 0, x_554); -return x_551; -} -else -{ -lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; -x_555 = lean_ctor_get(x_551, 0); -x_556 = lean_ctor_get(x_551, 1); -lean_inc(x_556); -lean_inc(x_555); -lean_dec(x_551); -x_557 = lean_array_push(x_9, x_555); -x_558 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_558, 0, x_557); -lean_ctor_set(x_558, 1, x_556); -return x_558; -} -} -else -{ -uint8_t x_559; +uint8_t x_557; lean_dec(x_9); -x_559 = !lean_is_exclusive(x_551); -if (x_559 == 0) +x_557 = !lean_is_exclusive(x_549); +if (x_557 == 0) { -return x_551; +return x_549; } else { -lean_object* x_560; lean_object* x_561; lean_object* x_562; -x_560 = lean_ctor_get(x_551, 0); -x_561 = lean_ctor_get(x_551, 1); -lean_inc(x_561); -lean_inc(x_560); -lean_dec(x_551); -x_562 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_562, 0, x_560); -lean_ctor_set(x_562, 1, x_561); -return x_562; -} -} -} -} -} +lean_object* x_558; lean_object* x_559; lean_object* x_560; +x_558 = lean_ctor_get(x_549, 0); +x_559 = lean_ctor_get(x_549, 1); +lean_inc(x_559); +lean_inc(x_558); +lean_dec(x_549); +x_560 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_560, 0, x_558); +lean_ctor_set(x_560, 1, x_559); +return x_560; } } } else { -lean_object* x_566; lean_object* x_567; lean_object* x_568; uint8_t x_569; -x_566 = lean_unsigned_to_nat(3u); -x_567 = l_Lean_Syntax_getArg(x_1, x_566); -x_568 = l_Lean_nullKind; -x_569 = l_Lean_Syntax_isNodeOf(x_567, x_568, x_464); -if (x_569 == 0) -{ -uint8_t x_570; uint8_t x_571; -lean_dec(x_467); -lean_dec(x_465); -x_570 = l_List_isEmpty___rarg(x_2); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); if (x_8 == 0) { -uint8_t x_662; -x_662 = 1; -x_571 = x_662; -goto block_661; +uint8_t x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; +x_561 = 1; +x_562 = lean_box(x_561); +x_563 = lean_box(x_561); +x_564 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_564, 0, x_1); +lean_closure_set(x_564, 1, x_5); +lean_closure_set(x_564, 2, x_562); +lean_closure_set(x_564, 3, x_563); +x_565 = l_Lean_Elab_Term_observing___rarg(x_564, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_565) == 0) +{ +uint8_t x_566; +x_566 = !lean_is_exclusive(x_565); +if (x_566 == 0) +{ +lean_object* x_567; lean_object* x_568; +x_567 = lean_ctor_get(x_565, 0); +x_568 = lean_array_push(x_9, x_567); +lean_ctor_set(x_565, 0, x_568); +return x_565; } else { -uint8_t x_663; -x_663 = 0; -x_571 = x_663; -goto block_661; -} -block_661: -{ -if (x_570 == 0) -{ -lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; -x_572 = lean_box(0); -x_573 = lean_box(x_571); -x_574 = lean_box(x_6); -x_575 = lean_box(x_7); -x_576 = lean_box(x_8); -x_577 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_577, 0, x_1); -lean_closure_set(x_577, 1, x_572); -lean_closure_set(x_577, 2, x_573); -lean_closure_set(x_577, 3, x_2); -lean_closure_set(x_577, 4, x_3); -lean_closure_set(x_577, 5, x_4); -lean_closure_set(x_577, 6, x_5); -lean_closure_set(x_577, 7, x_574); -lean_closure_set(x_577, 8, x_575); -lean_closure_set(x_577, 9, x_576); -x_578 = l_Lean_Elab_Term_observing___rarg(x_577, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_578) == 0) -{ -uint8_t x_579; -x_579 = !lean_is_exclusive(x_578); -if (x_579 == 0) -{ -lean_object* x_580; lean_object* x_581; -x_580 = lean_ctor_get(x_578, 0); -x_581 = lean_array_push(x_9, x_580); -lean_ctor_set(x_578, 0, x_581); -return x_578; -} -else -{ -lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; -x_582 = lean_ctor_get(x_578, 0); -x_583 = lean_ctor_get(x_578, 1); -lean_inc(x_583); -lean_inc(x_582); -lean_dec(x_578); -x_584 = lean_array_push(x_9, x_582); -x_585 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_585, 0, x_584); -lean_ctor_set(x_585, 1, x_583); -return x_585; +lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; +x_569 = lean_ctor_get(x_565, 0); +x_570 = lean_ctor_get(x_565, 1); +lean_inc(x_570); +lean_inc(x_569); +lean_dec(x_565); +x_571 = lean_array_push(x_9, x_569); +x_572 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_572, 0, x_571); +lean_ctor_set(x_572, 1, x_570); +return x_572; } } else { -uint8_t x_586; +uint8_t x_573; lean_dec(x_9); -x_586 = !lean_is_exclusive(x_578); -if (x_586 == 0) +x_573 = !lean_is_exclusive(x_565); +if (x_573 == 0) { -return x_578; +return x_565; } else { -lean_object* x_587; lean_object* x_588; lean_object* x_589; -x_587 = lean_ctor_get(x_578, 0); -x_588 = lean_ctor_get(x_578, 1); -lean_inc(x_588); -lean_inc(x_587); -lean_dec(x_578); -x_589 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_589, 0, x_587); -lean_ctor_set(x_589, 1, x_588); -return x_589; +lean_object* x_574; lean_object* x_575; lean_object* x_576; +x_574 = lean_ctor_get(x_565, 0); +x_575 = lean_ctor_get(x_565, 1); +lean_inc(x_575); +lean_inc(x_574); +lean_dec(x_565); +x_576 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_576, 0, x_574); +lean_ctor_set(x_576, 1, x_575); +return x_576; } } } else { +lean_object* x_577; uint8_t x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; +x_577 = lean_box(0); +x_578 = 1; +x_579 = lean_box(x_504); +x_580 = lean_box(x_578); +x_581 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_581, 0, x_1); +lean_closure_set(x_581, 1, x_5); +lean_closure_set(x_581, 2, x_579); +lean_closure_set(x_581, 3, x_580); +lean_closure_set(x_581, 4, x_577); +x_582 = l_Lean_Elab_Term_observing___rarg(x_581, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_582) == 0) +{ +uint8_t x_583; +x_583 = !lean_is_exclusive(x_582); +if (x_583 == 0) +{ +lean_object* x_584; lean_object* x_585; +x_584 = lean_ctor_get(x_582, 0); +x_585 = lean_array_push(x_9, x_584); +lean_ctor_set(x_582, 0, x_585); +return x_582; +} +else +{ +lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; +x_586 = lean_ctor_get(x_582, 0); +x_587 = lean_ctor_get(x_582, 1); +lean_inc(x_587); +lean_inc(x_586); +lean_dec(x_582); +x_588 = lean_array_push(x_9, x_586); +x_589 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_589, 0, x_588); +lean_ctor_set(x_589, 1, x_587); +return x_589; +} +} +else +{ uint8_t x_590; -x_590 = l_Array_isEmpty___rarg(x_3); +lean_dec(x_9); +x_590 = !lean_is_exclusive(x_582); if (x_590 == 0) { -lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; -x_591 = lean_box(0); -x_592 = lean_box(x_571); -x_593 = lean_box(x_6); -x_594 = lean_box(x_7); -x_595 = lean_box(x_8); -x_596 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_596, 0, x_1); -lean_closure_set(x_596, 1, x_591); -lean_closure_set(x_596, 2, x_592); -lean_closure_set(x_596, 3, x_2); -lean_closure_set(x_596, 4, x_3); -lean_closure_set(x_596, 5, x_4); -lean_closure_set(x_596, 6, x_5); -lean_closure_set(x_596, 7, x_593); -lean_closure_set(x_596, 8, x_594); -lean_closure_set(x_596, 9, x_595); -x_597 = l_Lean_Elab_Term_observing___rarg(x_596, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_597) == 0) -{ -uint8_t x_598; -x_598 = !lean_is_exclusive(x_597); -if (x_598 == 0) -{ -lean_object* x_599; lean_object* x_600; -x_599 = lean_ctor_get(x_597, 0); -x_600 = lean_array_push(x_9, x_599); -lean_ctor_set(x_597, 0, x_600); -return x_597; +return x_582; } else { -lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; -x_601 = lean_ctor_get(x_597, 0); -x_602 = lean_ctor_get(x_597, 1); -lean_inc(x_602); -lean_inc(x_601); -lean_dec(x_597); -x_603 = lean_array_push(x_9, x_601); -x_604 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_604, 0, x_603); -lean_ctor_set(x_604, 1, x_602); -return x_604; +lean_object* x_591; lean_object* x_592; lean_object* x_593; +x_591 = lean_ctor_get(x_582, 0); +x_592 = lean_ctor_get(x_582, 1); +lean_inc(x_592); +lean_inc(x_591); +lean_dec(x_582); +x_593 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_593, 0, x_591); +lean_ctor_set(x_593, 1, x_592); +return x_593; +} +} +} +} +} +} } } else { -uint8_t x_605; +lean_object* x_597; lean_object* x_598; lean_dec(x_9); -x_605 = !lean_is_exclusive(x_597); -if (x_605 == 0) -{ -return x_597; -} -else -{ -lean_object* x_606; lean_object* x_607; lean_object* x_608; -x_606 = lean_ctor_get(x_597, 0); -x_607 = lean_ctor_get(x_597, 1); -lean_inc(x_607); -lean_inc(x_606); -lean_dec(x_597); -x_608 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_608, 0, x_606); -lean_ctor_set(x_608, 1, x_607); -return x_608; -} -} -} -else -{ -uint8_t x_609; -x_609 = l_Array_isEmpty___rarg(x_4); -if (x_609 == 0) -{ -lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; -x_610 = lean_box(0); -x_611 = lean_box(x_571); -x_612 = lean_box(x_6); -x_613 = lean_box(x_7); -x_614 = lean_box(x_8); -x_615 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_615, 0, x_1); -lean_closure_set(x_615, 1, x_610); -lean_closure_set(x_615, 2, x_611); -lean_closure_set(x_615, 3, x_2); -lean_closure_set(x_615, 4, x_3); -lean_closure_set(x_615, 5, x_4); -lean_closure_set(x_615, 6, x_5); -lean_closure_set(x_615, 7, x_612); -lean_closure_set(x_615, 8, x_613); -lean_closure_set(x_615, 9, x_614); -x_616 = l_Lean_Elab_Term_observing___rarg(x_615, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_616) == 0) -{ -uint8_t x_617; -x_617 = !lean_is_exclusive(x_616); -if (x_617 == 0) -{ -lean_object* x_618; lean_object* x_619; -x_618 = lean_ctor_get(x_616, 0); -x_619 = lean_array_push(x_9, x_618); -lean_ctor_set(x_616, 0, x_619); -return x_616; -} -else -{ -lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; -x_620 = lean_ctor_get(x_616, 0); -x_621 = lean_ctor_get(x_616, 1); -lean_inc(x_621); -lean_inc(x_620); -lean_dec(x_616); -x_622 = lean_array_push(x_9, x_620); -x_623 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_623, 0, x_622); -lean_ctor_set(x_623, 1, x_621); -return x_623; -} -} -else -{ -uint8_t x_624; -lean_dec(x_9); -x_624 = !lean_is_exclusive(x_616); -if (x_624 == 0) -{ -return x_616; -} -else -{ -lean_object* x_625; lean_object* x_626; lean_object* x_627; -x_625 = lean_ctor_get(x_616, 0); -x_626 = lean_ctor_get(x_616, 1); -lean_inc(x_626); -lean_inc(x_625); -lean_dec(x_616); -x_627 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_627, 0, x_625); -lean_ctor_set(x_627, 1, x_626); -return x_627; -} -} -} -else -{ +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -if (x_8 == 0) -{ -uint8_t x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; -x_628 = 1; -x_629 = lean_box(x_628); -x_630 = lean_box(x_628); -x_631 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_631, 0, x_1); -lean_closure_set(x_631, 1, x_5); -lean_closure_set(x_631, 2, x_629); -lean_closure_set(x_631, 3, x_630); -x_632 = l_Lean_Elab_Term_observing___rarg(x_631, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_632) == 0) -{ -uint8_t x_633; -x_633 = !lean_is_exclusive(x_632); -if (x_633 == 0) -{ -lean_object* x_634; lean_object* x_635; -x_634 = lean_ctor_get(x_632, 0); -x_635 = lean_array_push(x_9, x_634); -lean_ctor_set(x_632, 0, x_635); -return x_632; -} -else -{ -lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; -x_636 = lean_ctor_get(x_632, 0); -x_637 = lean_ctor_get(x_632, 1); -lean_inc(x_637); -lean_inc(x_636); -lean_dec(x_632); -x_638 = lean_array_push(x_9, x_636); -x_639 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_639, 0, x_638); -lean_ctor_set(x_639, 1, x_637); -return x_639; -} -} -else -{ -uint8_t x_640; -lean_dec(x_9); -x_640 = !lean_is_exclusive(x_632); -if (x_640 == 0) -{ -return x_632; -} -else -{ -lean_object* x_641; lean_object* x_642; lean_object* x_643; -x_641 = lean_ctor_get(x_632, 0); -x_642 = lean_ctor_get(x_632, 1); -lean_inc(x_642); -lean_inc(x_641); -lean_dec(x_632); -x_643 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_643, 0, x_641); -lean_ctor_set(x_643, 1, x_642); -return x_643; -} -} -} -else -{ -lean_object* x_644; uint8_t x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; -x_644 = lean_box(0); -x_645 = 1; -x_646 = lean_box(x_571); -x_647 = lean_box(x_645); -x_648 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_648, 0, x_1); -lean_closure_set(x_648, 1, x_5); -lean_closure_set(x_648, 2, x_646); -lean_closure_set(x_648, 3, x_647); -lean_closure_set(x_648, 4, x_644); -x_649 = l_Lean_Elab_Term_observing___rarg(x_648, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_649) == 0) -{ -uint8_t x_650; -x_650 = !lean_is_exclusive(x_649); -if (x_650 == 0) -{ -lean_object* x_651; lean_object* x_652; -x_651 = lean_ctor_get(x_649, 0); -x_652 = lean_array_push(x_9, x_651); -lean_ctor_set(x_649, 0, x_652); -return x_649; -} -else -{ -lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; -x_653 = lean_ctor_get(x_649, 0); -x_654 = lean_ctor_get(x_649, 1); -lean_inc(x_654); -lean_inc(x_653); -lean_dec(x_649); -x_655 = lean_array_push(x_9, x_653); -x_656 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_656, 0, x_655); -lean_ctor_set(x_656, 1, x_654); -return x_656; -} -} -else -{ -uint8_t x_657; -lean_dec(x_9); -x_657 = !lean_is_exclusive(x_649); -if (x_657 == 0) -{ -return x_649; -} -else -{ -lean_object* x_658; lean_object* x_659; lean_object* x_660; -x_658 = lean_ctor_get(x_649, 0); -x_659 = lean_ctor_get(x_649, 1); -lean_inc(x_659); -lean_inc(x_658); -lean_dec(x_649); -x_660 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_660, 0, x_658); -lean_ctor_set(x_660, 1, x_659); -return x_660; -} -} -} -} -} -} -} -} -else -{ -lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_dec(x_1); -x_664 = lean_box(0); -x_665 = l_Lean_Syntax_identComponents(x_467, x_664); -x_666 = lean_box(0); -lean_inc(x_465); -x_667 = l_List_mapTRAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(x_465, x_665, x_666); -x_668 = l_List_appendTR___rarg(x_667, x_2); -x_1 = x_465; -x_2 = x_668; +x_597 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__28; +x_598 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__1(x_597, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +return x_598; +} +} +} +} +else +{ +lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; +x_599 = lean_unsigned_to_nat(0u); +x_600 = l_Lean_Syntax_getArg(x_1, x_599); +x_601 = lean_unsigned_to_nat(1u); +x_602 = l_Lean_Syntax_getArg(x_1, x_601); +x_603 = lean_unsigned_to_nat(2u); +x_604 = l_Lean_Syntax_getArg(x_1, x_603); +lean_dec(x_1); +x_605 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_605, 0, x_602); +lean_ctor_set(x_605, 1, x_604); +x_606 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_606, 0, x_605); +lean_ctor_set(x_606, 1, x_2); +x_1 = x_600; +x_2 = x_606; goto _start; } } -} else { -lean_object* x_670; lean_object* x_671; lean_object* x_672; uint8_t x_673; -x_670 = lean_unsigned_to_nat(3u); -x_671 = l_Lean_Syntax_getArg(x_1, x_670); -x_672 = l_Lean_nullKind; -x_673 = l_Lean_Syntax_isNodeOf(x_671, x_672, x_464); -if (x_673 == 0) +lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; +x_608 = lean_unsigned_to_nat(0u); +x_609 = l_Lean_Syntax_getArg(x_1, x_608); +x_610 = lean_unsigned_to_nat(2u); +x_611 = l_Lean_Syntax_getArg(x_1, x_610); +x_612 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30; +lean_inc(x_611); +x_613 = l_Lean_Syntax_isOfKind(x_611, x_612); +if (x_613 == 0) { -uint8_t x_674; uint8_t x_675; -lean_dec(x_467); -lean_dec(x_465); -x_674 = l_List_isEmpty___rarg(x_2); +lean_object* x_614; uint8_t x_615; +x_614 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; +lean_inc(x_611); +x_615 = l_Lean_Syntax_isOfKind(x_611, x_614); +if (x_615 == 0) +{ +uint8_t x_616; uint8_t x_617; +lean_dec(x_611); +lean_dec(x_609); +x_616 = l_List_isEmpty___rarg(x_2); if (x_8 == 0) { -uint8_t x_766; -x_766 = 1; -x_675 = x_766; -goto block_765; -} -else -{ -uint8_t x_767; -x_767 = 0; -x_675 = x_767; -goto block_765; -} -block_765: -{ -if (x_674 == 0) -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; -x_676 = lean_box(0); -x_677 = lean_box(x_675); -x_678 = lean_box(x_6); -x_679 = lean_box(x_7); -x_680 = lean_box(x_8); -x_681 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_681, 0, x_1); -lean_closure_set(x_681, 1, x_676); -lean_closure_set(x_681, 2, x_677); -lean_closure_set(x_681, 3, x_2); -lean_closure_set(x_681, 4, x_3); -lean_closure_set(x_681, 5, x_4); -lean_closure_set(x_681, 6, x_5); -lean_closure_set(x_681, 7, x_678); -lean_closure_set(x_681, 8, x_679); -lean_closure_set(x_681, 9, x_680); -x_682 = l_Lean_Elab_Term_observing___rarg(x_681, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_682) == 0) -{ -uint8_t x_683; -x_683 = !lean_is_exclusive(x_682); -if (x_683 == 0) -{ -lean_object* x_684; lean_object* x_685; -x_684 = lean_ctor_get(x_682, 0); -x_685 = lean_array_push(x_9, x_684); -lean_ctor_set(x_682, 0, x_685); -return x_682; -} -else -{ -lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; -x_686 = lean_ctor_get(x_682, 0); -x_687 = lean_ctor_get(x_682, 1); -lean_inc(x_687); -lean_inc(x_686); -lean_dec(x_682); -x_688 = lean_array_push(x_9, x_686); -x_689 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_689, 0, x_688); -lean_ctor_set(x_689, 1, x_687); -return x_689; -} -} -else -{ -uint8_t x_690; -lean_dec(x_9); -x_690 = !lean_is_exclusive(x_682); -if (x_690 == 0) -{ -return x_682; -} -else -{ -lean_object* x_691; lean_object* x_692; lean_object* x_693; -x_691 = lean_ctor_get(x_682, 0); -x_692 = lean_ctor_get(x_682, 1); -lean_inc(x_692); -lean_inc(x_691); -lean_dec(x_682); -x_693 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_693, 0, x_691); -lean_ctor_set(x_693, 1, x_692); -return x_693; -} -} -} -else -{ -uint8_t x_694; -x_694 = l_Array_isEmpty___rarg(x_3); -if (x_694 == 0) -{ -lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; -x_695 = lean_box(0); -x_696 = lean_box(x_675); -x_697 = lean_box(x_6); -x_698 = lean_box(x_7); -x_699 = lean_box(x_8); -x_700 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_700, 0, x_1); -lean_closure_set(x_700, 1, x_695); -lean_closure_set(x_700, 2, x_696); -lean_closure_set(x_700, 3, x_2); -lean_closure_set(x_700, 4, x_3); -lean_closure_set(x_700, 5, x_4); -lean_closure_set(x_700, 6, x_5); -lean_closure_set(x_700, 7, x_697); -lean_closure_set(x_700, 8, x_698); -lean_closure_set(x_700, 9, x_699); -x_701 = l_Lean_Elab_Term_observing___rarg(x_700, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_701) == 0) -{ -uint8_t x_702; -x_702 = !lean_is_exclusive(x_701); -if (x_702 == 0) -{ -lean_object* x_703; lean_object* x_704; -x_703 = lean_ctor_get(x_701, 0); -x_704 = lean_array_push(x_9, x_703); -lean_ctor_set(x_701, 0, x_704); -return x_701; -} -else -{ -lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; -x_705 = lean_ctor_get(x_701, 0); -x_706 = lean_ctor_get(x_701, 1); -lean_inc(x_706); -lean_inc(x_705); -lean_dec(x_701); -x_707 = lean_array_push(x_9, x_705); -x_708 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_708, 0, x_707); -lean_ctor_set(x_708, 1, x_706); -return x_708; -} +uint8_t x_708; +x_708 = 1; +x_617 = x_708; +goto block_707; } else { uint8_t x_709; +x_709 = 0; +x_617 = x_709; +goto block_707; +} +block_707: +{ +if (x_616 == 0) +{ +lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; +x_618 = lean_box(0); +x_619 = lean_box(x_617); +x_620 = lean_box(x_6); +x_621 = lean_box(x_7); +x_622 = lean_box(x_8); +x_623 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_623, 0, x_1); +lean_closure_set(x_623, 1, x_618); +lean_closure_set(x_623, 2, x_619); +lean_closure_set(x_623, 3, x_2); +lean_closure_set(x_623, 4, x_3); +lean_closure_set(x_623, 5, x_4); +lean_closure_set(x_623, 6, x_5); +lean_closure_set(x_623, 7, x_620); +lean_closure_set(x_623, 8, x_621); +lean_closure_set(x_623, 9, x_622); +x_624 = l_Lean_Elab_Term_observing___rarg(x_623, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_624) == 0) +{ +uint8_t x_625; +x_625 = !lean_is_exclusive(x_624); +if (x_625 == 0) +{ +lean_object* x_626; lean_object* x_627; +x_626 = lean_ctor_get(x_624, 0); +x_627 = lean_array_push(x_9, x_626); +lean_ctor_set(x_624, 0, x_627); +return x_624; +} +else +{ +lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; +x_628 = lean_ctor_get(x_624, 0); +x_629 = lean_ctor_get(x_624, 1); +lean_inc(x_629); +lean_inc(x_628); +lean_dec(x_624); +x_630 = lean_array_push(x_9, x_628); +x_631 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_631, 0, x_630); +lean_ctor_set(x_631, 1, x_629); +return x_631; +} +} +else +{ +uint8_t x_632; lean_dec(x_9); -x_709 = !lean_is_exclusive(x_701); -if (x_709 == 0) +x_632 = !lean_is_exclusive(x_624); +if (x_632 == 0) { -return x_701; +return x_624; } else { -lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_710 = lean_ctor_get(x_701, 0); -x_711 = lean_ctor_get(x_701, 1); -lean_inc(x_711); -lean_inc(x_710); -lean_dec(x_701); -x_712 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_712, 0, x_710); -lean_ctor_set(x_712, 1, x_711); -return x_712; +lean_object* x_633; lean_object* x_634; lean_object* x_635; +x_633 = lean_ctor_get(x_624, 0); +x_634 = lean_ctor_get(x_624, 1); +lean_inc(x_634); +lean_inc(x_633); +lean_dec(x_624); +x_635 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_635, 0, x_633); +lean_ctor_set(x_635, 1, x_634); +return x_635; } } } else { -uint8_t x_713; -x_713 = l_Array_isEmpty___rarg(x_4); -if (x_713 == 0) +uint8_t x_636; +x_636 = l_Array_isEmpty___rarg(x_3); +if (x_636 == 0) { -lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; -x_714 = lean_box(0); -x_715 = lean_box(x_675); -x_716 = lean_box(x_6); -x_717 = lean_box(x_7); -x_718 = lean_box(x_8); -x_719 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_719, 0, x_1); -lean_closure_set(x_719, 1, x_714); -lean_closure_set(x_719, 2, x_715); -lean_closure_set(x_719, 3, x_2); -lean_closure_set(x_719, 4, x_3); -lean_closure_set(x_719, 5, x_4); -lean_closure_set(x_719, 6, x_5); -lean_closure_set(x_719, 7, x_716); -lean_closure_set(x_719, 8, x_717); -lean_closure_set(x_719, 9, x_718); -x_720 = l_Lean_Elab_Term_observing___rarg(x_719, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_720) == 0) +lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; +x_637 = lean_box(0); +x_638 = lean_box(x_617); +x_639 = lean_box(x_6); +x_640 = lean_box(x_7); +x_641 = lean_box(x_8); +x_642 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_642, 0, x_1); +lean_closure_set(x_642, 1, x_637); +lean_closure_set(x_642, 2, x_638); +lean_closure_set(x_642, 3, x_2); +lean_closure_set(x_642, 4, x_3); +lean_closure_set(x_642, 5, x_4); +lean_closure_set(x_642, 6, x_5); +lean_closure_set(x_642, 7, x_639); +lean_closure_set(x_642, 8, x_640); +lean_closure_set(x_642, 9, x_641); +x_643 = l_Lean_Elab_Term_observing___rarg(x_642, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_643) == 0) { -uint8_t x_721; -x_721 = !lean_is_exclusive(x_720); -if (x_721 == 0) +uint8_t x_644; +x_644 = !lean_is_exclusive(x_643); +if (x_644 == 0) { -lean_object* x_722; lean_object* x_723; -x_722 = lean_ctor_get(x_720, 0); -x_723 = lean_array_push(x_9, x_722); -lean_ctor_set(x_720, 0, x_723); -return x_720; +lean_object* x_645; lean_object* x_646; +x_645 = lean_ctor_get(x_643, 0); +x_646 = lean_array_push(x_9, x_645); +lean_ctor_set(x_643, 0, x_646); +return x_643; } else { -lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; -x_724 = lean_ctor_get(x_720, 0); -x_725 = lean_ctor_get(x_720, 1); -lean_inc(x_725); -lean_inc(x_724); -lean_dec(x_720); -x_726 = lean_array_push(x_9, x_724); -x_727 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_727, 0, x_726); -lean_ctor_set(x_727, 1, x_725); -return x_727; +lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; +x_647 = lean_ctor_get(x_643, 0); +x_648 = lean_ctor_get(x_643, 1); +lean_inc(x_648); +lean_inc(x_647); +lean_dec(x_643); +x_649 = lean_array_push(x_9, x_647); +x_650 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_650, 0, x_649); +lean_ctor_set(x_650, 1, x_648); +return x_650; } } else { -uint8_t x_728; +uint8_t x_651; lean_dec(x_9); -x_728 = !lean_is_exclusive(x_720); -if (x_728 == 0) +x_651 = !lean_is_exclusive(x_643); +if (x_651 == 0) { -return x_720; +return x_643; } else { -lean_object* x_729; lean_object* x_730; lean_object* x_731; -x_729 = lean_ctor_get(x_720, 0); -x_730 = lean_ctor_get(x_720, 1); -lean_inc(x_730); -lean_inc(x_729); -lean_dec(x_720); -x_731 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_731, 0, x_729); -lean_ctor_set(x_731, 1, x_730); -return x_731; +lean_object* x_652; lean_object* x_653; lean_object* x_654; +x_652 = lean_ctor_get(x_643, 0); +x_653 = lean_ctor_get(x_643, 1); +lean_inc(x_653); +lean_inc(x_652); +lean_dec(x_643); +x_654 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_654, 0, x_652); +lean_ctor_set(x_654, 1, x_653); +return x_654; +} +} +} +else +{ +uint8_t x_655; +x_655 = l_Array_isEmpty___rarg(x_4); +if (x_655 == 0) +{ +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; +x_656 = lean_box(0); +x_657 = lean_box(x_617); +x_658 = lean_box(x_6); +x_659 = lean_box(x_7); +x_660 = lean_box(x_8); +x_661 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_661, 0, x_1); +lean_closure_set(x_661, 1, x_656); +lean_closure_set(x_661, 2, x_657); +lean_closure_set(x_661, 3, x_2); +lean_closure_set(x_661, 4, x_3); +lean_closure_set(x_661, 5, x_4); +lean_closure_set(x_661, 6, x_5); +lean_closure_set(x_661, 7, x_658); +lean_closure_set(x_661, 8, x_659); +lean_closure_set(x_661, 9, x_660); +x_662 = l_Lean_Elab_Term_observing___rarg(x_661, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_662) == 0) +{ +uint8_t x_663; +x_663 = !lean_is_exclusive(x_662); +if (x_663 == 0) +{ +lean_object* x_664; lean_object* x_665; +x_664 = lean_ctor_get(x_662, 0); +x_665 = lean_array_push(x_9, x_664); +lean_ctor_set(x_662, 0, x_665); +return x_662; +} +else +{ +lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; +x_666 = lean_ctor_get(x_662, 0); +x_667 = lean_ctor_get(x_662, 1); +lean_inc(x_667); +lean_inc(x_666); +lean_dec(x_662); +x_668 = lean_array_push(x_9, x_666); +x_669 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_669, 0, x_668); +lean_ctor_set(x_669, 1, x_667); +return x_669; +} +} +else +{ +uint8_t x_670; +lean_dec(x_9); +x_670 = !lean_is_exclusive(x_662); +if (x_670 == 0) +{ +return x_662; +} +else +{ +lean_object* x_671; lean_object* x_672; lean_object* x_673; +x_671 = lean_ctor_get(x_662, 0); +x_672 = lean_ctor_get(x_662, 1); +lean_inc(x_672); +lean_inc(x_671); +lean_dec(x_662); +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; } } } @@ -23176,129 +23355,129 @@ lean_dec(x_3); lean_dec(x_2); if (x_8 == 0) { -uint8_t x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; -x_732 = 1; -x_733 = lean_box(x_732); -x_734 = lean_box(x_732); -x_735 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_735, 0, x_1); -lean_closure_set(x_735, 1, x_5); -lean_closure_set(x_735, 2, x_733); -lean_closure_set(x_735, 3, x_734); -x_736 = l_Lean_Elab_Term_observing___rarg(x_735, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_736) == 0) +uint8_t x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; +x_674 = 1; +x_675 = lean_box(x_674); +x_676 = lean_box(x_674); +x_677 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_677, 0, x_1); +lean_closure_set(x_677, 1, x_5); +lean_closure_set(x_677, 2, x_675); +lean_closure_set(x_677, 3, x_676); +x_678 = l_Lean_Elab_Term_observing___rarg(x_677, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_678) == 0) { -uint8_t x_737; -x_737 = !lean_is_exclusive(x_736); -if (x_737 == 0) +uint8_t x_679; +x_679 = !lean_is_exclusive(x_678); +if (x_679 == 0) { -lean_object* x_738; lean_object* x_739; -x_738 = lean_ctor_get(x_736, 0); -x_739 = lean_array_push(x_9, x_738); -lean_ctor_set(x_736, 0, x_739); -return x_736; +lean_object* x_680; lean_object* x_681; +x_680 = lean_ctor_get(x_678, 0); +x_681 = lean_array_push(x_9, x_680); +lean_ctor_set(x_678, 0, x_681); +return x_678; } else { -lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; -x_740 = lean_ctor_get(x_736, 0); -x_741 = lean_ctor_get(x_736, 1); -lean_inc(x_741); -lean_inc(x_740); -lean_dec(x_736); -x_742 = lean_array_push(x_9, x_740); -x_743 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_743, 0, x_742); -lean_ctor_set(x_743, 1, x_741); -return x_743; +lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; +x_682 = lean_ctor_get(x_678, 0); +x_683 = lean_ctor_get(x_678, 1); +lean_inc(x_683); +lean_inc(x_682); +lean_dec(x_678); +x_684 = lean_array_push(x_9, x_682); +x_685 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_685, 0, x_684); +lean_ctor_set(x_685, 1, x_683); +return x_685; } } else { -uint8_t x_744; +uint8_t x_686; lean_dec(x_9); -x_744 = !lean_is_exclusive(x_736); -if (x_744 == 0) +x_686 = !lean_is_exclusive(x_678); +if (x_686 == 0) { -return x_736; +return x_678; } else { -lean_object* x_745; lean_object* x_746; lean_object* x_747; -x_745 = lean_ctor_get(x_736, 0); -x_746 = lean_ctor_get(x_736, 1); -lean_inc(x_746); -lean_inc(x_745); -lean_dec(x_736); -x_747 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_747, 0, x_745); -lean_ctor_set(x_747, 1, x_746); -return x_747; +lean_object* x_687; lean_object* x_688; lean_object* x_689; +x_687 = lean_ctor_get(x_678, 0); +x_688 = lean_ctor_get(x_678, 1); +lean_inc(x_688); +lean_inc(x_687); +lean_dec(x_678); +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_748; uint8_t x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; -x_748 = lean_box(0); -x_749 = 1; -x_750 = lean_box(x_675); -x_751 = lean_box(x_749); -x_752 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_752, 0, x_1); -lean_closure_set(x_752, 1, x_5); -lean_closure_set(x_752, 2, x_750); -lean_closure_set(x_752, 3, x_751); -lean_closure_set(x_752, 4, x_748); -x_753 = l_Lean_Elab_Term_observing___rarg(x_752, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_753) == 0) +lean_object* x_690; uint8_t x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; +x_690 = lean_box(0); +x_691 = 1; +x_692 = lean_box(x_617); +x_693 = lean_box(x_691); +x_694 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_694, 0, x_1); +lean_closure_set(x_694, 1, x_5); +lean_closure_set(x_694, 2, x_692); +lean_closure_set(x_694, 3, x_693); +lean_closure_set(x_694, 4, x_690); +x_695 = l_Lean_Elab_Term_observing___rarg(x_694, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_695) == 0) { -uint8_t x_754; -x_754 = !lean_is_exclusive(x_753); -if (x_754 == 0) +uint8_t x_696; +x_696 = !lean_is_exclusive(x_695); +if (x_696 == 0) { -lean_object* x_755; lean_object* x_756; -x_755 = lean_ctor_get(x_753, 0); -x_756 = lean_array_push(x_9, x_755); -lean_ctor_set(x_753, 0, x_756); -return x_753; +lean_object* x_697; lean_object* x_698; +x_697 = lean_ctor_get(x_695, 0); +x_698 = lean_array_push(x_9, x_697); +lean_ctor_set(x_695, 0, x_698); +return x_695; } else { -lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; -x_757 = lean_ctor_get(x_753, 0); -x_758 = lean_ctor_get(x_753, 1); -lean_inc(x_758); -lean_inc(x_757); -lean_dec(x_753); -x_759 = lean_array_push(x_9, x_757); -x_760 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_760, 0, x_759); -lean_ctor_set(x_760, 1, x_758); -return x_760; +lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; +x_699 = lean_ctor_get(x_695, 0); +x_700 = lean_ctor_get(x_695, 1); +lean_inc(x_700); +lean_inc(x_699); +lean_dec(x_695); +x_701 = lean_array_push(x_9, x_699); +x_702 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_702, 0, x_701); +lean_ctor_set(x_702, 1, x_700); +return x_702; } } else { -uint8_t x_761; +uint8_t x_703; lean_dec(x_9); -x_761 = !lean_is_exclusive(x_753); -if (x_761 == 0) +x_703 = !lean_is_exclusive(x_695); +if (x_703 == 0) { -return x_753; +return x_695; } else { -lean_object* x_762; lean_object* x_763; lean_object* x_764; -x_762 = lean_ctor_get(x_753, 0); -x_763 = lean_ctor_get(x_753, 1); -lean_inc(x_763); -lean_inc(x_762); -lean_dec(x_753); -x_764 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_764, 0, x_762); -lean_ctor_set(x_764, 1, x_763); -return x_764; +lean_object* x_704; lean_object* x_705; lean_object* x_706; +x_704 = lean_ctor_get(x_695, 0); +x_705 = lean_ctor_get(x_695, 1); +lean_inc(x_705); +lean_inc(x_704); +lean_dec(x_695); +x_706 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_706, 0, x_704); +lean_ctor_set(x_706, 1, x_705); +return x_706; } } } @@ -23309,301 +23488,251 @@ return x_764; } else { -lean_object* x_768; lean_object* x_769; -lean_dec(x_1); -x_768 = l_Lean_fieldIdxKind; -x_769 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_768, x_467); -if (lean_obj_tag(x_769) == 0) +lean_object* x_710; lean_object* x_711; lean_object* x_712; uint8_t x_713; +x_710 = lean_unsigned_to_nat(3u); +x_711 = l_Lean_Syntax_getArg(x_1, x_710); +x_712 = l_Lean_nullKind; +x_713 = l_Lean_Syntax_isNodeOf(x_711, x_712, x_608); +if (x_713 == 0) { -lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; -x_770 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24; -x_771 = l_panic___at_String_toNat_x21___spec__1(x_770); -x_772 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_772, 0, x_467); -lean_ctor_set(x_772, 1, x_771); -x_773 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_773, 0, x_772); -lean_ctor_set(x_773, 1, x_2); -x_1 = x_465; -x_2 = x_773; -goto _start; -} -else -{ -lean_object* x_775; lean_object* x_776; lean_object* x_777; -x_775 = lean_ctor_get(x_769, 0); -lean_inc(x_775); -lean_dec(x_769); -x_776 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_776, 0, x_467); -lean_ctor_set(x_776, 1, x_775); -x_777 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_777, 0, x_776); -lean_ctor_set(x_777, 1, x_2); -x_1 = x_465; -x_2 = x_777; -goto _start; -} -} -} -} -} -else -{ -lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; uint8_t x_784; -x_779 = lean_unsigned_to_nat(0u); -x_780 = l_Lean_Syntax_getArg(x_1, x_779); -x_781 = lean_unsigned_to_nat(2u); -x_782 = l_Lean_Syntax_getArg(x_1, x_781); -x_783 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__20; -lean_inc(x_782); -x_784 = l_Lean_Syntax_isOfKind(x_782, x_783); -if (x_784 == 0) -{ -lean_object* x_785; uint8_t x_786; -x_785 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; -lean_inc(x_782); -x_786 = l_Lean_Syntax_isOfKind(x_782, x_785); -if (x_786 == 0) -{ -uint8_t x_787; uint8_t x_788; -lean_dec(x_782); -lean_dec(x_780); -x_787 = l_List_isEmpty___rarg(x_2); +uint8_t x_714; uint8_t x_715; +lean_dec(x_611); +lean_dec(x_609); +x_714 = l_List_isEmpty___rarg(x_2); if (x_8 == 0) { -uint8_t x_879; -x_879 = 1; -x_788 = x_879; -goto block_878; -} -else -{ -uint8_t x_880; -x_880 = 0; -x_788 = x_880; -goto block_878; -} -block_878: -{ -if (x_787 == 0) -{ -lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; -x_789 = lean_box(0); -x_790 = lean_box(x_788); -x_791 = lean_box(x_6); -x_792 = lean_box(x_7); -x_793 = lean_box(x_8); -x_794 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_794, 0, x_1); -lean_closure_set(x_794, 1, x_789); -lean_closure_set(x_794, 2, x_790); -lean_closure_set(x_794, 3, x_2); -lean_closure_set(x_794, 4, x_3); -lean_closure_set(x_794, 5, x_4); -lean_closure_set(x_794, 6, x_5); -lean_closure_set(x_794, 7, x_791); -lean_closure_set(x_794, 8, x_792); -lean_closure_set(x_794, 9, x_793); -x_795 = l_Lean_Elab_Term_observing___rarg(x_794, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_795) == 0) -{ -uint8_t x_796; -x_796 = !lean_is_exclusive(x_795); -if (x_796 == 0) -{ -lean_object* x_797; lean_object* x_798; -x_797 = lean_ctor_get(x_795, 0); -x_798 = lean_array_push(x_9, x_797); -lean_ctor_set(x_795, 0, x_798); -return x_795; -} -else -{ -lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; -x_799 = lean_ctor_get(x_795, 0); -x_800 = lean_ctor_get(x_795, 1); -lean_inc(x_800); -lean_inc(x_799); -lean_dec(x_795); -x_801 = lean_array_push(x_9, x_799); -x_802 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_802, 0, x_801); -lean_ctor_set(x_802, 1, x_800); -return x_802; -} -} -else -{ -uint8_t x_803; -lean_dec(x_9); -x_803 = !lean_is_exclusive(x_795); -if (x_803 == 0) -{ -return x_795; -} -else -{ -lean_object* x_804; lean_object* x_805; lean_object* x_806; -x_804 = lean_ctor_get(x_795, 0); -x_805 = lean_ctor_get(x_795, 1); -lean_inc(x_805); -lean_inc(x_804); -lean_dec(x_795); -x_806 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_806, 0, x_804); -lean_ctor_set(x_806, 1, x_805); -return x_806; -} -} +uint8_t x_806; +x_806 = 1; +x_715 = x_806; +goto block_805; } else { uint8_t x_807; -x_807 = l_Array_isEmpty___rarg(x_3); -if (x_807 == 0) +x_807 = 0; +x_715 = x_807; +goto block_805; +} +block_805: { -lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; -x_808 = lean_box(0); -x_809 = lean_box(x_788); -x_810 = lean_box(x_6); -x_811 = lean_box(x_7); -x_812 = lean_box(x_8); -x_813 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_813, 0, x_1); -lean_closure_set(x_813, 1, x_808); -lean_closure_set(x_813, 2, x_809); -lean_closure_set(x_813, 3, x_2); -lean_closure_set(x_813, 4, x_3); -lean_closure_set(x_813, 5, x_4); -lean_closure_set(x_813, 6, x_5); -lean_closure_set(x_813, 7, x_810); -lean_closure_set(x_813, 8, x_811); -lean_closure_set(x_813, 9, x_812); -x_814 = l_Lean_Elab_Term_observing___rarg(x_813, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_814) == 0) +if (x_714 == 0) { -uint8_t x_815; -x_815 = !lean_is_exclusive(x_814); -if (x_815 == 0) +lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; +x_716 = lean_box(0); +x_717 = lean_box(x_715); +x_718 = lean_box(x_6); +x_719 = lean_box(x_7); +x_720 = lean_box(x_8); +x_721 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_721, 0, x_1); +lean_closure_set(x_721, 1, x_716); +lean_closure_set(x_721, 2, x_717); +lean_closure_set(x_721, 3, x_2); +lean_closure_set(x_721, 4, x_3); +lean_closure_set(x_721, 5, x_4); +lean_closure_set(x_721, 6, x_5); +lean_closure_set(x_721, 7, x_718); +lean_closure_set(x_721, 8, x_719); +lean_closure_set(x_721, 9, x_720); +x_722 = l_Lean_Elab_Term_observing___rarg(x_721, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_722) == 0) { -lean_object* x_816; lean_object* x_817; -x_816 = lean_ctor_get(x_814, 0); -x_817 = lean_array_push(x_9, x_816); -lean_ctor_set(x_814, 0, x_817); -return x_814; +uint8_t x_723; +x_723 = !lean_is_exclusive(x_722); +if (x_723 == 0) +{ +lean_object* x_724; lean_object* x_725; +x_724 = lean_ctor_get(x_722, 0); +x_725 = lean_array_push(x_9, x_724); +lean_ctor_set(x_722, 0, x_725); +return x_722; } else { -lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; -x_818 = lean_ctor_get(x_814, 0); -x_819 = lean_ctor_get(x_814, 1); -lean_inc(x_819); -lean_inc(x_818); -lean_dec(x_814); -x_820 = lean_array_push(x_9, x_818); -x_821 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_821, 0, x_820); -lean_ctor_set(x_821, 1, x_819); -return x_821; +lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; +x_726 = lean_ctor_get(x_722, 0); +x_727 = lean_ctor_get(x_722, 1); +lean_inc(x_727); +lean_inc(x_726); +lean_dec(x_722); +x_728 = lean_array_push(x_9, x_726); +x_729 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_729, 0, x_728); +lean_ctor_set(x_729, 1, x_727); +return x_729; } } else { -uint8_t x_822; +uint8_t x_730; lean_dec(x_9); -x_822 = !lean_is_exclusive(x_814); -if (x_822 == 0) +x_730 = !lean_is_exclusive(x_722); +if (x_730 == 0) { -return x_814; +return x_722; } else { -lean_object* x_823; lean_object* x_824; lean_object* x_825; -x_823 = lean_ctor_get(x_814, 0); -x_824 = lean_ctor_get(x_814, 1); -lean_inc(x_824); -lean_inc(x_823); -lean_dec(x_814); -x_825 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_825, 0, x_823); -lean_ctor_set(x_825, 1, x_824); -return x_825; +lean_object* x_731; lean_object* x_732; lean_object* x_733; +x_731 = lean_ctor_get(x_722, 0); +x_732 = lean_ctor_get(x_722, 1); +lean_inc(x_732); +lean_inc(x_731); +lean_dec(x_722); +x_733 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_733, 0, x_731); +lean_ctor_set(x_733, 1, x_732); +return x_733; } } } else { -uint8_t x_826; -x_826 = l_Array_isEmpty___rarg(x_4); -if (x_826 == 0) +uint8_t x_734; +x_734 = l_Array_isEmpty___rarg(x_3); +if (x_734 == 0) { -lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; -x_827 = lean_box(0); -x_828 = lean_box(x_788); -x_829 = lean_box(x_6); -x_830 = lean_box(x_7); -x_831 = lean_box(x_8); -x_832 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); -lean_closure_set(x_832, 0, x_1); -lean_closure_set(x_832, 1, x_827); -lean_closure_set(x_832, 2, x_828); -lean_closure_set(x_832, 3, x_2); -lean_closure_set(x_832, 4, x_3); -lean_closure_set(x_832, 5, x_4); -lean_closure_set(x_832, 6, x_5); -lean_closure_set(x_832, 7, x_829); -lean_closure_set(x_832, 8, x_830); -lean_closure_set(x_832, 9, x_831); -x_833 = l_Lean_Elab_Term_observing___rarg(x_832, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_833) == 0) +lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; +x_735 = lean_box(0); +x_736 = lean_box(x_715); +x_737 = lean_box(x_6); +x_738 = lean_box(x_7); +x_739 = lean_box(x_8); +x_740 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_740, 0, x_1); +lean_closure_set(x_740, 1, x_735); +lean_closure_set(x_740, 2, x_736); +lean_closure_set(x_740, 3, x_2); +lean_closure_set(x_740, 4, x_3); +lean_closure_set(x_740, 5, x_4); +lean_closure_set(x_740, 6, x_5); +lean_closure_set(x_740, 7, x_737); +lean_closure_set(x_740, 8, x_738); +lean_closure_set(x_740, 9, x_739); +x_741 = l_Lean_Elab_Term_observing___rarg(x_740, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_741) == 0) { -uint8_t x_834; -x_834 = !lean_is_exclusive(x_833); -if (x_834 == 0) +uint8_t x_742; +x_742 = !lean_is_exclusive(x_741); +if (x_742 == 0) { -lean_object* x_835; lean_object* x_836; -x_835 = lean_ctor_get(x_833, 0); -x_836 = lean_array_push(x_9, x_835); -lean_ctor_set(x_833, 0, x_836); -return x_833; +lean_object* x_743; lean_object* x_744; +x_743 = lean_ctor_get(x_741, 0); +x_744 = lean_array_push(x_9, x_743); +lean_ctor_set(x_741, 0, x_744); +return x_741; } else { -lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; -x_837 = lean_ctor_get(x_833, 0); -x_838 = lean_ctor_get(x_833, 1); -lean_inc(x_838); -lean_inc(x_837); -lean_dec(x_833); -x_839 = lean_array_push(x_9, x_837); -x_840 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_840, 0, x_839); -lean_ctor_set(x_840, 1, x_838); -return x_840; +lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; +x_745 = lean_ctor_get(x_741, 0); +x_746 = lean_ctor_get(x_741, 1); +lean_inc(x_746); +lean_inc(x_745); +lean_dec(x_741); +x_747 = lean_array_push(x_9, x_745); +x_748 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_748, 0, x_747); +lean_ctor_set(x_748, 1, x_746); +return x_748; } } else { -uint8_t x_841; +uint8_t x_749; lean_dec(x_9); -x_841 = !lean_is_exclusive(x_833); -if (x_841 == 0) +x_749 = !lean_is_exclusive(x_741); +if (x_749 == 0) { -return x_833; +return x_741; } else { -lean_object* x_842; lean_object* x_843; lean_object* x_844; -x_842 = lean_ctor_get(x_833, 0); -x_843 = lean_ctor_get(x_833, 1); -lean_inc(x_843); -lean_inc(x_842); -lean_dec(x_833); -x_844 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_844, 0, x_842); -lean_ctor_set(x_844, 1, x_843); -return x_844; +lean_object* x_750; lean_object* x_751; lean_object* x_752; +x_750 = lean_ctor_get(x_741, 0); +x_751 = lean_ctor_get(x_741, 1); +lean_inc(x_751); +lean_inc(x_750); +lean_dec(x_741); +x_752 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_752, 0, x_750); +lean_ctor_set(x_752, 1, x_751); +return x_752; +} +} +} +else +{ +uint8_t x_753; +x_753 = l_Array_isEmpty___rarg(x_4); +if (x_753 == 0) +{ +lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; +x_754 = lean_box(0); +x_755 = lean_box(x_715); +x_756 = lean_box(x_6); +x_757 = lean_box(x_7); +x_758 = lean_box(x_8); +x_759 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_759, 0, x_1); +lean_closure_set(x_759, 1, x_754); +lean_closure_set(x_759, 2, x_755); +lean_closure_set(x_759, 3, x_2); +lean_closure_set(x_759, 4, x_3); +lean_closure_set(x_759, 5, x_4); +lean_closure_set(x_759, 6, x_5); +lean_closure_set(x_759, 7, x_756); +lean_closure_set(x_759, 8, x_757); +lean_closure_set(x_759, 9, x_758); +x_760 = l_Lean_Elab_Term_observing___rarg(x_759, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_760) == 0) +{ +uint8_t x_761; +x_761 = !lean_is_exclusive(x_760); +if (x_761 == 0) +{ +lean_object* x_762; lean_object* x_763; +x_762 = lean_ctor_get(x_760, 0); +x_763 = lean_array_push(x_9, x_762); +lean_ctor_set(x_760, 0, x_763); +return x_760; +} +else +{ +lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; +x_764 = lean_ctor_get(x_760, 0); +x_765 = lean_ctor_get(x_760, 1); +lean_inc(x_765); +lean_inc(x_764); +lean_dec(x_760); +x_766 = lean_array_push(x_9, x_764); +x_767 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_767, 0, x_766); +lean_ctor_set(x_767, 1, x_765); +return x_767; +} +} +else +{ +uint8_t x_768; +lean_dec(x_9); +x_768 = !lean_is_exclusive(x_760); +if (x_768 == 0) +{ +return x_760; +} +else +{ +lean_object* x_769; lean_object* x_770; lean_object* x_771; +x_769 = lean_ctor_get(x_760, 0); +x_770 = lean_ctor_get(x_760, 1); +lean_inc(x_770); +lean_inc(x_769); +lean_dec(x_760); +x_771 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_771, 0, x_769); +lean_ctor_set(x_771, 1, x_770); +return x_771; } } } @@ -23614,308 +23743,1078 @@ lean_dec(x_3); lean_dec(x_2); if (x_8 == 0) { -uint8_t x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; -x_845 = 1; -x_846 = lean_box(x_845); -x_847 = lean_box(x_845); -x_848 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); -lean_closure_set(x_848, 0, x_1); -lean_closure_set(x_848, 1, x_5); -lean_closure_set(x_848, 2, x_846); -lean_closure_set(x_848, 3, x_847); -x_849 = l_Lean_Elab_Term_observing___rarg(x_848, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_849) == 0) +uint8_t x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; +x_772 = 1; +x_773 = lean_box(x_772); +x_774 = lean_box(x_772); +x_775 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_775, 0, x_1); +lean_closure_set(x_775, 1, x_5); +lean_closure_set(x_775, 2, x_773); +lean_closure_set(x_775, 3, x_774); +x_776 = l_Lean_Elab_Term_observing___rarg(x_775, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_776) == 0) { -uint8_t x_850; -x_850 = !lean_is_exclusive(x_849); -if (x_850 == 0) +uint8_t x_777; +x_777 = !lean_is_exclusive(x_776); +if (x_777 == 0) { -lean_object* x_851; lean_object* x_852; -x_851 = lean_ctor_get(x_849, 0); -x_852 = lean_array_push(x_9, x_851); -lean_ctor_set(x_849, 0, x_852); -return x_849; +lean_object* x_778; lean_object* x_779; +x_778 = lean_ctor_get(x_776, 0); +x_779 = lean_array_push(x_9, x_778); +lean_ctor_set(x_776, 0, x_779); +return x_776; } else { -lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; -x_853 = lean_ctor_get(x_849, 0); -x_854 = lean_ctor_get(x_849, 1); +lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; +x_780 = lean_ctor_get(x_776, 0); +x_781 = lean_ctor_get(x_776, 1); +lean_inc(x_781); +lean_inc(x_780); +lean_dec(x_776); +x_782 = lean_array_push(x_9, x_780); +x_783 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_783, 0, x_782); +lean_ctor_set(x_783, 1, x_781); +return x_783; +} +} +else +{ +uint8_t x_784; +lean_dec(x_9); +x_784 = !lean_is_exclusive(x_776); +if (x_784 == 0) +{ +return x_776; +} +else +{ +lean_object* x_785; lean_object* x_786; lean_object* x_787; +x_785 = lean_ctor_get(x_776, 0); +x_786 = lean_ctor_get(x_776, 1); +lean_inc(x_786); +lean_inc(x_785); +lean_dec(x_776); +x_787 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_787, 0, x_785); +lean_ctor_set(x_787, 1, x_786); +return x_787; +} +} +} +else +{ +lean_object* x_788; uint8_t x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; +x_788 = lean_box(0); +x_789 = 1; +x_790 = lean_box(x_715); +x_791 = lean_box(x_789); +x_792 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_792, 0, x_1); +lean_closure_set(x_792, 1, x_5); +lean_closure_set(x_792, 2, x_790); +lean_closure_set(x_792, 3, x_791); +lean_closure_set(x_792, 4, x_788); +x_793 = l_Lean_Elab_Term_observing___rarg(x_792, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_793) == 0) +{ +uint8_t x_794; +x_794 = !lean_is_exclusive(x_793); +if (x_794 == 0) +{ +lean_object* x_795; lean_object* x_796; +x_795 = lean_ctor_get(x_793, 0); +x_796 = lean_array_push(x_9, x_795); +lean_ctor_set(x_793, 0, x_796); +return x_793; +} +else +{ +lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; +x_797 = lean_ctor_get(x_793, 0); +x_798 = lean_ctor_get(x_793, 1); +lean_inc(x_798); +lean_inc(x_797); +lean_dec(x_793); +x_799 = lean_array_push(x_9, x_797); +x_800 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_800, 0, x_799); +lean_ctor_set(x_800, 1, x_798); +return x_800; +} +} +else +{ +uint8_t x_801; +lean_dec(x_9); +x_801 = !lean_is_exclusive(x_793); +if (x_801 == 0) +{ +return x_793; +} +else +{ +lean_object* x_802; lean_object* x_803; lean_object* x_804; +x_802 = lean_ctor_get(x_793, 0); +x_803 = lean_ctor_get(x_793, 1); +lean_inc(x_803); +lean_inc(x_802); +lean_dec(x_793); +x_804 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_804, 0, x_802); +lean_ctor_set(x_804, 1, x_803); +return x_804; +} +} +} +} +} +} +} +} +else +{ +lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; +lean_dec(x_1); +x_808 = lean_box(0); +x_809 = l_Lean_Syntax_identComponents(x_611, x_808); +x_810 = lean_box(0); +lean_inc(x_609); +x_811 = l_List_mapTRAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(x_609, x_809, x_810); +x_812 = l_List_appendTR___rarg(x_811, x_2); +x_1 = x_609; +x_2 = x_812; +goto _start; +} +} +} +else +{ +lean_object* x_814; lean_object* x_815; lean_object* x_816; uint8_t x_817; +x_814 = lean_unsigned_to_nat(3u); +x_815 = l_Lean_Syntax_getArg(x_1, x_814); +x_816 = l_Lean_nullKind; +x_817 = l_Lean_Syntax_isNodeOf(x_815, x_816, x_608); +if (x_817 == 0) +{ +uint8_t x_818; uint8_t x_819; +lean_dec(x_611); +lean_dec(x_609); +x_818 = l_List_isEmpty___rarg(x_2); +if (x_8 == 0) +{ +uint8_t x_910; +x_910 = 1; +x_819 = x_910; +goto block_909; +} +else +{ +uint8_t x_911; +x_911 = 0; +x_819 = x_911; +goto block_909; +} +block_909: +{ +if (x_818 == 0) +{ +lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; +x_820 = lean_box(0); +x_821 = lean_box(x_819); +x_822 = lean_box(x_6); +x_823 = lean_box(x_7); +x_824 = lean_box(x_8); +x_825 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_825, 0, x_1); +lean_closure_set(x_825, 1, x_820); +lean_closure_set(x_825, 2, x_821); +lean_closure_set(x_825, 3, x_2); +lean_closure_set(x_825, 4, x_3); +lean_closure_set(x_825, 5, x_4); +lean_closure_set(x_825, 6, x_5); +lean_closure_set(x_825, 7, x_822); +lean_closure_set(x_825, 8, x_823); +lean_closure_set(x_825, 9, x_824); +x_826 = l_Lean_Elab_Term_observing___rarg(x_825, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_826) == 0) +{ +uint8_t x_827; +x_827 = !lean_is_exclusive(x_826); +if (x_827 == 0) +{ +lean_object* x_828; lean_object* x_829; +x_828 = lean_ctor_get(x_826, 0); +x_829 = lean_array_push(x_9, x_828); +lean_ctor_set(x_826, 0, x_829); +return x_826; +} +else +{ +lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; +x_830 = lean_ctor_get(x_826, 0); +x_831 = lean_ctor_get(x_826, 1); +lean_inc(x_831); +lean_inc(x_830); +lean_dec(x_826); +x_832 = lean_array_push(x_9, x_830); +x_833 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_833, 0, x_832); +lean_ctor_set(x_833, 1, x_831); +return x_833; +} +} +else +{ +uint8_t x_834; +lean_dec(x_9); +x_834 = !lean_is_exclusive(x_826); +if (x_834 == 0) +{ +return x_826; +} +else +{ +lean_object* x_835; lean_object* x_836; lean_object* x_837; +x_835 = lean_ctor_get(x_826, 0); +x_836 = lean_ctor_get(x_826, 1); +lean_inc(x_836); +lean_inc(x_835); +lean_dec(x_826); +x_837 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_837, 0, x_835); +lean_ctor_set(x_837, 1, x_836); +return x_837; +} +} +} +else +{ +uint8_t x_838; +x_838 = l_Array_isEmpty___rarg(x_3); +if (x_838 == 0) +{ +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; +x_839 = lean_box(0); +x_840 = lean_box(x_819); +x_841 = lean_box(x_6); +x_842 = lean_box(x_7); +x_843 = lean_box(x_8); +x_844 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_844, 0, x_1); +lean_closure_set(x_844, 1, x_839); +lean_closure_set(x_844, 2, x_840); +lean_closure_set(x_844, 3, x_2); +lean_closure_set(x_844, 4, x_3); +lean_closure_set(x_844, 5, x_4); +lean_closure_set(x_844, 6, x_5); +lean_closure_set(x_844, 7, x_841); +lean_closure_set(x_844, 8, x_842); +lean_closure_set(x_844, 9, x_843); +x_845 = l_Lean_Elab_Term_observing___rarg(x_844, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_845) == 0) +{ +uint8_t x_846; +x_846 = !lean_is_exclusive(x_845); +if (x_846 == 0) +{ +lean_object* x_847; lean_object* x_848; +x_847 = lean_ctor_get(x_845, 0); +x_848 = lean_array_push(x_9, x_847); +lean_ctor_set(x_845, 0, x_848); +return x_845; +} +else +{ +lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; +x_849 = lean_ctor_get(x_845, 0); +x_850 = lean_ctor_get(x_845, 1); +lean_inc(x_850); +lean_inc(x_849); +lean_dec(x_845); +x_851 = lean_array_push(x_9, x_849); +x_852 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_852, 0, x_851); +lean_ctor_set(x_852, 1, x_850); +return x_852; +} +} +else +{ +uint8_t x_853; +lean_dec(x_9); +x_853 = !lean_is_exclusive(x_845); +if (x_853 == 0) +{ +return x_845; +} +else +{ +lean_object* x_854; lean_object* x_855; lean_object* x_856; +x_854 = lean_ctor_get(x_845, 0); +x_855 = lean_ctor_get(x_845, 1); +lean_inc(x_855); lean_inc(x_854); -lean_inc(x_853); -lean_dec(x_849); -x_855 = lean_array_push(x_9, x_853); -x_856 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_856, 0, x_855); -lean_ctor_set(x_856, 1, x_854); +lean_dec(x_845); +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 { uint8_t x_857; -lean_dec(x_9); -x_857 = !lean_is_exclusive(x_849); +x_857 = l_Array_isEmpty___rarg(x_4); if (x_857 == 0) { -return x_849; +lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; +x_858 = lean_box(0); +x_859 = lean_box(x_819); +x_860 = lean_box(x_6); +x_861 = lean_box(x_7); +x_862 = lean_box(x_8); +x_863 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_863, 0, x_1); +lean_closure_set(x_863, 1, x_858); +lean_closure_set(x_863, 2, x_859); +lean_closure_set(x_863, 3, x_2); +lean_closure_set(x_863, 4, x_3); +lean_closure_set(x_863, 5, x_4); +lean_closure_set(x_863, 6, x_5); +lean_closure_set(x_863, 7, x_860); +lean_closure_set(x_863, 8, x_861); +lean_closure_set(x_863, 9, x_862); +x_864 = l_Lean_Elab_Term_observing___rarg(x_863, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_864) == 0) +{ +uint8_t x_865; +x_865 = !lean_is_exclusive(x_864); +if (x_865 == 0) +{ +lean_object* x_866; lean_object* x_867; +x_866 = lean_ctor_get(x_864, 0); +x_867 = lean_array_push(x_9, x_866); +lean_ctor_set(x_864, 0, x_867); +return x_864; } else { -lean_object* x_858; lean_object* x_859; lean_object* x_860; -x_858 = lean_ctor_get(x_849, 0); -x_859 = lean_ctor_get(x_849, 1); -lean_inc(x_859); -lean_inc(x_858); -lean_dec(x_849); -x_860 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_860, 0, x_858); -lean_ctor_set(x_860, 1, x_859); -return x_860; -} +lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; +x_868 = lean_ctor_get(x_864, 0); +x_869 = lean_ctor_get(x_864, 1); +lean_inc(x_869); +lean_inc(x_868); +lean_dec(x_864); +x_870 = lean_array_push(x_9, x_868); +x_871 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_871, 0, x_870); +lean_ctor_set(x_871, 1, x_869); +return x_871; } } else { -lean_object* x_861; uint8_t x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; -x_861 = lean_box(0); -x_862 = 1; -x_863 = lean_box(x_788); -x_864 = lean_box(x_862); -x_865 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); -lean_closure_set(x_865, 0, x_1); -lean_closure_set(x_865, 1, x_5); -lean_closure_set(x_865, 2, x_863); -lean_closure_set(x_865, 3, x_864); -lean_closure_set(x_865, 4, x_861); -x_866 = l_Lean_Elab_Term_observing___rarg(x_865, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_866) == 0) -{ -uint8_t x_867; -x_867 = !lean_is_exclusive(x_866); -if (x_867 == 0) -{ -lean_object* x_868; lean_object* x_869; -x_868 = lean_ctor_get(x_866, 0); -x_869 = lean_array_push(x_9, x_868); -lean_ctor_set(x_866, 0, x_869); -return x_866; -} -else -{ -lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; -x_870 = lean_ctor_get(x_866, 0); -x_871 = lean_ctor_get(x_866, 1); -lean_inc(x_871); -lean_inc(x_870); -lean_dec(x_866); -x_872 = lean_array_push(x_9, x_870); -x_873 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_873, 0, x_872); -lean_ctor_set(x_873, 1, x_871); -return x_873; -} -} -else -{ -uint8_t x_874; +uint8_t x_872; lean_dec(x_9); -x_874 = !lean_is_exclusive(x_866); -if (x_874 == 0) +x_872 = !lean_is_exclusive(x_864); +if (x_872 == 0) { -return x_866; +return x_864; } else { -lean_object* x_875; lean_object* x_876; lean_object* x_877; -x_875 = lean_ctor_get(x_866, 0); -x_876 = lean_ctor_get(x_866, 1); -lean_inc(x_876); -lean_inc(x_875); -lean_dec(x_866); -x_877 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_877, 0, x_875); -lean_ctor_set(x_877, 1, x_876); -return x_877; -} -} -} -} -} +lean_object* x_873; lean_object* x_874; lean_object* x_875; +x_873 = lean_ctor_get(x_864, 0); +x_874 = lean_ctor_get(x_864, 1); +lean_inc(x_874); +lean_inc(x_873); +lean_dec(x_864); +x_875 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_875, 0, x_873); +lean_ctor_set(x_875, 1, x_874); +return x_875; } } } else { -lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; -lean_dec(x_1); -x_881 = lean_box(0); -x_882 = l_Lean_Syntax_identComponents(x_782, x_881); -x_883 = lean_box(0); -lean_inc(x_780); -x_884 = l_List_mapTRAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__4(x_780, x_882, x_883); -x_885 = l_List_appendTR___rarg(x_884, x_2); -x_1 = x_780; -x_2 = x_885; -goto _start; -} -} -else -{ -lean_object* x_887; lean_object* x_888; -lean_dec(x_1); -x_887 = l_Lean_fieldIdxKind; -x_888 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_887, x_782); -if (lean_obj_tag(x_888) == 0) -{ -lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; -x_889 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24; -x_890 = l_panic___at_String_toNat_x21___spec__1(x_889); -x_891 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_891, 0, x_782); -lean_ctor_set(x_891, 1, x_890); -x_892 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_892, 0, x_891); -lean_ctor_set(x_892, 1, x_2); -x_1 = x_780; -x_2 = x_892; -goto _start; -} -else -{ -lean_object* x_894; lean_object* x_895; lean_object* x_896; -x_894 = lean_ctor_get(x_888, 0); -lean_inc(x_894); -lean_dec(x_888); -x_895 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_895, 0, x_782); -lean_ctor_set(x_895, 1, x_894); -x_896 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_896, 0, x_895); -lean_ctor_set(x_896, 1, x_2); -x_1 = x_780; -x_2 = x_896; -goto _start; -} -} -} -} -else -{ -lean_object* x_898; lean_object* x_899; lean_object* x_900; uint8_t x_901; -x_898 = l_Lean_Syntax_getArgs(x_1); -lean_dec(x_1); -x_899 = lean_array_get_size(x_898); -x_900 = lean_unsigned_to_nat(0u); -x_901 = lean_nat_dec_lt(x_900, x_899); -if (x_901 == 0) -{ -lean_object* x_902; -lean_dec(x_899); -lean_dec(x_898); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_902 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_902, 0, x_9); -lean_ctor_set(x_902, 1, x_16); -return x_902; +if (x_8 == 0) +{ +uint8_t x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; +x_876 = 1; +x_877 = lean_box(x_876); +x_878 = lean_box(x_876); +x_879 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_879, 0, x_1); +lean_closure_set(x_879, 1, x_5); +lean_closure_set(x_879, 2, x_877); +lean_closure_set(x_879, 3, x_878); +x_880 = l_Lean_Elab_Term_observing___rarg(x_879, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_880) == 0) +{ +uint8_t x_881; +x_881 = !lean_is_exclusive(x_880); +if (x_881 == 0) +{ +lean_object* x_882; lean_object* x_883; +x_882 = lean_ctor_get(x_880, 0); +x_883 = lean_array_push(x_9, x_882); +lean_ctor_set(x_880, 0, x_883); +return x_880; } else { -uint8_t x_903; -x_903 = !lean_is_exclusive(x_10); -if (x_903 == 0) +lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; +x_884 = lean_ctor_get(x_880, 0); +x_885 = lean_ctor_get(x_880, 1); +lean_inc(x_885); +lean_inc(x_884); +lean_dec(x_880); +x_886 = lean_array_push(x_9, x_884); +x_887 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_887, 0, x_886); +lean_ctor_set(x_887, 1, x_885); +return x_887; +} +} +else { -uint8_t x_904; uint8_t x_905; -x_904 = 0; -lean_ctor_set_uint8(x_10, sizeof(void*)*7 + 1, x_904); -x_905 = lean_nat_dec_le(x_899, x_899); +uint8_t x_888; +lean_dec(x_9); +x_888 = !lean_is_exclusive(x_880); +if (x_888 == 0) +{ +return x_880; +} +else +{ +lean_object* x_889; lean_object* x_890; lean_object* x_891; +x_889 = lean_ctor_get(x_880, 0); +x_890 = lean_ctor_get(x_880, 1); +lean_inc(x_890); +lean_inc(x_889); +lean_dec(x_880); +x_891 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_891, 0, x_889); +lean_ctor_set(x_891, 1, x_890); +return x_891; +} +} +} +else +{ +lean_object* x_892; uint8_t x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; +x_892 = lean_box(0); +x_893 = 1; +x_894 = lean_box(x_819); +x_895 = lean_box(x_893); +x_896 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_896, 0, x_1); +lean_closure_set(x_896, 1, x_5); +lean_closure_set(x_896, 2, x_894); +lean_closure_set(x_896, 3, x_895); +lean_closure_set(x_896, 4, x_892); +x_897 = l_Lean_Elab_Term_observing___rarg(x_896, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_897) == 0) +{ +uint8_t x_898; +x_898 = !lean_is_exclusive(x_897); +if (x_898 == 0) +{ +lean_object* x_899; lean_object* x_900; +x_899 = lean_ctor_get(x_897, 0); +x_900 = lean_array_push(x_9, x_899); +lean_ctor_set(x_897, 0, x_900); +return x_897; +} +else +{ +lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; +x_901 = lean_ctor_get(x_897, 0); +x_902 = lean_ctor_get(x_897, 1); +lean_inc(x_902); +lean_inc(x_901); +lean_dec(x_897); +x_903 = lean_array_push(x_9, x_901); +x_904 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_904, 0, x_903); +lean_ctor_set(x_904, 1, x_902); +return x_904; +} +} +else +{ +uint8_t x_905; +lean_dec(x_9); +x_905 = !lean_is_exclusive(x_897); if (x_905 == 0) { -lean_object* x_906; -lean_dec(x_10); -lean_dec(x_899); -lean_dec(x_898); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_906 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_906, 0, x_9); -lean_ctor_set(x_906, 1, x_16); -return x_906; +return x_897; } else { -size_t x_907; size_t x_908; lean_object* x_909; -x_907 = 0; -x_908 = lean_usize_of_nat(x_899); -lean_dec(x_899); -x_909 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_898, x_907, x_908, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_898); -return x_909; +lean_object* x_906; lean_object* x_907; lean_object* x_908; +x_906 = lean_ctor_get(x_897, 0); +x_907 = lean_ctor_get(x_897, 1); +lean_inc(x_907); +lean_inc(x_906); +lean_dec(x_897); +x_908 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_908, 0, x_906); +lean_ctor_set(x_908, 1, x_907); +return x_908; +} +} +} +} +} +} } } else { -lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; uint8_t x_914; uint8_t x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; uint8_t x_919; uint8_t x_920; uint8_t x_921; uint8_t x_922; uint8_t x_923; lean_object* x_924; uint8_t x_925; -x_910 = lean_ctor_get(x_10, 0); -x_911 = lean_ctor_get(x_10, 1); -x_912 = lean_ctor_get(x_10, 2); -x_913 = lean_ctor_get(x_10, 3); -x_914 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); -x_915 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 2); -x_916 = lean_ctor_get(x_10, 4); -x_917 = lean_ctor_get(x_10, 5); -x_918 = lean_ctor_get(x_10, 6); -x_919 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 3); -x_920 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 4); -x_921 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 5); -x_922 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 6); -lean_inc(x_918); -lean_inc(x_917); -lean_inc(x_916); -lean_inc(x_913); -lean_inc(x_912); -lean_inc(x_911); -lean_inc(x_910); -lean_dec(x_10); -x_923 = 0; -x_924 = lean_alloc_ctor(0, 7, 7); -lean_ctor_set(x_924, 0, x_910); -lean_ctor_set(x_924, 1, x_911); -lean_ctor_set(x_924, 2, x_912); -lean_ctor_set(x_924, 3, x_913); -lean_ctor_set(x_924, 4, x_916); -lean_ctor_set(x_924, 5, x_917); -lean_ctor_set(x_924, 6, x_918); -lean_ctor_set_uint8(x_924, sizeof(void*)*7, x_914); -lean_ctor_set_uint8(x_924, sizeof(void*)*7 + 1, x_923); -lean_ctor_set_uint8(x_924, sizeof(void*)*7 + 2, x_915); -lean_ctor_set_uint8(x_924, sizeof(void*)*7 + 3, x_919); -lean_ctor_set_uint8(x_924, sizeof(void*)*7 + 4, x_920); -lean_ctor_set_uint8(x_924, sizeof(void*)*7 + 5, x_921); -lean_ctor_set_uint8(x_924, sizeof(void*)*7 + 6, x_922); -x_925 = lean_nat_dec_le(x_899, x_899); -if (x_925 == 0) +lean_object* x_912; lean_object* x_913; +lean_dec(x_1); +x_912 = l_Lean_fieldIdxKind; +x_913 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_912, x_611); +if (lean_obj_tag(x_913) == 0) { -lean_object* x_926; +lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; +x_914 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__34; +x_915 = l_panic___at_String_toNat_x21___spec__1(x_914); +x_916 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_916, 0, x_611); +lean_ctor_set(x_916, 1, x_915); +x_917 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_917, 0, x_916); +lean_ctor_set(x_917, 1, x_2); +x_1 = x_609; +x_2 = x_917; +goto _start; +} +else +{ +lean_object* x_919; lean_object* x_920; lean_object* x_921; +x_919 = lean_ctor_get(x_913, 0); +lean_inc(x_919); +lean_dec(x_913); +x_920 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_920, 0, x_611); +lean_ctor_set(x_920, 1, x_919); +x_921 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_921, 0, x_920); +lean_ctor_set(x_921, 1, x_2); +x_1 = x_609; +x_2 = x_921; +goto _start; +} +} +} +} +} +else +{ +lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; uint8_t x_928; +x_923 = lean_unsigned_to_nat(0u); +x_924 = l_Lean_Syntax_getArg(x_1, x_923); +x_925 = lean_unsigned_to_nat(2u); +x_926 = l_Lean_Syntax_getArg(x_1, x_925); +x_927 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30; +lean_inc(x_926); +x_928 = l_Lean_Syntax_isOfKind(x_926, x_927); +if (x_928 == 0) +{ +lean_object* x_929; uint8_t x_930; +x_929 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__10; +lean_inc(x_926); +x_930 = l_Lean_Syntax_isOfKind(x_926, x_929); +if (x_930 == 0) +{ +uint8_t x_931; uint8_t x_932; +lean_dec(x_926); lean_dec(x_924); -lean_dec(x_899); -lean_dec(x_898); +x_931 = l_List_isEmpty___rarg(x_2); +if (x_8 == 0) +{ +uint8_t x_1023; +x_1023 = 1; +x_932 = x_1023; +goto block_1022; +} +else +{ +uint8_t x_1024; +x_1024 = 0; +x_932 = x_1024; +goto block_1022; +} +block_1022: +{ +if (x_931 == 0) +{ +lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; +x_933 = lean_box(0); +x_934 = lean_box(x_932); +x_935 = lean_box(x_6); +x_936 = lean_box(x_7); +x_937 = lean_box(x_8); +x_938 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_938, 0, x_1); +lean_closure_set(x_938, 1, x_933); +lean_closure_set(x_938, 2, x_934); +lean_closure_set(x_938, 3, x_2); +lean_closure_set(x_938, 4, x_3); +lean_closure_set(x_938, 5, x_4); +lean_closure_set(x_938, 6, x_5); +lean_closure_set(x_938, 7, x_935); +lean_closure_set(x_938, 8, x_936); +lean_closure_set(x_938, 9, x_937); +x_939 = l_Lean_Elab_Term_observing___rarg(x_938, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_939) == 0) +{ +uint8_t x_940; +x_940 = !lean_is_exclusive(x_939); +if (x_940 == 0) +{ +lean_object* x_941; lean_object* x_942; +x_941 = lean_ctor_get(x_939, 0); +x_942 = lean_array_push(x_9, x_941); +lean_ctor_set(x_939, 0, x_942); +return x_939; +} +else +{ +lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; +x_943 = lean_ctor_get(x_939, 0); +x_944 = lean_ctor_get(x_939, 1); +lean_inc(x_944); +lean_inc(x_943); +lean_dec(x_939); +x_945 = lean_array_push(x_9, x_943); +x_946 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_946, 0, x_945); +lean_ctor_set(x_946, 1, x_944); +return x_946; +} +} +else +{ +uint8_t x_947; +lean_dec(x_9); +x_947 = !lean_is_exclusive(x_939); +if (x_947 == 0) +{ +return x_939; +} +else +{ +lean_object* x_948; lean_object* x_949; lean_object* x_950; +x_948 = lean_ctor_get(x_939, 0); +x_949 = lean_ctor_get(x_939, 1); +lean_inc(x_949); +lean_inc(x_948); +lean_dec(x_939); +x_950 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_950, 0, x_948); +lean_ctor_set(x_950, 1, x_949); +return x_950; +} +} +} +else +{ +uint8_t x_951; +x_951 = l_Array_isEmpty___rarg(x_3); +if (x_951 == 0) +{ +lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; +x_952 = lean_box(0); +x_953 = lean_box(x_932); +x_954 = lean_box(x_6); +x_955 = lean_box(x_7); +x_956 = lean_box(x_8); +x_957 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_957, 0, x_1); +lean_closure_set(x_957, 1, x_952); +lean_closure_set(x_957, 2, x_953); +lean_closure_set(x_957, 3, x_2); +lean_closure_set(x_957, 4, x_3); +lean_closure_set(x_957, 5, x_4); +lean_closure_set(x_957, 6, x_5); +lean_closure_set(x_957, 7, x_954); +lean_closure_set(x_957, 8, x_955); +lean_closure_set(x_957, 9, x_956); +x_958 = l_Lean_Elab_Term_observing___rarg(x_957, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_958) == 0) +{ +uint8_t x_959; +x_959 = !lean_is_exclusive(x_958); +if (x_959 == 0) +{ +lean_object* x_960; lean_object* x_961; +x_960 = lean_ctor_get(x_958, 0); +x_961 = lean_array_push(x_9, x_960); +lean_ctor_set(x_958, 0, x_961); +return x_958; +} +else +{ +lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; +x_962 = lean_ctor_get(x_958, 0); +x_963 = lean_ctor_get(x_958, 1); +lean_inc(x_963); +lean_inc(x_962); +lean_dec(x_958); +x_964 = lean_array_push(x_9, x_962); +x_965 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_965, 0, x_964); +lean_ctor_set(x_965, 1, x_963); +return x_965; +} +} +else +{ +uint8_t x_966; +lean_dec(x_9); +x_966 = !lean_is_exclusive(x_958); +if (x_966 == 0) +{ +return x_958; +} +else +{ +lean_object* x_967; lean_object* x_968; lean_object* x_969; +x_967 = lean_ctor_get(x_958, 0); +x_968 = lean_ctor_get(x_958, 1); +lean_inc(x_968); +lean_inc(x_967); +lean_dec(x_958); +x_969 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_969, 0, x_967); +lean_ctor_set(x_969, 1, x_968); +return x_969; +} +} +} +else +{ +uint8_t x_970; +x_970 = l_Array_isEmpty___rarg(x_4); +if (x_970 == 0) +{ +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; +x_971 = lean_box(0); +x_972 = lean_box(x_932); +x_973 = lean_box(x_6); +x_974 = lean_box(x_7); +x_975 = lean_box(x_8); +x_976 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed), 17, 10); +lean_closure_set(x_976, 0, x_1); +lean_closure_set(x_976, 1, x_971); +lean_closure_set(x_976, 2, x_972); +lean_closure_set(x_976, 3, x_2); +lean_closure_set(x_976, 4, x_3); +lean_closure_set(x_976, 5, x_4); +lean_closure_set(x_976, 6, x_5); +lean_closure_set(x_976, 7, x_973); +lean_closure_set(x_976, 8, x_974); +lean_closure_set(x_976, 9, x_975); +x_977 = l_Lean_Elab_Term_observing___rarg(x_976, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_977) == 0) +{ +uint8_t x_978; +x_978 = !lean_is_exclusive(x_977); +if (x_978 == 0) +{ +lean_object* x_979; lean_object* x_980; +x_979 = lean_ctor_get(x_977, 0); +x_980 = lean_array_push(x_9, x_979); +lean_ctor_set(x_977, 0, x_980); +return x_977; +} +else +{ +lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; +x_981 = lean_ctor_get(x_977, 0); +x_982 = lean_ctor_get(x_977, 1); +lean_inc(x_982); +lean_inc(x_981); +lean_dec(x_977); +x_983 = lean_array_push(x_9, x_981); +x_984 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_984, 0, x_983); +lean_ctor_set(x_984, 1, x_982); +return x_984; +} +} +else +{ +uint8_t x_985; +lean_dec(x_9); +x_985 = !lean_is_exclusive(x_977); +if (x_985 == 0) +{ +return x_977; +} +else +{ +lean_object* x_986; lean_object* x_987; lean_object* x_988; +x_986 = lean_ctor_get(x_977, 0); +x_987 = lean_ctor_get(x_977, 1); +lean_inc(x_987); +lean_inc(x_986); +lean_dec(x_977); +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_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +if (x_8 == 0) +{ +uint8_t x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; +x_989 = 1; +x_990 = lean_box(x_989); +x_991 = lean_box(x_989); +x_992 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_992, 0, x_1); +lean_closure_set(x_992, 1, x_5); +lean_closure_set(x_992, 2, x_990); +lean_closure_set(x_992, 3, x_991); +x_993 = l_Lean_Elab_Term_observing___rarg(x_992, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_993) == 0) +{ +uint8_t x_994; +x_994 = !lean_is_exclusive(x_993); +if (x_994 == 0) +{ +lean_object* x_995; lean_object* x_996; +x_995 = lean_ctor_get(x_993, 0); +x_996 = lean_array_push(x_9, x_995); +lean_ctor_set(x_993, 0, x_996); +return x_993; +} +else +{ +lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; +x_997 = lean_ctor_get(x_993, 0); +x_998 = lean_ctor_get(x_993, 1); +lean_inc(x_998); +lean_inc(x_997); +lean_dec(x_993); +x_999 = lean_array_push(x_9, x_997); +x_1000 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1000, 0, x_999); +lean_ctor_set(x_1000, 1, x_998); +return x_1000; +} +} +else +{ +uint8_t x_1001; +lean_dec(x_9); +x_1001 = !lean_is_exclusive(x_993); +if (x_1001 == 0) +{ +return x_993; +} +else +{ +lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; +x_1002 = lean_ctor_get(x_993, 0); +x_1003 = lean_ctor_get(x_993, 1); +lean_inc(x_1003); +lean_inc(x_1002); +lean_dec(x_993); +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; uint8_t x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; +x_1005 = lean_box(0); +x_1006 = 1; +x_1007 = lean_box(x_932); +x_1008 = lean_box(x_1006); +x_1009 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5); +lean_closure_set(x_1009, 0, x_1); +lean_closure_set(x_1009, 1, x_5); +lean_closure_set(x_1009, 2, x_1007); +lean_closure_set(x_1009, 3, x_1008); +lean_closure_set(x_1009, 4, x_1005); +x_1010 = l_Lean_Elab_Term_observing___rarg(x_1009, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_1010) == 0) +{ +uint8_t x_1011; +x_1011 = !lean_is_exclusive(x_1010); +if (x_1011 == 0) +{ +lean_object* x_1012; lean_object* x_1013; +x_1012 = lean_ctor_get(x_1010, 0); +x_1013 = lean_array_push(x_9, x_1012); +lean_ctor_set(x_1010, 0, x_1013); +return x_1010; +} +else +{ +lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; +x_1014 = lean_ctor_get(x_1010, 0); +x_1015 = lean_ctor_get(x_1010, 1); +lean_inc(x_1015); +lean_inc(x_1014); +lean_dec(x_1010); +x_1016 = lean_array_push(x_9, x_1014); +x_1017 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1017, 0, x_1016); +lean_ctor_set(x_1017, 1, x_1015); +return x_1017; +} +} +else +{ +uint8_t x_1018; +lean_dec(x_9); +x_1018 = !lean_is_exclusive(x_1010); +if (x_1018 == 0) +{ +return x_1010; +} +else +{ +lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; +x_1019 = lean_ctor_get(x_1010, 0); +x_1020 = lean_ctor_get(x_1010, 1); +lean_inc(x_1020); +lean_inc(x_1019); +lean_dec(x_1010); +x_1021 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1021, 0, x_1019); +lean_ctor_set(x_1021, 1, x_1020); +return x_1021; +} +} +} +} +} +} +} +} +else +{ +lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; +lean_dec(x_1); +x_1025 = lean_box(0); +x_1026 = l_Lean_Syntax_identComponents(x_926, x_1025); +x_1027 = lean_box(0); +lean_inc(x_924); +x_1028 = l_List_mapTRAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__4(x_924, x_1026, x_1027); +x_1029 = l_List_appendTR___rarg(x_1028, x_2); +x_1 = x_924; +x_2 = x_1029; +goto _start; +} +} +else +{ +lean_object* x_1031; lean_object* x_1032; +lean_dec(x_1); +x_1031 = l_Lean_fieldIdxKind; +x_1032 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_1031, x_926); +if (lean_obj_tag(x_1032) == 0) +{ +lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; +x_1033 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__34; +x_1034 = l_panic___at_String_toNat_x21___spec__1(x_1033); +x_1035 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1035, 0, x_926); +lean_ctor_set(x_1035, 1, x_1034); +x_1036 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1036, 0, x_1035); +lean_ctor_set(x_1036, 1, x_2); +x_1 = x_924; +x_2 = x_1036; +goto _start; +} +else +{ +lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; +x_1038 = lean_ctor_get(x_1032, 0); +lean_inc(x_1038); +lean_dec(x_1032); +x_1039 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1039, 0, x_926); +lean_ctor_set(x_1039, 1, x_1038); +x_1040 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1040, 0, x_1039); +lean_ctor_set(x_1040, 1, x_2); +x_1 = x_924; +x_2 = x_1040; +goto _start; +} +} +} +} +else +{ +lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; uint8_t x_1045; +x_1042 = l_Lean_Syntax_getArgs(x_1); +lean_dec(x_1); +x_1043 = lean_array_get_size(x_1042); +x_1044 = lean_unsigned_to_nat(0u); +x_1045 = lean_nat_dec_lt(x_1044, x_1043); +if (x_1045 == 0) +{ +lean_object* x_1046; +lean_dec(x_1043); +lean_dec(x_1042); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1046 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1046, 0, x_9); +lean_ctor_set(x_1046, 1, x_16); +return x_1046; +} +else +{ +uint8_t x_1047; +x_1047 = !lean_is_exclusive(x_10); +if (x_1047 == 0) +{ +uint8_t x_1048; uint8_t x_1049; +x_1048 = 0; +lean_ctor_set_uint8(x_10, sizeof(void*)*7 + 1, x_1048); +x_1049 = lean_nat_dec_le(x_1043, x_1043); +if (x_1049 == 0) +{ +lean_object* x_1050; +lean_dec(x_10); +lean_dec(x_1043); +lean_dec(x_1042); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -23925,20 +24824,92 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_926 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_926, 0, x_9); -lean_ctor_set(x_926, 1, x_16); -return x_926; +x_1050 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1050, 0, x_9); +lean_ctor_set(x_1050, 1, x_16); +return x_1050; } else { -size_t x_927; size_t x_928; lean_object* x_929; -x_927 = 0; -x_928 = lean_usize_of_nat(x_899); -lean_dec(x_899); -x_929 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_898, x_927, x_928, x_9, x_924, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_898); -return x_929; +size_t x_1051; size_t x_1052; lean_object* x_1053; +x_1051 = 0; +x_1052 = lean_usize_of_nat(x_1043); +lean_dec(x_1043); +x_1053 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1042, x_1051, x_1052, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_1042); +return x_1053; +} +} +else +{ +lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; uint8_t x_1058; uint8_t x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; uint8_t x_1063; uint8_t x_1064; uint8_t x_1065; uint8_t x_1066; uint8_t x_1067; lean_object* x_1068; uint8_t x_1069; +x_1054 = lean_ctor_get(x_10, 0); +x_1055 = lean_ctor_get(x_10, 1); +x_1056 = lean_ctor_get(x_10, 2); +x_1057 = lean_ctor_get(x_10, 3); +x_1058 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); +x_1059 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 2); +x_1060 = lean_ctor_get(x_10, 4); +x_1061 = lean_ctor_get(x_10, 5); +x_1062 = lean_ctor_get(x_10, 6); +x_1063 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 3); +x_1064 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 4); +x_1065 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 5); +x_1066 = lean_ctor_get_uint8(x_10, sizeof(void*)*7 + 6); +lean_inc(x_1062); +lean_inc(x_1061); +lean_inc(x_1060); +lean_inc(x_1057); +lean_inc(x_1056); +lean_inc(x_1055); +lean_inc(x_1054); +lean_dec(x_10); +x_1067 = 0; +x_1068 = lean_alloc_ctor(0, 7, 7); +lean_ctor_set(x_1068, 0, x_1054); +lean_ctor_set(x_1068, 1, x_1055); +lean_ctor_set(x_1068, 2, x_1056); +lean_ctor_set(x_1068, 3, x_1057); +lean_ctor_set(x_1068, 4, x_1060); +lean_ctor_set(x_1068, 5, x_1061); +lean_ctor_set(x_1068, 6, x_1062); +lean_ctor_set_uint8(x_1068, sizeof(void*)*7, x_1058); +lean_ctor_set_uint8(x_1068, sizeof(void*)*7 + 1, x_1067); +lean_ctor_set_uint8(x_1068, sizeof(void*)*7 + 2, x_1059); +lean_ctor_set_uint8(x_1068, sizeof(void*)*7 + 3, x_1063); +lean_ctor_set_uint8(x_1068, sizeof(void*)*7 + 4, x_1064); +lean_ctor_set_uint8(x_1068, sizeof(void*)*7 + 5, x_1065); +lean_ctor_set_uint8(x_1068, sizeof(void*)*7 + 6, x_1066); +x_1069 = lean_nat_dec_le(x_1043, x_1043); +if (x_1069 == 0) +{ +lean_object* x_1070; +lean_dec(x_1068); +lean_dec(x_1043); +lean_dec(x_1042); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1070 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1070, 0, x_9); +lean_ctor_set(x_1070, 1, x_16); +return x_1070; +} +else +{ +size_t x_1071; size_t x_1072; lean_object* x_1073; +x_1071 = 0; +x_1072 = lean_usize_of_nat(x_1043); +lean_dec(x_1043); +x_1073 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1042, x_1071, x_1072, x_9, x_1068, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_1042); +return x_1073; } } } @@ -24039,6 +25010,53 @@ x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_1, x_ return x_22; } } +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_17 = lean_unbox(x_6); +lean_dec(x_6); +x_18 = lean_unbox(x_7); +lean_dec(x_7); +x_19 = lean_unbox(x_8); +lean_dec(x_8); +x_20 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(x_1, x_2, x_3, x_4, x_5, x_17, x_18, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_20; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; +x_19 = lean_unbox(x_7); +lean_dec(x_7); +x_20 = lean_unbox(x_8); +lean_dec(x_8); +x_21 = lean_unbox(x_9); +lean_dec(x_9); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_20, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_11); +return x_22; +} +} LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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: { @@ -25122,7 +26140,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(919u); +x_3 = lean_unsigned_to_nat(936u); x_4 = lean_unsigned_to_nat(35u); x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -25656,7 +26674,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__3___closed__1; -x_3 = lean_unsigned_to_nat(935u); +x_3 = lean_unsigned_to_nat(952u); x_4 = lean_unsigned_to_nat(35u); x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -27087,6 +28105,154 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabDotIdent(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_0__Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabDotIdent"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Term_elabApp___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabDotIdent), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent(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; +x_2 = l___regBuiltin_Lean_Elab_Term_elabApp___closed__6; +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; +x_4 = l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(974u); +x_2 = lean_unsigned_to_nat(28u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(974u); +x_2 = lean_unsigned_to_nat(67u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__1; +x_2 = lean_unsigned_to_nat(28u); +x_3 = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__2; +x_4 = lean_unsigned_to_nat(67u); +x_5 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_4); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(974u); +x_2 = lean_unsigned_to_nat(32u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(974u); +x_2 = lean_unsigned_to_nat(44u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__4; +x_2 = lean_unsigned_to_nat(32u); +x_3 = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__5; +x_4 = lean_unsigned_to_nat(44u); +x_5 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_4); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__6; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2; +x_3 = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__7; +x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicitUniv(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: { @@ -28356,7 +29522,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_12436_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_12921_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -28796,6 +29962,26 @@ l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__23 = _init_l___p lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__23); l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__24); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__25 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__25(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__25); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__27 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__27(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__27); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__28 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__28(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__28); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__29 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__29(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__29); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__31 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__31(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__31); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__32 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__32(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__32); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__33 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__33(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__33); +l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__34 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__34(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__34); l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__1 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__1(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__1); l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__2 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__2(); @@ -28926,6 +30112,32 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___ res = l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__1); +l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2); +l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__3); +res = l___regBuiltin_Lean_Elab_Term_elabDotIdent(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__1); +l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__2); +l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__3); +l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__4); +l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__5); +l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__6(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__6); +l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__7(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__7); +res = l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__1); l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__2(); @@ -29113,7 +30325,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___clos res = l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_12436_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_12921_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/PatternVar.c b/stage0/stdlib/Lean/Elab/PatternVar.c index 69a8ad30b3..67dd45bc77 100644 --- a/stage0/stdlib/Lean/Elab/PatternVar.c +++ b/stage0/stdlib/Lean/Elab/PatternVar.c @@ -18,6 +18,7 @@ static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__4___cl lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_collectPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -25,6 +26,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_El static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__29; lean_object* lean_erase_macro_scopes(lean_object*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__4___closed__3; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2; lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_getPatternsVars___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -112,12 +114,14 @@ lean_object* l_Lean_MessageData_ofList(lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___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_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__1; static lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern___spec__1___closed__2; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__7; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_main___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -131,7 +135,6 @@ LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_getPatternsVars LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___lambda__2(uint8_t, 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_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__4; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__3___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getPatternsVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -141,6 +144,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_Coll static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__3; static lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__3___closed__2; LEAN_EXPORT lean_object* l_Lean_addTrace___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_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2(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*, lean_object*); static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__8; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_main___spec__3___closed__1; static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__10___closed__1; @@ -157,6 +161,7 @@ static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCo lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__3___closed__1; lean_object* l_Lean_Core_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__27; LEAN_EXPORT uint8_t l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_isDone(lean_object*); @@ -168,6 +173,7 @@ lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_getNextParam(lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instBEqPatternVar___closed__1; @@ -194,9 +200,11 @@ LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_El lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_State_found___default; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_main___spec__3___closed__3; static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5___closed__3; +static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__1; static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__4___closed__9; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__5___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* l_Lean_Name_toString(lean_object*, uint8_t); @@ -207,10 +215,12 @@ static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPa LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__34; LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processImplicitArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__31; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_getPatternsVars___spec__6___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__4___closed__8; static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__3; +static lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__1; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__9; LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_Term_CollectPatternVars_collect___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabited___rarg(lean_object*, lean_object*); @@ -226,6 +236,7 @@ static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPa LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_samePatternsVariables___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; lean_object* l_Nat_repr(lean_object*); +static lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__2; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -274,6 +285,7 @@ lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, le LEAN_EXPORT lean_object* l_Lean_Elab_Term_instBEqPatternVar; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__12; static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__16; +static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__2; size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_ConstantInfo_type(lean_object*); @@ -289,6 +301,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect(lean_object static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__26; LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringPatternVar(lean_object*); +lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3; LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); extern uint8_t l_Lean_instInhabitedBinderInfo; @@ -350,22 +364,25 @@ static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPa LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternsVars___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__22; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__1; LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___closed__3; extern lean_object* l_Lean_instInhabitedName; LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_Context_paramDeclIdx___default; LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__2; lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_getPatternsVars___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_instInhabitedNamedArg; lean_object* l_Lean_Syntax_isNameLit_x3f(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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_EXPORT lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -386,6 +403,7 @@ static lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushN lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__3; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -394,7 +412,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_ LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_getPatternsVars___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__3; LEAN_EXPORT 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*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3601,6 +3618,390 @@ x_5 = lean_box(x_4); return x_5; } } +static lean_object* _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_instMonadTermElabM; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__1; +x_2 = l_Lean_instInhabitedSyntax; +x_3 = l_instInhabited___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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; lean_object* x_11; lean_object* x_12; +x_10 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__2; +x_11 = lean_panic_fn(x_10, x_1); +x_12 = lean_apply_8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.PatternVar"); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Term.CollectPatternVars.collect.processCtorApp"); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unreachable code has been reached"); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__1; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2; +x_3 = lean_unsigned_to_nat(251u); +x_4 = lean_unsigned_to_nat(74u); +x_5 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2(size_t x_1, size_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; +x_12 = lean_usize_dec_lt(x_2, x_1); +if (x_12 == 0) +{ +lean_object* x_13; +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); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_3); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_array_uget(x_3, x_2); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_array_uset(x_3, x_2, x_15); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_17); +lean_dec(x_14); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_18 = l_Lean_Elab_Term_CollectPatternVars_collect(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = 1; +x_22 = lean_usize_add(x_2, x_21); +x_23 = lean_array_uset(x_16, x_2, x_19); +x_2 = x_22; +x_3 = x_23; +x_11 = x_20; +goto _start; +} +else +{ +uint8_t x_25; +lean_dec(x_16); +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); +x_25 = !lean_is_exclusive(x_18); +if (x_25 == 0) +{ +return x_18; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_18, 0); +x_27 = lean_ctor_get(x_18, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_18); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_14); +x_29 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_30 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1(x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = 1; +x_34 = lean_usize_add(x_2, x_33); +x_35 = lean_array_uset(x_16, x_2, x_31); +x_2 = x_34; +x_3 = x_35; +x_11 = x_32; +goto _start; +} +else +{ +uint8_t x_37; +lean_dec(x_16); +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); +x_37 = !lean_is_exclusive(x_30); +if (x_37 == 0) +{ +return x_30; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_30, 0); +x_39 = lean_ctor_get(x_30, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_30); +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_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; +x_12 = l_Lean_Syntax_mkApp(x_1, x_2); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ellipsis"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(".."); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2(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* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; +lean_dec(x_6); +x_15 = lean_array_get_size(x_1); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_18 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2(x_16, x_17, x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_18) == 0) +{ +if (x_3 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +lean_dec(x_4); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_box(0); +x_22 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__1(x_2, x_19, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_22; +} +else +{ +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_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_23 = lean_ctor_get(x_18, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_dec(x_18); +x_25 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__1; +x_26 = lean_name_mk_string(x_4, x_25); +x_27 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__2; +x_28 = l_Lean_mkAtomFrom(x_5, x_27); +x_29 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__27; +x_30 = lean_array_push(x_29, x_28); +x_31 = lean_box(2); +x_32 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_26); +lean_ctor_set(x_32, 2, x_30); +x_33 = lean_array_push(x_23, x_32); +x_34 = lean_box(0); +x_35 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__1(x_2, x_33, x_34, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_24); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_36 = !lean_is_exclusive(x_18); +if (x_36 == 0) +{ +return x_18; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_18, 0); +x_38 = lean_ctor_get(x_18, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_18); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("dotIdent"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; +x_2 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid dotted notation in a pattern, named arguments are not supported yet"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp(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: { @@ -3611,10 +4012,9 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); x_11 = l_Lean_Elab_Term_expandApp(x_1, x_10, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); if (lean_obj_tag(x_11) == 0) { -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; uint8_t x_20; lean_object* x_21; +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; uint8_t x_22; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_12, 1); @@ -3635,14 +4035,34 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_14, 1); lean_inc(x_19); lean_dec(x_14); -x_20 = lean_unbox(x_19); +lean_inc(x_16); +x_20 = l_Lean_Syntax_getKind(x_16); +x_21 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2; +x_22 = lean_name_eq(x_20, x_21); +lean_dec(x_20); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; +lean_dec(x_1); +x_23 = lean_unbox(x_19); lean_dec(x_19); -x_21 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore(x_16, x_17, x_18, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -return x_21; +x_24 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore(x_16, x_17, x_18, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +return x_24; } else { -uint8_t x_22; +uint8_t x_25; +x_25 = l_Array_isEmpty___rarg(x_17); +lean_dec(x_17); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_1); +x_26 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__4; +x_27 = l_Lean_throwError___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__1(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3650,23 +4070,65 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_22 = !lean_is_exclusive(x_11); -if (x_22 == 0) +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +return x_27; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_27); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_32 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; +x_33 = lean_box(0); +x_34 = lean_unbox(x_19); +lean_dec(x_19); +x_35 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2(x_18, x_16, x_34, x_32, x_1, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +return x_35; +} +} +} +else +{ +uint8_t x_36; +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_36 = !lean_is_exclusive(x_11); +if (x_36 == 0) { return x_11; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_11, 0); +x_38 = lean_ctor_get(x_11, 1); +lean_inc(x_38); +lean_inc(x_37); lean_dec(x_11); -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; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } @@ -5340,17 +5802,8 @@ return x_57; static lean_object* _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_instMonadTermElabM; -x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__1; +x_1 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__1; x_2 = l_Lean_Elab_Term_CollectPatternVars_instInhabitedContext; x_3 = l_instInhabited___rarg(x_1, x_2); return x_3; @@ -5360,7 +5813,7 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_ _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__2; +x_10 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__1; x_11 = lean_panic_fn(x_10, x_1); x_12 = lean_apply_8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_12; @@ -5424,35 +5877,19 @@ static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg _start: { lean_object* x_1; -x_1 = lean_mk_string("Lean.Elab.PatternVar"); +x_1 = lean_mk_string("Lean.Elab.Term.CollectPatternVars.collect.pushNewArg"); return x_1; } } static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Lean.Elab.Term.CollectPatternVars.collect.pushNewArg"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unreachable code has been reached"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__1; -x_2 = l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__2; -x_3 = lean_unsigned_to_nat(272u); +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__1; +x_2 = l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__1; +x_3 = lean_unsigned_to_nat(282u); x_4 = lean_unsigned_to_nat(11u); -x_5 = l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__3; +x_5 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } @@ -5547,7 +5984,7 @@ else lean_object* x_23; lean_object* x_24; lean_dec(x_3); lean_dec(x_2); -x_23 = l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__4; +x_23 = l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__2; x_24 = l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_24; } @@ -7235,119 +7672,109 @@ x_19 = lean_name_eq(x_10, x_18); if (x_19 == 0) { lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__4; +x_20 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2; x_21 = lean_name_eq(x_10, x_20); if (x_21 == 0) { lean_object* x_22; uint8_t x_23; -x_22 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__25; +x_22 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__4; x_23 = lean_name_eq(x_10, x_22); if (x_23 == 0) { lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__6; +x_24 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__25; x_25 = lean_name_eq(x_10, x_24); if (x_25 == 0) { lean_object* x_26; uint8_t x_27; -x_26 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; +x_26 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__6; x_27 = lean_name_eq(x_10, x_26); if (x_27 == 0) { lean_object* x_28; uint8_t x_29; -x_28 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__10; +x_28 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; x_29 = lean_name_eq(x_10, x_28); if (x_29 == 0) { lean_object* x_30; uint8_t x_31; -x_30 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; +x_30 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__10; x_31 = lean_name_eq(x_10, x_30); if (x_31 == 0) { lean_object* x_32; uint8_t x_33; -x_32 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__13; +x_32 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; x_33 = lean_name_eq(x_10, x_32); if (x_33 == 0) { lean_object* x_34; uint8_t x_35; -x_34 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__14; +x_34 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__13; x_35 = lean_name_eq(x_10, x_34); if (x_35 == 0) { lean_object* x_36; uint8_t x_37; -x_36 = l_Lean_strLitKind; +x_36 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__14; x_37 = lean_name_eq(x_10, x_36); if (x_37 == 0) { lean_object* x_38; uint8_t x_39; -x_38 = l_Lean_numLitKind; +x_38 = l_Lean_strLitKind; x_39 = lean_name_eq(x_10, x_38); if (x_39 == 0) { lean_object* x_40; uint8_t x_41; -x_40 = l_Lean_scientificLitKind; +x_40 = l_Lean_numLitKind; x_41 = lean_name_eq(x_10, x_40); if (x_41 == 0) { lean_object* x_42; uint8_t x_43; -x_42 = l_Lean_charLitKind; +x_42 = l_Lean_scientificLitKind; x_43 = lean_name_eq(x_10, x_42); if (x_43 == 0) { lean_object* x_44; uint8_t x_45; -x_44 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__16; +x_44 = l_Lean_charLitKind; x_45 = lean_name_eq(x_10, x_44); if (x_45 == 0) { lean_object* x_46; uint8_t x_47; -x_46 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__18; +x_46 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__16; x_47 = lean_name_eq(x_10, x_46); if (x_47 == 0) { lean_object* x_48; uint8_t x_49; -x_48 = l_Lean_choiceKind; +x_48 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__18; x_49 = lean_name_eq(x_10, x_48); -lean_dec(x_10); if (x_49 == 0) { -lean_object* x_50; lean_object* x_51; -lean_dec(x_1); -x_50 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); -lean_closure_set(x_50, 0, x_2); -lean_closure_set(x_50, 1, x_3); -lean_closure_set(x_50, 2, x_4); -lean_closure_set(x_50, 3, x_5); -lean_closure_set(x_50, 4, x_6); -x_51 = l_Lean_Core_withFreshMacroScope___rarg(x_50, x_7, x_8, x_9); -return x_51; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = l_Lean_Syntax_getArgs(x_1); -lean_dec(x_1); -x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); -lean_closure_set(x_53, 0, x_2); -lean_closure_set(x_53, 1, x_52); -lean_closure_set(x_53, 2, x_3); -lean_closure_set(x_53, 3, x_4); -lean_closure_set(x_53, 4, x_5); -lean_closure_set(x_53, 5, x_6); -x_54 = l_Lean_Core_withFreshMacroScope___rarg(x_53, x_7, x_8, x_9); -return x_54; -} -} -else -{ -lean_object* x_55; lean_object* x_56; +lean_object* x_50; uint8_t x_51; +x_50 = l_Lean_choiceKind; +x_51 = lean_name_eq(x_10, x_50); lean_dec(x_10); -lean_dec(x_2); -x_55 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___boxed), 8, 5); -lean_closure_set(x_55, 0, x_1); -lean_closure_set(x_55, 1, x_3); -lean_closure_set(x_55, 2, x_4); -lean_closure_set(x_55, 3, x_5); -lean_closure_set(x_55, 4, x_6); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; +lean_dec(x_1); +x_52 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); +lean_closure_set(x_52, 0, x_2); +lean_closure_set(x_52, 1, x_3); +lean_closure_set(x_52, 2, x_4); +lean_closure_set(x_52, 3, x_5); +lean_closure_set(x_52, 4, x_6); +x_53 = l_Lean_Core_withFreshMacroScope___rarg(x_52, x_7, x_8, x_9); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = l_Lean_Syntax_getArgs(x_1); +lean_dec(x_1); +x_55 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); +lean_closure_set(x_55, 0, x_2); +lean_closure_set(x_55, 1, x_54); +lean_closure_set(x_55, 2, x_3); +lean_closure_set(x_55, 3, x_4); +lean_closure_set(x_55, 4, x_5); +lean_closure_set(x_55, 5, x_6); x_56 = l_Lean_Core_withFreshMacroScope___rarg(x_55, x_7, x_8, x_9); return x_56; } @@ -7357,7 +7784,7 @@ else lean_object* x_57; lean_object* x_58; lean_dec(x_10); lean_dec(x_2); -x_57 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern), 8, 5); +x_57 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___boxed), 8, 5); lean_closure_set(x_57, 0, x_1); lean_closure_set(x_57, 1, x_3); lean_closure_set(x_57, 2, x_4); @@ -7371,13 +7798,13 @@ else { lean_object* x_59; lean_object* x_60; lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); -x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +x_59 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern), 8, 5); lean_closure_set(x_59, 0, x_1); +lean_closure_set(x_59, 1, x_3); +lean_closure_set(x_59, 2, x_4); +lean_closure_set(x_59, 3, x_5); +lean_closure_set(x_59, 4, x_6); x_60 = l_Lean_Core_withFreshMacroScope___rarg(x_59, x_7, x_8, x_9); return x_60; } @@ -7444,125 +7871,123 @@ return x_68; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_object* x_69; lean_object* x_70; lean_dec(x_10); -x_69 = lean_unsigned_to_nat(2u); -x_70 = l_Lean_Syntax_getArg(x_1, x_69); -x_71 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__3), 10, 7); -lean_closure_set(x_71, 0, x_70); -lean_closure_set(x_71, 1, x_2); -lean_closure_set(x_71, 2, x_3); -lean_closure_set(x_71, 3, x_4); -lean_closure_set(x_71, 4, x_5); -lean_closure_set(x_71, 5, x_6); -lean_closure_set(x_71, 6, x_1); -x_72 = l_Lean_Core_withFreshMacroScope___rarg(x_71, x_7, x_8, x_9); -return x_72; -} -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_10); -x_73 = lean_unsigned_to_nat(0u); -x_74 = l_Lean_Syntax_getArg(x_1, x_73); -x_75 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 11, 8); -lean_closure_set(x_75, 0, x_74); -lean_closure_set(x_75, 1, x_2); -lean_closure_set(x_75, 2, x_3); -lean_closure_set(x_75, 3, x_4); -lean_closure_set(x_75, 4, x_5); -lean_closure_set(x_75, 5, x_6); -lean_closure_set(x_75, 6, x_1); -lean_closure_set(x_75, 7, x_16); -x_76 = l_Lean_Core_withFreshMacroScope___rarg(x_75, x_7, x_8, x_9); -return x_76; -} -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_10); -x_77 = lean_unsigned_to_nat(0u); -x_78 = l_Lean_Syntax_getArg(x_1, x_77); -lean_dec(x_1); -x_79 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtor), 9, 6); -lean_closure_set(x_79, 0, x_78); -lean_closure_set(x_79, 1, x_2); -lean_closure_set(x_79, 2, x_3); -lean_closure_set(x_79, 3, x_4); -lean_closure_set(x_79, 4, x_5); -lean_closure_set(x_79, 5, x_6); -x_80 = l_Lean_Core_withFreshMacroScope___rarg(x_79, x_7, x_8, x_9); -return x_80; -} -} -else -{ -lean_object* x_81; lean_object* x_82; uint8_t x_83; -lean_dec(x_10); -x_81 = lean_unsigned_to_nat(1u); -x_82 = l_Lean_Syntax_getArg(x_1, x_81); -x_83 = l_Lean_Syntax_isNone(x_82); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_84 = lean_unsigned_to_nat(0u); -x_85 = l_Lean_Syntax_getArg(x_82, x_84); -x_86 = l_Lean_Syntax_getArg(x_82, x_81); -x_87 = l_Lean_Syntax_isNone(x_86); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_88 = l_Lean_Syntax_getArg(x_86, x_84); -lean_dec(x_86); -x_89 = l_Lean_Syntax_getKind(x_88); -x_90 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__20; -x_91 = lean_name_eq(x_89, x_90); -lean_dec(x_89); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; -lean_dec(x_85); -lean_dec(x_82); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_92 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); -lean_closure_set(x_92, 0, x_1); -x_93 = l_Lean_Core_withFreshMacroScope___rarg(x_92, x_7, x_8, x_9); -return x_93; +x_69 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_69, 0, x_1); +x_70 = l_Lean_Core_withFreshMacroScope___rarg(x_69, x_7, x_8, x_9); +return x_70; +} } else { +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_10); +x_71 = lean_unsigned_to_nat(2u); +x_72 = l_Lean_Syntax_getArg(x_1, x_71); +x_73 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__3), 10, 7); +lean_closure_set(x_73, 0, x_72); +lean_closure_set(x_73, 1, x_2); +lean_closure_set(x_73, 2, x_3); +lean_closure_set(x_73, 3, x_4); +lean_closure_set(x_73, 4, x_5); +lean_closure_set(x_73, 5, x_6); +lean_closure_set(x_73, 6, x_1); +x_74 = l_Lean_Core_withFreshMacroScope___rarg(x_73, x_7, x_8, x_9); +return x_74; +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_10); +x_75 = lean_unsigned_to_nat(0u); +x_76 = l_Lean_Syntax_getArg(x_1, x_75); +x_77 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 11, 8); +lean_closure_set(x_77, 0, x_76); +lean_closure_set(x_77, 1, x_2); +lean_closure_set(x_77, 2, x_3); +lean_closure_set(x_77, 3, x_4); +lean_closure_set(x_77, 4, x_5); +lean_closure_set(x_77, 5, x_6); +lean_closure_set(x_77, 6, x_1); +lean_closure_set(x_77, 7, x_16); +x_78 = l_Lean_Core_withFreshMacroScope___rarg(x_77, x_7, x_8, x_9); +return x_78; +} +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_10); +x_79 = lean_unsigned_to_nat(0u); +x_80 = l_Lean_Syntax_getArg(x_1, x_79); +lean_dec(x_1); +x_81 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtor), 9, 6); +lean_closure_set(x_81, 0, x_80); +lean_closure_set(x_81, 1, x_2); +lean_closure_set(x_81, 2, x_3); +lean_closure_set(x_81, 3, x_4); +lean_closure_set(x_81, 4, x_5); +lean_closure_set(x_81, 5, x_6); +x_82 = l_Lean_Core_withFreshMacroScope___rarg(x_81, x_7, x_8, x_9); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; uint8_t x_85; +lean_dec(x_10); +x_83 = lean_unsigned_to_nat(1u); +x_84 = l_Lean_Syntax_getArg(x_1, x_83); +x_85 = l_Lean_Syntax_isNone(x_84); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_86 = lean_unsigned_to_nat(0u); +x_87 = l_Lean_Syntax_getArg(x_84, x_86); +x_88 = l_Lean_Syntax_getArg(x_84, x_83); +x_89 = l_Lean_Syntax_isNone(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_90 = l_Lean_Syntax_getArg(x_88, x_86); +lean_dec(x_88); +x_91 = l_Lean_Syntax_getKind(x_90); +x_92 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__20; +x_93 = lean_name_eq(x_91, x_92); +lean_dec(x_91); +if (x_93 == 0) +{ lean_object* x_94; lean_object* x_95; -x_94 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6), 11, 8); -lean_closure_set(x_94, 0, x_85); -lean_closure_set(x_94, 1, x_2); -lean_closure_set(x_94, 2, x_3); -lean_closure_set(x_94, 3, x_4); -lean_closure_set(x_94, 4, x_5); -lean_closure_set(x_94, 5, x_6); -lean_closure_set(x_94, 6, x_82); -lean_closure_set(x_94, 7, x_1); +lean_dec(x_87); +lean_dec(x_84); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_94 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_94, 0, x_1); x_95 = l_Lean_Core_withFreshMacroScope___rarg(x_94, x_7, x_8, x_9); return x_95; } -} else { lean_object* x_96; lean_object* x_97; -lean_dec(x_86); x_96 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6), 11, 8); -lean_closure_set(x_96, 0, x_85); +lean_closure_set(x_96, 0, x_87); lean_closure_set(x_96, 1, x_2); lean_closure_set(x_96, 2, x_3); lean_closure_set(x_96, 3, x_4); lean_closure_set(x_96, 4, x_5); lean_closure_set(x_96, 5, x_6); -lean_closure_set(x_96, 6, x_82); +lean_closure_set(x_96, 6, x_84); lean_closure_set(x_96, 7, x_1); x_97 = l_Lean_Core_withFreshMacroScope___rarg(x_96, x_7, x_8, x_9); return x_97; @@ -7571,340 +7996,332 @@ return x_97; else { lean_object* x_98; lean_object* x_99; -lean_dec(x_82); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_98 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); -lean_closure_set(x_98, 0, x_1); +lean_dec(x_88); +x_98 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6), 11, 8); +lean_closure_set(x_98, 0, x_87); +lean_closure_set(x_98, 1, x_2); +lean_closure_set(x_98, 2, x_3); +lean_closure_set(x_98, 3, x_4); +lean_closure_set(x_98, 4, x_5); +lean_closure_set(x_98, 5, x_6); +lean_closure_set(x_98, 6, x_84); +lean_closure_set(x_98, 7, x_1); x_99 = l_Lean_Core_withFreshMacroScope___rarg(x_98, x_7, x_8, x_9); return x_99; } } +else +{ +lean_object* x_100; lean_object* x_101; +lean_dec(x_84); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_100 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_100, 0, x_1); +x_101 = l_Lean_Core_withFreshMacroScope___rarg(x_100, x_7, x_8, x_9); +return x_101; +} +} } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_100 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; -x_101 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); -lean_closure_set(x_101, 0, x_100); -lean_closure_set(x_101, 1, x_1); -x_102 = l_Lean_Core_withFreshMacroScope___rarg(x_101, x_7, x_8, x_9); -return x_102; +x_102 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; +x_103 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); +lean_closure_set(x_103, 0, x_102); +lean_closure_set(x_103, 1, x_1); +x_104 = l_Lean_Core_withFreshMacroScope___rarg(x_103, x_7, x_8, x_9); +return x_104; } } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_103 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; -x_104 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); -lean_closure_set(x_104, 0, x_103); -lean_closure_set(x_104, 1, x_1); -x_105 = l_Lean_Core_withFreshMacroScope___rarg(x_104, x_7, x_8, x_9); -return x_105; +x_105 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; +x_106 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); +lean_closure_set(x_106, 0, x_105); +lean_closure_set(x_106, 1, x_1); +x_107 = l_Lean_Core_withFreshMacroScope___rarg(x_106, x_7, x_8, x_9); +return x_107; } } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_dec(x_10); -x_106 = lean_unsigned_to_nat(1u); -x_107 = l_Lean_Syntax_getArg(x_1, x_106); +x_108 = lean_unsigned_to_nat(1u); +x_109 = l_Lean_Syntax_getArg(x_1, x_108); lean_inc(x_1); -x_108 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 1); -lean_closure_set(x_108, 0, x_1); -x_109 = l_Lean_Syntax_isNone(x_107); -if (x_109 == 0) +x_110 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 1); +lean_closure_set(x_110, 0, x_1); +x_111 = l_Lean_Syntax_isNone(x_109); +if (x_111 == 0) { -lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_dec(x_1); -x_110 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__22; -x_111 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__9___boxed), 11, 8); -lean_closure_set(x_111, 0, x_107); -lean_closure_set(x_111, 1, x_110); -lean_closure_set(x_111, 2, x_2); -lean_closure_set(x_111, 3, x_3); -lean_closure_set(x_111, 4, x_4); -lean_closure_set(x_111, 5, x_5); -lean_closure_set(x_111, 6, x_6); -lean_closure_set(x_111, 7, x_108); -x_112 = l_Lean_Core_withFreshMacroScope___rarg(x_111, x_7, x_8, x_9); -return x_112; +x_112 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__22; +x_113 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__9___boxed), 11, 8); +lean_closure_set(x_113, 0, x_109); +lean_closure_set(x_113, 1, x_112); +lean_closure_set(x_113, 2, x_2); +lean_closure_set(x_113, 3, x_3); +lean_closure_set(x_113, 4, x_4); +lean_closure_set(x_113, 5, x_5); +lean_closure_set(x_113, 6, x_6); +lean_closure_set(x_113, 7, x_110); +x_114 = l_Lean_Core_withFreshMacroScope___rarg(x_113, x_7, x_8, x_9); +return x_114; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_108); -lean_dec(x_107); -x_113 = lean_box(0); -x_114 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 7); -lean_closure_set(x_114, 0, x_1); -lean_closure_set(x_114, 1, x_113); -lean_closure_set(x_114, 2, x_2); -lean_closure_set(x_114, 3, x_3); -lean_closure_set(x_114, 4, x_4); -lean_closure_set(x_114, 5, x_5); -lean_closure_set(x_114, 6, x_6); -x_115 = l_Lean_Core_withFreshMacroScope___rarg(x_114, x_7, x_8, x_9); -return x_115; +lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_110); +lean_dec(x_109); +x_115 = lean_box(0); +x_116 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 7); +lean_closure_set(x_116, 0, x_1); +lean_closure_set(x_116, 1, x_115); +lean_closure_set(x_116, 2, x_2); +lean_closure_set(x_116, 3, x_3); +lean_closure_set(x_116, 4, x_4); +lean_closure_set(x_116, 5, x_5); +lean_closure_set(x_116, 6, x_6); +x_117 = l_Lean_Core_withFreshMacroScope___rarg(x_116, x_7, x_8, x_9); +return x_117; } } } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_object* x_118; lean_object* x_119; lean_dec(x_10); -x_116 = lean_unsigned_to_nat(1u); -x_117 = l_Lean_Syntax_getArg(x_1, x_116); -x_118 = l_Lean_Syntax_getArgs(x_117); -lean_dec(x_117); -x_119 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__10___boxed), 10, 7); -lean_closure_set(x_119, 0, x_118); -lean_closure_set(x_119, 1, x_2); -lean_closure_set(x_119, 2, x_3); -lean_closure_set(x_119, 3, x_4); -lean_closure_set(x_119, 4, x_5); -lean_closure_set(x_119, 5, x_6); -lean_closure_set(x_119, 6, x_1); -x_120 = l_Lean_Core_withFreshMacroScope___rarg(x_119, x_7, x_8, x_9); -return x_120; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_118 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_118, 0, x_1); +x_119 = l_Lean_Core_withFreshMacroScope___rarg(x_118, x_7, x_8, x_9); +return x_119; } } else { -lean_object* x_121; lean_object* x_122; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_dec(x_10); -x_121 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp), 9, 6); -lean_closure_set(x_121, 0, x_1); -lean_closure_set(x_121, 1, x_2); -lean_closure_set(x_121, 2, x_3); -lean_closure_set(x_121, 3, x_4); -lean_closure_set(x_121, 4, x_5); -lean_closure_set(x_121, 5, x_6); -x_122 = l_Lean_Core_withFreshMacroScope___rarg(x_121, x_7, x_8, x_9); -return x_122; -} -} -else -{ -lean_object* x_123; lean_object* x_124; -lean_dec(x_10); -x_123 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processId), 9, 6); -lean_closure_set(x_123, 0, x_1); +x_120 = lean_unsigned_to_nat(1u); +x_121 = l_Lean_Syntax_getArg(x_1, x_120); +x_122 = l_Lean_Syntax_getArgs(x_121); +lean_dec(x_121); +x_123 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__10___boxed), 10, 7); +lean_closure_set(x_123, 0, x_122); lean_closure_set(x_123, 1, x_2); lean_closure_set(x_123, 2, x_3); lean_closure_set(x_123, 3, x_4); lean_closure_set(x_123, 4, x_5); lean_closure_set(x_123, 5, x_6); +lean_closure_set(x_123, 6, x_1); x_124 = l_Lean_Core_withFreshMacroScope___rarg(x_123, x_7, x_8, x_9); return x_124; } } else { -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; -x_125 = lean_ctor_get(x_7, 0); -x_126 = lean_ctor_get(x_7, 1); -x_127 = lean_ctor_get(x_7, 2); -x_128 = lean_ctor_get(x_7, 3); -x_129 = lean_ctor_get(x_7, 4); -x_130 = lean_ctor_get(x_7, 5); -x_131 = lean_ctor_get(x_7, 6); -x_132 = lean_ctor_get(x_7, 7); -x_133 = lean_ctor_get(x_7, 8); +lean_object* x_125; lean_object* x_126; +lean_dec(x_10); +x_125 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp), 9, 6); +lean_closure_set(x_125, 0, x_1); +lean_closure_set(x_125, 1, x_2); +lean_closure_set(x_125, 2, x_3); +lean_closure_set(x_125, 3, x_4); +lean_closure_set(x_125, 4, x_5); +lean_closure_set(x_125, 5, x_6); +x_126 = l_Lean_Core_withFreshMacroScope___rarg(x_125, x_7, x_8, x_9); +return x_126; +} +} +else +{ +lean_object* x_127; lean_object* x_128; +lean_dec(x_10); +x_127 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processId), 9, 6); +lean_closure_set(x_127, 0, x_1); +lean_closure_set(x_127, 1, x_2); +lean_closure_set(x_127, 2, x_3); +lean_closure_set(x_127, 3, x_4); +lean_closure_set(x_127, 4, x_5); +lean_closure_set(x_127, 5, x_6); +x_128 = l_Lean_Core_withFreshMacroScope___rarg(x_127, x_7, x_8, x_9); +return x_128; +} +} +else +{ +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; +x_129 = lean_ctor_get(x_7, 0); +x_130 = lean_ctor_get(x_7, 1); +x_131 = lean_ctor_get(x_7, 2); +x_132 = lean_ctor_get(x_7, 3); +x_133 = lean_ctor_get(x_7, 4); +x_134 = lean_ctor_get(x_7, 5); +x_135 = lean_ctor_get(x_7, 6); +x_136 = lean_ctor_get(x_7, 7); +x_137 = lean_ctor_get(x_7, 8); +lean_inc(x_137); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); lean_inc(x_133); lean_inc(x_132); lean_inc(x_131); lean_inc(x_130); lean_inc(x_129); -lean_inc(x_128); -lean_inc(x_127); -lean_inc(x_126); -lean_inc(x_125); lean_dec(x_7); -x_134 = l_Lean_replaceRef(x_1, x_128); -lean_dec(x_128); -x_135 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_135, 0, x_125); -lean_ctor_set(x_135, 1, x_126); -lean_ctor_set(x_135, 2, x_127); -lean_ctor_set(x_135, 3, x_134); -lean_ctor_set(x_135, 4, x_129); -lean_ctor_set(x_135, 5, x_130); -lean_ctor_set(x_135, 6, x_131); -lean_ctor_set(x_135, 7, x_132); -lean_ctor_set(x_135, 8, x_133); +x_138 = l_Lean_replaceRef(x_1, x_132); +lean_dec(x_132); +x_139 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_139, 0, x_129); +lean_ctor_set(x_139, 1, x_130); +lean_ctor_set(x_139, 2, x_131); +lean_ctor_set(x_139, 3, x_138); +lean_ctor_set(x_139, 4, x_133); +lean_ctor_set(x_139, 5, x_134); +lean_ctor_set(x_139, 6, x_135); +lean_ctor_set(x_139, 7, x_136); +lean_ctor_set(x_139, 8, x_137); if (x_12 == 0) { -lean_object* x_136; uint8_t x_137; -x_136 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__13; -x_137 = lean_name_eq(x_10, x_136); -if (x_137 == 0) -{ -lean_object* x_138; uint8_t x_139; -x_138 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__2; -x_139 = lean_name_eq(x_10, x_138); -if (x_139 == 0) -{ lean_object* x_140; uint8_t x_141; -x_140 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__4; +x_140 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__13; x_141 = lean_name_eq(x_10, x_140); if (x_141 == 0) { lean_object* x_142; uint8_t x_143; -x_142 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__25; +x_142 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__2; x_143 = lean_name_eq(x_10, x_142); if (x_143 == 0) { lean_object* x_144; uint8_t x_145; -x_144 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__6; +x_144 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2; x_145 = lean_name_eq(x_10, x_144); if (x_145 == 0) { lean_object* x_146; uint8_t x_147; -x_146 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; +x_146 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__4; x_147 = lean_name_eq(x_10, x_146); if (x_147 == 0) { lean_object* x_148; uint8_t x_149; -x_148 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__10; +x_148 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__25; x_149 = lean_name_eq(x_10, x_148); if (x_149 == 0) { lean_object* x_150; uint8_t x_151; -x_150 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; +x_150 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__6; x_151 = lean_name_eq(x_10, x_150); if (x_151 == 0) { lean_object* x_152; uint8_t x_153; -x_152 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__13; +x_152 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__8; x_153 = lean_name_eq(x_10, x_152); if (x_153 == 0) { lean_object* x_154; uint8_t x_155; -x_154 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__14; +x_154 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__10; x_155 = lean_name_eq(x_10, x_154); if (x_155 == 0) { lean_object* x_156; uint8_t x_157; -x_156 = l_Lean_strLitKind; +x_156 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; x_157 = lean_name_eq(x_10, x_156); if (x_157 == 0) { lean_object* x_158; uint8_t x_159; -x_158 = l_Lean_numLitKind; +x_158 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__13; x_159 = lean_name_eq(x_10, x_158); if (x_159 == 0) { lean_object* x_160; uint8_t x_161; -x_160 = l_Lean_scientificLitKind; +x_160 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__14; x_161 = lean_name_eq(x_10, x_160); if (x_161 == 0) { lean_object* x_162; uint8_t x_163; -x_162 = l_Lean_charLitKind; +x_162 = l_Lean_strLitKind; x_163 = lean_name_eq(x_10, x_162); if (x_163 == 0) { lean_object* x_164; uint8_t x_165; -x_164 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__16; +x_164 = l_Lean_numLitKind; x_165 = lean_name_eq(x_10, x_164); if (x_165 == 0) { lean_object* x_166; uint8_t x_167; -x_166 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__18; +x_166 = l_Lean_scientificLitKind; x_167 = lean_name_eq(x_10, x_166); if (x_167 == 0) { lean_object* x_168; uint8_t x_169; -x_168 = l_Lean_choiceKind; +x_168 = l_Lean_charLitKind; x_169 = lean_name_eq(x_10, x_168); -lean_dec(x_10); if (x_169 == 0) { -lean_object* x_170; lean_object* x_171; +lean_object* x_170; uint8_t x_171; +x_170 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__16; +x_171 = lean_name_eq(x_10, x_170); +if (x_171 == 0) +{ +lean_object* x_172; uint8_t x_173; +x_172 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__18; +x_173 = lean_name_eq(x_10, x_172); +if (x_173 == 0) +{ +lean_object* x_174; uint8_t x_175; +x_174 = l_Lean_choiceKind; +x_175 = lean_name_eq(x_10, x_174); +lean_dec(x_10); +if (x_175 == 0) +{ +lean_object* x_176; lean_object* x_177; lean_dec(x_1); -x_170 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); -lean_closure_set(x_170, 0, x_2); -lean_closure_set(x_170, 1, x_3); -lean_closure_set(x_170, 2, x_4); -lean_closure_set(x_170, 3, x_5); -lean_closure_set(x_170, 4, x_6); -x_171 = l_Lean_Core_withFreshMacroScope___rarg(x_170, x_135, x_8, x_9); -return x_171; +x_176 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg), 8, 5); +lean_closure_set(x_176, 0, x_2); +lean_closure_set(x_176, 1, x_3); +lean_closure_set(x_176, 2, x_4); +lean_closure_set(x_176, 3, x_5); +lean_closure_set(x_176, 4, x_6); +x_177 = l_Lean_Core_withFreshMacroScope___rarg(x_176, x_139, x_8, x_9); +return x_177; } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_173 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); -lean_closure_set(x_173, 0, x_2); -lean_closure_set(x_173, 1, x_172); -lean_closure_set(x_173, 2, x_3); -lean_closure_set(x_173, 3, x_4); -lean_closure_set(x_173, 4, x_5); -lean_closure_set(x_173, 5, x_6); -x_174 = l_Lean_Core_withFreshMacroScope___rarg(x_173, x_135, x_8, x_9); -return x_174; -} -} -else -{ -lean_object* x_175; lean_object* x_176; -lean_dec(x_10); -lean_dec(x_2); -x_175 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___boxed), 8, 5); -lean_closure_set(x_175, 0, x_1); -lean_closure_set(x_175, 1, x_3); -lean_closure_set(x_175, 2, x_4); -lean_closure_set(x_175, 3, x_5); -lean_closure_set(x_175, 4, x_6); -x_176 = l_Lean_Core_withFreshMacroScope___rarg(x_175, x_135, x_8, x_9); -return x_176; -} -} -else -{ -lean_object* x_177; lean_object* x_178; -lean_dec(x_10); -lean_dec(x_2); -x_177 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern), 8, 5); -lean_closure_set(x_177, 0, x_1); -lean_closure_set(x_177, 1, x_3); -lean_closure_set(x_177, 2, x_4); -lean_closure_set(x_177, 3, x_5); -lean_closure_set(x_177, 4, x_6); -x_178 = l_Lean_Core_withFreshMacroScope___rarg(x_177, x_135, x_8, x_9); -return x_178; -} -} -else -{ -lean_object* x_179; lean_object* x_180; -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_179 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); -lean_closure_set(x_179, 0, x_1); -x_180 = l_Lean_Core_withFreshMacroScope___rarg(x_179, x_135, x_8, x_9); +x_179 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__1), 9, 6); +lean_closure_set(x_179, 0, x_2); +lean_closure_set(x_179, 1, x_178); +lean_closure_set(x_179, 2, x_3); +lean_closure_set(x_179, 3, x_4); +lean_closure_set(x_179, 4, x_5); +lean_closure_set(x_179, 5, x_6); +x_180 = l_Lean_Core_withFreshMacroScope___rarg(x_179, x_139, x_8, x_9); return x_180; } } @@ -7912,14 +8329,14 @@ else { lean_object* x_181; lean_object* x_182; lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); -x_181 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +x_181 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___boxed), 8, 5); lean_closure_set(x_181, 0, x_1); -x_182 = l_Lean_Core_withFreshMacroScope___rarg(x_181, x_135, x_8, x_9); +lean_closure_set(x_181, 1, x_3); +lean_closure_set(x_181, 2, x_4); +lean_closure_set(x_181, 3, x_5); +lean_closure_set(x_181, 4, x_6); +x_182 = l_Lean_Core_withFreshMacroScope___rarg(x_181, x_139, x_8, x_9); return x_182; } } @@ -7927,14 +8344,14 @@ else { lean_object* x_183; lean_object* x_184; lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); -x_183 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +x_183 = lean_alloc_closure((void*)(l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern), 8, 5); lean_closure_set(x_183, 0, x_1); -x_184 = l_Lean_Core_withFreshMacroScope___rarg(x_183, x_135, x_8, x_9); +lean_closure_set(x_183, 1, x_3); +lean_closure_set(x_183, 2, x_4); +lean_closure_set(x_183, 3, x_5); +lean_closure_set(x_183, 4, x_6); +x_184 = l_Lean_Core_withFreshMacroScope___rarg(x_183, x_139, x_8, x_9); return x_184; } } @@ -7949,7 +8366,7 @@ lean_dec(x_3); lean_dec(x_2); x_185 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); lean_closure_set(x_185, 0, x_1); -x_186 = l_Lean_Core_withFreshMacroScope___rarg(x_185, x_135, x_8, x_9); +x_186 = l_Lean_Core_withFreshMacroScope___rarg(x_185, x_139, x_8, x_9); return x_186; } } @@ -7964,140 +8381,138 @@ lean_dec(x_3); lean_dec(x_2); x_187 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); lean_closure_set(x_187, 0, x_1); -x_188 = l_Lean_Core_withFreshMacroScope___rarg(x_187, x_135, x_8, x_9); +x_188 = l_Lean_Core_withFreshMacroScope___rarg(x_187, x_139, x_8, x_9); return x_188; } } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_object* x_189; lean_object* x_190; lean_dec(x_10); -x_189 = lean_unsigned_to_nat(2u); -x_190 = l_Lean_Syntax_getArg(x_1, x_189); -x_191 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__3), 10, 7); -lean_closure_set(x_191, 0, x_190); -lean_closure_set(x_191, 1, x_2); -lean_closure_set(x_191, 2, x_3); -lean_closure_set(x_191, 3, x_4); -lean_closure_set(x_191, 4, x_5); -lean_closure_set(x_191, 5, x_6); -lean_closure_set(x_191, 6, x_1); -x_192 = l_Lean_Core_withFreshMacroScope___rarg(x_191, x_135, x_8, x_9); -return x_192; -} -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_10); -x_193 = lean_unsigned_to_nat(0u); -x_194 = l_Lean_Syntax_getArg(x_1, x_193); -x_195 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 11, 8); -lean_closure_set(x_195, 0, x_194); -lean_closure_set(x_195, 1, x_2); -lean_closure_set(x_195, 2, x_3); -lean_closure_set(x_195, 3, x_4); -lean_closure_set(x_195, 4, x_5); -lean_closure_set(x_195, 5, x_6); -lean_closure_set(x_195, 6, x_1); -lean_closure_set(x_195, 7, x_136); -x_196 = l_Lean_Core_withFreshMacroScope___rarg(x_195, x_135, x_8, x_9); -return x_196; -} -} -else -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_10); -x_197 = lean_unsigned_to_nat(0u); -x_198 = l_Lean_Syntax_getArg(x_1, x_197); -lean_dec(x_1); -x_199 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtor), 9, 6); -lean_closure_set(x_199, 0, x_198); -lean_closure_set(x_199, 1, x_2); -lean_closure_set(x_199, 2, x_3); -lean_closure_set(x_199, 3, x_4); -lean_closure_set(x_199, 4, x_5); -lean_closure_set(x_199, 5, x_6); -x_200 = l_Lean_Core_withFreshMacroScope___rarg(x_199, x_135, x_8, x_9); -return x_200; -} -} -else -{ -lean_object* x_201; lean_object* x_202; uint8_t x_203; -lean_dec(x_10); -x_201 = lean_unsigned_to_nat(1u); -x_202 = l_Lean_Syntax_getArg(x_1, x_201); -x_203 = l_Lean_Syntax_isNone(x_202); -if (x_203 == 0) -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; -x_204 = lean_unsigned_to_nat(0u); -x_205 = l_Lean_Syntax_getArg(x_202, x_204); -x_206 = l_Lean_Syntax_getArg(x_202, x_201); -x_207 = l_Lean_Syntax_isNone(x_206); -if (x_207 == 0) -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_208 = l_Lean_Syntax_getArg(x_206, x_204); -lean_dec(x_206); -x_209 = l_Lean_Syntax_getKind(x_208); -x_210 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__20; -x_211 = lean_name_eq(x_209, x_210); -lean_dec(x_209); -if (x_211 == 0) -{ -lean_object* x_212; lean_object* x_213; -lean_dec(x_205); -lean_dec(x_202); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_212 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); -lean_closure_set(x_212, 0, x_1); -x_213 = l_Lean_Core_withFreshMacroScope___rarg(x_212, x_135, x_8, x_9); -return x_213; -} -else -{ -lean_object* x_214; lean_object* x_215; -x_214 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6), 11, 8); -lean_closure_set(x_214, 0, x_205); -lean_closure_set(x_214, 1, x_2); -lean_closure_set(x_214, 2, x_3); -lean_closure_set(x_214, 3, x_4); -lean_closure_set(x_214, 4, x_5); -lean_closure_set(x_214, 5, x_6); -lean_closure_set(x_214, 6, x_202); -lean_closure_set(x_214, 7, x_1); -x_215 = l_Lean_Core_withFreshMacroScope___rarg(x_214, x_135, x_8, x_9); -return x_215; +x_189 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_189, 0, x_1); +x_190 = l_Lean_Core_withFreshMacroScope___rarg(x_189, x_139, x_8, x_9); +return x_190; } } else { -lean_object* x_216; lean_object* x_217; -lean_dec(x_206); -x_216 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6), 11, 8); -lean_closure_set(x_216, 0, x_205); -lean_closure_set(x_216, 1, x_2); -lean_closure_set(x_216, 2, x_3); -lean_closure_set(x_216, 3, x_4); -lean_closure_set(x_216, 4, x_5); -lean_closure_set(x_216, 5, x_6); -lean_closure_set(x_216, 6, x_202); -lean_closure_set(x_216, 7, x_1); -x_217 = l_Lean_Core_withFreshMacroScope___rarg(x_216, x_135, x_8, x_9); -return x_217; +lean_object* x_191; lean_object* x_192; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_191 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_191, 0, x_1); +x_192 = l_Lean_Core_withFreshMacroScope___rarg(x_191, x_139, x_8, x_9); +return x_192; } } else { +lean_object* x_193; lean_object* x_194; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_193 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_193, 0, x_1); +x_194 = l_Lean_Core_withFreshMacroScope___rarg(x_193, x_139, x_8, x_9); +return x_194; +} +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_10); +x_195 = lean_unsigned_to_nat(2u); +x_196 = l_Lean_Syntax_getArg(x_1, x_195); +x_197 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__3), 10, 7); +lean_closure_set(x_197, 0, x_196); +lean_closure_set(x_197, 1, x_2); +lean_closure_set(x_197, 2, x_3); +lean_closure_set(x_197, 3, x_4); +lean_closure_set(x_197, 4, x_5); +lean_closure_set(x_197, 5, x_6); +lean_closure_set(x_197, 6, x_1); +x_198 = l_Lean_Core_withFreshMacroScope___rarg(x_197, x_139, x_8, x_9); +return x_198; +} +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_10); +x_199 = lean_unsigned_to_nat(0u); +x_200 = l_Lean_Syntax_getArg(x_1, x_199); +x_201 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__5), 11, 8); +lean_closure_set(x_201, 0, x_200); +lean_closure_set(x_201, 1, x_2); +lean_closure_set(x_201, 2, x_3); +lean_closure_set(x_201, 3, x_4); +lean_closure_set(x_201, 4, x_5); +lean_closure_set(x_201, 5, x_6); +lean_closure_set(x_201, 6, x_1); +lean_closure_set(x_201, 7, x_140); +x_202 = l_Lean_Core_withFreshMacroScope___rarg(x_201, x_139, x_8, x_9); +return x_202; +} +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_10); +x_203 = lean_unsigned_to_nat(0u); +x_204 = l_Lean_Syntax_getArg(x_1, x_203); +lean_dec(x_1); +x_205 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtor), 9, 6); +lean_closure_set(x_205, 0, x_204); +lean_closure_set(x_205, 1, x_2); +lean_closure_set(x_205, 2, x_3); +lean_closure_set(x_205, 3, x_4); +lean_closure_set(x_205, 4, x_5); +lean_closure_set(x_205, 5, x_6); +x_206 = l_Lean_Core_withFreshMacroScope___rarg(x_205, x_139, x_8, x_9); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; uint8_t x_209; +lean_dec(x_10); +x_207 = lean_unsigned_to_nat(1u); +x_208 = l_Lean_Syntax_getArg(x_1, x_207); +x_209 = l_Lean_Syntax_isNone(x_208); +if (x_209 == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; +x_210 = lean_unsigned_to_nat(0u); +x_211 = l_Lean_Syntax_getArg(x_208, x_210); +x_212 = l_Lean_Syntax_getArg(x_208, x_207); +x_213 = l_Lean_Syntax_isNone(x_212); +if (x_213 == 0) +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; +x_214 = l_Lean_Syntax_getArg(x_212, x_210); +lean_dec(x_212); +x_215 = l_Lean_Syntax_getKind(x_214); +x_216 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__20; +x_217 = lean_name_eq(x_215, x_216); +lean_dec(x_215); +if (x_217 == 0) +{ lean_object* x_218; lean_object* x_219; -lean_dec(x_202); +lean_dec(x_211); +lean_dec(x_208); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -8105,139 +8520,201 @@ lean_dec(x_3); lean_dec(x_2); x_218 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); lean_closure_set(x_218, 0, x_1); -x_219 = l_Lean_Core_withFreshMacroScope___rarg(x_218, x_135, x_8, x_9); +x_219 = l_Lean_Core_withFreshMacroScope___rarg(x_218, x_139, x_8, x_9); return x_219; } +else +{ +lean_object* x_220; lean_object* x_221; +x_220 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6), 11, 8); +lean_closure_set(x_220, 0, x_211); +lean_closure_set(x_220, 1, x_2); +lean_closure_set(x_220, 2, x_3); +lean_closure_set(x_220, 3, x_4); +lean_closure_set(x_220, 4, x_5); +lean_closure_set(x_220, 5, x_6); +lean_closure_set(x_220, 6, x_208); +lean_closure_set(x_220, 7, x_1); +x_221 = l_Lean_Core_withFreshMacroScope___rarg(x_220, x_139, x_8, x_9); +return x_221; } } else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -lean_dec(x_10); +lean_object* x_222; lean_object* x_223; +lean_dec(x_212); +x_222 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__6), 11, 8); +lean_closure_set(x_222, 0, x_211); +lean_closure_set(x_222, 1, x_2); +lean_closure_set(x_222, 2, x_3); +lean_closure_set(x_222, 3, x_4); +lean_closure_set(x_222, 4, x_5); +lean_closure_set(x_222, 5, x_6); +lean_closure_set(x_222, 6, x_208); +lean_closure_set(x_222, 7, x_1); +x_223 = l_Lean_Core_withFreshMacroScope___rarg(x_222, x_139, x_8, x_9); +return x_223; +} +} +else +{ +lean_object* x_224; lean_object* x_225; +lean_dec(x_208); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_220 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; -x_221 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); -lean_closure_set(x_221, 0, x_220); -lean_closure_set(x_221, 1, x_1); -x_222 = l_Lean_Core_withFreshMacroScope___rarg(x_221, x_135, x_8, x_9); -return x_222; -} -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_223 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; -x_224 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); -lean_closure_set(x_224, 0, x_223); -lean_closure_set(x_224, 1, x_1); -x_225 = l_Lean_Core_withFreshMacroScope___rarg(x_224, x_135, x_8, x_9); +x_224 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_224, 0, x_1); +x_225 = l_Lean_Core_withFreshMacroScope___rarg(x_224, x_139, x_8, x_9); return x_225; } } +} else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_dec(x_10); -x_226 = lean_unsigned_to_nat(1u); -x_227 = l_Lean_Syntax_getArg(x_1, x_226); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_226 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; +x_227 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); +lean_closure_set(x_227, 0, x_226); +lean_closure_set(x_227, 1, x_1); +x_228 = l_Lean_Core_withFreshMacroScope___rarg(x_227, x_139, x_8, x_9); +return x_228; +} +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_229 = l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_finalize___closed__8; +x_230 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__7___boxed), 5, 2); +lean_closure_set(x_230, 0, x_229); +lean_closure_set(x_230, 1, x_1); +x_231 = l_Lean_Core_withFreshMacroScope___rarg(x_230, x_139, x_8, x_9); +return x_231; +} +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; +lean_dec(x_10); +x_232 = lean_unsigned_to_nat(1u); +x_233 = l_Lean_Syntax_getArg(x_1, x_232); lean_inc(x_1); -x_228 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 1); -lean_closure_set(x_228, 0, x_1); -x_229 = l_Lean_Syntax_isNone(x_227); -if (x_229 == 0) -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_1); -x_230 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__22; -x_231 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__9___boxed), 11, 8); -lean_closure_set(x_231, 0, x_227); -lean_closure_set(x_231, 1, x_230); -lean_closure_set(x_231, 2, x_2); -lean_closure_set(x_231, 3, x_3); -lean_closure_set(x_231, 4, x_4); -lean_closure_set(x_231, 5, x_5); -lean_closure_set(x_231, 6, x_6); -lean_closure_set(x_231, 7, x_228); -x_232 = l_Lean_Core_withFreshMacroScope___rarg(x_231, x_135, x_8, x_9); -return x_232; -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; -lean_dec(x_228); -lean_dec(x_227); -x_233 = lean_box(0); -x_234 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 7); +x_234 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 1); lean_closure_set(x_234, 0, x_1); -lean_closure_set(x_234, 1, x_233); -lean_closure_set(x_234, 2, x_2); -lean_closure_set(x_234, 3, x_3); -lean_closure_set(x_234, 4, x_4); -lean_closure_set(x_234, 5, x_5); -lean_closure_set(x_234, 6, x_6); -x_235 = l_Lean_Core_withFreshMacroScope___rarg(x_234, x_135, x_8, x_9); -return x_235; +x_235 = l_Lean_Syntax_isNone(x_233); +if (x_235 == 0) +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_1); +x_236 = l_Lean_Elab_Term_CollectPatternVars_collect___closed__22; +x_237 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__9___boxed), 11, 8); +lean_closure_set(x_237, 0, x_233); +lean_closure_set(x_237, 1, x_236); +lean_closure_set(x_237, 2, x_2); +lean_closure_set(x_237, 3, x_3); +lean_closure_set(x_237, 4, x_4); +lean_closure_set(x_237, 5, x_5); +lean_closure_set(x_237, 6, x_6); +lean_closure_set(x_237, 7, x_234); +x_238 = l_Lean_Core_withFreshMacroScope___rarg(x_237, x_139, x_8, x_9); +return x_238; +} +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_234); +lean_dec(x_233); +x_239 = lean_box(0); +x_240 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__8___boxed), 10, 7); +lean_closure_set(x_240, 0, x_1); +lean_closure_set(x_240, 1, x_239); +lean_closure_set(x_240, 2, x_2); +lean_closure_set(x_240, 3, x_3); +lean_closure_set(x_240, 4, x_4); +lean_closure_set(x_240, 5, x_5); +lean_closure_set(x_240, 6, x_6); +x_241 = l_Lean_Core_withFreshMacroScope___rarg(x_240, x_139, x_8, x_9); +return x_241; } } } else { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +lean_object* x_242; lean_object* x_243; lean_dec(x_10); -x_236 = lean_unsigned_to_nat(1u); -x_237 = l_Lean_Syntax_getArg(x_1, x_236); -x_238 = l_Lean_Syntax_getArgs(x_237); -lean_dec(x_237); -x_239 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__10___boxed), 10, 7); -lean_closure_set(x_239, 0, x_238); -lean_closure_set(x_239, 1, x_2); -lean_closure_set(x_239, 2, x_3); -lean_closure_set(x_239, 3, x_4); -lean_closure_set(x_239, 4, x_5); -lean_closure_set(x_239, 5, x_6); -lean_closure_set(x_239, 6, x_1); -x_240 = l_Lean_Core_withFreshMacroScope___rarg(x_239, x_135, x_8, x_9); -return x_240; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_242 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___boxed), 4, 1); +lean_closure_set(x_242, 0, x_1); +x_243 = l_Lean_Core_withFreshMacroScope___rarg(x_242, x_139, x_8, x_9); +return x_243; } } else { -lean_object* x_241; lean_object* x_242; +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_dec(x_10); -x_241 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp), 9, 6); -lean_closure_set(x_241, 0, x_1); -lean_closure_set(x_241, 1, x_2); -lean_closure_set(x_241, 2, x_3); -lean_closure_set(x_241, 3, x_4); -lean_closure_set(x_241, 4, x_5); -lean_closure_set(x_241, 5, x_6); -x_242 = l_Lean_Core_withFreshMacroScope___rarg(x_241, x_135, x_8, x_9); -return x_242; +x_244 = lean_unsigned_to_nat(1u); +x_245 = l_Lean_Syntax_getArg(x_1, x_244); +x_246 = l_Lean_Syntax_getArgs(x_245); +lean_dec(x_245); +x_247 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect___lambda__10___boxed), 10, 7); +lean_closure_set(x_247, 0, x_246); +lean_closure_set(x_247, 1, x_2); +lean_closure_set(x_247, 2, x_3); +lean_closure_set(x_247, 3, x_4); +lean_closure_set(x_247, 4, x_5); +lean_closure_set(x_247, 5, x_6); +lean_closure_set(x_247, 6, x_1); +x_248 = l_Lean_Core_withFreshMacroScope___rarg(x_247, x_139, x_8, x_9); +return x_248; } } else { -lean_object* x_243; lean_object* x_244; +lean_object* x_249; lean_object* x_250; lean_dec(x_10); -x_243 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processId), 9, 6); -lean_closure_set(x_243, 0, x_1); -lean_closure_set(x_243, 1, x_2); -lean_closure_set(x_243, 2, x_3); -lean_closure_set(x_243, 3, x_4); -lean_closure_set(x_243, 4, x_5); -lean_closure_set(x_243, 5, x_6); -x_244 = l_Lean_Core_withFreshMacroScope___rarg(x_243, x_135, x_8, x_9); -return x_244; +x_249 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp), 9, 6); +lean_closure_set(x_249, 0, x_1); +lean_closure_set(x_249, 1, x_2); +lean_closure_set(x_249, 2, x_3); +lean_closure_set(x_249, 3, x_4); +lean_closure_set(x_249, 4, x_5); +lean_closure_set(x_249, 5, x_6); +x_250 = l_Lean_Core_withFreshMacroScope___rarg(x_249, x_139, x_8, x_9); +return x_250; +} +} +else +{ +lean_object* x_251; lean_object* x_252; +lean_dec(x_10); +x_251 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_collect_processId), 9, 6); +lean_closure_set(x_251, 0, x_1); +lean_closure_set(x_251, 1, x_2); +lean_closure_set(x_251, 2, x_3); +lean_closure_set(x_251, 3, x_4); +lean_closure_set(x_251, 4, x_5); +lean_closure_set(x_251, 5, x_6); +x_252 = l_Lean_Core_withFreshMacroScope___rarg(x_251, x_139, x_8, x_9); +return x_252; } } } @@ -8446,6 +8923,44 @@ return x_26; } } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_13 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___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* x_14) { +_start: +{ +uint8_t x_15; lean_object* x_16; +x_15 = lean_unbox(x_3); +lean_dec(x_3); +x_16 = l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2(x_1, x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_16; +} +} LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___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: { @@ -11163,6 +11678,30 @@ l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_PatternVar_0__Lean_ lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__2___closed__2); l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__2___closed__3 = _init_l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__2___closed__3(); lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__2___closed__3); +l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__1 = _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__1); +l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__2 = _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__1___closed__2); +l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__1); +l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__2); +l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__3); +l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___spec__2___closed__4); +l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__1); +l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__2 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___lambda__2___closed__2); +l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__1); +l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__2); +l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__3 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__3); +l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__4 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp___closed__4); l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___lambda__2___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___lambda__2___closed__1); l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___lambda__2___closed__2 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___lambda__2___closed__2(); @@ -11183,16 +11722,10 @@ l_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___closed__3 = _in lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___closed__3); l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__1 = _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__1(); lean_mark_persistent(l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__1); -l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__2 = _init_l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__2(); -lean_mark_persistent(l_panic___at_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___spec__1___closed__2); l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__1 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__1); l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__2 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__2); -l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__3 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__3); -l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__4 = _init_l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_CollectPatternVars_collect_pushNewArg___closed__4); l_Subarray_forInUnsafe_loop___at_Lean_Elab_Term_CollectPatternVars_collect___spec__1___closed__1 = _init_l_Subarray_forInUnsafe_loop___at_Lean_Elab_Term_CollectPatternVars_collect___spec__1___closed__1(); lean_mark_persistent(l_Subarray_forInUnsafe_loop___at_Lean_Elab_Term_CollectPatternVars_collect___spec__1___closed__1); l_Subarray_forInUnsafe_loop___at_Lean_Elab_Term_CollectPatternVars_collect___spec__1___closed__2 = _init_l_Subarray_forInUnsafe_loop___at_Lean_Elab_Term_CollectPatternVars_collect___spec__1___closed__2();