diff --git a/stage0/src/Lean/Elab/InfoTree.lean b/stage0/src/Lean/Elab/InfoTree.lean index d6e0357fa7..68b2935eea 100644 --- a/stage0/src/Lean/Elab/InfoTree.lean +++ b/stage0/src/Lean/Elab/InfoTree.lean @@ -195,8 +195,13 @@ def mkInfoNode (info : Info) : m Unit := do else x -@[inline] def withInfoContext [MonadFinally m] (x : m α) (mkInfo : m Info) : m α := - withInfoContext' x fun _ => return Sum.inl (← mkInfo) +@[inline] def withInfoContext [MonadFinally m] (x : m α) (mkInfo : m Info) : m α := do + if (← getInfoState).enabled then + let treesSaved ← getResetInfoTrees + Prod.fst <$> MonadFinally.tryFinally' x fun _ => do + modifyInfoTrees fun trees => treesSaved.push <| InfoTree.node (← mkInfo) trees + else + x def getInfoHoleIdAssignment? (mvarId : MVarId) : m (Option InfoTree) := return (← getInfoState).assignment[mvarId] @@ -218,12 +223,11 @@ def withMacroExpansionInfo [MonadFinally m] [Monad m] [MonadInfoTree m] [MonadLC @[inline] def withInfoHole [MonadFinally m] [Monad m] [MonadInfoTree m] (mvarId : MVarId) (x : m α) : m α := do if (← getInfoState).enabled then let treesSaved ← getResetInfoTrees - Prod.fst <$> MonadFinally.tryFinally' x fun a? => do - match a? with - | none => modifyInfoTrees fun _ => treesSaved - | some a => modifyInfoState fun s => - assert! s.trees.size == 1 -- if size is not one, then API is being misused. - { s with trees := treesSaved, assignment := s.assignment.insert mvarId s.trees[0] } + Prod.fst <$> MonadFinally.tryFinally' x fun a? => modifyInfoState fun s => + if s.trees.size > 0 then + { s with trees := treesSaved, assignment := s.assignment.insert mvarId s.trees[s.trees.size - 1] } + else + { s with trees := treesSaved } else x diff --git a/stage0/src/Lean/Elab/Match.lean b/stage0/src/Lean/Elab/Match.lean index 15be12da92..f7d8b40d53 100644 --- a/stage0/src/Lean/Elab/Match.lean +++ b/stage0/src/Lean/Elab/Match.lean @@ -58,9 +58,9 @@ private def mkUserNameFor (e : Expr) : TermElabM Name := | Expr.fvar fvarId _ => do pure (← getLocalDecl fvarId).userName | _ => mkFreshBinderName --- `expandNonAtomicDiscrs?` create auxiliary variables with base name `_discr` -private def isAuxDiscrName (n : Name) : Bool := - n.eraseMacroScopes == `_discr +/-- Return true iff `n` is an auxiliary variable created by `expandNonAtomicDiscrs?` -/ +def isAuxDiscrName (n : Name) : Bool := + n.hasMacroScopes && n.eraseMacroScopes == `_discr -- See expandNonAtomicDiscrs? private def elabAtomicDiscr (discr : Syntax) : TermElabM Expr := do diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index a41ce823ad..05539355bd 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -45,9 +45,11 @@ def saveBacktrackableState : TacticM BacktrackableState := do def BacktrackableState.restore (b : BacktrackableState) : TacticM Unit := do setEnv b.env setMCtx b.mctx + let infoState ← getInfoState -- we do not backtrack info state let msgLog ← Term.getMessageLog -- we do not backtrack the message log set b.term Term.setMessageLog msgLog + modifyInfoState fun _ => infoState modify fun s => { s with goals := b.goals } @[inline] protected def tryCatch {α} (x : TacticM α) (h : Exception → TacticM α) : TacticM α := do @@ -81,9 +83,6 @@ def SavedState.restore (s : SavedState) : TacticM Unit := do @[inline] def liftMetaM {α} (x : MetaM α) : TacticM α := liftTermElabM $ Term.liftMetaM x -def ensureHasType (expectedType? : Option Expr) (e : Expr) : TacticM Expr := liftTermElabM $ Term.ensureHasType expectedType? e -def reportUnsolvedGoals (goals : List MVarId) : TacticM Unit := liftTermElabM $ Term.reportUnsolvedGoals goals - protected def getCurrMacroScope : TacticM MacroScope := do pure (← readThe Term.Context).currMacroScope protected def getMainModule : TacticM Name := do pure (← getEnv).mainModule @@ -207,7 +206,7 @@ def withMainMVarContext {α} (x : TacticM α) : TacticM α := do @[inline] def liftMetaMAtMain {α} (x : MVarId → MetaM α) : TacticM α := do let (g, _) ← getMainGoal - withMVarContext g $ liftMetaM $ x g + withMVarContext g <| x g @[inline] def liftMetaTacticAux {α} (tactic : MVarId → MetaM (α × List MVarId)) : TacticM α := do let (g, gs) ← getMainGoal @@ -224,7 +223,7 @@ def withMainMVarContext {α} (x : TacticM α) : TacticM α := do def done : TacticM Unit := do let gs ← getUnsolvedGoals; unless gs.isEmpty do - reportUnsolvedGoals gs + Term.reportUnsolvedGoals gs @[builtinTactic Lean.Parser.Tactic.«done»] def evalDone : Tactic := fun _ => done @@ -354,8 +353,8 @@ where @[builtinTactic Lean.Parser.Tactic.introMatch] def evalIntroMatch : Tactic := fun stx => do let matchAlts := stx[1] - let stxNew ← liftMacroM $ Term.expandMatchAltsIntoMatchTactic stx matchAlts - withMacroExpansion stx stxNew $ evalTactic stxNew + let stxNew ← liftMacroM <| Term.expandMatchAltsIntoMatchTactic stx matchAlts + withMacroExpansion stx stxNew <| evalTactic stxNew private def getIntrosSize : Expr → Nat | Expr.forallE _ _ b _ => getIntrosSize b + 1 @@ -380,7 +379,7 @@ def getNameOfIdent' (id : Syntax) : Name := | _ => throwUnsupportedSyntax def getFVarId (id : Syntax) : TacticM FVarId := withRef id do - let fvar? ← liftTermElabM $ Term.isLocalIdent? id; + let fvar? ← Term.isLocalIdent? id; match fvar? with | some fvar => pure fvar.fvarId! | none => throwError! "unknown variable '{id.getId}'" @@ -450,12 +449,12 @@ private def findTag? (gs : List MVarId) (tag : Name) : TacticM (Option MVarId) : let some g ← findTag? gs tag | throwError "tag not found" let gs := gs.erase g setGoals [g] - let savedTag ← liftM $ getMVarTag g - liftM $ setMVarTag g Name.anonymous + let savedTag ← getMVarTag g + setMVarTag g Name.anonymous try closeUsingOrAdmit tac finally - liftM $ setMVarTag g savedTag + setMVarTag g savedTag done setGoals gs | _ => throwUnsupportedSyntax diff --git a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean index 4a71e6660a..e248cc89e8 100644 --- a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean +++ b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean @@ -23,7 +23,7 @@ def elabTerm (stx : Syntax) (expectedType? : Option Expr) (mayPostpone := false) def elabTermEnsuringType (stx : Syntax) (expectedType? : Option Expr) (mayPostpone := false) : TacticM Expr := do let e ← elabTerm stx expectedType? mayPostpone - ensureHasType expectedType? e + Term.ensureHasType expectedType? e @[builtinTactic «exact»] def evalExact : Tactic := fun stx => match stx with diff --git a/stage0/src/Lean/Elab/Tactic/Match.lean b/stage0/src/Lean/Elab/Tactic/Match.lean index fdd3cebcc6..a91d9c358d 100644 --- a/stage0/src/Lean/Elab/Tactic/Match.lean +++ b/stage0/src/Lean/Elab/Tactic/Match.lean @@ -28,13 +28,13 @@ private def mkAuxiliaryMatchTermAux (parentTag : Name) (matchTac : Syntax) : Sta let holeName := mkIdentFrom holeOrTacticSeq tag let newHole ← `(?$holeName:ident) modify fun s => { s with nextIdx := s.nextIdx + 1} - pure $ alt.setArg 3 newHole + pure <| alt.setArg 3 newHole else withFreshMacroScope do let newHole ← `(?rhs) let newHoleId := newHole[1] let newCase ← `(tactic| case $newHoleId => $holeOrTacticSeq:tacticSeq ) modify fun s => { s with cases := s.cases.push newCase } - pure $ alt.setArg 3 newHole + pure <| alt.setArg 3 newHole let result := matchTac.setKind ``Parser.Term.«match» let result := result.setArg 4 (mkNode ``Parser.Term.matchAlts #[mkNullNode newAlts]) pure result @@ -46,9 +46,9 @@ private def mkAuxiliaryMatchTerm (parentTag : Name) (matchTac : Syntax) : MacroM @[builtinTactic Lean.Parser.Tactic.match] def evalMatch : Tactic := fun stx => do let tag ← getMainTag - let (matchTerm, cases) ← liftMacroM $ mkAuxiliaryMatchTerm tag stx + let (matchTerm, cases) ← liftMacroM <| mkAuxiliaryMatchTerm tag stx let refineMatchTerm ← `(tactic| refine $matchTerm) let stxNew := mkNullNode (#[refineMatchTerm] ++ cases) - withMacroExpansion stx stxNew $ evalTactic stxNew + withMacroExpansion stx stxNew <| evalTactic stxNew end Lean.Elab.Tactic diff --git a/stage0/src/Lean/Parser/Tactic.lean b/stage0/src/Lean/Parser/Tactic.lean index 3650ca41b7..ac76e4b297 100644 --- a/stage0/src/Lean/Parser/Tactic.lean +++ b/stage0/src/Lean/Parser/Tactic.lean @@ -15,6 +15,9 @@ builtin_initialize @[builtinTacticParser] def «unknown» := parser! withPosition (ident >> errorAtSavedPos "unknown tactic" true) @[builtinTacticParser] def nestedTactic := tacticSeqBracketed +/- Auxiliary parser for expanding `match` tactic -/ +@[builtinTacticParser] def eraseAuxDiscrs := parser!:maxPrec "eraseAuxDiscrs!" + def matchRhs := Term.hole <|> Term.syntheticHole <|> tacticSeq def matchAlts := Term.matchAlts (rhsParser := matchRhs) @[builtinTacticParser] def «match» := parser!:leadPrec "match " >> sepBy1 Term.matchDiscr ", " >> Term.optType >> " with " >> matchAlts diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 8421e38abe..8e007e36cf 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -308,6 +308,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Ter lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__36; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_getPatternsVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -788,6 +789,7 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f_match_ lean_object* l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___closed__7; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f_match__8(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(lean_object*); lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -825,7 +827,6 @@ lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1___closed__1 lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__14; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToTerm_returnToTerm___spec__1___boxed(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_hasLiftMethod_match__1(lean_object*); lean_object* l_Lean_Elab_Term_Do_hasTerminalAction___boxed(lean_object*); @@ -843,7 +844,6 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__18; lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__1; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_toDoElem(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f_match__10___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__15; lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_27939_(lean_object*); @@ -63340,7 +63340,7 @@ x_87 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_87, 0, x_86); x_88 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_88, 0, x_87); -x_89 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_85, x_88, x_3, x_4, x_5, x_6, x_7, x_8, x_60); +x_89 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_85, x_88, x_3, x_4, x_5, x_6, x_7, x_8, x_60); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -63374,7 +63374,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_94 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_60); +x_94 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_60); x_95 = !lean_is_exclusive(x_94); if (x_95 == 0) { diff --git a/stage0/stdlib/Lean/Elab/InfoTree.c b/stage0/stdlib/Lean/Elab/InfoTree.c index f2e8d08ef2..24725678fa 100644 --- a/stage0/stdlib/Lean/Elab/InfoTree.c +++ b/stage0/stdlib/Lean/Elab/InfoTree.c @@ -22,7 +22,6 @@ lean_object* lean_io_get_num_heartbeats(lean_object*); lean_object* l_Lean_Elab_InfoTree_substitute_match__1(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Elab_assignInfoHoleId___spec__2___boxed__const__2; extern lean_object* l_Lean_Meta_ppGoal_ppVars___closed__1; -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_withInfoContext___spec__1(lean_object*); lean_object* l_Array_modify___at_Lean_Elab_assignInfoHoleId___spec__4___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_InternalExceptionId_toString___closed__1; lean_object* lean_array_uget(lean_object*, size_t); @@ -61,6 +60,7 @@ extern lean_object* l_instReprSigma___rarg___closed__1; lean_object* l_Lean_Elab_ContextInfo_runMetaM_match__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_format_match__1(lean_object*); lean_object* l_Lean_Elab_getInfoTrees___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_instReprSigma___rarg___closed__7; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -74,6 +74,7 @@ lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__3(lean_object*, lean_obje lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_format(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedFieldInfo___closed__1; +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Elab_withInfoContext_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_options___default; @@ -118,9 +119,9 @@ lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Elab_assignInfoHoleId___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withInfoContext_x27___rarg___lambda__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_format_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__3; lean_object* l_Lean_Elab_TacticInfo_format___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_mctx___default; lean_object* l_Lean_Elab_withInfoHole___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -136,6 +137,7 @@ lean_object* l_Lean_Elab_ContextInfo_runMetaM(lean_object*); lean_object* l_Lean_Elab_TermInfo_format___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_TermInfo_format___lambda__1___closed__1; lean_object* l_Lean_Elab_TacticInfo_format___closed__1; +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Elab_TacticInfo_format___closed__6; lean_object* l_Nat_repr(lean_object*); @@ -148,7 +150,6 @@ extern lean_object* l_instReprSigma___rarg___closed__5; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*); lean_object* l_Lean_Elab_instInhabitedContextInfo___closed__1; -lean_object* l_Lean_Elab_withInfoHole_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_toPPContext(lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoState_assignment___default; lean_object* l_Lean_Elab_TermInfo_format___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -166,7 +167,6 @@ lean_object* l_Lean_Elab_withInfoContext_x27___rarg___lambda__3(lean_object*, le lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Elab_assignInfoHoleId___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange_fmtPos_match__1(lean_object*); lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__1; lean_object* l_Lean_Elab_InfoTree_substitute_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange___closed__1; lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Elab_InfoTree_substitute___spec__7(lean_object*, size_t, lean_object*); @@ -179,9 +179,7 @@ lean_object* l_Lean_Elab_ContextInfo_ppGoals___boxed(lean_object*, lean_object*, size_t l_USize_mul(size_t, size_t); lean_object* l_Lean_Elab_ContextInfo_ppGoals___closed__2; lean_object* l_Lean_Elab_getInfoTrees(lean_object*); -lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getInfoHoleIdAssignment_x3f___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_enableInfoTree___rarg___boxed(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); @@ -218,8 +216,6 @@ lean_object* l_Lean_Elab_MacroExpansionInfo_format___boxed(lean_object*, lean_ob lean_object* l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_format___closed__1; -lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__2; -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_withInfoContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedInfo___closed__1; lean_object* l_Lean_Elab_assignInfoHoleId(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); @@ -278,7 +274,7 @@ extern lean_object* l_Lean_Core_State_ngen___default___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_InfoTree_substitute___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instantiateBetaRevRange___closed__1; lean_object* l_Lean_Elab_getInfoTrees___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_assignInfoHoleId___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedTermInfo___closed__1; lean_object* l_Std_Format_prefixJoin___at_Lean_Elab_ContextInfo_ppGoals___spec__2___boxed(lean_object*, lean_object*); @@ -298,7 +294,7 @@ extern lean_object* l_instInhabitedPUnit; lean_object* l_Lean_Elab_InfoTree_format_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedFieldInfo; lean_object* l_Std_Format_nestD(lean_object*); -lean_object* l_Lean_Elab_withInfoHole_match__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_ppGoals___closed__3; lean_object* l_Array_modifyM___at_Lean_Elab_assignInfoHoleId___spec__5___boxed(lean_object*, lean_object*, lean_object*); @@ -4302,48 +4298,41 @@ lean_dec(x_7); return x_8; } } -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_withInfoContext___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_1, 1); -lean_inc(x_7); -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -lean_inc(x_7); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext_x27___rarg___lambda__6___boxed), 7, 6); -lean_closure_set(x_9, 0, x_5); -lean_closure_set(x_9, 1, x_1); -lean_closure_set(x_9, 2, x_2); -lean_closure_set(x_9, 3, x_6); -lean_closure_set(x_9, 4, x_7); -lean_closure_set(x_9, 5, x_4); -x_10 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_9); -return x_10; -} -} -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_withInfoContext___spec__1(lean_object* x_1) { -_start: +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) { -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_withInfoContext___spec__1___rarg), 6, 0); -return x_2; +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_5); +x_7 = l_Std_PersistentArray_push___rarg(x_2, x_6); +lean_ctor_set(x_3, 1, x_7); +return x_3; } -} -lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: +else { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); +uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); +x_9 = lean_ctor_get(x_3, 0); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); +lean_inc(x_9); lean_dec(x_3); -x_5 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_5, 0, x_2); -x_6 = lean_apply_2(x_4, lean_box(0), x_5); -return x_6; +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_Std_PersistentArray_push___rarg(x_2, x_11); +x_13 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set_uint8(x_13, sizeof(void*)*2, x_8); +return x_13; +} } } lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -4352,22 +4341,100 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__1), 2, 1); -lean_closure_set(x_5, 0, x_1); -x_6 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_2, x_5); +lean_dec(x_1); +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__1), 3, 2); +lean_closure_set(x_5, 0, x_3); +lean_closure_set(x_5, 1, x_2); +x_6 = lean_apply_1(x_4, x_5); return x_6; } } +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__2), 3, 2); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_2); +x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +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; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__3___boxed), 5, 4); +lean_closure_set(x_11, 0, x_2); +lean_closure_set(x_11, 1, x_7); +lean_closure_set(x_11, 2, x_3); +lean_closure_set(x_11, 3, x_4); +x_12 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_11); +x_13 = l_tryFinally___rarg___closed__1; +x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_12); +return x_14; +} +} +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +if (x_8 == 0) +{ +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_1; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_inc(x_3); +lean_inc(x_2); +x_9 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___rarg(x_2, x_3); +lean_inc(x_4); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__4), 7, 6); +lean_closure_set(x_10, 0, x_2); +lean_closure_set(x_10, 1, x_3); +lean_closure_set(x_10, 2, x_4); +lean_closure_set(x_10, 3, x_5); +lean_closure_set(x_10, 4, x_6); +lean_closure_set(x_10, 5, x_1); +x_11 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_9, x_10); +return x_11; +} +} +} lean_object* l_Lean_Elab_withInfoContext___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; -lean_inc(x_1); -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__2___boxed), 3, 2); -lean_closure_set(x_7, 0, x_1); -lean_closure_set(x_7, 1, x_6); -x_8 = l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_withInfoContext___spec__1___rarg(x_1, x_2, lean_box(0), x_4, x_5, x_7); -return x_8; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +lean_inc(x_7); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__5___boxed), 7, 6); +lean_closure_set(x_9, 0, x_5); +lean_closure_set(x_9, 1, x_1); +lean_closure_set(x_9, 2, x_2); +lean_closure_set(x_9, 3, x_7); +lean_closure_set(x_9, 4, x_6); +lean_closure_set(x_9, 5, x_4); +x_10 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_9); +return x_10; } } lean_object* l_Lean_Elab_withInfoContext(lean_object* x_1) { @@ -4378,13 +4445,22 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg), 6, 0); return x_2; } } -lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_4; -x_4 = l_Lean_Elab_withInfoContext___rarg___lambda__2(x_1, x_2, x_3); -lean_dec(x_3); -return x_4; +lean_object* x_6; +x_6 = l_Lean_Elab_withInfoContext___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +return x_6; +} +} +lean_object* l_Lean_Elab_withInfoContext___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_withInfoContext___rarg___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_7); +return x_8; } } lean_object* l_Lean_Elab_getInfoHoleIdAssignment_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -4974,7 +5050,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_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__3; x_2 = l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__4; -x_3 = lean_unsigned_to_nat(205u); +x_3 = lean_unsigned_to_nat(210u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -5128,7 +5204,7 @@ return x_9; lean_object* l_Lean_Elab_withMacroExpansionInfo___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_2, 1); lean_inc(x_8); lean_inc(x_2); @@ -5136,9 +5212,20 @@ x_9 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___rarg___lam lean_closure_set(x_9, 0, x_2); lean_closure_set(x_9, 1, x_5); lean_closure_set(x_9, 2, x_6); +lean_inc(x_8); x_10 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_4, x_9); -x_11 = l_Lean_Elab_withInfoContext___rarg(x_2, x_3, lean_box(0), x_1, x_7, x_10); -return x_11; +x_11 = lean_ctor_get(x_3, 0); +lean_inc(x_11); +lean_inc(x_8); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___rarg___lambda__5___boxed), 7, 6); +lean_closure_set(x_12, 0, x_7); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_3); +lean_closure_set(x_12, 3, x_8); +lean_closure_set(x_12, 4, x_10); +lean_closure_set(x_12, 5, x_1); +x_13 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_11, x_12); +return x_13; } } lean_object* l_Lean_Elab_withMacroExpansionInfo(lean_object* x_1, lean_object* x_2) { @@ -5149,37 +5236,6 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___rarg), 7, return x_3; } } -lean_object* l_Lean_Elab_withInfoHole_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_3); -x_4 = lean_box(0); -x_5 = lean_apply_1(x_2, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_1(x_3, x_6); -return x_7; -} -} -} -lean_object* l_Lean_Elab_withInfoHole_match__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoHole_match__1___rarg), 3, 0); -return x_3; -} -} lean_object* l_Std_PersistentArray_getAux___at_Lean_Elab_withInfoHole___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { _start: { @@ -5256,45 +5312,6 @@ return x_12; } } } -static lean_object* _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("s.trees.size == 1 -- if size is not one, then API is being misused.\n "); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Expr_instantiateBetaRevRange___closed__1; -x_2 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Lean.Elab.withInfoHole"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___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_assignInfoHoleId___rarg___lambda__2___closed__3; -x_2 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__3; -x_3 = lean_unsigned_to_nat(225u); -x_4 = lean_unsigned_to_nat(8u); -x_5 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__2; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -5307,70 +5324,69 @@ x_5 = lean_ctor_get(x_3, 0); x_6 = lean_ctor_get(x_3, 1); x_7 = lean_ctor_get(x_6, 2); lean_inc(x_7); -x_8 = lean_unsigned_to_nat(1u); -x_9 = lean_nat_dec_eq(x_7, x_8); -lean_dec(x_7); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -lean_free_object(x_3); +lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); lean_dec(x_2); -lean_dec(x_1); -x_10 = l_Lean_Elab_instInhabitedInfoState; -x_11 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_12 = lean_panic_fn(x_10, x_11); -return x_12; +lean_ctor_set(x_3, 1, x_1); +return x_3; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_6, x_13); -x_15 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_5, x_1, x_14); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 0, x_15); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_7, x_10); +lean_dec(x_7); +x_12 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_6, x_11); +lean_dec(x_11); +x_13 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_5, x_2, x_12); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 0, x_13); return x_3; } } else { -uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_16 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); -x_17 = lean_ctor_get(x_3, 0); -x_18 = lean_ctor_get(x_3, 1); -lean_inc(x_18); -lean_inc(x_17); +uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_14 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); +x_15 = lean_ctor_get(x_3, 0); +x_16 = lean_ctor_get(x_3, 1); +lean_inc(x_16); +lean_inc(x_15); lean_dec(x_3); -x_19 = lean_ctor_get(x_18, 2); -lean_inc(x_19); -x_20 = lean_unsigned_to_nat(1u); -x_21 = lean_nat_dec_eq(x_19, x_20); -lean_dec(x_19); -if (x_21 == 0) +x_17 = lean_ctor_get(x_16, 2); +lean_inc(x_17); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_lt(x_18, x_17); +if (x_19 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_18); +lean_object* x_20; lean_dec(x_17); +lean_dec(x_16); lean_dec(x_2); -lean_dec(x_1); -x_22 = l_Lean_Elab_instInhabitedInfoState; -x_23 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_24 = lean_panic_fn(x_22, x_23); -return x_24; +x_20 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_20, 0, x_15); +lean_ctor_set(x_20, 1, x_1); +lean_ctor_set_uint8(x_20, sizeof(void*)*2, x_14); +return x_20; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_18, x_25); -x_27 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_17, x_1, x_26); -x_28 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_2); -lean_ctor_set_uint8(x_28, sizeof(void*)*2, x_16); -return x_28; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_sub(x_17, x_21); +lean_dec(x_17); +x_23 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_16, x_22); +lean_dec(x_22); +x_24 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_15, x_2, x_23); +x_25 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_1); +lean_ctor_set_uint8(x_25, sizeof(void*)*2, x_14); +return x_25; } } } @@ -5378,31 +5394,16 @@ return x_28; lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_4) == 0) -{ lean_object* x_5; lean_object* x_6; lean_object* x_7; -lean_dec(x_3); x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); lean_dec(x_1); -x_6 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext_x27___rarg___lambda__1), 2, 1); +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoHole___rarg___lambda__1), 3, 2); lean_closure_set(x_6, 0, x_2); +lean_closure_set(x_6, 1, x_3); x_7 = lean_apply_1(x_5, x_6); return x_7; } -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -lean_dec(x_1); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoHole___rarg___lambda__1), 3, 2); -lean_closure_set(x_9, 0, x_3); -lean_closure_set(x_9, 1, x_2); -x_10 = lean_apply_1(x_8, x_9); -return x_10; -} -} } lean_object* l_Lean_Elab_withInfoHole___rarg___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) { _start: @@ -5769,14 +5770,6 @@ l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__4 = _init_l_Lean_Elab_ lean_mark_persistent(l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__4); l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__5 = _init_l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__5(); lean_mark_persistent(l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__5); -l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__1 = _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__1); -l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__2 = _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__2); -l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__3 = _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__3); -l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4 = _init_l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/LetRec.c b/stage0/stdlib/Lean/Elab/LetRec.c index fef4a15f51..09bbd15449 100644 --- a/stage0/stdlib/Lean/Elab/LetRec.c +++ b/stage0/stdlib/Lean/Elab/LetRec.c @@ -71,6 +71,7 @@ lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDocString___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toAttributeKind___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___closed__1; lean_object* l_Lean_Elab_toAttributeKind___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -154,11 +155,10 @@ extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__19___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(lean_object*); lean_object* l_Array_mapIdxM_map_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__19___lambda__3___closed__1; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1503,7 +1503,7 @@ x_75 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_75, 0, x_74); x_76 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_76, 0, x_75); -x_77 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_73, x_76, x_2, x_3, x_4, x_5, x_6, x_7, x_50); +x_77 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_73, x_76, x_2, x_3, x_4, x_5, x_6, x_7, x_50); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -1537,7 +1537,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_50); +x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_50); x_83 = !lean_is_exclusive(x_82); if (x_83 == 0) { diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index b8caffcfe4..f24fcac515 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -136,6 +136,7 @@ lean_object* lean_local_ctx_erase(lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Elab_Term_ToDepElimPattern_main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; lean_object* l_Lean_mkMVar(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__3; extern lean_object* l_Array_empty___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___rarg___closed__2; lean_object* lean_environment_find(lean_object*, lean_object*); @@ -147,17 +148,16 @@ extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAs lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__8; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__3___closed__3; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__3; lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__5; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__17; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___spec__1___lambda__1___closed__6; extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___lambda__1___boxed__const__1; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___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_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__5; lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1; lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -218,6 +218,7 @@ lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___closed__2; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___closed__1; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__4; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -233,7 +234,6 @@ extern lean_object* l_Lean_rootNamespace___closed__2; lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_instInhabitedContext; lean_object* l_Lean_throwError___at_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1___closed__2; @@ -259,6 +259,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_Ct lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_main___spec__3___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_finalizePatternDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isAuxDiscrName___closed__2; lean_object* l_Lean_Elab_Term_getPatternsVars_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_13855____closed__9; @@ -282,7 +283,6 @@ lean_object* l_Array_foldlMUnsafe___at_Array_foldl___spec__1___rarg(lean_object* 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*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__21; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_getPatternsVars___spec__3___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__4; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getDiscrs(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_match__1(lean_object*); @@ -295,7 +295,9 @@ lean_object* l_Lean_Elab_Term_withDepElimPatterns___rarg___boxed__const__1; lean_object* l_Lean_Syntax_mkApp(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor_match__2(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__4; lean_object* l_Lean_LocalDecl_value(lean_object*); +uint8_t l_Lean_Name_hasMacroScopes(lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop_match__1(lean_object*); @@ -346,10 +348,13 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorApp_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toExpr_visit(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isAuxDiscrName___boxed(lean_object*); extern lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax___closed__1; +uint8_t l_Lean_Elab_Term_isAuxDiscrName(lean_object*); extern lean_object* l_Lean_strLitKind; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__1; lean_object* l_Lean_Elab_Term_ToDepElimPattern_main_match__4(lean_object*); +lean_object* l_Lean_Elab_Term_isAuxDiscrName___closed__1; lean_object* l_Lean_Elab_Term_withDepElimPatterns___rarg___closed__2; 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_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___at_Lean_Elab_Term_CollectPatternVars_collect___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -400,7 +405,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getDiscrs___boxed(lea lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__11; lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___lambda__1___boxed__const__1; -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1; lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_forInUnsafe_loop___at_Lean_pushScope___spec__1___rarg___lambda__1___closed__1; @@ -413,6 +417,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs extern lean_object* l_Lean_Syntax_getHead_x3f___closed__4; extern lean_object* l_myMacro____x40_Init_Notation___hyg_14424____closed__1; lean_object* l_Lean_Elab_Term_inaccessible_x3f___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchOptType(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -434,6 +439,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_finalizePatternDecls_match__2(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processCtorAppAux_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_2191____closed__2; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___spec__1___lambda__1___closed__4; @@ -448,7 +454,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscr lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__1; lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___closed__10; extern lean_object* l___private_Init_Meta_0__Lean_quoteName___closed__2; -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtorApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_getPatternsVars___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -474,7 +479,6 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ lean_object* l_Array_reverse___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___lambda__2___closed__4; lean_object* l_Lean_Elab_Term_ToDepElimPattern_State_found___default; -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__1; extern lean_object* l_Lean_KernelException_toMessageData___closed__15; uint8_t l_Array_isEmpty___rarg(lean_object*); extern lean_object* l_Lean_instInhabitedLocalDecl; @@ -489,7 +493,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandMacrosInPatterns__ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_inaccessible_x3f(lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3f_match__1(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -502,9 +505,9 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_pr lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_pushNewArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_List_elem___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMVarSyntaxMVarId___boxed(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(lean_object*); lean_object* l_Lean_Elab_Term_finalizePatternDecls_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___closed__1; @@ -526,6 +529,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_alre lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__1; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___closed__4; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(lean_object*); extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); @@ -543,17 +547,16 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_tryPostponeIfDiscrTypeIsMVar___spec__1___closed__1; extern lean_object* l_Lean_Elab_Term_termElabAttribute; extern lean_object* l_Lean_Syntax_getHead_x3f___closed__3; +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__1; lean_object* l_Lean_Elab_Term_instToStringPatternVar(lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandMacrosInPatterns___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_processCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_finalizePatternDecls___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1___closed__3; -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -698,7 +701,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withElaboratedLHS_mat uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___boxed(lean_object*); lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_1398____closed__8; lean_object* l_List_forIn_loop___at_Lean_Elab_Term_reportMatcherResultErrors___spec__1___closed__2; @@ -710,7 +712,6 @@ lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_processVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isPatternVar_match__3(lean_object*); lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1; uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_elabMatchDefault___closed__4; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_mkMVarSyntax___rarg___boxed(lean_object*, lean_object*); @@ -833,10 +834,10 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux_match__3 lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__4___lambda__1___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_mkBinding___spec__1(size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_8715_(lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_8718_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489_(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_CtorApp_Context_paramDeclIdx___default; -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993_(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportMatcherResultErrors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunk(lean_object*); @@ -2133,7 +2134,7 @@ lean_dec(x_3); return x_9; } } -static lean_object* _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_isAuxDiscrName___closed__1() { _start: { lean_object* x_1; @@ -2141,32 +2142,44 @@ x_1 = lean_mk_string("_discr"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_isAuxDiscrName___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1; +x_2 = l_Lean_Elab_Term_isAuxDiscrName___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -uint8_t l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(lean_object* x_1) { +uint8_t l_Lean_Elab_Term_isAuxDiscrName(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = lean_erase_macro_scopes(x_1); -x_3 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2; -x_4 = lean_name_eq(x_2, x_3); -lean_dec(x_2); -return x_4; +uint8_t x_2; +x_2 = l_Lean_Name_hasMacroScopes(x_1); +if (x_2 == 0) +{ +uint8_t x_3; +lean_dec(x_1); +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_erase_macro_scopes(x_1); +x_5 = l_Lean_Elab_Term_isAuxDiscrName___closed__2; +x_6 = lean_name_eq(x_4, x_5); +lean_dec(x_4); +return x_6; } } -lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___boxed(lean_object* x_1) { +} +lean_object* l_Lean_Elab_Term_isAuxDiscrName___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(x_1); +x_2 = l_Lean_Elab_Term_isAuxDiscrName(x_1); x_3 = lean_box(x_2); return x_3; } @@ -2289,7 +2302,7 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_19, 0); x_22 = l_Lean_LocalDecl_userName(x_21); -x_23 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(x_22); +x_23 = l_Lean_Elab_Term_isAuxDiscrName(x_22); if (x_23 == 0) { lean_dec(x_21); @@ -2315,7 +2328,7 @@ lean_inc(x_26); lean_inc(x_25); lean_dec(x_19); x_27 = l_Lean_LocalDecl_userName(x_25); -x_28 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(x_27); +x_28 = l_Lean_Elab_Term_isAuxDiscrName(x_27); if (x_28 == 0) { lean_object* x_29; @@ -3860,7 +3873,7 @@ return x_11; } } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__1() { _start: { lean_object* x_1; @@ -3868,21 +3881,21 @@ x_1 = lean_mk_string("MVarWithIdKind"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2; x_3 = l_Lean_Parser_registerBuiltinNodeKind(x_2, x_1); return x_3; } @@ -3903,7 +3916,7 @@ lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); x_8 = l_Lean_mkOptionalNode___closed__2; x_9 = lean_array_push(x_8, x_7); -x_10 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2; +x_10 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2; x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -3924,7 +3937,7 @@ lean_ctor_set(x_15, 0, x_12); lean_ctor_set(x_15, 1, x_14); x_16 = l_Lean_mkOptionalNode___closed__2; x_17 = lean_array_push(x_16, x_15); -x_18 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2; +x_18 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2; x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); @@ -4026,7 +4039,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2; x_4 = l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -15732,7 +15745,7 @@ x_71 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_71, 0, x_70); x_72 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_72, 0, x_71); -x_73 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_69, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_46); +x_73 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_69, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_46); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -15766,7 +15779,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_78 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_46); +x_78 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_46); x_79 = !lean_is_exclusive(x_78); if (x_79 == 0) { @@ -22322,7 +22335,7 @@ lean_dec(x_5); return x_12; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -22332,7 +22345,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__2() { _start: { lean_object* x_1; @@ -22340,17 +22353,17 @@ x_1 = lean_mk_string("ignoreUnusedAlts"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__2; +x_1 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__4() { _start: { lean_object* x_1; @@ -22358,13 +22371,13 @@ x_1 = lean_mk_string("if true, do not generate error if an alternative is not us return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__5() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__5() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 0; x_2 = l_Lean_instInhabitedParserDescr___closed__1; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__4; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__4; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -22373,12 +22386,12 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__3; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__5; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__3; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__5; x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_4____spec__1(x_2, x_3, x_1); return x_4; } @@ -26540,7 +26553,7 @@ x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); x_27 = lean_array_get_size(x_20); -x_28 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1; +x_28 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1; lean_inc(x_5); x_29 = l_Lean_Elab_Term_mkAuxName(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_26); if (lean_obj_tag(x_29) == 0) @@ -27350,7 +27363,7 @@ static lean_object* _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNo _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1; +x_1 = l_Lean_Elab_Term_isAuxDiscrName___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -27359,7 +27372,7 @@ static lean_object* _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1; +x_1 = l_Lean_Elab_Term_isAuxDiscrName___closed__1; x_2 = lean_unsigned_to_nat(0u); x_3 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); @@ -27479,7 +27492,7 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); lean_dec(x_40); -x_43 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2; +x_43 = l_Lean_Elab_Term_isAuxDiscrName___closed__2; x_44 = l_Lean_addMacroScope(x_41, x_43, x_38); x_45 = lean_box(0); x_46 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___closed__2; @@ -27489,7 +27502,7 @@ lean_ctor_set(x_47, 1, x_46); lean_ctor_set(x_47, 2, x_44); lean_ctor_set(x_47, 3, x_45); x_48 = l_Lean_Syntax_getId(x_47); -x_49 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(x_48); +x_49 = l_Lean_Elab_Term_isAuxDiscrName(x_48); if (x_49 == 0) { lean_object* x_50; lean_object* x_51; uint8_t x_52; @@ -27580,7 +27593,7 @@ lean_inc(x_76); x_77 = lean_ctor_get(x_75, 1); lean_inc(x_77); lean_dec(x_75); -x_78 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2; +x_78 = l_Lean_Elab_Term_isAuxDiscrName___closed__2; x_79 = l_Lean_addMacroScope(x_76, x_78, x_73); x_80 = lean_box(0); x_81 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___closed__2; @@ -27590,7 +27603,7 @@ lean_ctor_set(x_82, 1, x_81); lean_ctor_set(x_82, 2, x_79); lean_ctor_set(x_82, 3, x_80); x_83 = l_Lean_Syntax_getId(x_82); -x_84 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(x_83); +x_84 = l_Lean_Elab_Term_isAuxDiscrName(x_83); if (x_84 == 0) { lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; @@ -27720,7 +27733,7 @@ lean_inc(x_120); x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); lean_dec(x_119); -x_122 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2; +x_122 = l_Lean_Elab_Term_isAuxDiscrName___closed__2; x_123 = l_Lean_addMacroScope(x_120, x_122, x_117); x_124 = lean_box(0); x_125 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___closed__2; @@ -27730,7 +27743,7 @@ lean_ctor_set(x_126, 1, x_125); lean_ctor_set(x_126, 2, x_123); lean_ctor_set(x_126, 3, x_124); x_127 = l_Lean_Syntax_getId(x_126); -x_128 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName(x_127); +x_128 = l_Lean_Elab_Term_isAuxDiscrName(x_127); if (x_128 == 0) { lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; @@ -30533,7 +30546,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_8715_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_8718_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -30705,10 +30718,10 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDi lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___spec__1___lambda__1___closed__7); l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___closed__1 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabDiscrsWitMatchType___closed__1); -l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__1); -l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_isAuxDiscrName___closed__2); +l_Lean_Elab_Term_isAuxDiscrName___closed__1 = _init_l_Lean_Elab_Term_isAuxDiscrName___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_isAuxDiscrName___closed__1); +l_Lean_Elab_Term_isAuxDiscrName___closed__2 = _init_l_Lean_Elab_Term_isAuxDiscrName___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_isAuxDiscrName___closed__2); l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___closed__1 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___closed__1); l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___closed__2 = _init_l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabAtomicDiscr___closed__2(); @@ -30729,11 +30742,11 @@ l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___closed__1 = _init_l lean_mark_persistent(l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___closed__1); l_Lean_Elab_Term_instToStringPatternVar___closed__1 = _init_l_Lean_Elab_Term_instToStringPatternVar___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_instToStringPatternVar___closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486____closed__2); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1486_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489____closed__2); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1489_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1(); @@ -30938,17 +30951,17 @@ l_Lean_Elab_Term_elabMatchAltView___closed__1 = _init_l_Lean_Elab_Term_elabMatch lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__1); l_Lean_Elab_Term_elabMatchAltView___closed__2 = _init_l_Lean_Elab_Term_elabMatchAltView___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__4); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__5); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__4); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__5 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__5); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_match_ignoreUnusedAlts = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_match_ignoreUnusedAlts); @@ -31032,7 +31045,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabMatch(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_8715_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_8718_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_elabNoMatch___closed__1 = _init_l_Lean_Elab_Term_elabNoMatch___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 351cad973f..f52db5c140 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -179,6 +179,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsA lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(size_t, size_t, lean_object*); extern lean_object* l_Lean_Parser_Command_example___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -200,7 +201,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_mat lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___lambda__2___boxed(lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTypeWithAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__1; @@ -399,6 +399,7 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ lean_object* l_Array_reverse___rarg(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames___boxed(lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; @@ -444,6 +445,7 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___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_expr_update_proj(lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -459,10 +461,8 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_Fix lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___closed__1; size_t l_USize_mod(size_t, size_t); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_localDecls___default; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap(lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__4(size_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7265,7 +7265,7 @@ x_48 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_48, 0, x_47); x_49 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_49, 0, x_48); -x_50 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_46, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_50 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_46, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_18); lean_dec(x_46); return x_50; } @@ -7274,7 +7274,7 @@ else lean_object* x_51; lean_dec(x_7); lean_dec(x_3); -x_51 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_18); +x_51 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_18); return x_51; } } @@ -9300,7 +9300,7 @@ x_11 = lean_ctor_get(x_7, 3); x_12 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); lean_ctor_set(x_7, 3, x_12); -x_13 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); return x_13; } @@ -9335,7 +9335,7 @@ lean_ctor_set(x_23, 4, x_18); lean_ctor_set(x_23, 5, x_19); lean_ctor_set(x_23, 6, x_20); lean_ctor_set(x_23, 7, x_21); -x_24 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); +x_24 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); lean_dec(x_23); return x_24; } diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index 6d4103099c..2f2a17db66 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -273,6 +273,7 @@ extern lean_object* l_Std_Format_paren___closed__2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__6; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_ReaderT_pure___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__2(lean_object*); extern lean_object* l_instReprProd___rarg___closed__1; lean_object* l_Lean_Elab_Term_Quotation_getPatternsVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -667,7 +668,6 @@ extern lean_object* l_term_x2d_____closed__3; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__25; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__10___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__6___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instToMessageDataOption___rarg___closed__3; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__10___closed__5; extern lean_object* l_Lean_Parser_Term_funBinder_quot___elambda__1___closed__3; @@ -6282,7 +6282,7 @@ lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); x_122 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__5___closed__12; -x_123 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_9, x_122, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_123 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_9, x_122, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_15); lean_dec(x_13); lean_dec(x_12); @@ -6347,7 +6347,7 @@ x_140 = l_Lean_KernelException_toMessageData___closed__3; x_141 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_141, 0, x_139); lean_ctor_set(x_141, 1, x_140); -x_142 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_9, x_141, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_142 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_9, x_141, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_15); lean_dec(x_13); lean_dec(x_12); @@ -7244,7 +7244,7 @@ x_534 = l_Lean_KernelException_toMessageData___closed__3; x_535 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_535, 0, x_533); lean_ctor_set(x_535, 1, x_534); -x_536 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_9, x_535, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_536 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_9, x_535, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_15); lean_dec(x_13); lean_dec(x_12); @@ -7281,7 +7281,7 @@ x_544 = l_Lean_KernelException_toMessageData___closed__3; x_545 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_545, 0, x_543); lean_ctor_set(x_545, 1, x_544); -x_546 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_9, x_545, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_546 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_9, x_545, x_10, x_11, x_12, x_13, x_14, x_15, x_16); lean_dec(x_15); lean_dec(x_13); lean_dec(x_12); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 086459063c..6a0f9c6401 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -192,6 +192,7 @@ lean_object* l_Lean_Elab_Command_accLevelAtCtor(lean_object*, lean_object*, lean lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5658____closed__20; lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2; extern lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVars___spec__1___closed__4; extern lean_object* l_Lean_Parser_Command_example___elambda__1___closed__2; @@ -448,6 +449,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelPa lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___lambda__4(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*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabStructure___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents(lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -467,14 +469,12 @@ lean_object* l_Lean_Meta_mkProjection(lean_object*, lean_object*, lean_object*, lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___boxed__const__1; lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Array_filterM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1333,7 +1333,7 @@ x_75 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_75, 0, x_74); x_76 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_76, 0, x_75); -x_77 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_73, x_76, x_2, x_3, x_4, x_5, x_6, x_7, x_50); +x_77 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_73, x_76, x_2, x_3, x_4, x_5, x_6, x_7, x_50); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); @@ -1367,7 +1367,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_50); +x_82 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_50); x_83 = !lean_is_exclusive(x_82); if (x_83 == 0) { diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index 38ffa4939e..7ae3aa545e 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -85,7 +85,6 @@ lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_E lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances_match__4(lean_object*); extern lean_object* l_instReprBool___closed__2; lean_object* l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__5; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___spec__1___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*); @@ -165,9 +164,9 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTe lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___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*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_liftTacticElabM(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1; @@ -207,6 +206,7 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePe extern lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__1; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withSynthesize(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); @@ -232,7 +232,6 @@ lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, uint8_t, lean_ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___closed__1; lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_instInhabitedInfoState; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___boxed(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances_match__3(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -245,7 +244,6 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUs lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateMVarDeclMVars(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_fmt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__2(uint8_t); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_visit_match__3___rarg(lean_object*, lean_object*, lean_object*); @@ -288,6 +286,7 @@ lean_object* l_Lean_Elab_Term_withSynthesize___rarg___boxed(lean_object*, lean_o lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar_match__1(lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_liftTacticElabM___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: @@ -1163,347 +1162,360 @@ x_47 = lean_ctor_get(x_42, 0); x_48 = lean_ctor_get(x_42, 1); x_49 = lean_ctor_get(x_48, 2); lean_inc(x_49); -x_50 = lean_unsigned_to_nat(1u); -x_51 = lean_nat_dec_eq(x_49, x_50); -lean_dec(x_49); +x_50 = lean_unsigned_to_nat(0u); +x_51 = lean_nat_dec_lt(x_50, x_49); if (x_51 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_free_object(x_42); +lean_object* x_52; uint8_t x_53; +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_33); lean_dec(x_1); -x_52 = l_Lean_Elab_instInhabitedInfoState; -x_53 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_54 = lean_panic_fn(x_52, x_53); -lean_ctor_set(x_41, 5, x_54); -x_55 = lean_st_ref_set(x_4, x_41, x_43); +lean_ctor_set(x_42, 1, x_33); +x_52 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_52, 0); +lean_dec(x_54); +x_55 = lean_box(0); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_36); +lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_52, 0, x_56); +x_10 = x_52; +goto block_22; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_52, 1); +lean_inc(x_57); +lean_dec(x_52); x_58 = lean_box(0); x_59 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_59, 0, x_36); lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_55, 0, x_59); -x_10 = x_55; -goto block_22; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_60 = lean_ctor_get(x_55, 1); -lean_inc(x_60); -lean_dec(x_55); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_36); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_60); -x_10 = x_63; +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_57); +x_10 = x_60; goto block_22; } } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_64 = lean_unsigned_to_nat(0u); -x_65 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_48, x_64); -x_66 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_47, x_1, x_65); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_61 = lean_unsigned_to_nat(1u); +x_62 = lean_nat_sub(x_49, x_61); +lean_dec(x_49); +x_63 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_48, x_62); +lean_dec(x_62); +x_64 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_47, x_1, x_63); lean_ctor_set(x_42, 1, x_33); -lean_ctor_set(x_42, 0, x_66); -x_67 = lean_st_ref_set(x_4, x_41, x_43); +lean_ctor_set(x_42, 0, x_64); +x_65 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = lean_box(0); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_36); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_67, 0, x_71); -x_10 = x_67; -goto block_22; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_65, 0); lean_dec(x_67); -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_36); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_72); -x_10 = x_75; +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_36); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set(x_65, 0, x_69); +x_10 = x_65; +goto block_22; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +lean_dec(x_65); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_36); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_70); +x_10 = x_73; goto block_22; } } } else { -uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_76 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); -x_77 = lean_ctor_get(x_42, 0); -x_78 = lean_ctor_get(x_42, 1); -lean_inc(x_78); -lean_inc(x_77); +uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_74 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); +x_75 = lean_ctor_get(x_42, 0); +x_76 = lean_ctor_get(x_42, 1); +lean_inc(x_76); +lean_inc(x_75); lean_dec(x_42); -x_79 = lean_ctor_get(x_78, 2); -lean_inc(x_79); -x_80 = lean_unsigned_to_nat(1u); -x_81 = lean_nat_dec_eq(x_79, x_80); -lean_dec(x_79); -if (x_81 == 0) +x_77 = lean_ctor_get(x_76, 2); +lean_inc(x_77); +x_78 = lean_unsigned_to_nat(0u); +x_79 = lean_nat_dec_lt(x_78, x_77); +if (x_79 == 0) { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_78); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_dec(x_77); -lean_dec(x_33); +lean_dec(x_76); lean_dec(x_1); -x_82 = l_Lean_Elab_instInhabitedInfoState; -x_83 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_84 = lean_panic_fn(x_82, x_83); -lean_ctor_set(x_41, 5, x_84); -x_85 = lean_st_ref_set(x_4, x_41, x_43); +x_80 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_80, 0, x_75); +lean_ctor_set(x_80, 1, x_33); +lean_ctor_set_uint8(x_80, sizeof(void*)*2, x_74); +lean_ctor_set(x_41, 5, x_80); +x_81 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_87 = x_85; +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_83 = x_81; } else { - lean_dec_ref(x_85); - x_87 = lean_box(0); + lean_dec_ref(x_81); + x_83 = lean_box(0); } -x_88 = lean_box(0); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_36); -lean_ctor_set(x_89, 1, x_88); -if (lean_is_scalar(x_87)) { - x_90 = lean_alloc_ctor(0, 2, 0); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_36); +lean_ctor_set(x_85, 1, x_84); +if (lean_is_scalar(x_83)) { + x_86 = lean_alloc_ctor(0, 2, 0); } else { - x_90 = x_87; + x_86 = x_83; } -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_86); -x_10 = x_90; +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_82); +x_10 = x_86; goto block_22; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_91 = lean_unsigned_to_nat(0u); -x_92 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_78, x_91); -x_93 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_77, x_1, x_92); -x_94 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_33); -lean_ctor_set_uint8(x_94, sizeof(void*)*2, x_76); -lean_ctor_set(x_41, 5, x_94); -x_95 = lean_st_ref_set(x_4, x_41, x_43); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_87 = lean_unsigned_to_nat(1u); +x_88 = lean_nat_sub(x_77, x_87); +lean_dec(x_77); +x_89 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_76, x_88); +lean_dec(x_88); +x_90 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_75, x_1, x_89); +x_91 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_33); +lean_ctor_set_uint8(x_91, sizeof(void*)*2, x_74); +lean_ctor_set(x_41, 5, x_91); +x_92 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_97 = x_95; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_94 = x_92; } else { - lean_dec_ref(x_95); - x_97 = lean_box(0); + lean_dec_ref(x_92); + x_94 = lean_box(0); } -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_36); -lean_ctor_set(x_99, 1, x_98); -if (lean_is_scalar(x_97)) { - x_100 = lean_alloc_ctor(0, 2, 0); +x_95 = lean_box(0); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_36); +lean_ctor_set(x_96, 1, x_95); +if (lean_is_scalar(x_94)) { + x_97 = lean_alloc_ctor(0, 2, 0); } else { - x_100 = x_97; + x_97 = x_94; } -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_96); -x_10 = x_100; +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_93); +x_10 = x_97; goto block_22; } } } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_101 = lean_ctor_get(x_41, 0); -x_102 = lean_ctor_get(x_41, 1); -x_103 = lean_ctor_get(x_41, 2); -x_104 = lean_ctor_get(x_41, 3); -x_105 = lean_ctor_get(x_41, 4); -lean_inc(x_105); -lean_inc(x_104); -lean_inc(x_103); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_98 = lean_ctor_get(x_41, 0); +x_99 = lean_ctor_get(x_41, 1); +x_100 = lean_ctor_get(x_41, 2); +x_101 = lean_ctor_get(x_41, 3); +x_102 = lean_ctor_get(x_41, 4); lean_inc(x_102); lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_98); lean_dec(x_41); -x_106 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); -x_107 = lean_ctor_get(x_42, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_42, 1); -lean_inc(x_108); +x_103 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); +x_104 = lean_ctor_get(x_42, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_42, 1); +lean_inc(x_105); if (lean_is_exclusive(x_42)) { lean_ctor_release(x_42, 0); lean_ctor_release(x_42, 1); - x_109 = x_42; + x_106 = x_42; } else { lean_dec_ref(x_42); - x_109 = lean_box(0); + x_106 = lean_box(0); } -x_110 = lean_ctor_get(x_108, 2); -lean_inc(x_110); -x_111 = lean_unsigned_to_nat(1u); -x_112 = lean_nat_dec_eq(x_110, x_111); -lean_dec(x_110); -if (x_112 == 0) +x_107 = lean_ctor_get(x_105, 2); +lean_inc(x_107); +x_108 = lean_unsigned_to_nat(0u); +x_109 = lean_nat_dec_lt(x_108, x_107); +if (x_109 == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_109); -lean_dec(x_108); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_dec(x_107); -lean_dec(x_33); +lean_dec(x_105); lean_dec(x_1); -x_113 = l_Lean_Elab_instInhabitedInfoState; -x_114 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_115 = lean_panic_fn(x_113, x_114); -x_116 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_116, 0, x_101); -lean_ctor_set(x_116, 1, x_102); -lean_ctor_set(x_116, 2, x_103); -lean_ctor_set(x_116, 3, x_104); -lean_ctor_set(x_116, 4, x_105); -lean_ctor_set(x_116, 5, x_115); -x_117 = lean_st_ref_set(x_4, x_116, x_43); -lean_dec(x_4); -x_118 = lean_ctor_get(x_117, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_119 = x_117; +if (lean_is_scalar(x_106)) { + x_110 = lean_alloc_ctor(0, 2, 1); } else { - lean_dec_ref(x_117); - x_119 = lean_box(0); + x_110 = x_106; } -x_120 = lean_box(0); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_36); -lean_ctor_set(x_121, 1, x_120); -if (lean_is_scalar(x_119)) { - x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_104); +lean_ctor_set(x_110, 1, x_33); +lean_ctor_set_uint8(x_110, sizeof(void*)*2, x_103); +x_111 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_111, 0, x_98); +lean_ctor_set(x_111, 1, x_99); +lean_ctor_set(x_111, 2, x_100); +lean_ctor_set(x_111, 3, x_101); +lean_ctor_set(x_111, 4, x_102); +lean_ctor_set(x_111, 5, x_110); +x_112 = lean_st_ref_set(x_4, x_111, x_43); +lean_dec(x_4); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - x_122 = x_119; + lean_dec_ref(x_112); + x_114 = lean_box(0); +} +x_115 = lean_box(0); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_36); +lean_ctor_set(x_116, 1, x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_114; +} +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +x_10 = x_117; +goto block_22; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_118 = lean_unsigned_to_nat(1u); +x_119 = lean_nat_sub(x_107, x_118); +lean_dec(x_107); +x_120 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_105, x_119); +lean_dec(x_119); +x_121 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_104, x_1, x_120); +if (lean_is_scalar(x_106)) { + x_122 = lean_alloc_ctor(0, 2, 1); +} else { + x_122 = x_106; } lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_118); -x_10 = x_122; -goto block_22; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_123 = lean_unsigned_to_nat(0u); -x_124 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_108, x_123); -x_125 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_107, x_1, x_124); -if (lean_is_scalar(x_109)) { - x_126 = lean_alloc_ctor(0, 2, 1); -} else { - x_126 = x_109; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_33); -lean_ctor_set_uint8(x_126, sizeof(void*)*2, x_106); -x_127 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_127, 0, x_101); -lean_ctor_set(x_127, 1, x_102); -lean_ctor_set(x_127, 2, x_103); -lean_ctor_set(x_127, 3, x_104); -lean_ctor_set(x_127, 4, x_105); -lean_ctor_set(x_127, 5, x_126); -x_128 = lean_st_ref_set(x_4, x_127, x_43); +lean_ctor_set(x_122, 1, x_33); +lean_ctor_set_uint8(x_122, sizeof(void*)*2, x_103); +x_123 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_123, 0, x_98); +lean_ctor_set(x_123, 1, x_99); +lean_ctor_set(x_123, 2, x_100); +lean_ctor_set(x_123, 3, x_101); +lean_ctor_set(x_123, 4, x_102); +lean_ctor_set(x_123, 5, x_122); +x_124 = lean_st_ref_set(x_4, x_123, x_43); lean_dec(x_4); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_130 = x_128; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; } else { - lean_dec_ref(x_128); - x_130 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -x_131 = lean_box(0); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_36); -lean_ctor_set(x_132, 1, x_131); -if (lean_is_scalar(x_130)) { - x_133 = lean_alloc_ctor(0, 2, 0); +x_127 = lean_box(0); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_36); +lean_ctor_set(x_128, 1, x_127); +if (lean_is_scalar(x_126)) { + x_129 = lean_alloc_ctor(0, 2, 0); } else { - x_133 = x_130; + x_129 = x_126; } -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_129); -x_10 = x_133; +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +x_10 = x_129; goto block_22; } } } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; -lean_dec(x_1); -x_134 = lean_ctor_get(x_35, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_35, 1); -lean_inc(x_135); +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; uint8_t x_138; +x_130 = lean_ctor_get(x_35, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_35, 1); +lean_inc(x_131); lean_dec(x_35); -x_136 = lean_st_ref_get(x_8, x_135); +x_132 = lean_st_ref_get(x_8, x_131); lean_dec(x_8); -x_137 = lean_ctor_get(x_136, 1); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +lean_dec(x_132); +x_134 = lean_st_ref_take(x_4, x_133); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_135, 5); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); lean_inc(x_137); -lean_dec(x_136); -x_138 = lean_st_ref_take(x_4, x_137); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_139, 5); -lean_inc(x_140); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -lean_dec(x_138); -x_142 = !lean_is_exclusive(x_139); -if (x_142 == 0) +lean_dec(x_134); +x_138 = !lean_is_exclusive(x_135); +if (x_138 == 0) { -lean_object* x_143; uint8_t x_144; -x_143 = lean_ctor_get(x_139, 5); +lean_object* x_139; uint8_t x_140; +x_139 = lean_ctor_get(x_135, 5); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_136); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_141 = lean_ctor_get(x_136, 0); +x_142 = lean_ctor_get(x_136, 1); +x_143 = lean_ctor_get(x_142, 2); +lean_inc(x_143); +x_144 = lean_unsigned_to_nat(0u); +x_145 = lean_nat_dec_lt(x_144, x_143); +if (x_145 == 0) +{ +lean_object* x_146; uint8_t x_147; lean_dec(x_143); -x_144 = !lean_is_exclusive(x_140); -if (x_144 == 0) -{ -lean_object* x_145; lean_object* x_146; uint8_t x_147; -x_145 = lean_ctor_get(x_140, 1); -lean_dec(x_145); -lean_ctor_set(x_140, 1, x_33); -x_146 = lean_st_ref_set(x_4, x_139, x_141); +lean_dec(x_142); +lean_dec(x_1); +lean_ctor_set(x_136, 1, x_33); +x_146 = lean_st_ref_set(x_4, x_135, x_137); lean_dec(x_4); x_147 = !lean_is_exclusive(x_146); if (x_147 == 0) @@ -1512,7 +1524,7 @@ lean_object* x_148; x_148 = lean_ctor_get(x_146, 0); lean_dec(x_148); lean_ctor_set_tag(x_146, 1); -lean_ctor_set(x_146, 0, x_134); +lean_ctor_set(x_146, 0, x_130); x_10 = x_146; goto block_22; } @@ -1523,7 +1535,7 @@ x_149 = lean_ctor_get(x_146, 1); lean_inc(x_149); lean_dec(x_146); x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_134); +lean_ctor_set(x_150, 0, x_130); lean_ctor_set(x_150, 1, x_149); x_10 = x_150; goto block_22; @@ -1531,103 +1543,251 @@ goto block_22; } else { -uint8_t 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_ctor_get_uint8(x_140, sizeof(void*)*2); -x_152 = lean_ctor_get(x_140, 0); -lean_inc(x_152); -lean_dec(x_140); -x_153 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_33); -lean_ctor_set_uint8(x_153, sizeof(void*)*2, x_151); -lean_ctor_set(x_139, 5, x_153); -x_154 = lean_st_ref_set(x_4, x_139, x_141); +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; +x_151 = lean_unsigned_to_nat(1u); +x_152 = lean_nat_sub(x_143, x_151); +lean_dec(x_143); +x_153 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_142, x_152); +lean_dec(x_152); +x_154 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_141, x_1, x_153); +lean_ctor_set(x_136, 1, x_33); +lean_ctor_set(x_136, 0, x_154); +x_155 = lean_st_ref_set(x_4, x_135, x_137); lean_dec(x_4); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_156 = x_154; -} else { - lean_dec_ref(x_154); - x_156 = lean_box(0); -} -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); -} else { - x_157 = x_156; - lean_ctor_set_tag(x_157, 1); -} -lean_ctor_set(x_157, 0, x_134); -lean_ctor_set(x_157, 1, x_155); -x_10 = x_157; +x_156 = !lean_is_exclusive(x_155); +if (x_156 == 0) +{ +lean_object* x_157; +x_157 = lean_ctor_get(x_155, 0); +lean_dec(x_157); +lean_ctor_set_tag(x_155, 1); +lean_ctor_set(x_155, 0, x_130); +x_10 = x_155; goto block_22; } +else +{ +lean_object* x_158; lean_object* x_159; +x_158 = lean_ctor_get(x_155, 1); +lean_inc(x_158); +lean_dec(x_155); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_130); +lean_ctor_set(x_159, 1, x_158); +x_10 = x_159; +goto block_22; +} +} } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_158 = lean_ctor_get(x_139, 0); -x_159 = lean_ctor_get(x_139, 1); -x_160 = lean_ctor_get(x_139, 2); -x_161 = lean_ctor_get(x_139, 3); -x_162 = lean_ctor_get(x_139, 4); +uint8_t x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_160 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_161 = lean_ctor_get(x_136, 0); +x_162 = lean_ctor_get(x_136, 1); lean_inc(x_162); lean_inc(x_161); -lean_inc(x_160); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_139); -x_163 = lean_ctor_get_uint8(x_140, sizeof(void*)*2); -x_164 = lean_ctor_get(x_140, 0); -lean_inc(x_164); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_165 = x_140; -} else { - lean_dec_ref(x_140); - x_165 = lean_box(0); -} -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(0, 2, 1); -} else { - x_166 = x_165; -} -lean_ctor_set(x_166, 0, x_164); +lean_dec(x_136); +x_163 = lean_ctor_get(x_162, 2); +lean_inc(x_163); +x_164 = lean_unsigned_to_nat(0u); +x_165 = lean_nat_dec_lt(x_164, x_163); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_163); +lean_dec(x_162); +lean_dec(x_1); +x_166 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_166, 0, x_161); lean_ctor_set(x_166, 1, x_33); -lean_ctor_set_uint8(x_166, sizeof(void*)*2, x_163); -x_167 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_167, 0, x_158); -lean_ctor_set(x_167, 1, x_159); -lean_ctor_set(x_167, 2, x_160); -lean_ctor_set(x_167, 3, x_161); -lean_ctor_set(x_167, 4, x_162); -lean_ctor_set(x_167, 5, x_166); -x_168 = lean_st_ref_set(x_4, x_167, x_141); +lean_ctor_set_uint8(x_166, sizeof(void*)*2, x_160); +lean_ctor_set(x_135, 5, x_166); +x_167 = lean_st_ref_set(x_4, x_135, x_137); lean_dec(x_4); -x_169 = lean_ctor_get(x_168, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_170 = x_168; +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_169 = x_167; } else { - lean_dec_ref(x_168); - x_170 = lean_box(0); + lean_dec_ref(x_167); + x_169 = lean_box(0); } -if (lean_is_scalar(x_170)) { - x_171 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_170; - lean_ctor_set_tag(x_171, 1); + x_170 = x_169; + lean_ctor_set_tag(x_170, 1); } -lean_ctor_set(x_171, 0, x_134); -lean_ctor_set(x_171, 1, x_169); -x_10 = x_171; +lean_ctor_set(x_170, 0, x_130); +lean_ctor_set(x_170, 1, x_168); +x_10 = x_170; goto block_22; } +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_171 = lean_unsigned_to_nat(1u); +x_172 = lean_nat_sub(x_163, x_171); +lean_dec(x_163); +x_173 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_162, x_172); +lean_dec(x_172); +x_174 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_161, x_1, x_173); +x_175 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_33); +lean_ctor_set_uint8(x_175, sizeof(void*)*2, x_160); +lean_ctor_set(x_135, 5, x_175); +x_176 = lean_st_ref_set(x_4, x_135, x_137); +lean_dec(x_4); +x_177 = lean_ctor_get(x_176, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_178 = x_176; +} else { + lean_dec_ref(x_176); + x_178 = lean_box(0); +} +if (lean_is_scalar(x_178)) { + x_179 = lean_alloc_ctor(1, 2, 0); +} else { + x_179 = x_178; + lean_ctor_set_tag(x_179, 1); +} +lean_ctor_set(x_179, 0, x_130); +lean_ctor_set(x_179, 1, x_177); +x_10 = x_179; +goto block_22; +} +} +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; +x_180 = lean_ctor_get(x_135, 0); +x_181 = lean_ctor_get(x_135, 1); +x_182 = lean_ctor_get(x_135, 2); +x_183 = lean_ctor_get(x_135, 3); +x_184 = lean_ctor_get(x_135, 4); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_135); +x_185 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_186 = lean_ctor_get(x_136, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_136, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_188 = x_136; +} else { + lean_dec_ref(x_136); + x_188 = lean_box(0); +} +x_189 = lean_ctor_get(x_187, 2); +lean_inc(x_189); +x_190 = lean_unsigned_to_nat(0u); +x_191 = lean_nat_dec_lt(x_190, x_189); +if (x_191 == 0) +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_189); +lean_dec(x_187); +lean_dec(x_1); +if (lean_is_scalar(x_188)) { + x_192 = lean_alloc_ctor(0, 2, 1); +} else { + x_192 = x_188; +} +lean_ctor_set(x_192, 0, x_186); +lean_ctor_set(x_192, 1, x_33); +lean_ctor_set_uint8(x_192, sizeof(void*)*2, x_185); +x_193 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_193, 0, x_180); +lean_ctor_set(x_193, 1, x_181); +lean_ctor_set(x_193, 2, x_182); +lean_ctor_set(x_193, 3, x_183); +lean_ctor_set(x_193, 4, x_184); +lean_ctor_set(x_193, 5, x_192); +x_194 = lean_st_ref_set(x_4, x_193, x_137); +lean_dec(x_4); +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_196 = x_194; +} else { + lean_dec_ref(x_194); + x_196 = lean_box(0); +} +if (lean_is_scalar(x_196)) { + x_197 = lean_alloc_ctor(1, 2, 0); +} else { + x_197 = x_196; + lean_ctor_set_tag(x_197, 1); +} +lean_ctor_set(x_197, 0, x_130); +lean_ctor_set(x_197, 1, x_195); +x_10 = x_197; +goto block_22; +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_198 = lean_unsigned_to_nat(1u); +x_199 = lean_nat_sub(x_189, x_198); +lean_dec(x_189); +x_200 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_187, x_199); +lean_dec(x_199); +x_201 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_186, x_1, x_200); +if (lean_is_scalar(x_188)) { + x_202 = lean_alloc_ctor(0, 2, 1); +} else { + x_202 = x_188; +} +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_33); +lean_ctor_set_uint8(x_202, sizeof(void*)*2, x_185); +x_203 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_203, 0, x_180); +lean_ctor_set(x_203, 1, x_181); +lean_ctor_set(x_203, 2, x_182); +lean_ctor_set(x_203, 3, x_183); +lean_ctor_set(x_203, 4, x_184); +lean_ctor_set(x_203, 5, x_202); +x_204 = lean_st_ref_set(x_4, x_203, x_137); +lean_dec(x_4); +x_205 = lean_ctor_get(x_204, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_206 = x_204; +} else { + lean_dec_ref(x_204); + x_206 = lean_box(0); +} +if (lean_is_scalar(x_206)) { + x_207 = lean_alloc_ctor(1, 2, 0); +} else { + x_207 = x_206; + lean_ctor_set_tag(x_207, 1); +} +lean_ctor_set(x_207, 0, x_130); +lean_ctor_set(x_207, 1, x_205); +x_10 = x_207; +goto block_22; +} +} } } block_22: @@ -1735,7 +1895,7 @@ lean_dec(x_20); x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); lean_closure_set(x_22, 0, x_11); x_23 = l_Lean_Elab_Term_runTactic___closed__1; -x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_24, 0, x_22); lean_closure_set(x_24, 1, x_23); lean_inc(x_1); @@ -1879,7 +2039,7 @@ lean_dec(x_49); x_51 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); lean_closure_set(x_51, 0, x_11); x_52 = l_Lean_Elab_Term_runTactic___closed__1; -x_53 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_53 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_53, 0, x_51); lean_closure_set(x_53, 1, x_52); lean_inc(x_1); @@ -2290,347 +2450,360 @@ x_47 = lean_ctor_get(x_42, 0); x_48 = lean_ctor_get(x_42, 1); x_49 = lean_ctor_get(x_48, 2); lean_inc(x_49); -x_50 = lean_unsigned_to_nat(1u); -x_51 = lean_nat_dec_eq(x_49, x_50); -lean_dec(x_49); +x_50 = lean_unsigned_to_nat(0u); +x_51 = lean_nat_dec_lt(x_50, x_49); if (x_51 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_free_object(x_42); +lean_object* x_52; uint8_t x_53; +lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_33); lean_dec(x_1); -x_52 = l_Lean_Elab_instInhabitedInfoState; -x_53 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_54 = lean_panic_fn(x_52, x_53); -lean_ctor_set(x_41, 5, x_54); -x_55 = lean_st_ref_set(x_4, x_41, x_43); +lean_ctor_set(x_42, 1, x_33); +x_52 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_55, 0); -lean_dec(x_57); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_52, 0); +lean_dec(x_54); +x_55 = lean_box(0); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_36); +lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_52, 0, x_56); +x_10 = x_52; +goto block_22; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_52, 1); +lean_inc(x_57); +lean_dec(x_52); x_58 = lean_box(0); x_59 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_59, 0, x_36); lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_55, 0, x_59); -x_10 = x_55; -goto block_22; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_60 = lean_ctor_get(x_55, 1); -lean_inc(x_60); -lean_dec(x_55); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_36); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_60); -x_10 = x_63; +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_57); +x_10 = x_60; goto block_22; } } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_64 = lean_unsigned_to_nat(0u); -x_65 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_48, x_64); -x_66 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_47, x_1, x_65); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_61 = lean_unsigned_to_nat(1u); +x_62 = lean_nat_sub(x_49, x_61); +lean_dec(x_49); +x_63 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_48, x_62); +lean_dec(x_62); +x_64 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_47, x_1, x_63); lean_ctor_set(x_42, 1, x_33); -lean_ctor_set(x_42, 0, x_66); -x_67 = lean_st_ref_set(x_4, x_41, x_43); +lean_ctor_set(x_42, 0, x_64); +x_65 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = lean_box(0); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_36); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_67, 0, x_71); -x_10 = x_67; -goto block_22; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_65, 0); lean_dec(x_67); -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_36); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_72); -x_10 = x_75; +x_68 = lean_box(0); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_36); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set(x_65, 0, x_69); +x_10 = x_65; +goto block_22; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +lean_dec(x_65); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_36); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_70); +x_10 = x_73; goto block_22; } } } else { -uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_76 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); -x_77 = lean_ctor_get(x_42, 0); -x_78 = lean_ctor_get(x_42, 1); -lean_inc(x_78); -lean_inc(x_77); +uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_74 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); +x_75 = lean_ctor_get(x_42, 0); +x_76 = lean_ctor_get(x_42, 1); +lean_inc(x_76); +lean_inc(x_75); lean_dec(x_42); -x_79 = lean_ctor_get(x_78, 2); -lean_inc(x_79); -x_80 = lean_unsigned_to_nat(1u); -x_81 = lean_nat_dec_eq(x_79, x_80); -lean_dec(x_79); -if (x_81 == 0) +x_77 = lean_ctor_get(x_76, 2); +lean_inc(x_77); +x_78 = lean_unsigned_to_nat(0u); +x_79 = lean_nat_dec_lt(x_78, x_77); +if (x_79 == 0) { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_78); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_dec(x_77); -lean_dec(x_33); +lean_dec(x_76); lean_dec(x_1); -x_82 = l_Lean_Elab_instInhabitedInfoState; -x_83 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_84 = lean_panic_fn(x_82, x_83); -lean_ctor_set(x_41, 5, x_84); -x_85 = lean_st_ref_set(x_4, x_41, x_43); +x_80 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_80, 0, x_75); +lean_ctor_set(x_80, 1, x_33); +lean_ctor_set_uint8(x_80, sizeof(void*)*2, x_74); +lean_ctor_set(x_41, 5, x_80); +x_81 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_87 = x_85; +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_83 = x_81; } else { - lean_dec_ref(x_85); - x_87 = lean_box(0); + lean_dec_ref(x_81); + x_83 = lean_box(0); } -x_88 = lean_box(0); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_36); -lean_ctor_set(x_89, 1, x_88); -if (lean_is_scalar(x_87)) { - x_90 = lean_alloc_ctor(0, 2, 0); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_36); +lean_ctor_set(x_85, 1, x_84); +if (lean_is_scalar(x_83)) { + x_86 = lean_alloc_ctor(0, 2, 0); } else { - x_90 = x_87; + x_86 = x_83; } -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_86); -x_10 = x_90; +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_82); +x_10 = x_86; goto block_22; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_91 = lean_unsigned_to_nat(0u); -x_92 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_78, x_91); -x_93 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_77, x_1, x_92); -x_94 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_33); -lean_ctor_set_uint8(x_94, sizeof(void*)*2, x_76); -lean_ctor_set(x_41, 5, x_94); -x_95 = lean_st_ref_set(x_4, x_41, x_43); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_87 = lean_unsigned_to_nat(1u); +x_88 = lean_nat_sub(x_77, x_87); +lean_dec(x_77); +x_89 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_76, x_88); +lean_dec(x_88); +x_90 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_75, x_1, x_89); +x_91 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_33); +lean_ctor_set_uint8(x_91, sizeof(void*)*2, x_74); +lean_ctor_set(x_41, 5, x_91); +x_92 = lean_st_ref_set(x_4, x_41, x_43); lean_dec(x_4); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_97 = x_95; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_94 = x_92; } else { - lean_dec_ref(x_95); - x_97 = lean_box(0); + lean_dec_ref(x_92); + x_94 = lean_box(0); } -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_36); -lean_ctor_set(x_99, 1, x_98); -if (lean_is_scalar(x_97)) { - x_100 = lean_alloc_ctor(0, 2, 0); +x_95 = lean_box(0); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_36); +lean_ctor_set(x_96, 1, x_95); +if (lean_is_scalar(x_94)) { + x_97 = lean_alloc_ctor(0, 2, 0); } else { - x_100 = x_97; + x_97 = x_94; } -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_96); -x_10 = x_100; +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_93); +x_10 = x_97; goto block_22; } } } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_101 = lean_ctor_get(x_41, 0); -x_102 = lean_ctor_get(x_41, 1); -x_103 = lean_ctor_get(x_41, 2); -x_104 = lean_ctor_get(x_41, 3); -x_105 = lean_ctor_get(x_41, 4); -lean_inc(x_105); -lean_inc(x_104); -lean_inc(x_103); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_98 = lean_ctor_get(x_41, 0); +x_99 = lean_ctor_get(x_41, 1); +x_100 = lean_ctor_get(x_41, 2); +x_101 = lean_ctor_get(x_41, 3); +x_102 = lean_ctor_get(x_41, 4); lean_inc(x_102); lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_98); lean_dec(x_41); -x_106 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); -x_107 = lean_ctor_get(x_42, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_42, 1); -lean_inc(x_108); +x_103 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); +x_104 = lean_ctor_get(x_42, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_42, 1); +lean_inc(x_105); if (lean_is_exclusive(x_42)) { lean_ctor_release(x_42, 0); lean_ctor_release(x_42, 1); - x_109 = x_42; + x_106 = x_42; } else { lean_dec_ref(x_42); - x_109 = lean_box(0); + x_106 = lean_box(0); } -x_110 = lean_ctor_get(x_108, 2); -lean_inc(x_110); -x_111 = lean_unsigned_to_nat(1u); -x_112 = lean_nat_dec_eq(x_110, x_111); -lean_dec(x_110); -if (x_112 == 0) +x_107 = lean_ctor_get(x_105, 2); +lean_inc(x_107); +x_108 = lean_unsigned_to_nat(0u); +x_109 = lean_nat_dec_lt(x_108, x_107); +if (x_109 == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_109); -lean_dec(x_108); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_dec(x_107); -lean_dec(x_33); +lean_dec(x_105); lean_dec(x_1); -x_113 = l_Lean_Elab_instInhabitedInfoState; -x_114 = l_Lean_Elab_withInfoHole___rarg___lambda__1___closed__4; -x_115 = lean_panic_fn(x_113, x_114); -x_116 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_116, 0, x_101); -lean_ctor_set(x_116, 1, x_102); -lean_ctor_set(x_116, 2, x_103); -lean_ctor_set(x_116, 3, x_104); -lean_ctor_set(x_116, 4, x_105); -lean_ctor_set(x_116, 5, x_115); -x_117 = lean_st_ref_set(x_4, x_116, x_43); -lean_dec(x_4); -x_118 = lean_ctor_get(x_117, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_119 = x_117; +if (lean_is_scalar(x_106)) { + x_110 = lean_alloc_ctor(0, 2, 1); } else { - lean_dec_ref(x_117); - x_119 = lean_box(0); + x_110 = x_106; } -x_120 = lean_box(0); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_36); -lean_ctor_set(x_121, 1, x_120); -if (lean_is_scalar(x_119)) { - x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_104); +lean_ctor_set(x_110, 1, x_33); +lean_ctor_set_uint8(x_110, sizeof(void*)*2, x_103); +x_111 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_111, 0, x_98); +lean_ctor_set(x_111, 1, x_99); +lean_ctor_set(x_111, 2, x_100); +lean_ctor_set(x_111, 3, x_101); +lean_ctor_set(x_111, 4, x_102); +lean_ctor_set(x_111, 5, x_110); +x_112 = lean_st_ref_set(x_4, x_111, x_43); +lean_dec(x_4); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - x_122 = x_119; + lean_dec_ref(x_112); + x_114 = lean_box(0); +} +x_115 = lean_box(0); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_36); +lean_ctor_set(x_116, 1, x_115); +if (lean_is_scalar(x_114)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_114; +} +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_113); +x_10 = x_117; +goto block_22; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_118 = lean_unsigned_to_nat(1u); +x_119 = lean_nat_sub(x_107, x_118); +lean_dec(x_107); +x_120 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_105, x_119); +lean_dec(x_119); +x_121 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_104, x_1, x_120); +if (lean_is_scalar(x_106)) { + x_122 = lean_alloc_ctor(0, 2, 1); +} else { + x_122 = x_106; } lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_118); -x_10 = x_122; -goto block_22; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_123 = lean_unsigned_to_nat(0u); -x_124 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_108, x_123); -x_125 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_107, x_1, x_124); -if (lean_is_scalar(x_109)) { - x_126 = lean_alloc_ctor(0, 2, 1); -} else { - x_126 = x_109; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_33); -lean_ctor_set_uint8(x_126, sizeof(void*)*2, x_106); -x_127 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_127, 0, x_101); -lean_ctor_set(x_127, 1, x_102); -lean_ctor_set(x_127, 2, x_103); -lean_ctor_set(x_127, 3, x_104); -lean_ctor_set(x_127, 4, x_105); -lean_ctor_set(x_127, 5, x_126); -x_128 = lean_st_ref_set(x_4, x_127, x_43); +lean_ctor_set(x_122, 1, x_33); +lean_ctor_set_uint8(x_122, sizeof(void*)*2, x_103); +x_123 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_123, 0, x_98); +lean_ctor_set(x_123, 1, x_99); +lean_ctor_set(x_123, 2, x_100); +lean_ctor_set(x_123, 3, x_101); +lean_ctor_set(x_123, 4, x_102); +lean_ctor_set(x_123, 5, x_122); +x_124 = lean_st_ref_set(x_4, x_123, x_43); lean_dec(x_4); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_130 = x_128; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_126 = x_124; } else { - lean_dec_ref(x_128); - x_130 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -x_131 = lean_box(0); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_36); -lean_ctor_set(x_132, 1, x_131); -if (lean_is_scalar(x_130)) { - x_133 = lean_alloc_ctor(0, 2, 0); +x_127 = lean_box(0); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_36); +lean_ctor_set(x_128, 1, x_127); +if (lean_is_scalar(x_126)) { + x_129 = lean_alloc_ctor(0, 2, 0); } else { - x_133 = x_130; + x_129 = x_126; } -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_129); -x_10 = x_133; +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +x_10 = x_129; goto block_22; } } } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; -lean_dec(x_1); -x_134 = lean_ctor_get(x_35, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_35, 1); -lean_inc(x_135); +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; uint8_t x_138; +x_130 = lean_ctor_get(x_35, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_35, 1); +lean_inc(x_131); lean_dec(x_35); -x_136 = lean_st_ref_get(x_8, x_135); +x_132 = lean_st_ref_get(x_8, x_131); lean_dec(x_8); -x_137 = lean_ctor_get(x_136, 1); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +lean_dec(x_132); +x_134 = lean_st_ref_take(x_4, x_133); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_135, 5); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); lean_inc(x_137); -lean_dec(x_136); -x_138 = lean_st_ref_take(x_4, x_137); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_139, 5); -lean_inc(x_140); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -lean_dec(x_138); -x_142 = !lean_is_exclusive(x_139); -if (x_142 == 0) +lean_dec(x_134); +x_138 = !lean_is_exclusive(x_135); +if (x_138 == 0) { -lean_object* x_143; uint8_t x_144; -x_143 = lean_ctor_get(x_139, 5); +lean_object* x_139; uint8_t x_140; +x_139 = lean_ctor_get(x_135, 5); +lean_dec(x_139); +x_140 = !lean_is_exclusive(x_136); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_141 = lean_ctor_get(x_136, 0); +x_142 = lean_ctor_get(x_136, 1); +x_143 = lean_ctor_get(x_142, 2); +lean_inc(x_143); +x_144 = lean_unsigned_to_nat(0u); +x_145 = lean_nat_dec_lt(x_144, x_143); +if (x_145 == 0) +{ +lean_object* x_146; uint8_t x_147; lean_dec(x_143); -x_144 = !lean_is_exclusive(x_140); -if (x_144 == 0) -{ -lean_object* x_145; lean_object* x_146; uint8_t x_147; -x_145 = lean_ctor_get(x_140, 1); -lean_dec(x_145); -lean_ctor_set(x_140, 1, x_33); -x_146 = lean_st_ref_set(x_4, x_139, x_141); +lean_dec(x_142); +lean_dec(x_1); +lean_ctor_set(x_136, 1, x_33); +x_146 = lean_st_ref_set(x_4, x_135, x_137); lean_dec(x_4); x_147 = !lean_is_exclusive(x_146); if (x_147 == 0) @@ -2639,7 +2812,7 @@ lean_object* x_148; x_148 = lean_ctor_get(x_146, 0); lean_dec(x_148); lean_ctor_set_tag(x_146, 1); -lean_ctor_set(x_146, 0, x_134); +lean_ctor_set(x_146, 0, x_130); x_10 = x_146; goto block_22; } @@ -2650,7 +2823,7 @@ x_149 = lean_ctor_get(x_146, 1); lean_inc(x_149); lean_dec(x_146); x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_134); +lean_ctor_set(x_150, 0, x_130); lean_ctor_set(x_150, 1, x_149); x_10 = x_150; goto block_22; @@ -2658,103 +2831,251 @@ goto block_22; } else { -uint8_t 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_ctor_get_uint8(x_140, sizeof(void*)*2); -x_152 = lean_ctor_get(x_140, 0); -lean_inc(x_152); -lean_dec(x_140); -x_153 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_33); -lean_ctor_set_uint8(x_153, sizeof(void*)*2, x_151); -lean_ctor_set(x_139, 5, x_153); -x_154 = lean_st_ref_set(x_4, x_139, x_141); +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; +x_151 = lean_unsigned_to_nat(1u); +x_152 = lean_nat_sub(x_143, x_151); +lean_dec(x_143); +x_153 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_142, x_152); +lean_dec(x_152); +x_154 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_141, x_1, x_153); +lean_ctor_set(x_136, 1, x_33); +lean_ctor_set(x_136, 0, x_154); +x_155 = lean_st_ref_set(x_4, x_135, x_137); lean_dec(x_4); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_156 = x_154; -} else { - lean_dec_ref(x_154); - x_156 = lean_box(0); -} -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); -} else { - x_157 = x_156; - lean_ctor_set_tag(x_157, 1); -} -lean_ctor_set(x_157, 0, x_134); -lean_ctor_set(x_157, 1, x_155); -x_10 = x_157; +x_156 = !lean_is_exclusive(x_155); +if (x_156 == 0) +{ +lean_object* x_157; +x_157 = lean_ctor_get(x_155, 0); +lean_dec(x_157); +lean_ctor_set_tag(x_155, 1); +lean_ctor_set(x_155, 0, x_130); +x_10 = x_155; goto block_22; } +else +{ +lean_object* x_158; lean_object* x_159; +x_158 = lean_ctor_get(x_155, 1); +lean_inc(x_158); +lean_dec(x_155); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_130); +lean_ctor_set(x_159, 1, x_158); +x_10 = x_159; +goto block_22; +} +} } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_158 = lean_ctor_get(x_139, 0); -x_159 = lean_ctor_get(x_139, 1); -x_160 = lean_ctor_get(x_139, 2); -x_161 = lean_ctor_get(x_139, 3); -x_162 = lean_ctor_get(x_139, 4); +uint8_t x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_160 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_161 = lean_ctor_get(x_136, 0); +x_162 = lean_ctor_get(x_136, 1); lean_inc(x_162); lean_inc(x_161); -lean_inc(x_160); -lean_inc(x_159); -lean_inc(x_158); -lean_dec(x_139); -x_163 = lean_ctor_get_uint8(x_140, sizeof(void*)*2); -x_164 = lean_ctor_get(x_140, 0); -lean_inc(x_164); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_165 = x_140; -} else { - lean_dec_ref(x_140); - x_165 = lean_box(0); -} -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(0, 2, 1); -} else { - x_166 = x_165; -} -lean_ctor_set(x_166, 0, x_164); +lean_dec(x_136); +x_163 = lean_ctor_get(x_162, 2); +lean_inc(x_163); +x_164 = lean_unsigned_to_nat(0u); +x_165 = lean_nat_dec_lt(x_164, x_163); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_163); +lean_dec(x_162); +lean_dec(x_1); +x_166 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_166, 0, x_161); lean_ctor_set(x_166, 1, x_33); -lean_ctor_set_uint8(x_166, sizeof(void*)*2, x_163); -x_167 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_167, 0, x_158); -lean_ctor_set(x_167, 1, x_159); -lean_ctor_set(x_167, 2, x_160); -lean_ctor_set(x_167, 3, x_161); -lean_ctor_set(x_167, 4, x_162); -lean_ctor_set(x_167, 5, x_166); -x_168 = lean_st_ref_set(x_4, x_167, x_141); +lean_ctor_set_uint8(x_166, sizeof(void*)*2, x_160); +lean_ctor_set(x_135, 5, x_166); +x_167 = lean_st_ref_set(x_4, x_135, x_137); lean_dec(x_4); -x_169 = lean_ctor_get(x_168, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_170 = x_168; +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_169 = x_167; } else { - lean_dec_ref(x_168); - x_170 = lean_box(0); + lean_dec_ref(x_167); + x_169 = lean_box(0); } -if (lean_is_scalar(x_170)) { - x_171 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_170; - lean_ctor_set_tag(x_171, 1); + x_170 = x_169; + lean_ctor_set_tag(x_170, 1); } -lean_ctor_set(x_171, 0, x_134); -lean_ctor_set(x_171, 1, x_169); -x_10 = x_171; +lean_ctor_set(x_170, 0, x_130); +lean_ctor_set(x_170, 1, x_168); +x_10 = x_170; goto block_22; } +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_171 = lean_unsigned_to_nat(1u); +x_172 = lean_nat_sub(x_163, x_171); +lean_dec(x_163); +x_173 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_162, x_172); +lean_dec(x_172); +x_174 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_161, x_1, x_173); +x_175 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_33); +lean_ctor_set_uint8(x_175, sizeof(void*)*2, x_160); +lean_ctor_set(x_135, 5, x_175); +x_176 = lean_st_ref_set(x_4, x_135, x_137); +lean_dec(x_4); +x_177 = lean_ctor_get(x_176, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_178 = x_176; +} else { + lean_dec_ref(x_176); + x_178 = lean_box(0); +} +if (lean_is_scalar(x_178)) { + x_179 = lean_alloc_ctor(1, 2, 0); +} else { + x_179 = x_178; + lean_ctor_set_tag(x_179, 1); +} +lean_ctor_set(x_179, 0, x_130); +lean_ctor_set(x_179, 1, x_177); +x_10 = x_179; +goto block_22; +} +} +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; +x_180 = lean_ctor_get(x_135, 0); +x_181 = lean_ctor_get(x_135, 1); +x_182 = lean_ctor_get(x_135, 2); +x_183 = lean_ctor_get(x_135, 3); +x_184 = lean_ctor_get(x_135, 4); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_135); +x_185 = lean_ctor_get_uint8(x_136, sizeof(void*)*2); +x_186 = lean_ctor_get(x_136, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_136, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_188 = x_136; +} else { + lean_dec_ref(x_136); + x_188 = lean_box(0); +} +x_189 = lean_ctor_get(x_187, 2); +lean_inc(x_189); +x_190 = lean_unsigned_to_nat(0u); +x_191 = lean_nat_dec_lt(x_190, x_189); +if (x_191 == 0) +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_dec(x_189); +lean_dec(x_187); +lean_dec(x_1); +if (lean_is_scalar(x_188)) { + x_192 = lean_alloc_ctor(0, 2, 1); +} else { + x_192 = x_188; +} +lean_ctor_set(x_192, 0, x_186); +lean_ctor_set(x_192, 1, x_33); +lean_ctor_set_uint8(x_192, sizeof(void*)*2, x_185); +x_193 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_193, 0, x_180); +lean_ctor_set(x_193, 1, x_181); +lean_ctor_set(x_193, 2, x_182); +lean_ctor_set(x_193, 3, x_183); +lean_ctor_set(x_193, 4, x_184); +lean_ctor_set(x_193, 5, x_192); +x_194 = lean_st_ref_set(x_4, x_193, x_137); +lean_dec(x_4); +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_196 = x_194; +} else { + lean_dec_ref(x_194); + x_196 = lean_box(0); +} +if (lean_is_scalar(x_196)) { + x_197 = lean_alloc_ctor(1, 2, 0); +} else { + x_197 = x_196; + lean_ctor_set_tag(x_197, 1); +} +lean_ctor_set(x_197, 0, x_130); +lean_ctor_set(x_197, 1, x_195); +x_10 = x_197; +goto block_22; +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_198 = lean_unsigned_to_nat(1u); +x_199 = lean_nat_sub(x_189, x_198); +lean_dec(x_189); +x_200 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_187, x_199); +lean_dec(x_199); +x_201 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_186, x_1, x_200); +if (lean_is_scalar(x_188)) { + x_202 = lean_alloc_ctor(0, 2, 1); +} else { + x_202 = x_188; +} +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_33); +lean_ctor_set_uint8(x_202, sizeof(void*)*2, x_185); +x_203 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_203, 0, x_180); +lean_ctor_set(x_203, 1, x_181); +lean_ctor_set(x_203, 2, x_182); +lean_ctor_set(x_203, 3, x_183); +lean_ctor_set(x_203, 4, x_184); +lean_ctor_set(x_203, 5, x_202); +x_204 = lean_st_ref_set(x_4, x_203, x_137); +lean_dec(x_4); +x_205 = lean_ctor_get(x_204, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_206 = x_204; +} else { + lean_dec_ref(x_204); + x_206 = lean_box(0); +} +if (lean_is_scalar(x_206)) { + x_207 = lean_alloc_ctor(1, 2, 0); +} else { + x_207 = x_206; + lean_ctor_set_tag(x_207, 1); +} +lean_ctor_set(x_207, 0, x_130); +lean_ctor_set(x_207, 1, x_205); +x_10 = x_207; +goto block_22; +} +} } } block_22: @@ -10420,7 +10741,7 @@ else lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_dec(x_14); x_21 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_22 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_22 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -10495,7 +10816,7 @@ else 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_dec(x_28); x_40 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_41 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_40, x_3, x_4, x_5, x_6, x_36, x_8, x_12); +x_41 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_40, x_3, x_4, x_5, x_6, x_36, x_8, x_12); lean_dec(x_8); lean_dec(x_36); lean_dec(x_6); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index eecdf15701..090aa9d580 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -28,7 +28,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_14424____closed__12; extern lean_object* l_Lean_Parser_Tactic_revert___closed__2; lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Tactic_evalTacticAux___spec__5(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_focus_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntroMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -47,7 +46,6 @@ lean_object* l_Lean_Syntax_forArgsM___at_Lean_Elab_Tactic_evalTacticSeq1Indented lean_object* l_Lean_Elab_Tactic_evalRevert_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMainMVarContext(lean_object*); lean_object* l_Array_forM___at_Lean_Elab_Tactic_evalTacticAux___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1(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_nullKind; lean_object* l_Lean_Elab_Tactic_adaptExpander___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute(lean_object*); @@ -68,6 +66,7 @@ extern lean_object* l_Lean_Parser_Tactic_first___closed__2; lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTacticAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__1(lean_object*); +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntros_match__2___rarg(lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; @@ -75,7 +74,6 @@ lean_object* l_Lean_Elab_Tactic_evalSkip(lean_object*, lean_object*, lean_object lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_fromRef(lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__2; -lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,8 +92,6 @@ lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_adaptExpander___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntros_match__2(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12938____closed__1; @@ -105,7 +101,6 @@ lean_object* l_Lean_Elab_Tactic_evalTacticAux(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Tactic_done(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1136____closed__8; lean_object* l_List_map___at_Lean_Elab_goalsToMessageData___spec__1(lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -130,6 +125,7 @@ lean_object* l_Lean_Elab_Tactic_forEachVar_match__1(lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_evalClear___spec__1(lean_object*); extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Array_qpartition_loop___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_goalsToMessageData___closed__1; @@ -140,7 +136,6 @@ lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalTacticAux___spec__8___box lean_object* l_Lean_Meta_subst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_getIntrosSize_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux_match__2___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___closed__3; @@ -149,7 +144,6 @@ lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f_ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMessageLog___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tryCatch(lean_object*); lean_object* l_Lean_Elab_Tactic_setGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__3(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*); @@ -160,13 +154,12 @@ lean_object* l_Lean_Elab_Tactic_getGoals___boxed(lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Elab_Tactic_evalTacticAux___spec__3___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_isPrefixOf___closed__1; lean_object* l_Lean_Elab_Tactic_evalDone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented(lean_object*); lean_object* l_Lean_MetavarContext_renameMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__4; lean_object* l_Lean_Elab_Tactic_evalTacticAux_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_isPrefixOf___closed__2; -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1; lean_object* l_Array_qpartition_loop___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -202,7 +195,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalIntros___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_clear___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed__2; extern lean_object* l_Lean_Parser_Tactic_clear___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12938____closed__14; @@ -216,7 +208,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntros___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_getFVarId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2(lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption(lean_object*); lean_object* l_Lean_Elab_Tactic_getMainTag_match__1(lean_object*); @@ -236,15 +227,15 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_12938____closed__6; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip___closed__1; lean_object* l_Lean_Elab_Tactic_evalCase(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__1; -lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2(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___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_Elab_Tactic_evalTacticAux___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTacticAux___spec__1___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSorry(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__2; +lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticAux_match__1(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__4; @@ -270,7 +261,6 @@ lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab extern lean_object* l_Lean_Parser_Tactic_traceState___closed__2; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_TacticM_run(lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_getFVarIds___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*); lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -289,14 +279,15 @@ lean_object* l_Lean_Elab_Tactic_evalDone___rarg___boxed(lean_object*, lean_objec lean_object* l_Lean_Elab_Tactic_evalRevert_match__2(lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___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* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_instOrElseTacticM___closed__1; lean_object* l_Lean_Elab_Tactic_evalDone___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftTermElabM(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_withMacroExpansion___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getGoals___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_saveAllState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -304,7 +295,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone(lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12938____closed__10; -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_withMacroExpansion___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__2; lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFirst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -326,6 +316,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux_match__1(lean_object*, lean_object*); @@ -361,7 +352,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1; lean_object* l_Lean_Elab_Tactic_evalIntro___closed__2; lean_object* l_Lean_Elab_Tactic_saveBacktrackableState___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_instInhabitedSavedState___closed__1; -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_withMacroExpansion___spec__3(lean_object*); extern lean_object* l_Lean_mkSimpleThunk___closed__1; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -382,12 +372,11 @@ lean_object* l_Array_qsort_sort___at___private_Lean_Elab_Tactic_Basic_0__Lean_El lean_object* l_Lean_Elab_Tactic_evalAllGoals___boxed(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_Parser_Tactic_allGoals___closed__2; uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); -lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376____closed__1; lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2; lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__1; extern lean_object* l_Lean_Parser_Tactic_paren___closed__1; extern lean_object* l_Lean_Parser_Tactic_done___closed__2; -lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_forArgsM___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; @@ -396,8 +385,6 @@ lean_object* l_Lean_Elab_Tactic_liftMetaM(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst(lean_object*); lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; -lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_saveAllState___boxed(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop_match__1(lean_object*); @@ -418,6 +405,7 @@ lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_getIntrosSiz lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27___boxed(lean_object*); +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371____closed__1; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_appendGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_saveBacktrackableState(lean_object*); @@ -451,10 +439,12 @@ extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l_Lean_Elab_Tactic_liftMetaTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftTermElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus(lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__1; +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_foldArgsM___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___closed__2; @@ -464,6 +454,7 @@ lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Tactic_evalTacticAux___spec__7( lean_object* l_Lean_Elab_Tactic_evalFirst___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Tactic_withMainMVarContext_match__1(lean_object*); @@ -489,7 +480,6 @@ lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_object*, lea lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__1; lean_object* l_Std_AssocList_find_x3f___at_Lean_Elab_Tactic_evalTacticAux___spec__6(lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_withMacroExpansion___spec__4(lean_object*); lean_object* l_List_filterAuxM___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTacticSeq1Indented___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -532,9 +522,8 @@ lean_object* l_Lean_Elab_Tactic_evalIntro_introStep___lambda__1(lean_object*, le lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalTraceState___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__1; lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalTacticAux___spec__8(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376_(lean_object*); +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371_(lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -558,7 +547,6 @@ lean_object* l_Lean_Elab_Tactic_try_x3f(lean_object*); lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalFirst___spec__1___rarg(lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(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_Parser_Tactic_intro___closed__2; lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); @@ -574,7 +562,6 @@ extern lean_object* l_Lean_Core_instInhabitedState___closed__2; lean_object* l_Lean_Elab_Tactic_evalTacticSeqBracketed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSubst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTacticAux___spec__12(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*); -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_intro___closed__1; lean_object* l_Array_forM___at_Lean_Elab_Tactic_evalTacticAux___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -589,7 +576,6 @@ lean_object* l_Lean_Elab_Tactic_focusAndDone___rarg___closed__1; lean_object* l_Lean_Elab_Tactic_getMainTag_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_intro___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_evalTactic___spec__2(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_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1___boxed(lean_object*, lean_object*); @@ -627,10 +613,10 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__1; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Tactic_evalTacticAux___spec__5___boxed(lean_object*, lean_object*); extern lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1___closed__1; lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__2; +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticInfo(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_myMacro____x40_Init_Notation___hyg_13855____closed__10; lean_object* l_Lean_Elab_Tactic_TacticM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacroFns_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_isPrefixOf_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -642,8 +628,8 @@ lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_Tactic_evalTacticAux___spec__11 lean_object* l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Tactic_BacktrackableState_restore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_SavedState_restore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSeq1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_forEachVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -653,7 +639,6 @@ lean_object* l_Lean_Elab_Tactic_evalAllGoals(lean_object*, lean_object*, lean_ob lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSkip___rarg(lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* l_List_map___at_Lean_Elab_goalsToMessageData___spec__1(lean_object* x_1) { @@ -971,7 +956,7 @@ return x_31; lean_object* l_Lean_Elab_Tactic_BacktrackableState_restore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_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; uint8_t x_33; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_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; lean_object* x_36; lean_object* x_37; uint8_t x_38; x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); x_12 = l_Lean_setEnv___at_Lean_Elab_Tactic_BacktrackableState_restore___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -984,59 +969,151 @@ x_15 = l_Lean_Meta_setMCtx(x_14, x_6, x_7, x_8, x_9, x_13); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); -x_17 = l_Lean_Elab_Term_getMessageLog___rarg(x_5, x_6, x_7, x_8, x_9, x_16); -x_18 = lean_ctor_get(x_17, 0); +x_17 = lean_st_ref_get(x_9, x_16); +x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); lean_dec(x_17); -x_20 = lean_ctor_get(x_1, 2); +x_19 = lean_st_ref_get(x_5, x_18); +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -x_21 = lean_st_ref_get(x_9, x_19); -x_22 = lean_ctor_get(x_21, 1); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_ctor_get(x_20, 5); lean_inc(x_22); -lean_dec(x_21); -x_23 = lean_st_ref_set(x_5, x_20, x_22); -x_24 = lean_ctor_get(x_23, 1); +lean_dec(x_20); +x_23 = l_Lean_Elab_Term_getMessageLog___rarg(x_5, x_6, x_7, x_8, x_9, x_21); +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); lean_dec(x_23); -x_25 = l_Lean_Elab_Term_setMessageLog(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_24); -x_26 = lean_ctor_get(x_25, 1); +x_26 = lean_ctor_get(x_1, 2); lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_st_ref_get(x_9, x_26); +x_27 = lean_st_ref_get(x_9, x_25); x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); -x_29 = lean_st_ref_take(x_3, x_28); +x_29 = lean_st_ref_set(x_5, x_26, x_28); x_30 = lean_ctor_get(x_29, 1); lean_inc(x_30); lean_dec(x_29); -x_31 = lean_ctor_get(x_1, 3); -lean_inc(x_31); -lean_dec(x_1); -x_32 = lean_st_ref_set(x_3, x_31, x_30); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +x_31 = l_Lean_Elab_Term_setMessageLog(x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_st_ref_get(x_9, x_32); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_st_ref_take(x_5, x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = !lean_is_exclusive(x_36); +if (x_38 == 0) { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -x_35 = lean_box(0); -lean_ctor_set(x_32, 0, x_35); -return x_32; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_39 = lean_ctor_get(x_36, 5); +lean_dec(x_39); +lean_ctor_set(x_36, 5, x_22); +x_40 = lean_st_ref_set(x_5, x_36, x_37); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_st_ref_get(x_9, x_41); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_st_ref_take(x_3, x_43); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = lean_ctor_get(x_1, 3); +lean_inc(x_46); +lean_dec(x_1); +x_47 = lean_st_ref_set(x_3, x_46, x_45); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +x_50 = lean_box(0); +lean_ctor_set(x_47, 0, x_50); +return x_47; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_32, 1); -lean_inc(x_36); -lean_dec(x_32); -x_37 = lean_box(0); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_47, 1); +lean_inc(x_51); +lean_dec(x_47); +x_52 = lean_box(0); +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 +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_54 = lean_ctor_get(x_36, 0); +x_55 = lean_ctor_get(x_36, 1); +x_56 = lean_ctor_get(x_36, 2); +x_57 = lean_ctor_get(x_36, 3); +x_58 = lean_ctor_get(x_36, 4); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_36); +x_59 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_59, 0, x_54); +lean_ctor_set(x_59, 1, x_55); +lean_ctor_set(x_59, 2, x_56); +lean_ctor_set(x_59, 3, x_57); +lean_ctor_set(x_59, 4, x_58); +lean_ctor_set(x_59, 5, x_22); +x_60 = lean_st_ref_set(x_5, x_59, x_37); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_st_ref_get(x_9, x_61); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = lean_st_ref_take(x_3, x_63); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_66 = lean_ctor_get(x_1, 3); +lean_inc(x_66); +lean_dec(x_1); +x_67 = lean_st_ref_set(x_3, x_66, x_65); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_69 = x_67; +} else { + lean_dec_ref(x_67); + x_69 = lean_box(0); +} +x_70 = lean_box(0); +if (lean_is_scalar(x_69)) { + x_71 = lean_alloc_ctor(0, 2, 0); +} else { + x_71 = x_69; +} +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_68); +return x_71; } } } @@ -1566,48 +1643,6 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_Elab_Tactic_ensureHasType(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 = lean_box(0); -x_13 = l_Lean_Elab_Term_ensureHasType(x_1, x_2, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} -lean_object* l_Lean_Elab_Tactic_ensureHasType___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_Tactic_ensureHasType(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_4); -lean_dec(x_3); -return x_12; -} -} -lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Term_reportUnsolvedGoals(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Tactic_reportUnsolvedGoals(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -return x_11; -} -} lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -2942,7 +2977,7 @@ return x_53; } } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; @@ -3107,777 +3142,18 @@ return x_52; } } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg___boxed), 6, 0); +x_4 = lean_alloc_closure((void*)(l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg___boxed), 6, 0); return x_4; } } -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_evalTactic___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_25 = lean_st_ref_get(x_10, x_11); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_st_ref_get(x_6, x_26); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_28, 5); -lean_inc(x_29); -lean_dec(x_28); -x_30 = lean_ctor_get_uint8(x_29, sizeof(void*)*2); -lean_dec(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -lean_dec(x_2); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -x_32 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_31); -return x_32; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_27, 1); -lean_inc(x_33); -lean_dec(x_27); -x_34 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg(x_6, x_7, x_8, x_9, x_10, x_33); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -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); -lean_inc(x_3); -x_37 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -lean_inc(x_10); -lean_inc(x_6); -lean_inc(x_38); -x_40 = lean_apply_10(x_2, x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_39); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_st_ref_get(x_10, x_42); -lean_dec(x_10); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_st_ref_take(x_6, x_44); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_46, 5); -lean_inc(x_47); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_48; uint8_t x_49; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = !lean_is_exclusive(x_46); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_46, 5); -lean_dec(x_50); -x_51 = !lean_is_exclusive(x_47); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_52 = lean_ctor_get(x_47, 1); -x_53 = lean_ctor_get(x_41, 0); -lean_inc(x_53); -lean_dec(x_41); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_Std_PersistentArray_push___rarg(x_35, x_54); -lean_ctor_set(x_47, 1, x_55); -x_56 = lean_st_ref_set(x_6, x_46, x_48); -lean_dec(x_6); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_38); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_56, 0, x_60); -x_12 = x_56; -goto block_24; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_56, 1); -lean_inc(x_61); -lean_dec(x_56); -x_62 = lean_box(0); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_38); -lean_ctor_set(x_63, 1, x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -x_12 = x_64; -goto block_24; -} -} -else -{ -uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_65 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_66 = lean_ctor_get(x_47, 0); -x_67 = lean_ctor_get(x_47, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_47); -x_68 = lean_ctor_get(x_41, 0); -lean_inc(x_68); -lean_dec(x_41); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l_Std_PersistentArray_push___rarg(x_35, x_69); -x_71 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_71, 0, x_66); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set_uint8(x_71, sizeof(void*)*2, x_65); -lean_ctor_set(x_46, 5, x_71); -x_72 = lean_st_ref_set(x_6, x_46, x_48); -lean_dec(x_6); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_74 = x_72; -} else { - lean_dec_ref(x_72); - x_74 = lean_box(0); -} -x_75 = lean_box(0); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_38); -lean_ctor_set(x_76, 1, x_75); -if (lean_is_scalar(x_74)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { - x_77 = x_74; -} -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_73); -x_12 = x_77; -goto block_24; -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_78 = lean_ctor_get(x_46, 0); -x_79 = lean_ctor_get(x_46, 1); -x_80 = lean_ctor_get(x_46, 2); -x_81 = lean_ctor_get(x_46, 3); -x_82 = lean_ctor_get(x_46, 4); -lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_46); -x_83 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_84 = lean_ctor_get(x_47, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_47, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_86 = x_47; -} else { - lean_dec_ref(x_47); - x_86 = lean_box(0); -} -x_87 = lean_ctor_get(x_41, 0); -lean_inc(x_87); -lean_dec(x_41); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_85); -x_89 = l_Std_PersistentArray_push___rarg(x_35, x_88); -if (lean_is_scalar(x_86)) { - x_90 = lean_alloc_ctor(0, 2, 1); -} else { - x_90 = x_86; -} -lean_ctor_set(x_90, 0, x_84); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set_uint8(x_90, sizeof(void*)*2, x_83); -x_91 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_91, 0, x_78); -lean_ctor_set(x_91, 1, x_79); -lean_ctor_set(x_91, 2, x_80); -lean_ctor_set(x_91, 3, x_81); -lean_ctor_set(x_91, 4, x_82); -lean_ctor_set(x_91, 5, x_90); -x_92 = lean_st_ref_set(x_6, x_91, x_48); -lean_dec(x_6); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_94 = x_92; -} else { - lean_dec_ref(x_92); - x_94 = lean_box(0); -} -x_95 = lean_box(0); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_38); -lean_ctor_set(x_96, 1, x_95); -if (lean_is_scalar(x_94)) { - x_97 = lean_alloc_ctor(0, 2, 0); -} else { - x_97 = x_94; -} -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_93); -x_12 = x_97; -goto block_24; -} -} -else -{ -lean_object* x_98; uint8_t x_99; -x_98 = lean_ctor_get(x_45, 1); -lean_inc(x_98); -lean_dec(x_45); -x_99 = !lean_is_exclusive(x_46); -if (x_99 == 0) -{ -lean_object* x_100; uint8_t x_101; -x_100 = lean_ctor_get(x_46, 5); -lean_dec(x_100); -x_101 = !lean_is_exclusive(x_47); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_102 = lean_ctor_get(x_47, 1); -lean_dec(x_102); -x_103 = lean_ctor_get(x_41, 0); -lean_inc(x_103); -lean_dec(x_41); -x_104 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_104, 0, x_103); -x_105 = l_Std_PersistentArray_push___rarg(x_35, x_104); -lean_ctor_set(x_47, 1, x_105); -x_106 = lean_st_ref_set(x_6, x_46, x_98); -lean_dec(x_6); -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_106, 0); -lean_dec(x_108); -x_109 = lean_box(0); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_38); -lean_ctor_set(x_110, 1, x_109); -lean_ctor_set(x_106, 0, x_110); -x_12 = x_106; -goto block_24; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_111 = lean_ctor_get(x_106, 1); -lean_inc(x_111); -lean_dec(x_106); -x_112 = lean_box(0); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_38); -lean_ctor_set(x_113, 1, x_112); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_111); -x_12 = x_114; -goto block_24; -} -} -else -{ -uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_115 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_116 = lean_ctor_get(x_47, 0); -lean_inc(x_116); -lean_dec(x_47); -x_117 = lean_ctor_get(x_41, 0); -lean_inc(x_117); -lean_dec(x_41); -x_118 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_118, 0, x_117); -x_119 = l_Std_PersistentArray_push___rarg(x_35, x_118); -x_120 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_120, 0, x_116); -lean_ctor_set(x_120, 1, x_119); -lean_ctor_set_uint8(x_120, sizeof(void*)*2, x_115); -lean_ctor_set(x_46, 5, x_120); -x_121 = lean_st_ref_set(x_6, x_46, x_98); -lean_dec(x_6); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_123 = x_121; -} else { - lean_dec_ref(x_121); - x_123 = lean_box(0); -} -x_124 = lean_box(0); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_38); -lean_ctor_set(x_125, 1, x_124); -if (lean_is_scalar(x_123)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_123; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_122); -x_12 = x_126; -goto block_24; -} -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_127 = lean_ctor_get(x_46, 0); -x_128 = lean_ctor_get(x_46, 1); -x_129 = lean_ctor_get(x_46, 2); -x_130 = lean_ctor_get(x_46, 3); -x_131 = lean_ctor_get(x_46, 4); -lean_inc(x_131); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_46); -x_132 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_133 = lean_ctor_get(x_47, 0); -lean_inc(x_133); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_134 = x_47; -} else { - lean_dec_ref(x_47); - x_134 = lean_box(0); -} -x_135 = lean_ctor_get(x_41, 0); -lean_inc(x_135); -lean_dec(x_41); -x_136 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_136, 0, x_135); -x_137 = l_Std_PersistentArray_push___rarg(x_35, x_136); -if (lean_is_scalar(x_134)) { - x_138 = lean_alloc_ctor(0, 2, 1); -} else { - x_138 = x_134; -} -lean_ctor_set(x_138, 0, x_133); -lean_ctor_set(x_138, 1, x_137); -lean_ctor_set_uint8(x_138, sizeof(void*)*2, x_132); -x_139 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_139, 0, x_127); -lean_ctor_set(x_139, 1, x_128); -lean_ctor_set(x_139, 2, x_129); -lean_ctor_set(x_139, 3, x_130); -lean_ctor_set(x_139, 4, x_131); -lean_ctor_set(x_139, 5, x_138); -x_140 = lean_st_ref_set(x_6, x_139, x_98); -lean_dec(x_6); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_142 = x_140; -} else { - lean_dec_ref(x_140); - x_142 = lean_box(0); -} -x_143 = lean_box(0); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_38); -lean_ctor_set(x_144, 1, x_143); -if (lean_is_scalar(x_142)) { - x_145 = lean_alloc_ctor(0, 2, 0); -} else { - x_145 = x_142; -} -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_141); -x_12 = x_145; -goto block_24; -} -} -} -else -{ -uint8_t x_146; -lean_dec(x_38); -lean_dec(x_35); -lean_dec(x_10); -lean_dec(x_6); -x_146 = !lean_is_exclusive(x_40); -if (x_146 == 0) -{ -x_12 = x_40; -goto block_24; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_40, 0); -x_148 = lean_ctor_get(x_40, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_40); -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -x_12 = x_149; -goto block_24; -} -} -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_150 = lean_ctor_get(x_37, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_37, 1); -lean_inc(x_151); -lean_dec(x_37); -x_152 = lean_st_ref_get(x_10, x_151); -lean_dec(x_10); -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -lean_dec(x_152); -x_154 = lean_st_ref_take(x_6, x_153); -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_155, 5); -lean_inc(x_156); -x_157 = lean_ctor_get(x_154, 1); -lean_inc(x_157); -lean_dec(x_154); -x_158 = !lean_is_exclusive(x_155); -if (x_158 == 0) -{ -lean_object* x_159; uint8_t x_160; -x_159 = lean_ctor_get(x_155, 5); -lean_dec(x_159); -x_160 = !lean_is_exclusive(x_156); -if (x_160 == 0) -{ -lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_161 = lean_ctor_get(x_156, 1); -lean_dec(x_161); -lean_ctor_set(x_156, 1, x_35); -x_162 = lean_st_ref_set(x_6, x_155, x_157); -lean_dec(x_6); -x_163 = !lean_is_exclusive(x_162); -if (x_163 == 0) -{ -lean_object* x_164; -x_164 = lean_ctor_get(x_162, 0); -lean_dec(x_164); -lean_ctor_set_tag(x_162, 1); -lean_ctor_set(x_162, 0, x_150); -x_12 = x_162; -goto block_24; -} -else -{ -lean_object* x_165; lean_object* x_166; -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec(x_162); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_150); -lean_ctor_set(x_166, 1, x_165); -x_12 = x_166; -goto block_24; -} -} -else -{ -uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_167 = lean_ctor_get_uint8(x_156, sizeof(void*)*2); -x_168 = lean_ctor_get(x_156, 0); -lean_inc(x_168); -lean_dec(x_156); -x_169 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_35); -lean_ctor_set_uint8(x_169, sizeof(void*)*2, x_167); -lean_ctor_set(x_155, 5, x_169); -x_170 = lean_st_ref_set(x_6, x_155, x_157); -lean_dec(x_6); -x_171 = lean_ctor_get(x_170, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_172 = x_170; -} else { - lean_dec_ref(x_170); - x_172 = lean_box(0); -} -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 2, 0); -} else { - x_173 = x_172; - lean_ctor_set_tag(x_173, 1); -} -lean_ctor_set(x_173, 0, x_150); -lean_ctor_set(x_173, 1, x_171); -x_12 = x_173; -goto block_24; -} -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_174 = lean_ctor_get(x_155, 0); -x_175 = lean_ctor_get(x_155, 1); -x_176 = lean_ctor_get(x_155, 2); -x_177 = lean_ctor_get(x_155, 3); -x_178 = lean_ctor_get(x_155, 4); -lean_inc(x_178); -lean_inc(x_177); -lean_inc(x_176); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_155); -x_179 = lean_ctor_get_uint8(x_156, sizeof(void*)*2); -x_180 = lean_ctor_get(x_156, 0); -lean_inc(x_180); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_181 = x_156; -} else { - lean_dec_ref(x_156); - x_181 = lean_box(0); -} -if (lean_is_scalar(x_181)) { - x_182 = lean_alloc_ctor(0, 2, 1); -} else { - x_182 = x_181; -} -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_35); -lean_ctor_set_uint8(x_182, sizeof(void*)*2, x_179); -x_183 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_183, 0, x_174); -lean_ctor_set(x_183, 1, x_175); -lean_ctor_set(x_183, 2, x_176); -lean_ctor_set(x_183, 3, x_177); -lean_ctor_set(x_183, 4, x_178); -lean_ctor_set(x_183, 5, x_182); -x_184 = lean_st_ref_set(x_6, x_183, x_157); -lean_dec(x_6); -x_185 = lean_ctor_get(x_184, 1); -lean_inc(x_185); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_186 = x_184; -} else { - lean_dec_ref(x_184); - x_186 = lean_box(0); -} -if (lean_is_scalar(x_186)) { - x_187 = lean_alloc_ctor(1, 2, 0); -} else { - x_187 = x_186; - lean_ctor_set_tag(x_187, 1); -} -lean_ctor_set(x_187, 0, x_150); -lean_ctor_set(x_187, 1, x_185); -x_12 = x_187; -goto block_24; -} -} -} -block_24: -{ -if (lean_obj_tag(x_12) == 0) -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -lean_ctor_set(x_12, 0, x_15); -return x_12; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_12, 0); -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_12); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} -} -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_12); -if (x_20 == 0) -{ -return x_12; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_12); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -} -} -} -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1___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; -x_12 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_12, 0, x_15); -return x_12; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_12, 0); -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_12); -x_18 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_18, 0, x_16); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} -} -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_12); -if (x_20 == 0) -{ -return x_12; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_12); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -} -} -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1___lambda__1___boxed), 11, 1); -lean_closure_set(x_12, 0, x_2); -x_13 = l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_evalTactic___spec__2(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} lean_object* l_Lean_Elab_Tactic_evalTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; x_11 = lean_st_ref_get(x_9, x_10); x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); @@ -3897,15 +3173,415 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); +x_20 = lean_st_ref_get(x_9, x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_ref_get(x_5, x_21); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_23, 5); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get_uint8(x_24, sizeof(void*)*2); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_18); +lean_dec(x_16); +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +x_27 = l_Lean_Elab_Tactic_evalTacticAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_dec(x_22); +x_29 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg(x_5, x_6, x_7, x_8, x_9, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); lean_inc(x_1); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticAux), 10, 1); -lean_closure_set(x_20, 0, x_1); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_mkTacticInfo___boxed), 12, 3); -lean_closure_set(x_21, 0, x_16); -lean_closure_set(x_21, 1, x_18); -lean_closure_set(x_21, 2, x_1); -x_22 = l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1(x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); -return x_22; +x_32 = l_Lean_Elab_Tactic_evalTacticAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_Lean_Elab_Tactic_mkTacticInfo(x_16, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_34); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_st_ref_get(x_9, x_37); +lean_dec(x_9); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_st_ref_take(x_5, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 5); +lean_inc(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_41, 5); +lean_dec(x_45); +x_46 = !lean_is_exclusive(x_42); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_47 = lean_ctor_get(x_42, 1); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_36); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Std_PersistentArray_push___rarg(x_30, x_48); +lean_ctor_set(x_42, 1, x_49); +x_50 = lean_st_ref_set(x_5, x_41, x_43); +lean_dec(x_5); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) +{ +lean_object* x_52; +x_52 = lean_ctor_get(x_50, 0); +lean_dec(x_52); +lean_ctor_set(x_50, 0, x_33); +return x_50; +} +else +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_33); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +else +{ +uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_55 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); +x_56 = lean_ctor_get(x_42, 0); +x_57 = lean_ctor_get(x_42, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_42); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_36); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Std_PersistentArray_push___rarg(x_30, x_58); +x_60 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_59); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_55); +lean_ctor_set(x_41, 5, x_60); +x_61 = lean_st_ref_set(x_5, x_41, x_43); +lean_dec(x_5); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_63 = x_61; +} else { + lean_dec_ref(x_61); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_33); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_65 = lean_ctor_get(x_41, 0); +x_66 = lean_ctor_get(x_41, 1); +x_67 = lean_ctor_get(x_41, 2); +x_68 = lean_ctor_get(x_41, 3); +x_69 = lean_ctor_get(x_41, 4); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_41); +x_70 = lean_ctor_get_uint8(x_42, sizeof(void*)*2); +x_71 = lean_ctor_get(x_42, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_42, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_73 = x_42; +} else { + lean_dec_ref(x_42); + x_73 = lean_box(0); +} +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_36); +lean_ctor_set(x_74, 1, x_72); +x_75 = l_Std_PersistentArray_push___rarg(x_30, x_74); +if (lean_is_scalar(x_73)) { + x_76 = lean_alloc_ctor(0, 2, 1); +} else { + x_76 = x_73; +} +lean_ctor_set(x_76, 0, x_71); +lean_ctor_set(x_76, 1, x_75); +lean_ctor_set_uint8(x_76, sizeof(void*)*2, x_70); +x_77 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_77, 0, x_65); +lean_ctor_set(x_77, 1, x_66); +lean_ctor_set(x_77, 2, x_67); +lean_ctor_set(x_77, 3, x_68); +lean_ctor_set(x_77, 4, x_69); +lean_ctor_set(x_77, 5, x_76); +x_78 = lean_st_ref_set(x_5, x_77, x_43); +lean_dec(x_5); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_80 = x_78; +} else { + lean_dec_ref(x_78); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_33); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_82 = lean_ctor_get(x_32, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_32, 1); +lean_inc(x_83); +lean_dec(x_32); +x_84 = l_Lean_Elab_Tactic_mkTacticInfo(x_16, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_83); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_st_ref_get(x_9, x_86); +lean_dec(x_9); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_st_ref_take(x_5, x_88); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_90, 5); +lean_inc(x_91); +x_92 = lean_ctor_get(x_89, 1); +lean_inc(x_92); +lean_dec(x_89); +x_93 = !lean_is_exclusive(x_90); +if (x_93 == 0) +{ +lean_object* x_94; uint8_t x_95; +x_94 = lean_ctor_get(x_90, 5); +lean_dec(x_94); +x_95 = !lean_is_exclusive(x_91); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_96 = lean_ctor_get(x_91, 1); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_85); +lean_ctor_set(x_97, 1, x_96); +x_98 = l_Std_PersistentArray_push___rarg(x_30, x_97); +lean_ctor_set(x_91, 1, x_98); +x_99 = lean_st_ref_set(x_5, x_90, x_92); +lean_dec(x_5); +x_100 = !lean_is_exclusive(x_99); +if (x_100 == 0) +{ +lean_object* x_101; +x_101 = lean_ctor_get(x_99, 0); +lean_dec(x_101); +lean_ctor_set_tag(x_99, 1); +lean_ctor_set(x_99, 0, x_82); +return x_99; +} +else +{ +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_99, 1); +lean_inc(x_102); +lean_dec(x_99); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_82); +lean_ctor_set(x_103, 1, x_102); +return x_103; +} +} +else +{ +uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_104 = lean_ctor_get_uint8(x_91, sizeof(void*)*2); +x_105 = lean_ctor_get(x_91, 0); +x_106 = lean_ctor_get(x_91, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_91); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_85); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Std_PersistentArray_push___rarg(x_30, x_107); +x_109 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_109, 0, x_105); +lean_ctor_set(x_109, 1, x_108); +lean_ctor_set_uint8(x_109, sizeof(void*)*2, x_104); +lean_ctor_set(x_90, 5, x_109); +x_110 = lean_st_ref_set(x_5, x_90, x_92); +lean_dec(x_5); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_112 = x_110; +} else { + lean_dec_ref(x_110); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; + lean_ctor_set_tag(x_113, 1); +} +lean_ctor_set(x_113, 0, x_82); +lean_ctor_set(x_113, 1, x_111); +return x_113; +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_114 = lean_ctor_get(x_90, 0); +x_115 = lean_ctor_get(x_90, 1); +x_116 = lean_ctor_get(x_90, 2); +x_117 = lean_ctor_get(x_90, 3); +x_118 = lean_ctor_get(x_90, 4); +lean_inc(x_118); +lean_inc(x_117); +lean_inc(x_116); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_90); +x_119 = lean_ctor_get_uint8(x_91, sizeof(void*)*2); +x_120 = lean_ctor_get(x_91, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_91, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_122 = x_91; +} else { + lean_dec_ref(x_91); + x_122 = lean_box(0); +} +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_85); +lean_ctor_set(x_123, 1, x_121); +x_124 = l_Std_PersistentArray_push___rarg(x_30, x_123); +if (lean_is_scalar(x_122)) { + x_125 = lean_alloc_ctor(0, 2, 1); +} else { + x_125 = x_122; +} +lean_ctor_set(x_125, 0, x_120); +lean_ctor_set(x_125, 1, x_124); +lean_ctor_set_uint8(x_125, sizeof(void*)*2, x_119); +x_126 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_126, 0, x_114); +lean_ctor_set(x_126, 1, x_115); +lean_ctor_set(x_126, 2, x_116); +lean_ctor_set(x_126, 3, x_117); +lean_ctor_set(x_126, 4, x_118); +lean_ctor_set(x_126, 5, x_125); +x_127 = lean_st_ref_set(x_5, x_126, x_92); +lean_dec(x_5); +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_129 = x_127; +} else { + lean_dec_ref(x_127); + x_129 = lean_box(0); +} +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_129; + lean_ctor_set_tag(x_130, 1); +} +lean_ctor_set(x_130, 0, x_82); +lean_ctor_set(x_130, 1, x_128); +return x_130; +} +} +} } } lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Elab_Tactic_evalTacticAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -6381,11 +6057,11 @@ lean_dec(x_3); return x_13; } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -6394,26 +6070,17 @@ lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3(x_1, x_2, x_3); +x_4 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1(x_1, x_2, x_3); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1___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_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1___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_2); -return x_12; -} -} lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Elab_Tactic_evalTacticAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -6597,837 +6264,407 @@ lean_dec(x_1); return x_13; } } -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -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); -lean_inc(x_3); -x_12 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_apply_10(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); -return x_15; -} -else -{ -uint8_t 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); -lean_dec(x_3); -lean_dec(x_2); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) -{ -return x_12; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -} -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 0); -return x_3; -} -} -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_withMacroExpansion___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_25 = lean_st_ref_get(x_10, x_11); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_st_ref_get(x_6, x_26); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_28, 5); -lean_inc(x_29); -lean_dec(x_28); -x_30 = lean_ctor_get_uint8(x_29, sizeof(void*)*2); -lean_dec(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -lean_dec(x_2); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -x_32 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_31); -return x_32; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_27, 1); -lean_inc(x_33); -lean_dec(x_27); -x_34 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__3___rarg(x_6, x_7, x_8, x_9, x_10, x_33); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -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); -lean_inc(x_3); -x_37 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -lean_inc(x_10); -lean_inc(x_6); -lean_inc(x_38); -x_40 = lean_apply_10(x_2, x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_39); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_st_ref_get(x_10, x_42); -lean_dec(x_10); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_st_ref_take(x_6, x_44); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_46, 5); -lean_inc(x_47); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_48; uint8_t x_49; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = !lean_is_exclusive(x_46); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -x_50 = lean_ctor_get(x_46, 5); -lean_dec(x_50); -x_51 = !lean_is_exclusive(x_47); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_52 = lean_ctor_get(x_47, 1); -x_53 = lean_ctor_get(x_41, 0); -lean_inc(x_53); -lean_dec(x_41); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_Std_PersistentArray_push___rarg(x_35, x_54); -lean_ctor_set(x_47, 1, x_55); -x_56 = lean_st_ref_set(x_6, x_46, x_48); -lean_dec(x_6); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_38); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_56, 0, x_60); -x_12 = x_56; -goto block_24; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_56, 1); -lean_inc(x_61); -lean_dec(x_56); -x_62 = lean_box(0); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_38); -lean_ctor_set(x_63, 1, x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -x_12 = x_64; -goto block_24; -} -} -else -{ -uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_65 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_66 = lean_ctor_get(x_47, 0); -x_67 = lean_ctor_get(x_47, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_47); -x_68 = lean_ctor_get(x_41, 0); -lean_inc(x_68); -lean_dec(x_41); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l_Std_PersistentArray_push___rarg(x_35, x_69); -x_71 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_71, 0, x_66); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set_uint8(x_71, sizeof(void*)*2, x_65); -lean_ctor_set(x_46, 5, x_71); -x_72 = lean_st_ref_set(x_6, x_46, x_48); -lean_dec(x_6); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_74 = x_72; -} else { - lean_dec_ref(x_72); - x_74 = lean_box(0); -} -x_75 = lean_box(0); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_38); -lean_ctor_set(x_76, 1, x_75); -if (lean_is_scalar(x_74)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { - x_77 = x_74; -} -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_73); -x_12 = x_77; -goto block_24; -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_78 = lean_ctor_get(x_46, 0); -x_79 = lean_ctor_get(x_46, 1); -x_80 = lean_ctor_get(x_46, 2); -x_81 = lean_ctor_get(x_46, 3); -x_82 = lean_ctor_get(x_46, 4); -lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_46); -x_83 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_84 = lean_ctor_get(x_47, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_47, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_86 = x_47; -} else { - lean_dec_ref(x_47); - x_86 = lean_box(0); -} -x_87 = lean_ctor_get(x_41, 0); -lean_inc(x_87); -lean_dec(x_41); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_85); -x_89 = l_Std_PersistentArray_push___rarg(x_35, x_88); -if (lean_is_scalar(x_86)) { - x_90 = lean_alloc_ctor(0, 2, 1); -} else { - x_90 = x_86; -} -lean_ctor_set(x_90, 0, x_84); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set_uint8(x_90, sizeof(void*)*2, x_83); -x_91 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_91, 0, x_78); -lean_ctor_set(x_91, 1, x_79); -lean_ctor_set(x_91, 2, x_80); -lean_ctor_set(x_91, 3, x_81); -lean_ctor_set(x_91, 4, x_82); -lean_ctor_set(x_91, 5, x_90); -x_92 = lean_st_ref_set(x_6, x_91, x_48); -lean_dec(x_6); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_94 = x_92; -} else { - lean_dec_ref(x_92); - x_94 = lean_box(0); -} -x_95 = lean_box(0); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_38); -lean_ctor_set(x_96, 1, x_95); -if (lean_is_scalar(x_94)) { - x_97 = lean_alloc_ctor(0, 2, 0); -} else { - x_97 = x_94; -} -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_93); -x_12 = x_97; -goto block_24; -} -} -else -{ -lean_object* x_98; uint8_t x_99; -x_98 = lean_ctor_get(x_45, 1); -lean_inc(x_98); -lean_dec(x_45); -x_99 = !lean_is_exclusive(x_46); -if (x_99 == 0) -{ -lean_object* x_100; uint8_t x_101; -x_100 = lean_ctor_get(x_46, 5); -lean_dec(x_100); -x_101 = !lean_is_exclusive(x_47); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_102 = lean_ctor_get(x_47, 1); -lean_dec(x_102); -x_103 = lean_ctor_get(x_41, 0); -lean_inc(x_103); -lean_dec(x_41); -x_104 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_104, 0, x_103); -x_105 = l_Std_PersistentArray_push___rarg(x_35, x_104); -lean_ctor_set(x_47, 1, x_105); -x_106 = lean_st_ref_set(x_6, x_46, x_98); -lean_dec(x_6); -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_106, 0); -lean_dec(x_108); -x_109 = lean_box(0); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_38); -lean_ctor_set(x_110, 1, x_109); -lean_ctor_set(x_106, 0, x_110); -x_12 = x_106; -goto block_24; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_111 = lean_ctor_get(x_106, 1); -lean_inc(x_111); -lean_dec(x_106); -x_112 = lean_box(0); -x_113 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_113, 0, x_38); -lean_ctor_set(x_113, 1, x_112); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_111); -x_12 = x_114; -goto block_24; -} -} -else -{ -uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_115 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_116 = lean_ctor_get(x_47, 0); -lean_inc(x_116); -lean_dec(x_47); -x_117 = lean_ctor_get(x_41, 0); -lean_inc(x_117); -lean_dec(x_41); -x_118 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_118, 0, x_117); -x_119 = l_Std_PersistentArray_push___rarg(x_35, x_118); -x_120 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_120, 0, x_116); -lean_ctor_set(x_120, 1, x_119); -lean_ctor_set_uint8(x_120, sizeof(void*)*2, x_115); -lean_ctor_set(x_46, 5, x_120); -x_121 = lean_st_ref_set(x_6, x_46, x_98); -lean_dec(x_6); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_123 = x_121; -} else { - lean_dec_ref(x_121); - x_123 = lean_box(0); -} -x_124 = lean_box(0); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_38); -lean_ctor_set(x_125, 1, x_124); -if (lean_is_scalar(x_123)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_123; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_122); -x_12 = x_126; -goto block_24; -} -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_127 = lean_ctor_get(x_46, 0); -x_128 = lean_ctor_get(x_46, 1); -x_129 = lean_ctor_get(x_46, 2); -x_130 = lean_ctor_get(x_46, 3); -x_131 = lean_ctor_get(x_46, 4); -lean_inc(x_131); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_46); -x_132 = lean_ctor_get_uint8(x_47, sizeof(void*)*2); -x_133 = lean_ctor_get(x_47, 0); -lean_inc(x_133); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_134 = x_47; -} else { - lean_dec_ref(x_47); - x_134 = lean_box(0); -} -x_135 = lean_ctor_get(x_41, 0); -lean_inc(x_135); -lean_dec(x_41); -x_136 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_136, 0, x_135); -x_137 = l_Std_PersistentArray_push___rarg(x_35, x_136); -if (lean_is_scalar(x_134)) { - x_138 = lean_alloc_ctor(0, 2, 1); -} else { - x_138 = x_134; -} -lean_ctor_set(x_138, 0, x_133); -lean_ctor_set(x_138, 1, x_137); -lean_ctor_set_uint8(x_138, sizeof(void*)*2, x_132); -x_139 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_139, 0, x_127); -lean_ctor_set(x_139, 1, x_128); -lean_ctor_set(x_139, 2, x_129); -lean_ctor_set(x_139, 3, x_130); -lean_ctor_set(x_139, 4, x_131); -lean_ctor_set(x_139, 5, x_138); -x_140 = lean_st_ref_set(x_6, x_139, x_98); -lean_dec(x_6); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_142 = x_140; -} else { - lean_dec_ref(x_140); - x_142 = lean_box(0); -} -x_143 = lean_box(0); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_38); -lean_ctor_set(x_144, 1, x_143); -if (lean_is_scalar(x_142)) { - x_145 = lean_alloc_ctor(0, 2, 0); -} else { - x_145 = x_142; -} -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_141); -x_12 = x_145; -goto block_24; -} -} -} -else -{ -uint8_t x_146; -lean_dec(x_38); -lean_dec(x_35); -lean_dec(x_10); -lean_dec(x_6); -x_146 = !lean_is_exclusive(x_40); -if (x_146 == 0) -{ -x_12 = x_40; -goto block_24; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_40, 0); -x_148 = lean_ctor_get(x_40, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_40); -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -x_12 = x_149; -goto block_24; -} -} -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_150 = lean_ctor_get(x_37, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_37, 1); -lean_inc(x_151); -lean_dec(x_37); -x_152 = lean_st_ref_get(x_10, x_151); -lean_dec(x_10); -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -lean_dec(x_152); -x_154 = lean_st_ref_take(x_6, x_153); -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_155, 5); -lean_inc(x_156); -x_157 = lean_ctor_get(x_154, 1); -lean_inc(x_157); -lean_dec(x_154); -x_158 = !lean_is_exclusive(x_155); -if (x_158 == 0) -{ -lean_object* x_159; uint8_t x_160; -x_159 = lean_ctor_get(x_155, 5); -lean_dec(x_159); -x_160 = !lean_is_exclusive(x_156); -if (x_160 == 0) -{ -lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_161 = lean_ctor_get(x_156, 1); -lean_dec(x_161); -lean_ctor_set(x_156, 1, x_35); -x_162 = lean_st_ref_set(x_6, x_155, x_157); -lean_dec(x_6); -x_163 = !lean_is_exclusive(x_162); -if (x_163 == 0) -{ -lean_object* x_164; -x_164 = lean_ctor_get(x_162, 0); -lean_dec(x_164); -lean_ctor_set_tag(x_162, 1); -lean_ctor_set(x_162, 0, x_150); -x_12 = x_162; -goto block_24; -} -else -{ -lean_object* x_165; lean_object* x_166; -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec(x_162); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_150); -lean_ctor_set(x_166, 1, x_165); -x_12 = x_166; -goto block_24; -} -} -else -{ -uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_167 = lean_ctor_get_uint8(x_156, sizeof(void*)*2); -x_168 = lean_ctor_get(x_156, 0); -lean_inc(x_168); -lean_dec(x_156); -x_169 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_35); -lean_ctor_set_uint8(x_169, sizeof(void*)*2, x_167); -lean_ctor_set(x_155, 5, x_169); -x_170 = lean_st_ref_set(x_6, x_155, x_157); -lean_dec(x_6); -x_171 = lean_ctor_get(x_170, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_172 = x_170; -} else { - lean_dec_ref(x_170); - x_172 = lean_box(0); -} -if (lean_is_scalar(x_172)) { - x_173 = lean_alloc_ctor(1, 2, 0); -} else { - x_173 = x_172; - lean_ctor_set_tag(x_173, 1); -} -lean_ctor_set(x_173, 0, x_150); -lean_ctor_set(x_173, 1, x_171); -x_12 = x_173; -goto block_24; -} -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_174 = lean_ctor_get(x_155, 0); -x_175 = lean_ctor_get(x_155, 1); -x_176 = lean_ctor_get(x_155, 2); -x_177 = lean_ctor_get(x_155, 3); -x_178 = lean_ctor_get(x_155, 4); -lean_inc(x_178); -lean_inc(x_177); -lean_inc(x_176); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_155); -x_179 = lean_ctor_get_uint8(x_156, sizeof(void*)*2); -x_180 = lean_ctor_get(x_156, 0); -lean_inc(x_180); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_181 = x_156; -} else { - lean_dec_ref(x_156); - x_181 = lean_box(0); -} -if (lean_is_scalar(x_181)) { - x_182 = lean_alloc_ctor(0, 2, 1); -} else { - x_182 = x_181; -} -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_35); -lean_ctor_set_uint8(x_182, sizeof(void*)*2, x_179); -x_183 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_183, 0, x_174); -lean_ctor_set(x_183, 1, x_175); -lean_ctor_set(x_183, 2, x_176); -lean_ctor_set(x_183, 3, x_177); -lean_ctor_set(x_183, 4, x_178); -lean_ctor_set(x_183, 5, x_182); -x_184 = lean_st_ref_set(x_6, x_183, x_157); -lean_dec(x_6); -x_185 = lean_ctor_get(x_184, 1); -lean_inc(x_185); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_186 = x_184; -} else { - lean_dec_ref(x_184); - x_186 = lean_box(0); -} -if (lean_is_scalar(x_186)) { - x_187 = lean_alloc_ctor(1, 2, 0); -} else { - x_187 = x_186; - lean_ctor_set_tag(x_187, 1); -} -lean_ctor_set(x_187, 0, x_150); -lean_ctor_set(x_187, 1, x_185); -x_12 = x_187; -goto block_24; -} -} -} -block_24: -{ -if (lean_obj_tag(x_12) == 0) -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -lean_ctor_set(x_12, 0, x_15); -return x_12; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_12, 0); -x_17 = lean_ctor_get(x_12, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_12); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} -} -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_12); -if (x_20 == 0) -{ -return x_12; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_12); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -} -} -} -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_withMacroExpansion___spec__4(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_withMacroExpansion___spec__4___rarg), 11, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_withMacroExpansion___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1___lambda__1___boxed), 11, 1); -lean_closure_set(x_12, 0, x_2); -x_13 = l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Tactic_withMacroExpansion___spec__4___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_withMacroExpansion___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_withMacroExpansion___spec__3___rarg), 11, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_5, 1); -lean_inc(x_10); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -return x_11; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_13, 0, x_3); -lean_ctor_set(x_13, 1, x_1); -lean_ctor_set(x_13, 2, x_2); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -static lean_object* _init_l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__1___boxed), 9, 0); -return x_1; -} -} lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__2___boxed), 12, 2); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_2); -x_14 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; -x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); -lean_closure_set(x_15, 0, x_14); -lean_closure_set(x_15, 1, x_13); -x_16 = l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_withMacroExpansion___spec__3___rarg(x_3, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_16; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_st_ref_get(x_11, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_get(x_7, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 5); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*2); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_dec(x_15); +x_22 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg(x_7, x_8, x_9, x_10, x_11, x_21); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +x_25 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); +lean_dec(x_8); +x_29 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_1); +lean_ctor_set(x_29, 2, x_2); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_st_ref_get(x_11, x_27); +lean_dec(x_11); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_st_ref_take(x_7, x_32); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_34, 5); +lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = !lean_is_exclusive(x_34); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_34, 5); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_40 = lean_ctor_get(x_35, 1); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_30); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Std_PersistentArray_push___rarg(x_23, x_41); +lean_ctor_set(x_35, 1, x_42); +x_43 = lean_st_ref_set(x_7, x_34, x_36); +lean_dec(x_7); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +lean_ctor_set(x_43, 0, x_26); +return x_43; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +else +{ +uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_48 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_35); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_30); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Std_PersistentArray_push___rarg(x_23, x_51); +x_53 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_53, 0, x_49); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set_uint8(x_53, sizeof(void*)*2, x_48); +lean_ctor_set(x_34, 5, x_53); +x_54 = lean_st_ref_set(x_7, x_34, x_36); +lean_dec(x_7); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_26); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_58 = lean_ctor_get(x_34, 0); +x_59 = lean_ctor_get(x_34, 1); +x_60 = lean_ctor_get(x_34, 2); +x_61 = lean_ctor_get(x_34, 3); +x_62 = lean_ctor_get(x_34, 4); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_34); +x_63 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); +x_64 = lean_ctor_get(x_35, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_35, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_66 = x_35; +} else { + lean_dec_ref(x_35); + x_66 = lean_box(0); +} +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_30); +lean_ctor_set(x_67, 1, x_65); +x_68 = l_Std_PersistentArray_push___rarg(x_23, x_67); +if (lean_is_scalar(x_66)) { + x_69 = lean_alloc_ctor(0, 2, 1); +} else { + x_69 = x_66; +} +lean_ctor_set(x_69, 0, x_64); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set_uint8(x_69, sizeof(void*)*2, x_63); +x_70 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_70, 0, x_58); +lean_ctor_set(x_70, 1, x_59); +lean_ctor_set(x_70, 2, x_60); +lean_ctor_set(x_70, 3, x_61); +lean_ctor_set(x_70, 4, x_62); +lean_ctor_set(x_70, 5, x_69); +x_71 = lean_st_ref_set(x_7, x_70, x_36); +lean_dec(x_7); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_73 = x_71; +} else { + lean_dec_ref(x_71); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_26); +lean_ctor_set(x_74, 1, x_72); +return x_74; +} +} +else +{ +lean_object* x_75; 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; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_75 = lean_ctor_get(x_25, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_25, 1); +lean_inc(x_76); +lean_dec(x_25); +x_77 = lean_ctor_get(x_8, 1); +lean_inc(x_77); +lean_dec(x_8); +x_78 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_1); +lean_ctor_set(x_78, 2, x_2); +x_79 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_79, 0, x_78); +x_80 = lean_st_ref_get(x_11, x_76); +lean_dec(x_11); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = lean_st_ref_take(x_7, x_81); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_83, 5); +lean_inc(x_84); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_dec(x_82); +x_86 = !lean_is_exclusive(x_83); +if (x_86 == 0) +{ +lean_object* x_87; uint8_t x_88; +x_87 = lean_ctor_get(x_83, 5); +lean_dec(x_87); +x_88 = !lean_is_exclusive(x_84); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_89 = lean_ctor_get(x_84, 1); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_79); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Std_PersistentArray_push___rarg(x_23, x_90); +lean_ctor_set(x_84, 1, x_91); +x_92 = lean_st_ref_set(x_7, x_83, x_85); +lean_dec(x_7); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; +x_94 = lean_ctor_get(x_92, 0); +lean_dec(x_94); +lean_ctor_set_tag(x_92, 1); +lean_ctor_set(x_92, 0, x_75); +return x_92; +} +else +{ +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +lean_dec(x_92); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_75); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +} +else +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_97 = lean_ctor_get_uint8(x_84, sizeof(void*)*2); +x_98 = lean_ctor_get(x_84, 0); +x_99 = lean_ctor_get(x_84, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_84); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_79); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_Std_PersistentArray_push___rarg(x_23, x_100); +x_102 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_102, 0, x_98); +lean_ctor_set(x_102, 1, x_101); +lean_ctor_set_uint8(x_102, sizeof(void*)*2, x_97); +lean_ctor_set(x_83, 5, x_102); +x_103 = lean_st_ref_set(x_7, x_83, x_85); +lean_dec(x_7); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; +} else { + lean_dec_ref(x_103); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; + lean_ctor_set_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_75); +lean_ctor_set(x_106, 1, x_104); +return x_106; +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_107 = lean_ctor_get(x_83, 0); +x_108 = lean_ctor_get(x_83, 1); +x_109 = lean_ctor_get(x_83, 2); +x_110 = lean_ctor_get(x_83, 3); +x_111 = lean_ctor_get(x_83, 4); +lean_inc(x_111); +lean_inc(x_110); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_83); +x_112 = lean_ctor_get_uint8(x_84, sizeof(void*)*2); +x_113 = lean_ctor_get(x_84, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_84, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_115 = x_84; +} else { + lean_dec_ref(x_84); + x_115 = lean_box(0); +} +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_79); +lean_ctor_set(x_116, 1, x_114); +x_117 = l_Std_PersistentArray_push___rarg(x_23, x_116); +if (lean_is_scalar(x_115)) { + x_118 = lean_alloc_ctor(0, 2, 1); +} else { + x_118 = x_115; +} +lean_ctor_set(x_118, 0, x_113); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set_uint8(x_118, sizeof(void*)*2, x_112); +x_119 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_119, 0, x_107); +lean_ctor_set(x_119, 1, x_108); +lean_ctor_set(x_119, 2, x_109); +lean_ctor_set(x_119, 3, x_110); +lean_ctor_set(x_119, 4, x_111); +lean_ctor_set(x_119, 5, x_118); +x_120 = lean_st_ref_set(x_7, x_119, x_85); +lean_dec(x_7); +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_122 = x_120; +} else { + lean_dec_ref(x_120); + x_122 = lean_box(0); +} +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_122; + lean_ctor_set_tag(x_123, 1); +} +lean_ctor_set(x_123, 0, x_75); +lean_ctor_set(x_123, 1, x_121); +return x_123; +} +} +} } } lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1(lean_object* x_1) { @@ -7525,51 +6762,407 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withMacroExpansion___rarg), return x_2; } } -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_13; -} -} lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_adaptExpander___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___lambda__2___boxed), 12, 2); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_2); -x_14 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; -x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); -lean_closure_set(x_15, 0, x_14); -lean_closure_set(x_15, 1, x_13); -x_16 = l_Lean_Elab_withInfoContext___at_Lean_Elab_Tactic_evalTactic___spec__1(x_3, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_16; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_st_ref_get(x_11, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_get(x_7, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 5); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*2); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_2); +lean_dec(x_1); +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_dec(x_15); +x_22 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_evalTactic___spec__1___rarg(x_7, x_8, x_9, x_10, x_11, x_21); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_11); +lean_inc(x_8); +lean_inc(x_7); +x_25 = lean_apply_9(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); +lean_dec(x_8); +x_29 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_1); +lean_ctor_set(x_29, 2, x_2); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_st_ref_get(x_11, x_27); +lean_dec(x_11); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_st_ref_take(x_7, x_32); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_34, 5); +lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = !lean_is_exclusive(x_34); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_34, 5); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_40 = lean_ctor_get(x_35, 1); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_30); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Std_PersistentArray_push___rarg(x_23, x_41); +lean_ctor_set(x_35, 1, x_42); +x_43 = lean_st_ref_set(x_7, x_34, x_36); +lean_dec(x_7); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +lean_ctor_set(x_43, 0, x_26); +return x_43; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +else +{ +uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_48 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_35); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_30); +lean_ctor_set(x_51, 1, x_50); +x_52 = l_Std_PersistentArray_push___rarg(x_23, x_51); +x_53 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_53, 0, x_49); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set_uint8(x_53, sizeof(void*)*2, x_48); +lean_ctor_set(x_34, 5, x_53); +x_54 = lean_st_ref_set(x_7, x_34, x_36); +lean_dec(x_7); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_26); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_58 = lean_ctor_get(x_34, 0); +x_59 = lean_ctor_get(x_34, 1); +x_60 = lean_ctor_get(x_34, 2); +x_61 = lean_ctor_get(x_34, 3); +x_62 = lean_ctor_get(x_34, 4); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_34); +x_63 = lean_ctor_get_uint8(x_35, sizeof(void*)*2); +x_64 = lean_ctor_get(x_35, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_35, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_66 = x_35; +} else { + lean_dec_ref(x_35); + x_66 = lean_box(0); +} +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_30); +lean_ctor_set(x_67, 1, x_65); +x_68 = l_Std_PersistentArray_push___rarg(x_23, x_67); +if (lean_is_scalar(x_66)) { + x_69 = lean_alloc_ctor(0, 2, 1); +} else { + x_69 = x_66; +} +lean_ctor_set(x_69, 0, x_64); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set_uint8(x_69, sizeof(void*)*2, x_63); +x_70 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_70, 0, x_58); +lean_ctor_set(x_70, 1, x_59); +lean_ctor_set(x_70, 2, x_60); +lean_ctor_set(x_70, 3, x_61); +lean_ctor_set(x_70, 4, x_62); +lean_ctor_set(x_70, 5, x_69); +x_71 = lean_st_ref_set(x_7, x_70, x_36); +lean_dec(x_7); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_73 = x_71; +} else { + lean_dec_ref(x_71); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_26); +lean_ctor_set(x_74, 1, x_72); +return x_74; +} +} +else +{ +lean_object* x_75; 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; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_75 = lean_ctor_get(x_25, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_25, 1); +lean_inc(x_76); +lean_dec(x_25); +x_77 = lean_ctor_get(x_8, 1); +lean_inc(x_77); +lean_dec(x_8); +x_78 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_1); +lean_ctor_set(x_78, 2, x_2); +x_79 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_79, 0, x_78); +x_80 = lean_st_ref_get(x_11, x_76); +lean_dec(x_11); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = lean_st_ref_take(x_7, x_81); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_83, 5); +lean_inc(x_84); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_dec(x_82); +x_86 = !lean_is_exclusive(x_83); +if (x_86 == 0) +{ +lean_object* x_87; uint8_t x_88; +x_87 = lean_ctor_get(x_83, 5); +lean_dec(x_87); +x_88 = !lean_is_exclusive(x_84); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_89 = lean_ctor_get(x_84, 1); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_79); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Std_PersistentArray_push___rarg(x_23, x_90); +lean_ctor_set(x_84, 1, x_91); +x_92 = lean_st_ref_set(x_7, x_83, x_85); +lean_dec(x_7); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; +x_94 = lean_ctor_get(x_92, 0); +lean_dec(x_94); +lean_ctor_set_tag(x_92, 1); +lean_ctor_set(x_92, 0, x_75); +return x_92; +} +else +{ +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +lean_dec(x_92); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_75); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +} +else +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_97 = lean_ctor_get_uint8(x_84, sizeof(void*)*2); +x_98 = lean_ctor_get(x_84, 0); +x_99 = lean_ctor_get(x_84, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_84); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_79); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_Std_PersistentArray_push___rarg(x_23, x_100); +x_102 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_102, 0, x_98); +lean_ctor_set(x_102, 1, x_101); +lean_ctor_set_uint8(x_102, sizeof(void*)*2, x_97); +lean_ctor_set(x_83, 5, x_102); +x_103 = lean_st_ref_set(x_7, x_83, x_85); +lean_dec(x_7); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; +} else { + lean_dec_ref(x_103); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; + lean_ctor_set_tag(x_106, 1); +} +lean_ctor_set(x_106, 0, x_75); +lean_ctor_set(x_106, 1, x_104); +return x_106; +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_107 = lean_ctor_get(x_83, 0); +x_108 = lean_ctor_get(x_83, 1); +x_109 = lean_ctor_get(x_83, 2); +x_110 = lean_ctor_get(x_83, 3); +x_111 = lean_ctor_get(x_83, 4); +lean_inc(x_111); +lean_inc(x_110); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_83); +x_112 = lean_ctor_get_uint8(x_84, sizeof(void*)*2); +x_113 = lean_ctor_get(x_84, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_84, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_115 = x_84; +} else { + lean_dec_ref(x_84); + x_115 = lean_box(0); +} +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_79); +lean_ctor_set(x_116, 1, x_114); +x_117 = l_Std_PersistentArray_push___rarg(x_23, x_116); +if (lean_is_scalar(x_115)) { + x_118 = lean_alloc_ctor(0, 2, 1); +} else { + x_118 = x_115; +} +lean_ctor_set(x_118, 0, x_113); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set_uint8(x_118, sizeof(void*)*2, x_112); +x_119 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_119, 0, x_107); +lean_ctor_set(x_119, 1, x_108); +lean_ctor_set(x_119, 2, x_109); +lean_ctor_set(x_119, 3, x_110); +lean_ctor_set(x_119, 4, x_111); +lean_ctor_set(x_119, 5, x_118); +x_120 = lean_st_ref_set(x_7, x_119, x_85); +lean_dec(x_7); +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_122 = x_120; +} else { + lean_dec_ref(x_120); + x_122 = lean_box(0); +} +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_122; + lean_ctor_set_tag(x_123, 1); +} +lean_ctor_set(x_123, 0, x_75); +lean_ctor_set(x_123, 1, x_121); +return x_123; +} +} +} } } lean_object* l_Lean_Elab_Tactic_adaptExpander___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) { @@ -8722,6 +8315,14 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaMAtMain_match__1___r return x_2; } } +lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = lean_apply_6(x_1, x_2, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -8729,7 +8330,7 @@ lean_object* x_11; x_11 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); 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_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -8739,15 +8340,15 @@ x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); lean_dec(x_12); lean_inc(x_14); -x_15 = lean_apply_1(x_1, x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 1); -lean_closure_set(x_16, 0, x_15); -x_17 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -return x_17; +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1___boxed), 11, 2); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +return x_16; } else { -uint8_t x_18; +uint8_t x_17; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8757,23 +8358,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_18 = !lean_is_exclusive(x_11); -if (x_18 == 0) +x_17 = !lean_is_exclusive(x_11); +if (x_17 == 0) { return x_11; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_11, 0); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_ctor_get(x_11, 1); lean_inc(x_19); +lean_inc(x_18); lean_dec(x_11); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } @@ -8786,6 +8387,18 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaMAtMain___rarg), 10, return x_2; } } +lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_12; +} +} lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -8828,15 +8441,72 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux_match__2__ return x_2; } } -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = lean_apply_6(x_1, x_2, x_7, x_8, x_9, x_10, x_11); +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); +lean_inc(x_3); +x_12 = lean_apply_9(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_apply_10(x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_15; +} +else +{ +uint8_t 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); +lean_dec(x_3); +lean_dec(x_2); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ return x_12; } +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_12); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +} +} +} +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 0); +return x_3; +} +} +lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -8888,12 +8558,12 @@ x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); lean_dec(x_12); lean_inc(x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 2); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1___boxed), 11, 2); lean_closure_set(x_16, 0, x_1); lean_closure_set(x_16, 1, x_14); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_17, 0, x_15); -x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_17); x_19 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); @@ -8945,18 +8615,6 @@ _start: { lean_object* x_12; x_12 = l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_12; -} -} -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9052,9 +8710,9 @@ lean_inc(x_14); x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTactic___lambda__1___boxed), 11, 2); lean_closure_set(x_16, 0, x_1); lean_closure_set(x_16, 1, x_14); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_17, 0, x_15); -x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_17); x_19 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); @@ -9478,7 +9136,7 @@ _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = l_Lean_Elab_Tactic_focusAndDone___rarg___closed__1; -x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_11); x_13 = l_Lean_Elab_Tactic_focus___rarg(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -13016,9 +12674,9 @@ lean_dec(x_11); lean_inc(x_13); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___boxed), 10, 1); lean_closure_set(x_15, 0, x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_16, 0, x_14); -x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_17, 0, x_15); lean_closure_set(x_17, 1, x_16); x_18 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_13, x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); @@ -13254,9 +12912,9 @@ lean_inc(x_14); x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalIntro_introStep___lambda__1___boxed), 11, 2); lean_closure_set(x_16, 0, x_14); lean_closure_set(x_16, 1, x_1); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_17, 0, x_15); -x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_17); x_19 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); @@ -14493,9 +14151,9 @@ lean_dec(x_41); lean_inc(x_43); x_45 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalIntros___lambda__2___boxed), 10, 1); lean_closure_set(x_45, 0, x_43); -x_46 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_46 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_46, 0, x_44); -x_47 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_47 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_47, 0, x_45); lean_closure_set(x_47, 1, x_46); x_48 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_43, x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_42); @@ -14557,9 +14215,9 @@ lean_inc(x_21); x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalIntros___lambda__1___boxed), 11, 2); lean_closure_set(x_23, 0, x_17); lean_closure_set(x_23, 1, x_21); -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_24, 0, x_22); -x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_25, 0, x_23); lean_closure_set(x_25, 1, x_24); x_26 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_21, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); @@ -15568,7 +15226,19 @@ x_5 = l_Array_qsort_sort___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tact return x_5; } } -uint8_t l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +uint8_t l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; @@ -15629,11 +15299,11 @@ return x_13; } } } -lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___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, 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; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed), 3, 1); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2___boxed), 3, 1); lean_closure_set(x_12, 0, x_2); x_13 = lean_array_get_size(x_1); x_14 = lean_unsigned_to_nat(1u); @@ -15648,14 +15318,22 @@ lean_ctor_set(x_18, 1, x_11); return x_18; } } +static lean_object* _init_l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed), 9, 0); +return x_1; +} +} lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2___boxed), 11, 1); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__3___boxed), 11, 1); lean_closure_set(x_11, 0, x_1); -x_12 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; -x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_12 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_13, 0, x_12); lean_closure_set(x_13, 1, x_11); x_14 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -15689,20 +15367,36 @@ lean_dec(x_4); return x_5; } } -lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; lean_object* x_5; -x_4 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__1(x_1, x_2, x_3); +x_4 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2(x_1, x_2, x_3); x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___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* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___lambda__3(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); @@ -15860,7 +15554,7 @@ lean_closure_set(x_22, 0, x_20); lean_closure_set(x_22, 1, x_16); x_23 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__2___lambda__2___boxed), 11, 1); lean_closure_set(x_23, 0, x_21); -x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_24 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_24, 0, x_22); lean_closure_set(x_24, 1, x_23); lean_inc(x_12); @@ -16319,7 +16013,7 @@ x_24 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic lean_closure_set(x_24, 0, x_1); lean_closure_set(x_24, 1, x_21); lean_closure_set(x_24, 2, x_22); -x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_25, 0, x_23); lean_closure_set(x_25, 1, x_24); lean_inc(x_13); @@ -17654,7 +17348,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -17664,11 +17358,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376_(lean_object* x_1) { +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -17952,8 +17646,6 @@ l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__3 = _init_l_Lean_Elab_Tac lean_mark_persistent(l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__3); l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__4 = _init_l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Elab_Tactic_evalTacticAux___lambda__1___closed__4); -l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1 = _init_l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1); l_Lean_Elab_Tactic_getMainGoal___closed__1 = _init_l_Lean_Elab_Tactic_getMainGoal___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_getMainGoal___closed__1); l_Lean_Elab_Tactic_getMainGoal___closed__2 = _init_l_Lean_Elab_Tactic_getMainGoal___closed__2(); @@ -18071,6 +17763,8 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__1); res = l___regBuiltin_Lean_Elab_Tactic_evalRevert(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1 = _init_l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__1); res = l___regBuiltin_Lean_Elab_Tactic_evalClear(lean_io_mk_world()); @@ -18099,9 +17793,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__1); res = l___regBuiltin_Lean_Elab_Tactic_evalFirst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376____closed__1); -res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4376_(lean_io_mk_world()); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371____closed__1); +res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_4371_(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/Tactic/ElabTerm.c b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c index 123af14939..a9e6c0804b 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c +++ b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c @@ -48,6 +48,7 @@ lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___lambda__2___boxed(lean_objec lean_object* l_Lean_Elab_Tactic_refineCore_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExistsIntro___closed__1; +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExistsIntro(lean_object*); lean_object* l_Lean_Meta_apply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -102,6 +103,7 @@ lean_object* l_Lean_Elab_Tactic_refineCore_match__1(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__2(lean_object*); extern lean_object* l_Lean_Elab_Tactic_evalIntro___closed__4; +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_refineCore_match__2(lean_object*); lean_object* l_Lean_Elab_Tactic_setGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -119,7 +121,6 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply(lean_object*); lean_object* l_Lean_Elab_Tactic_evalWithReducibleAndInstances___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_refineCore___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalApply___closed__1; @@ -128,7 +129,6 @@ uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefineBang___closed__1; extern lean_object* l_Lean_Parser_Tactic_exact___closed__2; -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTermWithHoles___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_Elab_Tactic_elabTermWithHoles___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine___closed__1; @@ -299,18 +299,19 @@ lean_inc(x_2); x_13 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Lean_Elab_Tactic_ensureHasType(x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); -return x_16; +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Term_ensureHasType(x_2, x_14, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +return x_17; } else { -uint8_t x_17; +uint8_t x_18; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -318,23 +319,23 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); -x_17 = !lean_is_exclusive(x_13); -if (x_17 == 0) +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) { return x_13; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_13, 0); -x_19 = lean_ctor_get(x_13, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); lean_dec(x_13); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; } } } @@ -532,7 +533,7 @@ lean_inc(x_19); x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalExact___lambda__2___boxed), 12, 2); lean_closure_set(x_22, 0, x_15); lean_closure_set(x_22, 1, x_19); -x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_23, 0, x_21); lean_closure_set(x_23, 1, x_22); lean_inc(x_9); @@ -1833,7 +1834,7 @@ lean_closure_set(x_20, 1, x_2); lean_closure_set(x_20, 2, x_19); lean_closure_set(x_20, 3, x_16); lean_closure_set(x_20, 4, x_17); -x_21 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_21 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_21, 0, x_18); lean_closure_set(x_21, 1, x_20); x_22 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_16, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); @@ -2205,7 +2206,7 @@ x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalApplyLikeTactic___lambd lean_closure_set(x_18, 0, x_2); lean_closure_set(x_18, 1, x_1); lean_closure_set(x_18, 2, x_15); -x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_19, 0, x_17); lean_closure_set(x_19, 1, x_18); lean_inc(x_10); @@ -3475,7 +3476,7 @@ x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar___lambda__1___bo lean_closure_set(x_21, 0, x_2); lean_closure_set(x_21, 1, x_15); lean_closure_set(x_21, 2, x_16); -x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_22, 0, x_20); lean_closure_set(x_22, 1, x_21); x_23 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_15, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c index 443e7f91d9..e7cb631fb7 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c @@ -52,6 +52,7 @@ lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object*, lean_object*, le lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_assertExt___lambda__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize(lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_saveBacktrackableState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,7 +64,6 @@ uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -73,8 +73,8 @@ lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__2(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName(lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__2(lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(lean_object*); @@ -879,9 +879,9 @@ lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_2); lean_closure_set(x_18, 2, x_3); lean_closure_set(x_18, 3, x_1); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_19, 0, x_17); -x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_20, 0, x_18); lean_closure_set(x_20, 1, x_19); x_21 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_16, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); @@ -1179,9 +1179,9 @@ lean_closure_set(x_18, 0, x_2); lean_closure_set(x_18, 1, x_16); lean_closure_set(x_18, 2, x_1); lean_closure_set(x_18, 3, x_3); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_19, 0, x_17); -x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_20, 0, x_18); lean_closure_set(x_20, 1, x_19); x_21 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_16, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); @@ -1460,9 +1460,9 @@ x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralizeAux___lambda_ lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_2); lean_closure_set(x_18, 2, x_3); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_19, 0, x_17); -x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_20, 0, x_18); lean_closure_set(x_20, 1, x_19); x_21 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_16, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index 93d5e91b48..28d6b377cd 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -80,12 +80,12 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTaggedTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getRecFromUsing___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_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2(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*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCasesUsing_match__1___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; lean_object* l_Lean_mkMVar(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCasesOn___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -128,7 +128,6 @@ lean_object* l_Lean_Elab_Tactic_getRecFromUsing_match__1___rarg(lean_object*, le lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Tactic_evalCasesOn_match__1___rarg(lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__1; @@ -210,6 +209,7 @@ lean_object* l_Lean_Elab_Tactic_evalCasesOn_match__2___rarg(lean_object*, lean_o lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__1___closed__6; lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2___closed__1; lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__5(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -226,7 +226,7 @@ lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__2___rarg(lean_object*, l lean_object* l_List_map___at_Lean_Elab_Tactic_evalCasesOn___spec__5(lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_getRecFromUsing___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_getRecFromUsing___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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* l_Lean_Elab_Tactic_evalInduction_match__2(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__4(size_t, size_t, lean_object*); lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -280,6 +280,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__1___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getTargetTerm___boxed(lean_object*); @@ -303,7 +304,7 @@ lean_object* l_Lean_Elab_Tactic_evalCasesUsing_match__2(lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getFType(lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__2___closed__3; @@ -347,9 +348,10 @@ extern lean_object* l_Lean_KernelException_toMessageData___closed__3; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_Tactic_evalCases___lambda__2___closed__1; +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__6(lean_object*); -extern lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_getConstTemp_x3f___closed__3; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCasesUsing___spec__1(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*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -394,7 +396,7 @@ lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__2___closed__6; lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabTargets___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); @@ -428,6 +430,7 @@ lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Tactic_evalTacticAux___spec__7( lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__8(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_addInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -459,6 +462,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTagg extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_550____closed__4; lean_object* l_Std_fmt___at_Lean_Level_PP_Result_format___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName___boxed(lean_object*); +lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__2; lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__10(lean_object*); @@ -488,6 +492,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__4; lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_altHasExplicitModifier(lean_object*); +lean_object* l_Lean_Elab_Tactic_getRecFromUsing___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1; lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getFType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -500,14 +505,13 @@ uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_addInstMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__3___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCases___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_getElimInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCasesUsing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCasesUsing___lambda__3___boxed__const__1; +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___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* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___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*); @@ -542,7 +546,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_ extern lean_object* l_myMacro____x40_Init_Notation___hyg_12938____closed__13; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo_match__3(lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getAltNumFields___lambda__1___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_substCore___lambda__1___closed__3; @@ -558,7 +562,7 @@ lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__11(lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_evalAlt___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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_Elab_Tactic_elabTargets___boxed__const__1; lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__11___rarg(lean_object*, lean_object*); lean_object* l_Array_filter___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -568,10 +572,10 @@ lean_object* l_Lean_Elab_Tactic_elabTerm___boxed(lean_object*, lean_object*, lea lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__9___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts___lambda__3___boxed(lean_object*); extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts___closed__1; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCasesOn___spec__4(size_t, size_t, lean_object*); @@ -1263,7 +1267,7 @@ x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__2___boxed lean_closure_set(x_34, 0, x_16); lean_closure_set(x_34, 1, x_1); x_35 = l_Lean_Elab_Tactic_evalAlt___closed__1; -x_36 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_36 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_36, 0, x_35); lean_closure_set(x_36, 1, x_34); x_37 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_evalClear___spec__1___rarg(x_1, x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); @@ -1421,7 +1425,7 @@ x_71 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__2___boxed lean_closure_set(x_71, 0, x_16); lean_closure_set(x_71, 1, x_1); x_72 = l_Lean_Elab_Tactic_evalAlt___closed__1; -x_73 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_73 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_73, 0, x_72); lean_closure_set(x_73, 1, x_71); x_74 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_evalClear___spec__1___rarg(x_1, x_73, x_4, x_5, x_6, x_7, x_8, x_9, x_58, x_11, x_12); @@ -7244,12 +7248,12 @@ x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean lean_closure_set(x_18, 0, x_17); lean_closure_set(x_18, 1, x_12); x_19 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___closed__2; -x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_20, 0, x_19); lean_closure_set(x_20, 1, x_18); x_21 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___lambda__3___boxed), 11, 1); lean_closure_set(x_21, 0, x_12); -x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_22, 0, x_20); lean_closure_set(x_22, 1, x_21); x_23 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -7292,12 +7296,12 @@ x_35 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean lean_closure_set(x_35, 0, x_34); lean_closure_set(x_35, 1, x_12); x_36 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___closed__2; -x_37 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_37 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_37, 0, x_36); lean_closure_set(x_37, 1, x_35); x_38 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getGeneralizingFVarIds___lambda__3___boxed), 11, 1); lean_closure_set(x_38, 0, x_12); -x_39 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_39 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_39, 0, x_37); lean_closure_set(x_39, 1, x_38); x_40 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_33, x_9, x_10); @@ -7598,9 +7602,9 @@ x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean lean_closure_set(x_20, 0, x_18); lean_closure_set(x_20, 1, x_13); lean_closure_set(x_20, 2, x_2); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_21, 0, x_19); -x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_22, 0, x_20); lean_closure_set(x_22, 1, x_21); x_23 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_18, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); @@ -8634,238 +8638,279 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___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* l_Lean_Elab_Tactic_getInductiveValFromMajor___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_8; -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_8 = l_Lean_Meta_whnf(x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); +lean_object* x_12; lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Expr_getAppFn(x_9); -if (lean_obj_tag(x_11) == 4) +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_12 = l_Lean_Meta_inferType(x_1, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_get(x_6, x_10); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_15 = l_Lean_Meta_whnf(x_13, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -x_17 = lean_ctor_get(x_15, 0); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = lean_environment_find(x_17, x_12); -if (lean_obj_tag(x_18) == 0) +x_18 = l_Lean_Expr_getAppFn(x_16); +if (lean_obj_tag(x_18) == 4) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_free_object(x_13); -x_19 = l_Lean_indentExpr(x_9); -x_20 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; -x_21 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_KernelException_toMessageData___closed__15; -x_23 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; -x_25 = lean_box(0); -x_26 = l_Lean_Meta_throwTacticEx___rarg(x_24, x_1, x_23, x_25, x_3, x_4, x_5, x_6, x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_26; -} -else -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_18, 0); -lean_inc(x_27); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); lean_dec(x_18); -if (lean_obj_tag(x_27) == 5) +x_20 = lean_st_ref_get(x_10, x_17); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_28; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_environment_find(x_24, x_19); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_free_object(x_20); +x_26 = l_Lean_indentExpr(x_16); +x_27 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_KernelException_toMessageData___closed__15; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; +x_32 = lean_box(0); +x_33 = l_Lean_Meta_throwTacticEx___rarg(x_31, x_2, x_30, x_32, x_7, x_8, x_9, x_10, x_23); +lean_dec(x_10); lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -lean_dec(x_27); -lean_ctor_set(x_13, 0, x_28); -return x_13; -} -else -{ -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; lean_object* x_36; -lean_dec(x_27); -lean_free_object(x_13); -x_29 = l_Lean_indentExpr(x_9); -x_30 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; -x_31 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = l_Lean_KernelException_toMessageData___closed__15; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; -x_35 = lean_box(0); -x_36 = l_Lean_Meta_throwTacticEx___rarg(x_34, x_1, x_33, x_35, x_3, x_4, x_5, x_6, x_16); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_36; -} -} -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_13, 0); -x_38 = lean_ctor_get(x_13, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_13); -x_39 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_environment_find(x_39, x_12); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_41 = l_Lean_indentExpr(x_9); -x_42 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; -x_43 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_KernelException_toMessageData___closed__15; -x_45 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -x_46 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; -x_47 = lean_box(0); -x_48 = l_Lean_Meta_throwTacticEx___rarg(x_46, x_1, x_45, x_47, x_3, x_4, x_5, x_6, x_38); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_48; -} -else -{ -lean_object* x_49; -x_49 = lean_ctor_get(x_40, 0); -lean_inc(x_49); -lean_dec(x_40); -if (lean_obj_tag(x_49) == 5) -{ -lean_object* x_50; lean_object* x_51; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -lean_dec(x_49); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_38); -return x_51; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_49); -x_52 = l_Lean_indentExpr(x_9); -x_53 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_Lean_KernelException_toMessageData___closed__15; -x_56 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; -x_58 = lean_box(0); -x_59 = l_Lean_Meta_throwTacticEx___rarg(x_57, x_1, x_56, x_58, x_3, x_4, x_5, x_6, x_38); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_59; -} -} -} -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_11); -x_60 = l_Lean_indentExpr(x_9); -x_61 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; -x_62 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = l_Lean_KernelException_toMessageData___closed__15; -x_64 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; -x_66 = lean_box(0); -x_67 = l_Lean_Meta_throwTacticEx___rarg(x_65, x_1, x_64, x_66, x_3, x_4, x_5, x_6, x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_67; -} -} -else -{ -uint8_t x_68; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_68 = !lean_is_exclusive(x_8); -if (x_68 == 0) -{ -return x_8; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_8, 0); -x_70 = lean_ctor_get(x_8, 1); -lean_inc(x_70); -lean_inc(x_69); lean_dec(x_8); -x_71 = lean_alloc_ctor(1, 2, 0); +lean_dec(x_7); +return x_33; +} +else +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_25, 0); +lean_inc(x_34); +lean_dec(x_25); +if (lean_obj_tag(x_34) == 5) +{ +lean_object* x_35; +lean_dec(x_16); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +lean_ctor_set(x_20, 0, x_35); +return x_20; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_34); +lean_free_object(x_20); +x_36 = l_Lean_indentExpr(x_16); +x_37 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; +x_38 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = l_Lean_KernelException_toMessageData___closed__15; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; +x_42 = lean_box(0); +x_43 = l_Lean_Meta_throwTacticEx___rarg(x_41, x_2, x_40, x_42, x_7, x_8, x_9, x_10, x_23); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_43; +} +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_20, 0); +x_45 = lean_ctor_get(x_20, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_20); +x_46 = lean_ctor_get(x_44, 0); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_environment_find(x_46, x_19); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_48 = l_Lean_indentExpr(x_16); +x_49 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l_Lean_KernelException_toMessageData___closed__15; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; +x_54 = lean_box(0); +x_55 = l_Lean_Meta_throwTacticEx___rarg(x_53, x_2, x_52, x_54, x_7, x_8, x_9, x_10, x_45); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_55; +} +else +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_47, 0); +lean_inc(x_56); +lean_dec(x_47); +if (lean_obj_tag(x_56) == 5) +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_16); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +lean_dec(x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_45); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_56); +x_59 = l_Lean_indentExpr(x_16); +x_60 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; +x_61 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_KernelException_toMessageData___closed__15; +x_63 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; +x_65 = lean_box(0); +x_66 = l_Lean_Meta_throwTacticEx___rarg(x_64, x_2, x_63, x_65, x_7, x_8, x_9, x_10, x_45); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_66; +} +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_18); +x_67 = l_Lean_indentExpr(x_16); +x_68 = l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; +x_69 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = l_Lean_KernelException_toMessageData___closed__15; +x_71 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_71, 0, x_69); lean_ctor_set(x_71, 1, x_70); -return x_71; +x_72 = l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; +x_73 = lean_box(0); +x_74 = l_Lean_Meta_throwTacticEx___rarg(x_72, x_2, x_71, x_73, x_7, x_8, x_9, x_10, x_17); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_74; +} +} +else +{ +uint8_t x_75; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_75 = !lean_is_exclusive(x_15); +if (x_75 == 0) +{ +return x_15; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_15, 0); +x_77 = lean_ctor_get(x_15, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_15); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_79 = !lean_is_exclusive(x_12); +if (x_79 == 0) +{ +return x_12; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_12, 0); +x_81 = lean_ctor_get(x_12, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_12); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; } } } @@ -8877,7 +8922,7 @@ lean_object* x_11; x_11 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); 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; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -8886,22 +8931,16 @@ lean_dec(x_11); x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); lean_dec(x_12); -x_15 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); -lean_closure_set(x_15, 0, x_1); lean_inc(x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1), 7, 1); -lean_closure_set(x_16, 0, x_14); -x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); -lean_closure_set(x_17, 0, x_15); -lean_closure_set(x_17, 1, x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 1); -lean_closure_set(x_18, 0, x_17); -x_19 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -return x_19; +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___boxed), 11, 2); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +return x_16; } else { -uint8_t x_20; +uint8_t x_17; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8911,27 +8950,39 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_20 = !lean_is_exclusive(x_11); -if (x_20 == 0) +x_17 = !lean_is_exclusive(x_11); +if (x_17 == 0) { return x_11; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_11, 0); -x_22 = lean_ctor_get(x_11, 1); -lean_inc(x_22); -lean_inc(x_21); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_inc(x_18); lean_dec(x_11); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } } +lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___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_Tactic_getInductiveValFromMajor___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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_12; +} +} lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -9076,6 +9127,65 @@ return x_27; } } } +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Meta_mkRecursorInfo(x_1, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_16); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_12); +if (x_20 == 0) +{ +return x_12; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_12); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop(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: { @@ -9268,7 +9378,7 @@ lean_dec(x_48); x_80 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_50); if (lean_obj_tag(x_80) == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); x_82 = lean_ctor_get(x_80, 1); @@ -9277,16 +9387,8 @@ lean_dec(x_80); x_83 = lean_ctor_get(x_81, 0); lean_inc(x_83); lean_dec(x_81); -x_84 = lean_box(0); -x_85 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo), 7, 2); -lean_closure_set(x_85, 0, x_17); -lean_closure_set(x_85, 1, x_84); -x_86 = l___private_Lean_Meta_Basic_0__Lean_Meta_getConstTemp_x3f___closed__3; -x_87 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2); -lean_closure_set(x_87, 0, x_85); -lean_closure_set(x_87, 1, x_86); -x_88 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 1); -lean_closure_set(x_88, 0, x_87); +x_84 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__2___boxed), 10, 1); +lean_closure_set(x_84, 0, x_17); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -9295,8 +9397,8 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_89 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_83, x_88, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_82); -if (lean_obj_tag(x_89) == 0) +x_85 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_83, x_84, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_82); +if (lean_obj_tag(x_85) == 0) { lean_dec(x_49); lean_dec(x_13); @@ -9309,26 +9411,26 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -return x_89; +return x_85; } else { -lean_object* x_90; -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_51 = x_90; +lean_object* x_86; +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_51 = x_86; goto block_79; } } else { -lean_object* x_91; +lean_object* x_87; lean_dec(x_17); -x_91 = lean_ctor_get(x_80, 1); -lean_inc(x_91); +x_87 = lean_ctor_get(x_80, 1); +lean_inc(x_87); lean_dec(x_80); -x_51 = x_91; +x_51 = x_87; goto block_79; } block_79: @@ -9479,84 +9581,84 @@ return x_78; } else { -lean_object* x_92; +lean_object* x_88; lean_dec(x_15); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_92 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_7, x_8, x_9, x_10, x_14); -if (lean_obj_tag(x_92) == 0) +x_88 = l_Lean_Meta_unfoldDefinition_x3f(x_13, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_88) == 0) { -lean_object* x_93; -x_93 = lean_ctor_get(x_92, 0); +lean_object* x_89; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +if (lean_obj_tag(x_89) == 0) +{ +uint8_t x_90; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_90 = !lean_is_exclusive(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_88, 0); +lean_dec(x_91); +x_92 = lean_box(0); +lean_ctor_set(x_88, 0, x_92); +return x_88; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_88, 1); lean_inc(x_93); -if (lean_obj_tag(x_93) == 0) -{ -uint8_t x_94; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_94 = !lean_is_exclusive(x_92); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_92, 0); -lean_dec(x_95); -x_96 = lean_box(0); -lean_ctor_set(x_92, 0, x_96); -return x_92; +lean_dec(x_88); +x_94 = lean_box(0); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_92, 1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_96 = lean_ctor_get(x_88, 1); +lean_inc(x_96); +lean_dec(x_88); +x_97 = lean_ctor_get(x_89, 0); lean_inc(x_97); -lean_dec(x_92); -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} +lean_dec(x_89); +x_98 = lean_ctor_get(x_9, 1); +lean_inc(x_98); +x_99 = lean_ctor_get(x_9, 2); +lean_inc(x_99); +x_100 = lean_nat_dec_eq(x_98, x_99); +lean_dec(x_99); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_box(0); +x_102 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__1(x_98, x_1, x_97, x_101, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_96); +lean_dec(x_98); +return x_102; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_100 = lean_ctor_get(x_92, 1); -lean_inc(x_100); -lean_dec(x_92); -x_101 = lean_ctor_get(x_93, 0); -lean_inc(x_101); -lean_dec(x_93); -x_102 = lean_ctor_get(x_9, 1); -lean_inc(x_102); -x_103 = lean_ctor_get(x_9, 2); -lean_inc(x_103); -x_104 = lean_nat_dec_eq(x_102, x_103); -lean_dec(x_103); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; -x_105 = lean_box(0); -x_106 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__1(x_102, x_1, x_101, x_105, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_100); -lean_dec(x_102); -return x_106; -} -else -{ -lean_object* x_107; lean_object* x_108; uint8_t x_109; -lean_dec(x_102); -lean_dec(x_101); +lean_object* x_103; lean_object* x_104; uint8_t x_105; +lean_dec(x_98); +lean_dec(x_97); lean_dec(x_1); -x_107 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_108 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__13(x_107, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_100); +x_103 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_104 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__13(x_103, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_96); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9565,19 +9667,52 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_109 = !lean_is_exclusive(x_108); +x_105 = !lean_is_exclusive(x_104); +if (x_105 == 0) +{ +return x_104; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_104, 0); +x_107 = lean_ctor_get(x_104, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_104); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +} +} +} +else +{ +uint8_t x_109; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_109 = !lean_is_exclusive(x_88); if (x_109 == 0) { -return x_108; +return x_88; } else { lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_108, 0); -x_111 = lean_ctor_get(x_108, 1); +x_110 = lean_ctor_get(x_88, 0); +x_111 = lean_ctor_get(x_88, 1); lean_inc(x_111); lean_inc(x_110); -lean_dec(x_108); +lean_dec(x_88); x_112 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_112, 0, x_110); lean_ctor_set(x_112, 1, x_111); @@ -9598,56 +9733,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_113 = !lean_is_exclusive(x_92); +x_113 = !lean_is_exclusive(x_12); if (x_113 == 0) { -return x_92; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_92, 0); -x_115 = lean_ctor_get(x_92, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_92); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; -} -} -} -} -else -{ -uint8_t x_117; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_117 = !lean_is_exclusive(x_12); -if (x_117 == 0) -{ return x_12; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_12, 0); -x_119 = lean_ctor_get(x_12, 1); -lean_inc(x_119); -lean_inc(x_118); +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_12, 0); +x_115 = lean_ctor_get(x_12, 1); +lean_inc(x_115); +lean_inc(x_114); lean_dec(x_12); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; } } } @@ -9662,6 +9764,18 @@ lean_dec(x_1); return x_14; } } +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___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) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecFromUsingLoop___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} lean_object* l_Lean_Elab_Tactic_getRecFromUsing_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -10035,6 +10149,15 @@ return x_19; } } } +lean_object* l_Lean_Elab_Tactic_getRecFromUsing___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) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Meta_mkRecursorInfo(x_1, x_11, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} static lean_object* _init_l_Lean_Elab_Tactic_getRecFromUsing___closed__1() { _start: { @@ -10110,7 +10233,7 @@ lean_dec(x_21); x_24 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); if (lean_obj_tag(x_24) == 0) { -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_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -10119,12 +10242,8 @@ lean_dec(x_24); x_27 = lean_ctor_get(x_25, 0); lean_inc(x_27); lean_dec(x_25); -x_28 = lean_box(0); -x_29 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo), 7, 2); -lean_closure_set(x_29, 0, x_19); -lean_closure_set(x_29, 1, x_28); -x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 1); -lean_closure_set(x_30, 0, x_29); +x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getRecFromUsing___lambda__1___boxed), 10, 1); +lean_closure_set(x_28, 0, x_19); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -10133,8 +10252,8 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_31 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_27, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); -if (lean_obj_tag(x_31) == 0) +x_29 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_27, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); +if (lean_obj_tag(x_29) == 0) { lean_dec(x_22); lean_dec(x_10); @@ -10146,29 +10265,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_31; +return x_29; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = l_Lean_Elab_Tactic_BacktrackableState_restore(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_30); x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); lean_dec(x_31); -x_33 = l_Lean_Elab_Tactic_BacktrackableState_restore(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_35, 0, x_2); -x_36 = l_Lean_Elab_Tactic_getRecFromUsing___closed__2; +x_33 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_33, 0, x_2); +x_34 = l_Lean_Elab_Tactic_getRecFromUsing___closed__2; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_KernelException_toMessageData___closed__3; x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_KernelException_toMessageData___closed__3; -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_throwError___at_Lean_Elab_Tactic_getRecFromUsing___spec__6(x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_34); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_throwError___at_Lean_Elab_Tactic_getRecFromUsing___spec__6(x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10177,31 +10296,31 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_40; +return x_38; } } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_dec(x_19); -x_41 = lean_ctor_get(x_24, 1); -lean_inc(x_41); +x_39 = lean_ctor_get(x_24, 1); +lean_inc(x_39); lean_dec(x_24); -x_42 = l_Lean_Elab_Tactic_BacktrackableState_restore(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_41); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_44, 0, x_2); -x_45 = l_Lean_Elab_Tactic_getRecFromUsing___closed__2; +x_40 = l_Lean_Elab_Tactic_BacktrackableState_restore(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_39); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_42, 0, x_2); +x_43 = l_Lean_Elab_Tactic_getRecFromUsing___closed__2; +x_44 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = l_Lean_KernelException_toMessageData___closed__3; x_46 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -x_47 = l_Lean_KernelException_toMessageData___closed__3; -x_48 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_throwError___at_Lean_Elab_Tactic_getRecFromUsing___spec__6(x_48, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_throwError___at_Lean_Elab_Tactic_getRecFromUsing___spec__6(x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_41); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10210,12 +10329,12 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_49; +return x_47; } } else { -uint8_t x_50; +uint8_t x_48; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10225,29 +10344,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_50 = !lean_is_exclusive(x_18); -if (x_50 == 0) +x_48 = !lean_is_exclusive(x_18); +if (x_48 == 0) { return x_18; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_18, 0); -x_52 = lean_ctor_get(x_18, 1); -lean_inc(x_52); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_18, 0); +x_50 = lean_ctor_get(x_18, 1); +lean_inc(x_50); +lean_inc(x_49); lean_dec(x_18); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } else { -uint8_t x_54; +uint8_t x_52; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10257,37 +10376,37 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_54 = !lean_is_exclusive(x_15); -if (x_54 == 0) +x_52 = !lean_is_exclusive(x_15); +if (x_52 == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_15, 0); -lean_dec(x_55); +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_15, 0); +lean_dec(x_53); +x_54 = lean_ctor_get(x_16, 0); +lean_inc(x_54); +lean_dec(x_16); +lean_ctor_set(x_15, 0, x_54); +return x_15; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_15, 1); +lean_inc(x_55); +lean_dec(x_15); x_56 = lean_ctor_get(x_16, 0); lean_inc(x_56); lean_dec(x_16); -lean_ctor_set(x_15, 0, x_56); -return x_15; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_15, 1); -lean_inc(x_57); -lean_dec(x_15); -x_58 = lean_ctor_get(x_16, 0); -lean_inc(x_58); -lean_dec(x_16); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -return x_59; +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +return x_57; } } } else { -uint8_t x_60; +uint8_t x_58; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10297,29 +10416,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_60 = !lean_is_exclusive(x_15); -if (x_60 == 0) +x_58 = !lean_is_exclusive(x_15); +if (x_58 == 0) { return x_15; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_15, 0); -x_62 = lean_ctor_get(x_15, 1); -lean_inc(x_62); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_15, 0); +x_60 = lean_ctor_get(x_15, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_15); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -uint8_t x_64; +uint8_t x_62; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -10329,23 +10448,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_64 = !lean_is_exclusive(x_12); -if (x_64 == 0) +x_62 = !lean_is_exclusive(x_12); +if (x_62 == 0) { return x_12; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_12, 0); -x_66 = lean_ctor_get(x_12, 1); -lean_inc(x_66); -lean_inc(x_65); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_12, 0); +x_64 = lean_ctor_get(x_12, 1); +lean_inc(x_64); +lean_inc(x_63); lean_dec(x_12); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } @@ -10460,6 +10579,18 @@ lean_dec(x_2); return x_11; } } +lean_object* l_Lean_Elab_Tactic_getRecFromUsing___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_getRecFromUsing___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -12437,7 +12568,15 @@ return x_170; } } } -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_getParamNames(x_1, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; @@ -12450,7 +12589,7 @@ lean_ctor_set(x_14, 1, x_12); return x_14; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -12493,7 +12632,7 @@ lean_dec(x_25); x_27 = l_Lean_Elab_Tactic_getMainGoal(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); if (lean_obj_tag(x_27) == 0) { -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_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -12503,10 +12642,8 @@ x_30 = lean_ctor_get(x_28, 0); lean_inc(x_30); lean_dec(x_28); lean_inc(x_22); -x_31 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 6, 1); +x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1___boxed), 10, 1); lean_closure_set(x_31, 0, x_22); -x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 1); -lean_closure_set(x_32, 0, x_31); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -12515,60 +12652,60 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_33 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_30, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); -if (lean_obj_tag(x_33) == 0) +x_32 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_30, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_34 = lean_ctor_get(x_33, 0); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); +lean_dec(x_32); +x_35 = lean_box(0); +x_36 = lean_array_get_size(x_33); +lean_inc(x_36); +x_37 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_37, 0, x_24); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_15); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_26); +lean_ctor_set(x_38, 1, x_35); +x_39 = l_Array_empty___closed__1; +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__1(x_20, x_33, x_37, x_36, x_24, x_40, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); +lean_dec(x_37); lean_dec(x_33); -x_36 = lean_box(0); -x_37 = lean_array_get_size(x_34); -lean_inc(x_37); -x_38 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_38, 0, x_24); -lean_ctor_set(x_38, 1, x_37); -lean_ctor_set(x_38, 2, x_15); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_26); -lean_ctor_set(x_39, 1, x_36); -x_40 = l_Array_empty___closed__1; -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__1(x_20, x_34, x_38, x_37, x_24, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35); -lean_dec(x_38); -lean_dec(x_34); lean_dec(x_20); -if (lean_obj_tag(x_42) == 0) +if (lean_obj_tag(x_41) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_43 = lean_ctor_get(x_42, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_43, 1); +x_44 = lean_ctor_get(x_41, 1); lean_inc(x_44); -x_45 = lean_ctor_get(x_42, 1); +lean_dec(x_41); +x_45 = lean_ctor_get(x_42, 0); lean_inc(x_45); lean_dec(x_42); x_46 = lean_ctor_get(x_43, 0); lean_inc(x_46); lean_dec(x_43); -x_47 = lean_ctor_get(x_44, 0); -lean_inc(x_47); -lean_dec(x_44); -x_48 = l_Array_isEmpty___rarg(x_47); -if (x_48 == 0) +x_47 = l_Array_isEmpty___rarg(x_46); +if (x_47 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +lean_dec(x_45); +lean_dec(x_22); +x_48 = l_Lean_instInhabitedSyntax; +x_49 = lean_array_get(x_48, x_46, x_24); lean_dec(x_46); -lean_dec(x_22); -x_49 = l_Lean_instInhabitedSyntax; -x_50 = lean_array_get(x_49, x_47, x_24); -lean_dec(x_47); -x_51 = l_Lean_Elab_Tactic_ElimApp_evalAlts___lambda__2___closed__3; -x_52 = l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1(x_50, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_45); +x_50 = l_Lean_Elab_Tactic_ElimApp_evalAlts___lambda__2___closed__3; +x_51 = l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1(x_49, x_50, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -12576,32 +12713,32 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_50); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +lean_dec(x_49); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) { -return x_52; +return x_51; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_52, 0); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_51, 0); +x_54 = lean_ctor_get(x_51, 1); lean_inc(x_54); -lean_dec(x_52); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_inc(x_53); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } else { -lean_object* x_57; lean_object* x_58; -lean_dec(x_47); -x_57 = lean_box(0); -x_58 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1(x_22, x_46, x_57, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_45); +lean_object* x_56; lean_object* x_57; +lean_dec(x_46); +x_56 = lean_box(0); +x_57 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(x_22, x_45, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -12610,12 +12747,12 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_58; +return x_57; } } else { -uint8_t x_59; +uint8_t x_58; lean_dec(x_22); lean_dec(x_12); lean_dec(x_11); @@ -12625,29 +12762,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_59 = !lean_is_exclusive(x_42); -if (x_59 == 0) +x_58 = !lean_is_exclusive(x_41); +if (x_58 == 0) { -return x_42; +return x_41; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_42, 0); -x_61 = lean_ctor_get(x_42, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_41, 0); +x_60 = lean_ctor_get(x_41, 1); lean_inc(x_60); -lean_dec(x_42); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_inc(x_59); +lean_dec(x_41); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -uint8_t x_63; +uint8_t x_62; lean_dec(x_26); lean_dec(x_22); lean_dec(x_20); @@ -12659,29 +12796,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_63 = !lean_is_exclusive(x_33); -if (x_63 == 0) +x_62 = !lean_is_exclusive(x_32); +if (x_62 == 0) { -return x_33; +return x_32; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_33, 0); -x_65 = lean_ctor_get(x_33, 1); -lean_inc(x_65); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_32, 0); +x_64 = lean_ctor_get(x_32, 1); lean_inc(x_64); -lean_dec(x_33); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; +lean_inc(x_63); +lean_dec(x_32); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } else { -uint8_t x_67; +uint8_t x_66; lean_dec(x_26); lean_dec(x_22); lean_dec(x_20); @@ -12693,29 +12830,29 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_67 = !lean_is_exclusive(x_27); -if (x_67 == 0) +x_66 = !lean_is_exclusive(x_27); +if (x_66 == 0) { return x_27; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_27, 0); -x_69 = lean_ctor_get(x_27, 1); -lean_inc(x_69); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_27, 0); +x_68 = lean_ctor_get(x_27, 1); lean_inc(x_68); +lean_inc(x_67); lean_dec(x_27); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } else { -lean_object* x_71; lean_object* x_72; +lean_object* x_70; lean_object* x_71; lean_dec(x_20); lean_dec(x_12); lean_dec(x_11); @@ -12725,49 +12862,47 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_71 = l_Array_empty___closed__1; -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_22); -lean_ctor_set(x_72, 1, x_71); -lean_ctor_set(x_18, 0, x_72); +x_70 = l_Array_empty___closed__1; +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_22); +lean_ctor_set(x_71, 1, x_70); +lean_ctor_set(x_18, 0, x_71); return x_18; } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_73 = lean_ctor_get(x_18, 0); -x_74 = lean_ctor_get(x_18, 1); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_72 = lean_ctor_get(x_18, 0); +x_73 = lean_ctor_get(x_18, 1); lean_inc(x_73); +lean_inc(x_72); lean_dec(x_18); -x_75 = lean_ctor_get(x_73, 0); -lean_inc(x_75); -x_76 = l_Lean_Syntax_isNone(x_3); -if (x_76 == 0) +x_74 = lean_ctor_get(x_72, 0); +lean_inc(x_74); +x_75 = l_Lean_Syntax_isNone(x_3); +if (x_75 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_unsigned_to_nat(0u); -x_78 = l_Lean_Syntax_getArg(x_3, x_77); -x_79 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfInductionAlts(x_78); -lean_dec(x_78); -x_80 = l_Lean_Elab_Tactic_getMainGoal(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_74); -if (lean_obj_tag(x_80) == 0) +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_unsigned_to_nat(0u); +x_77 = l_Lean_Syntax_getArg(x_3, x_76); +x_78 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfInductionAlts(x_77); +lean_dec(x_77); +x_79 = l_Lean_Elab_Tactic_getMainGoal(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_73); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_81 = lean_ctor_get(x_80, 0); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); +lean_dec(x_79); +x_82 = lean_ctor_get(x_80, 0); lean_inc(x_82); lean_dec(x_80); -x_83 = lean_ctor_get(x_81, 0); -lean_inc(x_83); -lean_dec(x_81); -lean_inc(x_75); -x_84 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 6, 1); -lean_closure_set(x_84, 0, x_75); -x_85 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg___boxed), 10, 1); -lean_closure_set(x_85, 0, x_84); +lean_inc(x_74); +x_83 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1___boxed), 10, 1); +lean_closure_set(x_83, 0, x_74); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -12776,60 +12911,60 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_86 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_83, x_85, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_82); -if (lean_obj_tag(x_86) == 0) +x_84 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_82, x_83, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_81); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_box(0); +x_88 = lean_array_get_size(x_85); lean_inc(x_88); -lean_dec(x_86); -x_89 = lean_box(0); -x_90 = lean_array_get_size(x_87); -lean_inc(x_90); -x_91 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_91, 0, x_77); -lean_ctor_set(x_91, 1, x_90); -lean_ctor_set(x_91, 2, x_15); +x_89 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_89, 0, x_76); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_89, 2, x_15); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_78); +lean_ctor_set(x_90, 1, x_87); +x_91 = l_Array_empty___closed__1; x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_79); -lean_ctor_set(x_92, 1, x_89); -x_93 = l_Array_empty___closed__1; -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_92); -x_95 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__1(x_73, x_87, x_91, x_90, x_77, x_94, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_88); -lean_dec(x_91); -lean_dec(x_87); -lean_dec(x_73); -if (lean_obj_tag(x_95) == 0) +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +x_93 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___spec__1(x_72, x_85, x_89, x_88, x_76, x_92, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_86); +lean_dec(x_89); +lean_dec(x_85); +lean_dec(x_72); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_96 = lean_ctor_get(x_95, 0); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +x_96 = lean_ctor_get(x_93, 1); lean_inc(x_96); -x_97 = lean_ctor_get(x_96, 1); +lean_dec(x_93); +x_97 = lean_ctor_get(x_94, 0); lean_inc(x_97); -x_98 = lean_ctor_get(x_95, 1); +lean_dec(x_94); +x_98 = lean_ctor_get(x_95, 0); lean_inc(x_98); lean_dec(x_95); -x_99 = lean_ctor_get(x_96, 0); -lean_inc(x_99); -lean_dec(x_96); -x_100 = lean_ctor_get(x_97, 0); -lean_inc(x_100); -lean_dec(x_97); -x_101 = l_Array_isEmpty___rarg(x_100); -if (x_101 == 0) +x_99 = l_Array_isEmpty___rarg(x_98); +if (x_99 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_99); -lean_dec(x_75); -x_102 = l_Lean_instInhabitedSyntax; -x_103 = lean_array_get(x_102, x_100, x_77); -lean_dec(x_100); -x_104 = l_Lean_Elab_Tactic_ElimApp_evalAlts___lambda__2___closed__3; -x_105 = l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1(x_103, x_104, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_98); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_97); +lean_dec(x_74); +x_100 = l_Lean_instInhabitedSyntax; +x_101 = lean_array_get(x_100, x_98, x_76); +lean_dec(x_98); +x_102 = l_Lean_Elab_Tactic_ElimApp_evalAlts___lambda__2___closed__3; +x_103 = l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__1(x_101, x_102, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_96); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); @@ -12837,34 +12972,49 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_103); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_108 = x_105; +lean_dec(x_101); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_106 = x_103; } else { - lean_dec_ref(x_105); - x_108 = lean_box(0); + lean_dec_ref(x_103); + x_106 = lean_box(0); } -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(1, 2, 0); } else { - x_109 = x_108; + x_107 = x_106; } -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_105); +return x_107; +} +else +{ +lean_object* x_108; lean_object* x_109; +lean_dec(x_98); +x_108 = lean_box(0); +x_109 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(x_74, x_97, x_108, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_96); +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_6); +lean_dec(x_5); return x_109; } +} else { -lean_object* x_110; lean_object* x_111; -lean_dec(x_100); -x_110 = lean_box(0); -x_111 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1(x_75, x_99, x_110, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_98); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_74); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -12873,13 +13023,34 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -return x_111; +x_110 = lean_ctor_get(x_93, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_93, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_112 = x_93; +} else { + lean_dec_ref(x_93); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +return x_113; } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_75); +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_78); +lean_dec(x_74); +lean_dec(x_72); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -12888,34 +13059,34 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_112 = lean_ctor_get(x_95, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_95, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_114 = x_95; +x_114 = lean_ctor_get(x_84, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_84, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_116 = x_84; } else { - lean_dec_ref(x_95); - x_114 = lean_box(0); + lean_dec_ref(x_84); + x_116 = lean_box(0); } -if (lean_is_scalar(x_114)) { - x_115 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); } else { - x_115 = x_114; + x_117 = x_116; } -lean_ctor_set(x_115, 0, x_112); -lean_ctor_set(x_115, 1, x_113); -return x_115; +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; } } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_79); -lean_dec(x_75); -lean_dec(x_73); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_78); +lean_dec(x_74); +lean_dec(x_72); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -12924,34 +13095,32 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_116 = lean_ctor_get(x_86, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_86, 1); -lean_inc(x_117); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_118 = x_86; +x_118 = lean_ctor_get(x_79, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_79, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_120 = x_79; } else { - lean_dec_ref(x_86); - x_118 = lean_box(0); + lean_dec_ref(x_79); + x_120 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_121 = x_120; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; } } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_79); -lean_dec(x_75); -lean_dec(x_73); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +lean_dec(x_72); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -12960,32 +13129,20 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_120 = lean_ctor_get(x_80, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_80, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_122 = x_80; -} else { - lean_dec_ref(x_80); - x_122 = lean_box(0); +x_122 = l_Array_empty___closed__1; +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_74); +lean_ctor_set(x_123, 1, x_122); +x_124 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_73); +return x_124; } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; } } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_dec(x_73); +uint8_t x_125; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -12994,104 +13151,82 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_124 = l_Array_empty___closed__1; -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_75); -lean_ctor_set(x_125, 1, x_124); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_74); -return x_126; -} -} -} -else -{ -uint8_t x_127; -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_6); -lean_dec(x_5); -x_127 = !lean_is_exclusive(x_18); -if (x_127 == 0) +x_125 = !lean_is_exclusive(x_18); +if (x_125 == 0) { return x_18; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_18, 0); -x_129 = lean_ctor_get(x_18, 1); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_18, 0); +x_127 = lean_ctor_get(x_18, 1); +lean_inc(x_127); +lean_inc(x_126); lean_dec(x_18); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); +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; +} +} +} +else +{ +uint8_t x_129; lean_object* x_130; +x_129 = 0; +x_130 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault(x_2, x_3, x_129, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_130) == 0) +{ +uint8_t x_131; +x_131 = !lean_is_exclusive(x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_130, 0); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +lean_dec(x_132); +lean_ctor_set(x_130, 0, x_133); return x_130; } -} -} else { -uint8_t x_131; lean_object* x_132; -x_131 = 0; -x_132 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault(x_2, x_3, x_131, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_132) == 0) -{ -uint8_t x_133; -x_133 = !lean_is_exclusive(x_132); -if (x_133 == 0) -{ -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_132, 0); -x_135 = lean_ctor_get(x_134, 0); +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_130, 0); +x_135 = lean_ctor_get(x_130, 1); lean_inc(x_135); -lean_dec(x_134); -lean_ctor_set(x_132, 0, x_135); -return x_132; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_136 = lean_ctor_get(x_132, 0); -x_137 = lean_ctor_get(x_132, 1); -lean_inc(x_137); +lean_inc(x_134); +lean_dec(x_130); +x_136 = lean_ctor_get(x_134, 0); lean_inc(x_136); -lean_dec(x_132); -x_138 = lean_ctor_get(x_136, 0); -lean_inc(x_138); -lean_dec(x_136); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_137); -return x_139; +lean_dec(x_134); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +return x_137; } } else { -uint8_t x_140; -x_140 = !lean_is_exclusive(x_132); -if (x_140 == 0) +uint8_t x_138; +x_138 = !lean_is_exclusive(x_130); +if (x_138 == 0) { -return x_132; +return x_130; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_132, 0); -x_142 = lean_ctor_get(x_132, 1); -lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_132); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -return x_143; +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_130, 0); +x_140 = lean_ctor_get(x_130, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_130); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } @@ -13108,11 +13243,11 @@ x_15 = l_Lean_Syntax_getArg(x_1, x_14); lean_inc(x_15); x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___boxed), 10, 1); lean_closure_set(x_16, 0, x_15); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2___boxed), 13, 3); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__3___boxed), 13, 3); lean_closure_set(x_17, 0, x_13); lean_closure_set(x_17, 1, x_2); lean_closure_set(x_17, 2, x_15); -x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_17); x_19 = !lean_is_exclusive(x_9); @@ -13181,11 +13316,23 @@ lean_dec(x_1); return x_16; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___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) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -13198,11 +13345,11 @@ lean_dec(x_3); return x_13; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfo___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); @@ -14181,9 +14328,9 @@ lean_inc(x_15); x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTerm___lambda__1___boxed), 11, 2); lean_closure_set(x_17, 0, x_15); lean_closure_set(x_17, 1, x_1); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_18, 0, x_16); -x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_19, 0, x_17); lean_closure_set(x_19, 1, x_18); x_20 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_15, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); @@ -14870,7 +15017,7 @@ lean_closure_set(x_45, 2, x_36); lean_closure_set(x_45, 3, x_3); lean_closure_set(x_45, 4, x_43); x_46 = l_Lean_Elab_Tactic_evalAlt___closed__1; -x_47 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_47 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_47, 0, x_46); lean_closure_set(x_47, 1, x_45); x_48 = lean_box_usize(x_4); @@ -14881,7 +15028,7 @@ lean_closure_set(x_49, 1, x_36); lean_closure_set(x_49, 2, x_48); lean_closure_set(x_49, 3, x_1); lean_closure_set(x_49, 4, x_5); -x_50 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_50 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_50, 0, x_47); lean_closure_set(x_50, 1, x_49); x_51 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_evalClear___spec__1___rarg(x_41, x_50, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_44); @@ -15367,7 +15514,7 @@ x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__4__ lean_closure_set(x_22, 0, x_1); lean_closure_set(x_22, 1, x_12); lean_closure_set(x_22, 2, x_21); -x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_23, 0, x_20); lean_closure_set(x_23, 1, x_22); x_24 = l_Lean_Elab_Tactic_focus___rarg(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); @@ -15994,8 +16141,8 @@ lean_inc(x_30); lean_dec(x_29); x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTaggedTerm___lambda__1___boxed), 11, 1); lean_closure_set(x_31, 0, x_27); -x_32 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; -x_33 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_32 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; +x_33 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_33, 0, x_32); lean_closure_set(x_33, 1, x_31); x_34 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_30); @@ -16168,8 +16315,8 @@ lean_inc(x_64); lean_dec(x_63); x_65 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTaggedTerm___lambda__1___boxed), 11, 1); lean_closure_set(x_65, 0, x_61); -x_66 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; -x_67 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_66 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; +x_67 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_67, 0, x_66); lean_closure_set(x_67, 1, x_65); x_68 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_50, x_12, x_64); @@ -16256,7 +16403,7 @@ lean_closure_set(x_13, 0, x_2); lean_closure_set(x_13, 1, x_12); lean_closure_set(x_13, 2, x_1); x_14 = l_Lean_Elab_Tactic_evalAlt___closed__1; -x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_15, 0, x_14); lean_closure_set(x_15, 1, x_13); x_16 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); @@ -17556,7 +17703,7 @@ lean_closure_set(x_52, 3, x_3); lean_closure_set(x_52, 4, x_1); lean_closure_set(x_52, 5, x_42); lean_closure_set(x_52, 6, x_48); -x_53 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_53 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_53, 0, x_51); lean_closure_set(x_53, 1, x_52); x_54 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_49, x_53, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_47); @@ -17798,7 +17945,7 @@ lean_closure_set(x_39, 2, x_30); lean_closure_set(x_39, 3, x_3); lean_closure_set(x_39, 4, x_37); x_40 = l_Lean_Elab_Tactic_evalAlt___closed__1; -x_41 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_41 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_41, 0, x_40); lean_closure_set(x_41, 1, x_39); lean_inc(x_35); @@ -17806,7 +17953,7 @@ x_42 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCasesUsing___lambda__3) lean_closure_set(x_42, 0, x_30); lean_closure_set(x_42, 1, x_35); lean_closure_set(x_42, 2, x_4); -x_43 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_43 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_43, 0, x_41); lean_closure_set(x_43, 1, x_42); x_44 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_35, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_38); @@ -18198,7 +18345,7 @@ lean_closure_set(x_14, 0, x_13); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__2___boxed), 12, 2); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_12); -x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_16, 0, x_14); lean_closure_set(x_16, 1, x_15); x_17 = l_Lean_Elab_Tactic_focus___rarg(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Injection.c b/stage0/stdlib/Lean/Elab/Tactic/Injection.c index 80f10d400b..d07173748b 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Injection.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Injection.c @@ -37,6 +37,7 @@ lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_o lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_evalInjection(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInjection_match__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_checkUnusedIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -44,12 +45,11 @@ lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1___boxed(lean_object*, lean_object* l_Lean_Elab_Tactic_elabAsFVar(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_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Tactic_evalInjection___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Meta_injection(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Tactic_Injection_0__Lean_Elab_Tactic_getInjectionNewIds___spec__1(lean_object* x_1) { _start: { @@ -700,9 +700,9 @@ x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInjection___lambda__1__ lean_closure_set(x_25, 0, x_19); lean_closure_set(x_25, 1, x_23); lean_closure_set(x_25, 2, x_15); -x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__2___boxed), 11, 1); +x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 11, 1); lean_closure_set(x_26, 0, x_24); -x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_27, 0, x_25); lean_closure_set(x_27, 1, x_26); x_28 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_23, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Match.c b/stage0/stdlib/Lean/Elab/Tactic/Match.c index f483784b9b..68ff3f23e6 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Match.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Match.c @@ -65,7 +65,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Match_0__Lea lean_object* l_Lean_Syntax_setKind(lean_object*, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12938____closed__10; -extern lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1; +extern lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1; lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Match_0__Lean_Elab_Tactic_mkAuxiliaryMatchTerm___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalMatch___closed__1; @@ -511,7 +511,7 @@ lean_dec(x_107); x_146 = lean_ctor_get(x_6, 0); lean_inc(x_146); lean_dec(x_6); -x_147 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5990____closed__1; +x_147 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_5993____closed__1; x_148 = l_Lean_Name_appendIndexAfter(x_147, x_146); x_149 = l_Lean_Name_append(x_1, x_148); x_150 = l_Lean_mkIdentFrom(x_30, x_149); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c index 17796761bc..564c6aca9c 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c @@ -28,7 +28,6 @@ lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteAll(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; extern lean_object* l_Lean_Meta_rewrite___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandRewriteTactic(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -60,6 +59,7 @@ lean_object* l_Lean_Elab_Tactic_rewriteTarget_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__3(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*); lean_object* l_Lean_Elab_Tactic_rewriteTarget___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; lean_object* l_Array_forM___at_Lean_Elab_Tactic_evalTacticAux___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_rewrite___closed__2; lean_object* l_Lean_Elab_Tactic_evalRewriteCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,6 +93,7 @@ lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, extern lean_object* l_Lean_Parser_Tactic_erewrite___closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_expandERewriteTactic(lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteAll_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___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_Elab_Tactic_setGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,7 +109,6 @@ lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_Tactic_evalRewriteCore___spec__ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewrite(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId_match__1___rarg(lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRewriteCore___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_expandRewriteTactic___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -595,7 +595,7 @@ lean_closure_set(x_24, 0, x_16); lean_closure_set(x_24, 1, x_22); lean_closure_set(x_24, 2, x_23); lean_closure_set(x_24, 3, x_17); -x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_25, 0, x_21); lean_closure_set(x_25, 1, x_24); x_26 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_16, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); @@ -874,7 +874,7 @@ lean_closure_set(x_25, 1, x_17); lean_closure_set(x_25, 2, x_23); lean_closure_set(x_25, 3, x_24); lean_closure_set(x_25, 4, x_18); -x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_26, 0, x_22); lean_closure_set(x_26, 1, x_25); x_27 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_17, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); @@ -971,7 +971,7 @@ x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__ lean_closure_set(x_17, 0, x_1); lean_closure_set(x_17, 1, x_15); lean_closure_set(x_17, 2, x_16); -x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_18, 0, x_14); lean_closure_set(x_18, 1, x_17); x_19 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); @@ -1296,8 +1296,8 @@ lean_closure_set(x_21, 0, x_1); lean_closure_set(x_21, 1, x_19); lean_closure_set(x_21, 2, x_20); lean_closure_set(x_21, 3, x_17); -x_22 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; -x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_22 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; +x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_23, 0, x_22); lean_closure_set(x_23, 1, x_21); x_24 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index e77ecc2cd6..e72b0a21d7 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -42,7 +42,6 @@ lean_object* l_Lean_Elab_Tactic_elabSimpConfig___closed__1; lean_object* l_Lean_Elab_Tactic_simpTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_simpPost___closed__2; -extern lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,6 +93,7 @@ lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, lean_object*, lean_ extern lean_object* l_Lean_Meta_Simp_DefaultMethods_methods; lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3; extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_550____closed__1; +extern lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_simpLocalDeclFVarId___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -147,6 +147,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_simpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSimp_match__1(lean_object*); lean_object* l_Lean_Elab_Tactic_simpLocalDeclFVarId_match__1(lean_object*); +lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Tactic_saveBacktrackableState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabSimpConfig___closed__3; @@ -183,7 +184,6 @@ lean_object* l_Lean_Elab_Tactic_evalSimpConfig___boxed(lean_object*, lean_object lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe___at_Lean_Elab_Tactic_evalSimp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forM___at_Lean_Elab_Tactic_evalSimp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -502,7 +502,7 @@ x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_simpTarget___lambda__1___bo lean_closure_set(x_17, 0, x_1); lean_closure_set(x_17, 1, x_14); lean_closure_set(x_17, 2, x_15); -x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_18, 0, x_16); lean_closure_set(x_18, 1, x_17); x_19 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_14, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); @@ -817,7 +817,7 @@ lean_closure_set(x_18, 0, x_1); lean_closure_set(x_18, 1, x_15); lean_closure_set(x_18, 2, x_2); lean_closure_set(x_18, 3, x_16); -x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_19, 0, x_17); lean_closure_set(x_19, 1, x_18); x_20 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_15, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); @@ -910,7 +910,7 @@ x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_simpLocalDecl___lambda__1__ lean_closure_set(x_12, 0, x_2); x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_simpLocalDecl___lambda__2___boxed), 11, 1); lean_closure_set(x_13, 0, x_1); -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); x_15 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); @@ -1207,8 +1207,8 @@ lean_dec(x_12); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_simpAll___lambda__1___boxed), 12, 2); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_13); -x_16 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_withMacroExpansion___spec__1___rarg___closed__1; -x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_16 = l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; +x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_17, 0, x_16); lean_closure_set(x_17, 1, x_15); x_18 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); @@ -2975,7 +2975,7 @@ lean_closure_set(x_27, 2, x_26); lean_closure_set(x_27, 3, x_22); x_28 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1___boxed), 11, 1); lean_closure_set(x_28, 0, x_2); -x_29 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_withMacroExpansion___spec__2___rarg), 11, 2); +x_29 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg), 11, 2); lean_closure_set(x_29, 0, x_27); lean_closure_set(x_29, 1, x_28); x_30 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Tactic_withMainMVarContext___spec__1___rarg(x_16, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 960f7a1031..7e279d447e 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -37,6 +37,7 @@ lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1; lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__9; lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabScientificLit(lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___spec__3___lambda__2___closed__1; extern lean_object* l_Lean_Meta_isCoeDecl___closed__45; lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__1; @@ -108,6 +109,7 @@ lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(le lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_elabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; uint8_t l_USize_decEq(size_t, size_t); extern lean_object* l_Lean_InternalExceptionId_toString___closed__1; @@ -259,7 +261,6 @@ lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6; lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__14___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutPostponing(lean_object*); @@ -297,7 +298,6 @@ lean_object* l_Lean_Elab_Term_elabBadCDot___boxed(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__15(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); extern lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__2; -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_liftLevelM_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__13; @@ -306,7 +306,6 @@ lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName___closed__1; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___boxed(lean_object*); lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__3; lean_object* l_Lean_Elab_Term_elabTypeWithAutoBoundImplicit_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Level_elabLevel(lean_object*, lean_object*, lean_object*); @@ -326,12 +325,12 @@ lean_object* l_Lean_Elab_Term_throwMVarError___rarg___boxed(lean_object*, lean_o lean_object* l_Lean_Elab_Term_elabSyntheticHole_match__2(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___closed__1; lean_object* l_Lean_Elab_Term_elabStrLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic(lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instInhabitedState___closed__1; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames(lean_object*); lean_object* l_Lean_Elab_Term_instMonadLiftTMetaMTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName_x27_match__7___rarg(lean_object*, lean_object*, lean_object*); @@ -364,7 +363,6 @@ lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2___closed_ lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__4; extern lean_object* l_Lean_Meta_mkNumeral___closed__3; lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabNumLit___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNumLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTypeWithAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; @@ -399,7 +397,7 @@ lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Elab_Term_0__L lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__4; extern lean_object* l_Lean_maxRecDepth; lean_object* l_Lean_Elab_Term_resolveLocalName_loop_match__2(lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_liftMetaM(lean_object*); extern lean_object* l_Lean_Elab_throwAbortCommand___rarg___closed__1; @@ -426,10 +424,10 @@ lean_object* l_Lean_Elab_Term_resolveName___lambda__1___boxed(lean_object*, lean lean_object* l_Lean_Elab_Term_observing_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe_match__1(lean_object*); lean_object* l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__2; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__5; @@ -440,7 +438,6 @@ lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object* lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits___spec__1___closed__4; lean_object* l_Lean_Syntax_isCharLit_x3f(lean_object*); -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_withMacroExpansion___spec__3(lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5; @@ -461,7 +458,6 @@ lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExp uint8_t l_instDecidableNot___rarg(uint8_t); extern lean_object* l_Lean_NameSet_insert___closed__1; lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -469,7 +465,6 @@ lean_object* l_Lean_Elab_Term_observing(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutMacroStackAtErr(lean_object*); lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__4; -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_withMacroExpansion___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withMacroExpansion(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMessageLog(lean_object*); @@ -510,12 +505,10 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux_ lean_object* l_Lean_Elab_logException___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; lean_object* l_Array_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; @@ -524,7 +517,6 @@ lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_objec lean_object* l_Lean_Elab_Term_elabByTactic___closed__2; lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam___closed__2; -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkConst___closed__2; extern lean_object* l_Lean_instQuoteProd___rarg___closed__1; @@ -600,7 +592,6 @@ lean_object* l_Lean_Name_toExprAux(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__1; lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__5; -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4(lean_object*); size_t l_Lean_Name_hash(lean_object*); extern lean_object* l_Lean_Parser_Term_ensureTypeOf___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -746,7 +737,6 @@ lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_checkMaxHeartbeats(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___closed__1; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkConst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -808,6 +798,7 @@ lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3207____closed_ lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3207____closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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* l_Lean_Elab_Term_evalExpr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__1___closed__4; size_t l_USize_land(size_t, size_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*); @@ -819,7 +810,6 @@ lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe_match__2(lean_o extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_evalExpr(lean_object*); lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -828,27 +818,23 @@ lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3(lean_object*, lean_object* l_Lean_Elab_Term_resolveName_x27_match__4(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute; -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_mkFreshLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName_process___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at_Lean_Elab_Term_resolveName_x27___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__11(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_addMacroStack___rarg___lambda__1___closed__3; -lean_object* l_Lean_Elab_withInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_Context_sectionVars___default; lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__2; lean_object* l_Lean_Elab_Term_resolveId_x3f_match__1(lean_object*); lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__14; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); lean_object* l_Lean_Elab_Term_getDeclName_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_setAppPPExplicit(lean_object*); lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName_x27_match__9(lean_object*); lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM; -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureTypeOf(lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -877,7 +863,6 @@ uint8_t l_UInt32_decEq(uint32_t, uint32_t); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__4; lean_object* l_Lean_Elab_Term_elabEnsureExpectedType_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; -lean_object* l_Lean_Elab_withInfoContext_x27___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__13(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux_match__2(lean_object*); lean_object* l_Lean_Elab_Term_liftMetaM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -914,9 +899,11 @@ lean_object* l_Lean_Elab_Term_resolveId_x3f_match__1___rarg(lean_object*, lean_o lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_postponeExceptionId; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___rarg(lean_object*); lean_object* lean_environment_main_module(lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f_match__1(lean_object*); extern lean_object* l_Lean_resetTraceState___rarg___lambda__1___closed__1; lean_object* l_List_map___at_Lean_MessageData_instCoeListExprMessageData___spec__1(lean_object*); @@ -990,6 +977,7 @@ lean_object* l_Lean_Elab_Term_savingMCtx___rarg(lean_object*, lean_object*, lean lean_object* l_Lean_Elab_Term_State_syntheticMVars___default; lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__1; +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___boxed(lean_object*); lean_object* l_Lean_Elab_Term_registerMVarErrorCustomInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isTypeApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1044,6 +1032,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole(lean_object*); lean_object* l_Lean_Elab_Term_elabSort(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_levelMVarToParam___lambda__1(lean_object*, lean_object*); lean_object* l_List_foldr___at_Lean_Elab_Term_resolveName_x27___spec__3(lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1052,7 +1041,6 @@ lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__2; lean_object* l_Lean_Elab_Term_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_10199____closed__1; lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_evalExpr___rarg___closed__1; lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__5; @@ -1095,6 +1083,7 @@ lean_object* l_Lean_Elab_Term_TermElabM_toIO_match__1(lean_object*, lean_object* uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDoubleQuotedName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_LVal_getRef_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1193,6 +1182,7 @@ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_Core_instInhabitedState___closed__2; lean_object* l_Lean_Elab_Term_resolveName_process___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabDoubleQuotedName___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos_match__1(lean_object*); lean_object* l_Lean_Elab_Term_elabRawNatLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1234,7 +1224,6 @@ uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___spec__5___boxed(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12336____closed__12; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkInstMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar_match__1(lean_object*); uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp(lean_object*); @@ -1362,7 +1351,6 @@ lean_object* l_Lean_instMonadRef___rarg(lean_object*, lean_object*, lean_object* uint8_t l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__10___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_toIO(lean_object*); lean_object* l_Lean_Elab_Term_applyAttributes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___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* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens(lean_object*); lean_object* l_Lean_Elab_Term_mkFreshBinderName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7033,7 +7021,7 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; @@ -7198,834 +7186,415 @@ return x_52; } } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4(lean_object* x_1) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___boxed), 6, 0); return x_2; } } -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_withMacroExpansion___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_23 = lean_st_ref_get(x_8, x_9); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_st_ref_get(x_4, x_24); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_26, 5); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_ctor_get_uint8(x_27, sizeof(void*)*2); -lean_dec(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -lean_dec(x_2); -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); -lean_dec(x_25); -x_30 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -return x_30; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_25, 1); -lean_inc(x_31); -lean_dec(x_25); -x_32 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg(x_4, x_5, x_6, x_7, x_8, x_31); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_35 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -lean_inc(x_8); -lean_inc(x_4); -lean_inc(x_36); -x_38 = lean_apply_8(x_2, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = lean_st_ref_get(x_8, x_40); -lean_dec(x_8); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = lean_st_ref_take(x_4, x_42); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_44, 5); -lean_inc(x_45); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_46; uint8_t x_47; -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = !lean_is_exclusive(x_44); -if (x_47 == 0) -{ -lean_object* x_48; uint8_t x_49; -x_48 = lean_ctor_get(x_44, 5); -lean_dec(x_48); -x_49 = !lean_is_exclusive(x_45); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_50 = lean_ctor_get(x_45, 1); -x_51 = lean_ctor_get(x_39, 0); -lean_inc(x_51); -lean_dec(x_39); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = l_Std_PersistentArray_push___rarg(x_33, x_52); -lean_ctor_set(x_45, 1, x_53); -x_54 = lean_st_ref_set(x_4, x_44, x_46); -lean_dec(x_4); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_54, 0); -lean_dec(x_56); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_36); -lean_ctor_set(x_58, 1, x_57); -lean_ctor_set(x_54, 0, x_58); -x_10 = x_54; -goto block_22; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_54, 1); -lean_inc(x_59); -lean_dec(x_54); -x_60 = lean_box(0); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_36); -lean_ctor_set(x_61, 1, x_60); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_59); -x_10 = x_62; -goto block_22; -} -} -else -{ -uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_63 = lean_ctor_get_uint8(x_45, sizeof(void*)*2); -x_64 = lean_ctor_get(x_45, 0); -x_65 = lean_ctor_get(x_45, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_45); -x_66 = lean_ctor_get(x_39, 0); -lean_inc(x_66); -lean_dec(x_39); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Std_PersistentArray_push___rarg(x_33, x_67); -x_69 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_69, 0, x_64); -lean_ctor_set(x_69, 1, x_68); -lean_ctor_set_uint8(x_69, sizeof(void*)*2, x_63); -lean_ctor_set(x_44, 5, x_69); -x_70 = lean_st_ref_set(x_4, x_44, x_46); -lean_dec(x_4); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_70)) { - lean_ctor_release(x_70, 0); - lean_ctor_release(x_70, 1); - x_72 = x_70; -} else { - lean_dec_ref(x_70); - x_72 = lean_box(0); -} -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_36); -lean_ctor_set(x_74, 1, x_73); -if (lean_is_scalar(x_72)) { - x_75 = lean_alloc_ctor(0, 2, 0); -} else { - x_75 = x_72; -} -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_71); -x_10 = x_75; -goto block_22; -} -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_76 = lean_ctor_get(x_44, 0); -x_77 = lean_ctor_get(x_44, 1); -x_78 = lean_ctor_get(x_44, 2); -x_79 = lean_ctor_get(x_44, 3); -x_80 = lean_ctor_get(x_44, 4); -lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_44); -x_81 = lean_ctor_get_uint8(x_45, sizeof(void*)*2); -x_82 = lean_ctor_get(x_45, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_45, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_84 = x_45; -} else { - lean_dec_ref(x_45); - x_84 = lean_box(0); -} -x_85 = lean_ctor_get(x_39, 0); -lean_inc(x_85); -lean_dec(x_39); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_83); -x_87 = l_Std_PersistentArray_push___rarg(x_33, x_86); -if (lean_is_scalar(x_84)) { - x_88 = lean_alloc_ctor(0, 2, 1); -} else { - x_88 = x_84; -} -lean_ctor_set(x_88, 0, x_82); -lean_ctor_set(x_88, 1, x_87); -lean_ctor_set_uint8(x_88, sizeof(void*)*2, x_81); -x_89 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_89, 0, x_76); -lean_ctor_set(x_89, 1, x_77); -lean_ctor_set(x_89, 2, x_78); -lean_ctor_set(x_89, 3, x_79); -lean_ctor_set(x_89, 4, x_80); -lean_ctor_set(x_89, 5, x_88); -x_90 = lean_st_ref_set(x_4, x_89, x_46); -lean_dec(x_4); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_92 = x_90; -} else { - lean_dec_ref(x_90); - x_92 = lean_box(0); -} -x_93 = lean_box(0); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_36); -lean_ctor_set(x_94, 1, x_93); -if (lean_is_scalar(x_92)) { - x_95 = lean_alloc_ctor(0, 2, 0); -} else { - x_95 = x_92; -} -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_91); -x_10 = x_95; -goto block_22; -} -} -else -{ -lean_object* x_96; uint8_t x_97; -x_96 = lean_ctor_get(x_43, 1); -lean_inc(x_96); -lean_dec(x_43); -x_97 = !lean_is_exclusive(x_44); -if (x_97 == 0) -{ -lean_object* x_98; uint8_t x_99; -x_98 = lean_ctor_get(x_44, 5); -lean_dec(x_98); -x_99 = !lean_is_exclusive(x_45); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_100 = lean_ctor_get(x_45, 1); -lean_dec(x_100); -x_101 = lean_ctor_get(x_39, 0); -lean_inc(x_101); -lean_dec(x_39); -x_102 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_102, 0, x_101); -x_103 = l_Std_PersistentArray_push___rarg(x_33, x_102); -lean_ctor_set(x_45, 1, x_103); -x_104 = lean_st_ref_set(x_4, x_44, x_96); -lean_dec(x_4); -x_105 = !lean_is_exclusive(x_104); -if (x_105 == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_104, 0); -lean_dec(x_106); -x_107 = lean_box(0); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_36); -lean_ctor_set(x_108, 1, x_107); -lean_ctor_set(x_104, 0, x_108); -x_10 = x_104; -goto block_22; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_109 = lean_ctor_get(x_104, 1); -lean_inc(x_109); -lean_dec(x_104); -x_110 = lean_box(0); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_36); -lean_ctor_set(x_111, 1, x_110); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_109); -x_10 = x_112; -goto block_22; -} -} -else -{ -uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_113 = lean_ctor_get_uint8(x_45, sizeof(void*)*2); -x_114 = lean_ctor_get(x_45, 0); -lean_inc(x_114); -lean_dec(x_45); -x_115 = lean_ctor_get(x_39, 0); -lean_inc(x_115); -lean_dec(x_39); -x_116 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_116, 0, x_115); -x_117 = l_Std_PersistentArray_push___rarg(x_33, x_116); -x_118 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_118, 0, x_114); -lean_ctor_set(x_118, 1, x_117); -lean_ctor_set_uint8(x_118, sizeof(void*)*2, x_113); -lean_ctor_set(x_44, 5, x_118); -x_119 = lean_st_ref_set(x_4, x_44, x_96); -lean_dec(x_4); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_121 = x_119; -} else { - lean_dec_ref(x_119); - x_121 = lean_box(0); -} -x_122 = lean_box(0); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_36); -lean_ctor_set(x_123, 1, x_122); -if (lean_is_scalar(x_121)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_121; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_120); -x_10 = x_124; -goto block_22; -} -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_125 = lean_ctor_get(x_44, 0); -x_126 = lean_ctor_get(x_44, 1); -x_127 = lean_ctor_get(x_44, 2); -x_128 = lean_ctor_get(x_44, 3); -x_129 = lean_ctor_get(x_44, 4); -lean_inc(x_129); -lean_inc(x_128); -lean_inc(x_127); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_44); -x_130 = lean_ctor_get_uint8(x_45, sizeof(void*)*2); -x_131 = lean_ctor_get(x_45, 0); -lean_inc(x_131); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_132 = x_45; -} else { - lean_dec_ref(x_45); - x_132 = lean_box(0); -} -x_133 = lean_ctor_get(x_39, 0); -lean_inc(x_133); -lean_dec(x_39); -x_134 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_134, 0, x_133); -x_135 = l_Std_PersistentArray_push___rarg(x_33, x_134); -if (lean_is_scalar(x_132)) { - x_136 = lean_alloc_ctor(0, 2, 1); -} else { - x_136 = x_132; -} -lean_ctor_set(x_136, 0, x_131); -lean_ctor_set(x_136, 1, x_135); -lean_ctor_set_uint8(x_136, sizeof(void*)*2, x_130); -x_137 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_137, 0, x_125); -lean_ctor_set(x_137, 1, x_126); -lean_ctor_set(x_137, 2, x_127); -lean_ctor_set(x_137, 3, x_128); -lean_ctor_set(x_137, 4, x_129); -lean_ctor_set(x_137, 5, x_136); -x_138 = lean_st_ref_set(x_4, x_137, x_96); -lean_dec(x_4); -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_140 = x_138; -} else { - lean_dec_ref(x_138); - x_140 = lean_box(0); -} -x_141 = lean_box(0); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_36); -lean_ctor_set(x_142, 1, x_141); -if (lean_is_scalar(x_140)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_140; -} -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_139); -x_10 = x_143; -goto block_22; -} -} -} -else -{ -uint8_t x_144; -lean_dec(x_36); -lean_dec(x_33); -lean_dec(x_8); -lean_dec(x_4); -x_144 = !lean_is_exclusive(x_38); -if (x_144 == 0) -{ -x_10 = x_38; -goto block_22; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_38, 0); -x_146 = lean_ctor_get(x_38, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_38); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -x_10 = x_147; -goto block_22; -} -} -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_148 = lean_ctor_get(x_35, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_35, 1); -lean_inc(x_149); -lean_dec(x_35); -x_150 = lean_st_ref_get(x_8, x_149); -lean_dec(x_8); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec(x_150); -x_152 = lean_st_ref_take(x_4, x_151); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_153, 5); -lean_inc(x_154); -x_155 = lean_ctor_get(x_152, 1); -lean_inc(x_155); -lean_dec(x_152); -x_156 = !lean_is_exclusive(x_153); -if (x_156 == 0) -{ -lean_object* x_157; uint8_t x_158; -x_157 = lean_ctor_get(x_153, 5); -lean_dec(x_157); -x_158 = !lean_is_exclusive(x_154); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; uint8_t x_161; -x_159 = lean_ctor_get(x_154, 1); -lean_dec(x_159); -lean_ctor_set(x_154, 1, x_33); -x_160 = lean_st_ref_set(x_4, x_153, x_155); -lean_dec(x_4); -x_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) -{ -lean_object* x_162; -x_162 = lean_ctor_get(x_160, 0); -lean_dec(x_162); -lean_ctor_set_tag(x_160, 1); -lean_ctor_set(x_160, 0, x_148); -x_10 = x_160; -goto block_22; -} -else -{ -lean_object* x_163; lean_object* x_164; -x_163 = lean_ctor_get(x_160, 1); -lean_inc(x_163); -lean_dec(x_160); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_148); -lean_ctor_set(x_164, 1, x_163); -x_10 = x_164; -goto block_22; -} -} -else -{ -uint8_t x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_165 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); -x_166 = lean_ctor_get(x_154, 0); -lean_inc(x_166); -lean_dec(x_154); -x_167 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_33); -lean_ctor_set_uint8(x_167, sizeof(void*)*2, x_165); -lean_ctor_set(x_153, 5, x_167); -x_168 = lean_st_ref_set(x_4, x_153, x_155); -lean_dec(x_4); -x_169 = lean_ctor_get(x_168, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - x_170 = x_168; -} else { - lean_dec_ref(x_168); - x_170 = lean_box(0); -} -if (lean_is_scalar(x_170)) { - x_171 = lean_alloc_ctor(1, 2, 0); -} else { - x_171 = x_170; - lean_ctor_set_tag(x_171, 1); -} -lean_ctor_set(x_171, 0, x_148); -lean_ctor_set(x_171, 1, x_169); -x_10 = x_171; -goto block_22; -} -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_172 = lean_ctor_get(x_153, 0); -x_173 = lean_ctor_get(x_153, 1); -x_174 = lean_ctor_get(x_153, 2); -x_175 = lean_ctor_get(x_153, 3); -x_176 = lean_ctor_get(x_153, 4); -lean_inc(x_176); -lean_inc(x_175); -lean_inc(x_174); -lean_inc(x_173); -lean_inc(x_172); -lean_dec(x_153); -x_177 = lean_ctor_get_uint8(x_154, sizeof(void*)*2); -x_178 = lean_ctor_get(x_154, 0); -lean_inc(x_178); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_179 = x_154; -} else { - lean_dec_ref(x_154); - x_179 = lean_box(0); -} -if (lean_is_scalar(x_179)) { - x_180 = lean_alloc_ctor(0, 2, 1); -} else { - x_180 = x_179; -} -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_33); -lean_ctor_set_uint8(x_180, sizeof(void*)*2, x_177); -x_181 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_181, 0, x_172); -lean_ctor_set(x_181, 1, x_173); -lean_ctor_set(x_181, 2, x_174); -lean_ctor_set(x_181, 3, x_175); -lean_ctor_set(x_181, 4, x_176); -lean_ctor_set(x_181, 5, x_180); -x_182 = lean_st_ref_set(x_4, x_181, x_155); -lean_dec(x_4); -x_183 = lean_ctor_get(x_182, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_182)) { - lean_ctor_release(x_182, 0); - lean_ctor_release(x_182, 1); - x_184 = x_182; -} else { - lean_dec_ref(x_182); - x_184 = lean_box(0); -} -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(1, 2, 0); -} else { - x_185 = x_184; - lean_ctor_set_tag(x_185, 1); -} -lean_ctor_set(x_185, 0, x_148); -lean_ctor_set(x_185, 1, x_183); -x_10 = x_185; -goto block_22; -} -} -} -block_22: -{ -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -return x_10; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_10); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -} -lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_withMacroExpansion___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_withMacroExpansion___spec__3___rarg), 9, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_16, 0, x_14); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -return x_10; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_10); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___lambda__1___boxed), 9, 1); -lean_closure_set(x_10, 0, x_2); -x_11 = l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_withMacroExpansion___spec__3___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg), 9, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_3, 1); -lean_inc(x_8); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_11, 0, x_3); -lean_ctor_set(x_11, 1, x_1); -lean_ctor_set(x_11, 2, x_2); -x_12 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_12, 0, x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_10); -return x_13; -} -} -static lean_object* _init_l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1___boxed), 7, 0); -return x_1; -} -} lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__2___boxed), 10, 2); -lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_2); -x_12 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___closed__1; -x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2); -lean_closure_set(x_13, 0, x_12); -lean_closure_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_14; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_5, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_14, 5); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*2); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_dec(x_13); +x_20 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(x_5, x_6, x_7, x_8, x_9, x_19); +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); +lean_inc(x_9); +lean_inc(x_6); +lean_inc(x_5); +x_23 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +if (lean_obj_tag(x_23) == 0) +{ +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; uint8_t x_35; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_6, 1); +lean_inc(x_26); +lean_dec(x_6); +x_27 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_1); +lean_ctor_set(x_27, 2, x_2); +x_28 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = lean_st_ref_get(x_9, x_25); +lean_dec(x_9); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_st_ref_take(x_5, x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_32, 5); +lean_inc(x_33); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = !lean_is_exclusive(x_32); +if (x_35 == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_32, 5); +lean_dec(x_36); +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_33, 1); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_28); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_Std_PersistentArray_push___rarg(x_21, x_39); +lean_ctor_set(x_33, 1, x_40); +x_41 = lean_st_ref_set(x_5, x_32, x_34); +lean_dec(x_5); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +lean_ctor_set(x_41, 0, x_24); +return x_41; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_24); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +else +{ +uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_46 = lean_ctor_get_uint8(x_33, sizeof(void*)*2); +x_47 = lean_ctor_get(x_33, 0); +x_48 = lean_ctor_get(x_33, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_33); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_28); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Std_PersistentArray_push___rarg(x_21, x_49); +x_51 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_51, 0, x_47); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set_uint8(x_51, sizeof(void*)*2, x_46); +lean_ctor_set(x_32, 5, x_51); +x_52 = lean_st_ref_set(x_5, x_32, x_34); +lean_dec(x_5); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_24); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_56 = lean_ctor_get(x_32, 0); +x_57 = lean_ctor_get(x_32, 1); +x_58 = lean_ctor_get(x_32, 2); +x_59 = lean_ctor_get(x_32, 3); +x_60 = lean_ctor_get(x_32, 4); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_32); +x_61 = lean_ctor_get_uint8(x_33, sizeof(void*)*2); +x_62 = lean_ctor_get(x_33, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_33, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_64 = x_33; +} else { + lean_dec_ref(x_33); + x_64 = lean_box(0); +} +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_28); +lean_ctor_set(x_65, 1, x_63); +x_66 = l_Std_PersistentArray_push___rarg(x_21, x_65); +if (lean_is_scalar(x_64)) { + x_67 = lean_alloc_ctor(0, 2, 1); +} else { + x_67 = x_64; +} +lean_ctor_set(x_67, 0, x_62); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set_uint8(x_67, sizeof(void*)*2, x_61); +x_68 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_68, 0, x_56); +lean_ctor_set(x_68, 1, x_57); +lean_ctor_set(x_68, 2, x_58); +lean_ctor_set(x_68, 3, x_59); +lean_ctor_set(x_68, 4, x_60); +lean_ctor_set(x_68, 5, x_67); +x_69 = lean_st_ref_set(x_5, x_68, x_34); +lean_dec(x_5); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; +} else { + lean_dec_ref(x_69); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_24); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_73 = lean_ctor_get(x_23, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_23, 1); +lean_inc(x_74); +lean_dec(x_23); +x_75 = lean_ctor_get(x_6, 1); +lean_inc(x_75); +lean_dec(x_6); +x_76 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_1); +lean_ctor_set(x_76, 2, x_2); +x_77 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_st_ref_get(x_9, x_74); +lean_dec(x_9); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_80 = lean_st_ref_take(x_5, x_79); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_81, 5); +lean_inc(x_82); +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +lean_dec(x_80); +x_84 = !lean_is_exclusive(x_81); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_81, 5); +lean_dec(x_85); +x_86 = !lean_is_exclusive(x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_87 = lean_ctor_get(x_82, 1); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_77); +lean_ctor_set(x_88, 1, x_87); +x_89 = l_Std_PersistentArray_push___rarg(x_21, x_88); +lean_ctor_set(x_82, 1, x_89); +x_90 = lean_st_ref_set(x_5, x_81, x_83); +lean_dec(x_5); +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +lean_object* x_92; +x_92 = lean_ctor_get(x_90, 0); +lean_dec(x_92); +lean_ctor_set_tag(x_90, 1); +lean_ctor_set(x_90, 0, x_73); +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +lean_dec(x_90); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_73); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +else +{ +uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_95 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get(x_82, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_82); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_77); +lean_ctor_set(x_98, 1, x_97); +x_99 = l_Std_PersistentArray_push___rarg(x_21, x_98); +x_100 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_100, 0, x_96); +lean_ctor_set(x_100, 1, x_99); +lean_ctor_set_uint8(x_100, sizeof(void*)*2, x_95); +lean_ctor_set(x_81, 5, x_100); +x_101 = lean_st_ref_set(x_5, x_81, x_83); +lean_dec(x_5); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_103; + lean_ctor_set_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_73); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_105 = lean_ctor_get(x_81, 0); +x_106 = lean_ctor_get(x_81, 1); +x_107 = lean_ctor_get(x_81, 2); +x_108 = lean_ctor_get(x_81, 3); +x_109 = lean_ctor_get(x_81, 4); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_81); +x_110 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_111 = lean_ctor_get(x_82, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_82, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_113 = x_82; +} else { + lean_dec_ref(x_82); + x_113 = lean_box(0); +} +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_77); +lean_ctor_set(x_114, 1, x_112); +x_115 = l_Std_PersistentArray_push___rarg(x_21, x_114); +if (lean_is_scalar(x_113)) { + x_116 = lean_alloc_ctor(0, 2, 1); +} else { + x_116 = x_113; +} +lean_ctor_set(x_116, 0, x_111); +lean_ctor_set(x_116, 1, x_115); +lean_ctor_set_uint8(x_116, sizeof(void*)*2, x_110); +x_117 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_117, 0, x_105); +lean_ctor_set(x_117, 1, x_106); +lean_ctor_set(x_117, 2, x_107); +lean_ctor_set(x_117, 3, x_108); +lean_ctor_set(x_117, 4, x_109); +lean_ctor_set(x_117, 5, x_116); +x_118 = lean_st_ref_set(x_5, x_117, x_83); +lean_dec(x_5); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_120 = x_118; +} else { + lean_dec_ref(x_118); + x_120 = lean_box(0); +} +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; + lean_ctor_set_tag(x_121, 1); +} +lean_ctor_set(x_121, 0, x_73); +lean_ctor_set(x_121, 1, x_119); +return x_121; +} +} +} } } lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1(lean_object* x_1) { @@ -8123,11 +7692,11 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withMacroExpansion___rarg), 10 return x_2; } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -8136,52 +7705,15 @@ lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4(x_1); +x_2 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -return x_10; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_11; -} -} lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -24564,7 +24096,3281 @@ return x_168; } } } -lean_object* l_Lean_Elab_withInfoContext_x27___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_5, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_14, 5); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*2); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_dec(x_13); +x_20 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(x_5, x_6, x_7, x_8, x_9, x_19); +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); +lean_inc(x_9); +lean_inc(x_6); +lean_inc(x_5); +x_23 = lean_apply_7(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +if (lean_obj_tag(x_23) == 0) +{ +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; uint8_t x_35; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_6, 1); +lean_inc(x_26); +lean_dec(x_6); +x_27 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_1); +lean_ctor_set(x_27, 2, x_2); +x_28 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = lean_st_ref_get(x_9, x_25); +lean_dec(x_9); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_st_ref_take(x_5, x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_32, 5); +lean_inc(x_33); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = !lean_is_exclusive(x_32); +if (x_35 == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_32, 5); +lean_dec(x_36); +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = lean_ctor_get(x_33, 1); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_28); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_Std_PersistentArray_push___rarg(x_21, x_39); +lean_ctor_set(x_33, 1, x_40); +x_41 = lean_st_ref_set(x_5, x_32, x_34); +lean_dec(x_5); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; +x_43 = lean_ctor_get(x_41, 0); +lean_dec(x_43); +lean_ctor_set(x_41, 0, x_24); +return x_41; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_24); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +else +{ +uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_46 = lean_ctor_get_uint8(x_33, sizeof(void*)*2); +x_47 = lean_ctor_get(x_33, 0); +x_48 = lean_ctor_get(x_33, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_33); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_28); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Std_PersistentArray_push___rarg(x_21, x_49); +x_51 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_51, 0, x_47); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set_uint8(x_51, sizeof(void*)*2, x_46); +lean_ctor_set(x_32, 5, x_51); +x_52 = lean_st_ref_set(x_5, x_32, x_34); +lean_dec(x_5); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_24); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_56 = lean_ctor_get(x_32, 0); +x_57 = lean_ctor_get(x_32, 1); +x_58 = lean_ctor_get(x_32, 2); +x_59 = lean_ctor_get(x_32, 3); +x_60 = lean_ctor_get(x_32, 4); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_32); +x_61 = lean_ctor_get_uint8(x_33, sizeof(void*)*2); +x_62 = lean_ctor_get(x_33, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_33, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_64 = x_33; +} else { + lean_dec_ref(x_33); + x_64 = lean_box(0); +} +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_28); +lean_ctor_set(x_65, 1, x_63); +x_66 = l_Std_PersistentArray_push___rarg(x_21, x_65); +if (lean_is_scalar(x_64)) { + x_67 = lean_alloc_ctor(0, 2, 1); +} else { + x_67 = x_64; +} +lean_ctor_set(x_67, 0, x_62); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set_uint8(x_67, sizeof(void*)*2, x_61); +x_68 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_68, 0, x_56); +lean_ctor_set(x_68, 1, x_57); +lean_ctor_set(x_68, 2, x_58); +lean_ctor_set(x_68, 3, x_59); +lean_ctor_set(x_68, 4, x_60); +lean_ctor_set(x_68, 5, x_67); +x_69 = lean_st_ref_set(x_5, x_68, x_34); +lean_dec(x_5); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; +} else { + lean_dec_ref(x_69); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_24); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_73 = lean_ctor_get(x_23, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_23, 1); +lean_inc(x_74); +lean_dec(x_23); +x_75 = lean_ctor_get(x_6, 1); +lean_inc(x_75); +lean_dec(x_6); +x_76 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_1); +lean_ctor_set(x_76, 2, x_2); +x_77 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_77, 0, x_76); +x_78 = lean_st_ref_get(x_9, x_74); +lean_dec(x_9); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +lean_dec(x_78); +x_80 = lean_st_ref_take(x_5, x_79); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_81, 5); +lean_inc(x_82); +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +lean_dec(x_80); +x_84 = !lean_is_exclusive(x_81); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_81, 5); +lean_dec(x_85); +x_86 = !lean_is_exclusive(x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_87 = lean_ctor_get(x_82, 1); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_77); +lean_ctor_set(x_88, 1, x_87); +x_89 = l_Std_PersistentArray_push___rarg(x_21, x_88); +lean_ctor_set(x_82, 1, x_89); +x_90 = lean_st_ref_set(x_5, x_81, x_83); +lean_dec(x_5); +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +lean_object* x_92; +x_92 = lean_ctor_get(x_90, 0); +lean_dec(x_92); +lean_ctor_set_tag(x_90, 1); +lean_ctor_set(x_90, 0, x_73); +return x_90; +} +else +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +lean_dec(x_90); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_73); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +else +{ +uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_95 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_96 = lean_ctor_get(x_82, 0); +x_97 = lean_ctor_get(x_82, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_82); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_77); +lean_ctor_set(x_98, 1, x_97); +x_99 = l_Std_PersistentArray_push___rarg(x_21, x_98); +x_100 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_100, 0, x_96); +lean_ctor_set(x_100, 1, x_99); +lean_ctor_set_uint8(x_100, sizeof(void*)*2, x_95); +lean_ctor_set(x_81, 5, x_100); +x_101 = lean_st_ref_set(x_5, x_81, x_83); +lean_dec(x_5); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_103; + lean_ctor_set_tag(x_104, 1); +} +lean_ctor_set(x_104, 0, x_73); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_105 = lean_ctor_get(x_81, 0); +x_106 = lean_ctor_get(x_81, 1); +x_107 = lean_ctor_get(x_81, 2); +x_108 = lean_ctor_get(x_81, 3); +x_109 = lean_ctor_get(x_81, 4); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_81); +x_110 = lean_ctor_get_uint8(x_82, sizeof(void*)*2); +x_111 = lean_ctor_get(x_82, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_82, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_113 = x_82; +} else { + lean_dec_ref(x_82); + x_113 = lean_box(0); +} +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_77); +lean_ctor_set(x_114, 1, x_112); +x_115 = l_Std_PersistentArray_push___rarg(x_21, x_114); +if (lean_is_scalar(x_113)) { + x_116 = lean_alloc_ctor(0, 2, 1); +} else { + x_116 = x_113; +} +lean_ctor_set(x_116, 0, x_111); +lean_ctor_set(x_116, 1, x_115); +lean_ctor_set_uint8(x_116, sizeof(void*)*2, x_110); +x_117 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_117, 0, x_105); +lean_ctor_set(x_117, 1, x_106); +lean_ctor_set(x_117, 2, x_107); +lean_ctor_set(x_117, 3, x_108); +lean_ctor_set(x_117, 4, x_109); +lean_ctor_set(x_117, 5, x_116); +x_118 = lean_st_ref_set(x_5, x_117, x_83); +lean_dec(x_5); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_120 = x_118; +} else { + lean_dec_ref(x_118); + x_120 = lean_box(0); +} +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; + lean_ctor_set_tag(x_121, 1); +} +lean_ctor_set(x_121, 0, x_73); +lean_ctor_set(x_121, 1, x_119); +return x_121; +} +} +} +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_9 = lean_ctor_get(x_6, 3); +x_10 = lean_ctor_get(x_2, 3); +lean_inc(x_10); +lean_inc(x_10); +x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +lean_dec(x_2); +lean_dec(x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_18); +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_15); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_19); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 3); +x_12 = l_Lean_replaceRef(x_1, x_11); +lean_dec(x_11); +lean_ctor_set(x_7, 3, x_12); +x_13 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +x_16 = lean_ctor_get(x_7, 2); +x_17 = lean_ctor_get(x_7, 3); +x_18 = lean_ctor_get(x_7, 4); +x_19 = lean_ctor_get(x_7, 5); +x_20 = lean_ctor_get(x_7, 6); +x_21 = lean_ctor_get(x_7, 7); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_7); +x_22 = l_Lean_replaceRef(x_1, x_17); +lean_dec(x_17); +x_23 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_23, 0, x_14); +lean_ctor_set(x_23, 1, x_15); +lean_ctor_set(x_23, 2, x_16); +lean_ctor_set(x_23, 3, x_22); +lean_ctor_set(x_23, 4, x_18); +lean_ctor_set(x_23, 5, x_19); +lean_ctor_set(x_23, 6, x_20); +lean_ctor_set(x_23, 7, x_21); +x_24 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); +lean_dec(x_23); +return x_24; +} +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg), 1, 0); +return x_7; +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_9 = lean_ctor_get(x_6, 3); +x_10 = lean_ctor_get(x_2, 3); +lean_inc(x_10); +lean_inc(x_10); +x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +lean_dec(x_2); +lean_dec(x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_18); +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_15); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_19); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_2); +x_13 = lean_ctor_get(x_4, 0); +lean_inc(x_13); +lean_dec(x_4); +x_14 = l_Array_empty___closed__1; +x_15 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda(x_1, x_3, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_15; +} +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_6); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_6, 3); +lean_inc(x_2); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_2); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +lean_ctor_set(x_6, 3, x_16); +x_17 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_3, x_4, x_5, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; uint8_t 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; +x_18 = lean_ctor_get(x_6, 0); +x_19 = lean_ctor_get(x_6, 1); +x_20 = lean_ctor_get(x_6, 2); +x_21 = lean_ctor_get(x_6, 3); +x_22 = lean_ctor_get(x_6, 4); +x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); +x_24 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); +x_25 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 2); +x_26 = lean_ctor_get(x_6, 5); +x_27 = lean_ctor_get(x_6, 6); +x_28 = lean_ctor_get(x_6, 7); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_6); +lean_inc(x_2); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_2); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_21); +x_31 = lean_alloc_ctor(0, 8, 3); +lean_ctor_set(x_31, 0, x_18); +lean_ctor_set(x_31, 1, x_19); +lean_ctor_set(x_31, 2, x_20); +lean_ctor_set(x_31, 3, x_30); +lean_ctor_set(x_31, 4, x_22); +lean_ctor_set(x_31, 5, x_26); +lean_ctor_set(x_31, 6, x_27); +lean_ctor_set(x_31, 7, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*8, x_23); +lean_ctor_set_uint8(x_31, sizeof(void*)*8 + 1, x_24); +lean_ctor_set_uint8(x_31, sizeof(void*)*8 + 2, x_25); +x_32 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_3, x_4, x_5, x_2, x_31, x_7, x_8, x_9, x_10, x_11, x_12); +return x_32; +} +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elaborator"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("expected type: "); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", term\n"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3; +x_2 = l_Lean_instToMessageDataOptionExpr___closed__3; +x_3 = lean_alloc_ctor(10, 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___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__6; +x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5; +x_3 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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; lean_object* x_16; uint8_t x_17; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_1, x_15); +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_248; lean_object* x_249; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; +x_18 = lean_ctor_get(x_12, 2); +x_19 = lean_ctor_get(x_12, 3); +x_20 = lean_ctor_get(x_12, 1); +lean_dec(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_16); +lean_ctor_set(x_12, 1, x_16); +x_269 = lean_st_ref_get(x_13, x_14); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_270, 3); +lean_inc(x_271); +lean_dec(x_270); +x_272 = lean_ctor_get_uint8(x_271, sizeof(void*)*1); +lean_dec(x_271); +if (x_272 == 0) +{ +lean_object* x_273; uint8_t x_274; +x_273 = lean_ctor_get(x_269, 1); +lean_inc(x_273); +lean_dec(x_269); +x_274 = 0; +x_248 = x_274; +x_249 = x_273; +goto block_268; +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; +x_275 = lean_ctor_get(x_269, 1); +lean_inc(x_275); +lean_dec(x_269); +lean_inc(x_6); +x_276 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_275); +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_276, 1); +lean_inc(x_278); +lean_dec(x_276); +x_279 = lean_unbox(x_277); +lean_dec(x_277); +x_248 = x_279; +x_249 = x_278; +goto block_268; +} +block_247: +{ +lean_object* x_22; lean_object* x_23; +x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; +x_23 = l_Lean_Core_checkMaxHeartbeats(x_22, x_12, x_13, x_21); +if (lean_obj_tag(x_23) == 0) +{ +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_38; lean_object* x_39; lean_object* x_46; lean_object* x_47; lean_object* x_74; lean_object* x_75; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_st_ref_get(x_13, x_24); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 3); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +x_81 = lean_st_ref_take(x_13, x_27); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_82, 3); +lean_inc(x_83); +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_dec(x_81); +x_85 = !lean_is_exclusive(x_82); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_ctor_get(x_82, 3); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_83); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_88 = lean_ctor_get(x_83, 0); +lean_dec(x_88); +x_89 = l_Std_PersistentArray_empty___closed__1; +lean_ctor_set(x_83, 0, x_89); +x_90 = lean_st_ref_set(x_13, x_82, x_84); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = lean_st_ref_get(x_13, x_91); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = lean_ctor_get(x_93, 0); +lean_inc(x_95); +lean_dec(x_93); +x_96 = lean_st_ref_get(x_13, x_94); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_ctor_get(x_97, 0); +lean_inc(x_99); +lean_dec(x_97); +x_100 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_12, x_13, x_98); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_103 = lean_st_ref_get(x_13, x_102); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +lean_inc(x_99); +x_107 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_107, 0, x_99); +x_108 = x_107; +x_109 = lean_environment_main_module(x_99); +lean_inc(x_19); +x_110 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +lean_ctor_set(x_110, 2, x_101); +lean_ctor_set(x_110, 3, x_16); +lean_ctor_set(x_110, 4, x_18); +lean_ctor_set(x_110, 5, x_19); +lean_inc(x_2); +x_111 = l_Lean_Elab_getMacros(x_95, x_2, x_110, x_106); +lean_dec(x_95); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = lean_st_ref_take(x_13, x_105); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_117 = !lean_is_exclusive(x_115); +if (x_117 == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_115, 1); +lean_dec(x_118); +lean_ctor_set(x_115, 1, x_113); +x_119 = lean_st_ref_set(x_13, x_115, x_116); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_112); +x_46 = x_121; +x_47 = x_120; +goto block_73; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_122 = lean_ctor_get(x_115, 0); +x_123 = lean_ctor_get(x_115, 2); +x_124 = lean_ctor_get(x_115, 3); +lean_inc(x_124); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_115); +x_125 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_125, 0, x_122); +lean_ctor_set(x_125, 1, x_113); +lean_ctor_set(x_125, 2, x_123); +lean_ctor_set(x_125, 3, x_124); +x_126 = lean_st_ref_set(x_13, x_125, x_116); +x_127 = lean_ctor_get(x_126, 1); +lean_inc(x_127); +lean_dec(x_126); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_112); +x_46 = x_128; +x_47 = x_127; +goto block_73; +} +} +else +{ +lean_object* x_129; +x_129 = lean_ctor_get(x_111, 0); +lean_inc(x_129); +lean_dec(x_111); +if (lean_obj_tag(x_129) == 0) +{ +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; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_132 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_132, 0, x_131); +x_133 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_133, 0, x_132); +lean_inc(x_12); +lean_inc(x_8); +x_134 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_130, x_133, x_8, x_9, x_10, x_11, x_12, x_13, x_105); +lean_dec(x_130); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_74 = x_135; +x_75 = x_136; +goto block_80; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_105); +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_74 = x_138; +x_75 = x_139; +goto block_80; +} +} +} +else +{ +uint8_t x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_140 = lean_ctor_get_uint8(x_83, sizeof(void*)*1); +lean_dec(x_83); +x_141 = l_Std_PersistentArray_empty___closed__1; +x_142 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set_uint8(x_142, sizeof(void*)*1, x_140); +lean_ctor_set(x_82, 3, x_142); +x_143 = lean_st_ref_set(x_13, x_82, x_84); +x_144 = lean_ctor_get(x_143, 1); +lean_inc(x_144); +lean_dec(x_143); +x_145 = lean_st_ref_get(x_13, x_144); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +lean_dec(x_145); +x_148 = lean_ctor_get(x_146, 0); +lean_inc(x_148); +lean_dec(x_146); +x_149 = lean_st_ref_get(x_13, x_147); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec(x_149); +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +lean_dec(x_150); +x_153 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_12, x_13, x_151); +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = lean_st_ref_get(x_13, x_155); +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +lean_dec(x_156); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +lean_inc(x_152); +x_160 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_160, 0, x_152); +x_161 = x_160; +x_162 = lean_environment_main_module(x_152); +lean_inc(x_19); +x_163 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_162); +lean_ctor_set(x_163, 2, x_154); +lean_ctor_set(x_163, 3, x_16); +lean_ctor_set(x_163, 4, x_18); +lean_ctor_set(x_163, 5, x_19); +lean_inc(x_2); +x_164 = l_Lean_Elab_getMacros(x_148, x_2, x_163, x_159); +lean_dec(x_148); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = lean_st_ref_take(x_13, x_158); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +x_170 = lean_ctor_get(x_168, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_168, 2); +lean_inc(x_171); +x_172 = lean_ctor_get(x_168, 3); +lean_inc(x_172); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + x_173 = x_168; +} else { + lean_dec_ref(x_168); + x_173 = lean_box(0); +} +if (lean_is_scalar(x_173)) { + x_174 = lean_alloc_ctor(0, 4, 0); +} else { + x_174 = x_173; +} +lean_ctor_set(x_174, 0, x_170); +lean_ctor_set(x_174, 1, x_166); +lean_ctor_set(x_174, 2, x_171); +lean_ctor_set(x_174, 3, x_172); +x_175 = lean_st_ref_set(x_13, x_174, x_169); +x_176 = lean_ctor_get(x_175, 1); +lean_inc(x_176); +lean_dec(x_175); +x_177 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_177, 0, x_165); +x_46 = x_177; +x_47 = x_176; +goto block_73; +} +else +{ +lean_object* x_178; +x_178 = lean_ctor_get(x_164, 0); +lean_inc(x_178); +lean_dec(x_164); +if (lean_obj_tag(x_178) == 0) +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +lean_dec(x_178); +x_181 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_181, 0, x_180); +x_182 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_182, 0, x_181); +lean_inc(x_12); +lean_inc(x_8); +x_183 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_179, x_182, x_8, x_9, x_10, x_11, x_12, x_13, x_158); +lean_dec(x_179); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +lean_dec(x_183); +x_74 = x_184; +x_75 = x_185; +goto block_80; +} +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_158); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +lean_dec(x_186); +x_74 = x_187; +x_75 = x_188; +goto block_80; +} +} +} +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_189 = lean_ctor_get(x_82, 0); +x_190 = lean_ctor_get(x_82, 1); +x_191 = lean_ctor_get(x_82, 2); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_82); +x_192 = lean_ctor_get_uint8(x_83, sizeof(void*)*1); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + x_193 = x_83; +} else { + lean_dec_ref(x_83); + x_193 = lean_box(0); +} +x_194 = l_Std_PersistentArray_empty___closed__1; +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 1, 1); +} else { + x_195 = x_193; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set_uint8(x_195, sizeof(void*)*1, x_192); +x_196 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_196, 0, x_189); +lean_ctor_set(x_196, 1, x_190); +lean_ctor_set(x_196, 2, x_191); +lean_ctor_set(x_196, 3, x_195); +x_197 = lean_st_ref_set(x_13, x_196, x_84); +x_198 = lean_ctor_get(x_197, 1); +lean_inc(x_198); +lean_dec(x_197); +x_199 = lean_st_ref_get(x_13, x_198); +x_200 = lean_ctor_get(x_199, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_199, 1); +lean_inc(x_201); +lean_dec(x_199); +x_202 = lean_ctor_get(x_200, 0); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_st_ref_get(x_13, x_201); +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +x_206 = lean_ctor_get(x_204, 0); +lean_inc(x_206); +lean_dec(x_204); +x_207 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_12, x_13, x_205); +x_208 = lean_ctor_get(x_207, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_207, 1); +lean_inc(x_209); +lean_dec(x_207); +x_210 = lean_st_ref_get(x_13, x_209); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec(x_210); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +lean_dec(x_211); +lean_inc(x_206); +x_214 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_214, 0, x_206); +x_215 = x_214; +x_216 = lean_environment_main_module(x_206); +lean_inc(x_19); +x_217 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +lean_ctor_set(x_217, 2, x_208); +lean_ctor_set(x_217, 3, x_16); +lean_ctor_set(x_217, 4, x_18); +lean_ctor_set(x_217, 5, x_19); +lean_inc(x_2); +x_218 = l_Lean_Elab_getMacros(x_202, x_2, x_217, x_213); +lean_dec(x_202); +if (lean_obj_tag(x_218) == 0) +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_st_ref_take(x_13, x_212); +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_221, 1); +lean_inc(x_223); +lean_dec(x_221); +x_224 = lean_ctor_get(x_222, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_222, 2); +lean_inc(x_225); +x_226 = lean_ctor_get(x_222, 3); +lean_inc(x_226); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + lean_ctor_release(x_222, 2); + lean_ctor_release(x_222, 3); + x_227 = x_222; +} else { + lean_dec_ref(x_222); + x_227 = lean_box(0); +} +if (lean_is_scalar(x_227)) { + x_228 = lean_alloc_ctor(0, 4, 0); +} else { + x_228 = x_227; +} +lean_ctor_set(x_228, 0, x_224); +lean_ctor_set(x_228, 1, x_220); +lean_ctor_set(x_228, 2, x_225); +lean_ctor_set(x_228, 3, x_226); +x_229 = lean_st_ref_set(x_13, x_228, x_223); +x_230 = lean_ctor_get(x_229, 1); +lean_inc(x_230); +lean_dec(x_229); +x_231 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_231, 0, x_219); +x_46 = x_231; +x_47 = x_230; +goto block_73; +} +else +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_218, 0); +lean_inc(x_232); +lean_dec(x_218); +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); +lean_inc(x_234); +lean_dec(x_232); +x_235 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_235, 0, x_234); +x_236 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_236, 0, x_235); +lean_inc(x_12); +lean_inc(x_8); +x_237 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_233, x_236, x_8, x_9, x_10, x_11, x_12, x_13, x_212); +lean_dec(x_233); +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +x_74 = x_238; +x_75 = x_239; +goto block_80; +} +else +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_212); +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 1); +lean_inc(x_242); +lean_dec(x_240); +x_74 = x_241; +x_75 = x_242; +goto block_80; +} +} +} +block_37: +{ +lean_object* x_32; uint8_t x_33; +x_32 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_19, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_31); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set(x_32, 0, x_30); +return x_32; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +block_45: +{ +lean_object* x_40; uint8_t x_41; +x_40 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_19, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_39); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set_tag(x_40, 1); +lean_ctor_set(x_40, 0, x_38); +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +block_73: +{ +if (lean_obj_tag(x_46) == 0) +{ +if (x_5 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_box(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); +x_49 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_48, x_8, x_9, x_10, x_11, x_12, x_13, x_47); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +x_30 = x_50; +x_31 = x_51; +goto block_37; +} +else +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_49, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_49, 1); +lean_inc(x_53); +lean_dec(x_49); +x_38 = x_52; +x_39 = x_53; +goto block_45; +} +} +else +{ +lean_object* x_54; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_3); +lean_inc(x_2); +x_54 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f(x_2, x_3, x_8, x_9, x_10, x_11, x_12, x_13, x_47); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_57 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_55, x_8, x_9, x_10, x_11, x_12, x_13, x_56); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_30 = x_58; +x_31 = x_59; +goto block_37; +} +else +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_38 = x_60; +x_39 = x_61; +goto block_45; +} +} +else +{ +lean_object* x_62; lean_object* x_63; +lean_dec(x_3); +lean_dec(x_2); +x_62 = lean_ctor_get(x_54, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_54, 1); +lean_inc(x_63); +lean_dec(x_54); +x_38 = x_62; +x_39 = x_63; +goto block_45; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_46, 0); +lean_inc(x_64); +lean_dec(x_46); +x_65 = lean_box(x_4); +x_66 = lean_box(x_5); +lean_inc(x_64); +lean_inc(x_2); +x_67 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2___boxed), 12, 5); +lean_closure_set(x_67, 0, x_2); +lean_closure_set(x_67, 1, x_64); +lean_closure_set(x_67, 2, x_3); +lean_closure_set(x_67, 3, x_65); +lean_closure_set(x_67, 4, x_66); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_68 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_2, x_64, x_67, x_8, x_9, x_10, x_11, x_12, x_13, x_47); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_30 = x_69; +x_31 = x_70; +goto block_37; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_68, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +lean_dec(x_68); +x_38 = x_71; +x_39 = x_72; +goto block_45; +} +} +} +block_80: +{ +if (lean_obj_tag(x_74) == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +x_38 = x_74; +x_39 = x_75; +goto block_45; +} +else +{ +lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_76 = lean_ctor_get(x_74, 0); +lean_inc(x_76); +x_77 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_78 = lean_nat_dec_eq(x_77, x_76); +lean_dec(x_76); +if (x_78 == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +x_38 = x_74; +x_39 = x_75; +goto block_45; +} +else +{ +lean_object* x_79; +lean_dec(x_74); +x_79 = lean_box(0); +x_46 = x_79; +x_47 = x_75; +goto block_73; +} +} +} +} +else +{ +uint8_t x_243; +lean_dec(x_12); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_243 = !lean_is_exclusive(x_23); +if (x_243 == 0) +{ +return x_23; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_23, 0); +x_245 = lean_ctor_get(x_23, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_23); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; +} +} +} +block_268: +{ +if (x_248 == 0) +{ +lean_dec(x_6); +x_21 = x_249; +goto block_247; +} +else +{ +lean_object* x_250; +lean_inc(x_2); +x_250 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_250, 0, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_251 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__7; +x_252 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +x_253 = l_Lean_KernelException_toMessageData___closed__15; +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_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_254, x_8, x_9, x_10, x_11, x_12, x_13, x_249); +x_256 = lean_ctor_get(x_255, 1); +lean_inc(x_256); +lean_dec(x_255); +x_21 = x_256; +goto block_247; +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_257 = lean_ctor_get(x_3, 0); +lean_inc(x_257); +x_258 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_258, 0, x_257); +x_259 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3; +x_260 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_258); +x_261 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5; +x_262 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_261); +x_263 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_250); +x_264 = l_Lean_KernelException_toMessageData___closed__15; +x_265 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_265, 0, x_263); +lean_ctor_set(x_265, 1, x_264); +x_266 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_265, x_8, x_9, x_10, x_11, x_12, x_13, x_249); +x_267 = lean_ctor_get(x_266, 1); +lean_inc(x_267); +lean_dec(x_266); +x_21 = x_267; +goto block_247; +} +} +} +} +else +{ +lean_object* x_280; lean_object* x_281; 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; uint8_t x_410; lean_object* x_411; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; +x_280 = lean_ctor_get(x_12, 0); +x_281 = lean_ctor_get(x_12, 2); +x_282 = lean_ctor_get(x_12, 3); +x_283 = lean_ctor_get(x_12, 4); +x_284 = lean_ctor_get(x_12, 5); +x_285 = lean_ctor_get(x_12, 6); +x_286 = lean_ctor_get(x_12, 7); +lean_inc(x_286); +lean_inc(x_285); +lean_inc(x_284); +lean_inc(x_283); +lean_inc(x_282); +lean_inc(x_281); +lean_inc(x_280); +lean_dec(x_12); +lean_inc(x_282); +lean_inc(x_281); +lean_inc(x_16); +x_287 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_287, 0, x_280); +lean_ctor_set(x_287, 1, x_16); +lean_ctor_set(x_287, 2, x_281); +lean_ctor_set(x_287, 3, x_282); +lean_ctor_set(x_287, 4, x_283); +lean_ctor_set(x_287, 5, x_284); +lean_ctor_set(x_287, 6, x_285); +lean_ctor_set(x_287, 7, x_286); +x_431 = lean_st_ref_get(x_13, x_14); +x_432 = lean_ctor_get(x_431, 0); +lean_inc(x_432); +x_433 = lean_ctor_get(x_432, 3); +lean_inc(x_433); +lean_dec(x_432); +x_434 = lean_ctor_get_uint8(x_433, sizeof(void*)*1); +lean_dec(x_433); +if (x_434 == 0) +{ +lean_object* x_435; uint8_t x_436; +x_435 = lean_ctor_get(x_431, 1); +lean_inc(x_435); +lean_dec(x_431); +x_436 = 0; +x_410 = x_436; +x_411 = x_435; +goto block_430; +} +else +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; +x_437 = lean_ctor_get(x_431, 1); +lean_inc(x_437); +lean_dec(x_431); +lean_inc(x_6); +x_438 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_6, x_8, x_9, x_10, x_11, x_287, x_13, x_437); +x_439 = lean_ctor_get(x_438, 0); +lean_inc(x_439); +x_440 = lean_ctor_get(x_438, 1); +lean_inc(x_440); +lean_dec(x_438); +x_441 = lean_unbox(x_439); +lean_dec(x_439); +x_410 = x_441; +x_411 = x_440; +goto block_430; +} +block_409: +{ +lean_object* x_289; lean_object* x_290; +x_289 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; +x_290 = l_Lean_Core_checkMaxHeartbeats(x_289, x_287, x_13, x_288); +if (lean_obj_tag(x_290) == 0) +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_304; lean_object* x_305; lean_object* x_311; lean_object* x_312; lean_object* x_339; lean_object* x_340; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; +x_291 = lean_ctor_get(x_290, 1); +lean_inc(x_291); +lean_dec(x_290); +x_292 = lean_st_ref_get(x_13, x_291); +x_293 = lean_ctor_get(x_292, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_292, 1); +lean_inc(x_294); +lean_dec(x_292); +x_295 = lean_ctor_get(x_293, 3); +lean_inc(x_295); +lean_dec(x_293); +x_296 = lean_ctor_get(x_295, 0); +lean_inc(x_296); +lean_dec(x_295); +x_346 = lean_st_ref_take(x_13, x_294); +x_347 = lean_ctor_get(x_346, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_347, 3); +lean_inc(x_348); +x_349 = lean_ctor_get(x_346, 1); +lean_inc(x_349); +lean_dec(x_346); +x_350 = lean_ctor_get(x_347, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_347, 1); +lean_inc(x_351); +x_352 = lean_ctor_get(x_347, 2); +lean_inc(x_352); +if (lean_is_exclusive(x_347)) { + lean_ctor_release(x_347, 0); + lean_ctor_release(x_347, 1); + lean_ctor_release(x_347, 2); + lean_ctor_release(x_347, 3); + x_353 = x_347; +} else { + lean_dec_ref(x_347); + x_353 = lean_box(0); +} +x_354 = lean_ctor_get_uint8(x_348, sizeof(void*)*1); +if (lean_is_exclusive(x_348)) { + lean_ctor_release(x_348, 0); + x_355 = x_348; +} else { + lean_dec_ref(x_348); + x_355 = lean_box(0); +} +x_356 = l_Std_PersistentArray_empty___closed__1; +if (lean_is_scalar(x_355)) { + x_357 = lean_alloc_ctor(0, 1, 1); +} else { + x_357 = x_355; +} +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set_uint8(x_357, sizeof(void*)*1, x_354); +if (lean_is_scalar(x_353)) { + x_358 = lean_alloc_ctor(0, 4, 0); +} else { + x_358 = x_353; +} +lean_ctor_set(x_358, 0, x_350); +lean_ctor_set(x_358, 1, x_351); +lean_ctor_set(x_358, 2, x_352); +lean_ctor_set(x_358, 3, x_357); +x_359 = lean_st_ref_set(x_13, x_358, x_349); +x_360 = lean_ctor_get(x_359, 1); +lean_inc(x_360); +lean_dec(x_359); +x_361 = lean_st_ref_get(x_13, x_360); +x_362 = lean_ctor_get(x_361, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_361, 1); +lean_inc(x_363); +lean_dec(x_361); +x_364 = lean_ctor_get(x_362, 0); +lean_inc(x_364); +lean_dec(x_362); +x_365 = lean_st_ref_get(x_13, x_363); +x_366 = lean_ctor_get(x_365, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_365, 1); +lean_inc(x_367); +lean_dec(x_365); +x_368 = lean_ctor_get(x_366, 0); +lean_inc(x_368); +lean_dec(x_366); +x_369 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_287, x_13, x_367); +x_370 = lean_ctor_get(x_369, 0); +lean_inc(x_370); +x_371 = lean_ctor_get(x_369, 1); +lean_inc(x_371); +lean_dec(x_369); +x_372 = lean_st_ref_get(x_13, x_371); +x_373 = lean_ctor_get(x_372, 0); +lean_inc(x_373); +x_374 = lean_ctor_get(x_372, 1); +lean_inc(x_374); +lean_dec(x_372); +x_375 = lean_ctor_get(x_373, 1); +lean_inc(x_375); +lean_dec(x_373); +lean_inc(x_368); +x_376 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_376, 0, x_368); +x_377 = x_376; +x_378 = lean_environment_main_module(x_368); +lean_inc(x_282); +x_379 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_379, 0, x_377); +lean_ctor_set(x_379, 1, x_378); +lean_ctor_set(x_379, 2, x_370); +lean_ctor_set(x_379, 3, x_16); +lean_ctor_set(x_379, 4, x_281); +lean_ctor_set(x_379, 5, x_282); +lean_inc(x_2); +x_380 = l_Lean_Elab_getMacros(x_364, x_2, x_379, x_375); +lean_dec(x_364); +if (lean_obj_tag(x_380) == 0) +{ +lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_381 = lean_ctor_get(x_380, 0); +lean_inc(x_381); +x_382 = lean_ctor_get(x_380, 1); +lean_inc(x_382); +lean_dec(x_380); +x_383 = lean_st_ref_take(x_13, x_374); +x_384 = lean_ctor_get(x_383, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_383, 1); +lean_inc(x_385); +lean_dec(x_383); +x_386 = lean_ctor_get(x_384, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_384, 2); +lean_inc(x_387); +x_388 = lean_ctor_get(x_384, 3); +lean_inc(x_388); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + lean_ctor_release(x_384, 2); + lean_ctor_release(x_384, 3); + x_389 = x_384; +} else { + lean_dec_ref(x_384); + x_389 = lean_box(0); +} +if (lean_is_scalar(x_389)) { + x_390 = lean_alloc_ctor(0, 4, 0); +} else { + x_390 = x_389; +} +lean_ctor_set(x_390, 0, x_386); +lean_ctor_set(x_390, 1, x_382); +lean_ctor_set(x_390, 2, x_387); +lean_ctor_set(x_390, 3, x_388); +x_391 = lean_st_ref_set(x_13, x_390, x_385); +x_392 = lean_ctor_get(x_391, 1); +lean_inc(x_392); +lean_dec(x_391); +x_393 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_393, 0, x_381); +x_311 = x_393; +x_312 = x_392; +goto block_338; +} +else +{ +lean_object* x_394; +x_394 = lean_ctor_get(x_380, 0); +lean_inc(x_394); +lean_dec(x_380); +if (lean_obj_tag(x_394) == 0) +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_395 = lean_ctor_get(x_394, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_394, 1); +lean_inc(x_396); +lean_dec(x_394); +x_397 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_397, 0, x_396); +x_398 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_398, 0, x_397); +lean_inc(x_287); +lean_inc(x_8); +x_399 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_395, x_398, x_8, x_9, x_10, x_11, x_287, x_13, x_374); +lean_dec(x_395); +x_400 = lean_ctor_get(x_399, 0); +lean_inc(x_400); +x_401 = lean_ctor_get(x_399, 1); +lean_inc(x_401); +lean_dec(x_399); +x_339 = x_400; +x_340 = x_401; +goto block_345; +} +else +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_402 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___rarg(x_374); +x_403 = lean_ctor_get(x_402, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_402, 1); +lean_inc(x_404); +lean_dec(x_402); +x_339 = x_403; +x_340 = x_404; +goto block_345; +} +} +block_303: +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; +x_299 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_282, x_296, x_8, x_9, x_10, x_11, x_287, x_13, x_298); +lean_dec(x_13); +lean_dec(x_287); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_300 = lean_ctor_get(x_299, 1); +lean_inc(x_300); +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + x_301 = x_299; +} else { + lean_dec_ref(x_299); + x_301 = lean_box(0); +} +if (lean_is_scalar(x_301)) { + x_302 = lean_alloc_ctor(0, 2, 0); +} else { + x_302 = x_301; +} +lean_ctor_set(x_302, 0, x_297); +lean_ctor_set(x_302, 1, x_300); +return x_302; +} +block_310: +{ +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_306 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_282, x_296, x_8, x_9, x_10, x_11, x_287, x_13, x_305); +lean_dec(x_13); +lean_dec(x_287); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_307 = lean_ctor_get(x_306, 1); +lean_inc(x_307); +if (lean_is_exclusive(x_306)) { + lean_ctor_release(x_306, 0); + lean_ctor_release(x_306, 1); + x_308 = x_306; +} else { + lean_dec_ref(x_306); + x_308 = lean_box(0); +} +if (lean_is_scalar(x_308)) { + x_309 = lean_alloc_ctor(1, 2, 0); +} else { + x_309 = x_308; + lean_ctor_set_tag(x_309, 1); +} +lean_ctor_set(x_309, 0, x_304); +lean_ctor_set(x_309, 1, x_307); +return x_309; +} +block_338: +{ +if (lean_obj_tag(x_311) == 0) +{ +if (x_5 == 0) +{ +lean_object* x_313; lean_object* x_314; +x_313 = lean_box(0); +lean_inc(x_13); +lean_inc(x_287); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_314 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_313, x_8, x_9, x_10, x_11, x_287, x_13, x_312); +if (lean_obj_tag(x_314) == 0) +{ +lean_object* x_315; lean_object* x_316; +x_315 = lean_ctor_get(x_314, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_314, 1); +lean_inc(x_316); +lean_dec(x_314); +x_297 = x_315; +x_298 = x_316; +goto block_303; +} +else +{ +lean_object* x_317; lean_object* x_318; +x_317 = lean_ctor_get(x_314, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_314, 1); +lean_inc(x_318); +lean_dec(x_314); +x_304 = x_317; +x_305 = x_318; +goto block_310; +} +} +else +{ +lean_object* x_319; +lean_inc(x_13); +lean_inc(x_287); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_3); +lean_inc(x_2); +x_319 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f(x_2, x_3, x_8, x_9, x_10, x_11, x_287, x_13, x_312); +if (lean_obj_tag(x_319) == 0) +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_320 = lean_ctor_get(x_319, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_319, 1); +lean_inc(x_321); +lean_dec(x_319); +lean_inc(x_13); +lean_inc(x_287); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_322 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_320, x_8, x_9, x_10, x_11, x_287, x_13, x_321); +if (lean_obj_tag(x_322) == 0) +{ +lean_object* x_323; lean_object* x_324; +x_323 = lean_ctor_get(x_322, 0); +lean_inc(x_323); +x_324 = lean_ctor_get(x_322, 1); +lean_inc(x_324); +lean_dec(x_322); +x_297 = x_323; +x_298 = x_324; +goto block_303; +} +else +{ +lean_object* x_325; lean_object* x_326; +x_325 = lean_ctor_get(x_322, 0); +lean_inc(x_325); +x_326 = lean_ctor_get(x_322, 1); +lean_inc(x_326); +lean_dec(x_322); +x_304 = x_325; +x_305 = x_326; +goto block_310; +} +} +else +{ +lean_object* x_327; lean_object* x_328; +lean_dec(x_3); +lean_dec(x_2); +x_327 = lean_ctor_get(x_319, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_319, 1); +lean_inc(x_328); +lean_dec(x_319); +x_304 = x_327; +x_305 = x_328; +goto block_310; +} +} +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_329 = lean_ctor_get(x_311, 0); +lean_inc(x_329); +lean_dec(x_311); +x_330 = lean_box(x_4); +x_331 = lean_box(x_5); +lean_inc(x_329); +lean_inc(x_2); +x_332 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2___boxed), 12, 5); +lean_closure_set(x_332, 0, x_2); +lean_closure_set(x_332, 1, x_329); +lean_closure_set(x_332, 2, x_3); +lean_closure_set(x_332, 3, x_330); +lean_closure_set(x_332, 4, x_331); +lean_inc(x_13); +lean_inc(x_287); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_333 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_2, x_329, x_332, x_8, x_9, x_10, x_11, x_287, x_13, x_312); +if (lean_obj_tag(x_333) == 0) +{ +lean_object* x_334; lean_object* x_335; +x_334 = lean_ctor_get(x_333, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_333, 1); +lean_inc(x_335); +lean_dec(x_333); +x_297 = x_334; +x_298 = x_335; +goto block_303; +} +else +{ +lean_object* x_336; lean_object* x_337; +x_336 = lean_ctor_get(x_333, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_333, 1); +lean_inc(x_337); +lean_dec(x_333); +x_304 = x_336; +x_305 = x_337; +goto block_310; +} +} +} +block_345: +{ +if (lean_obj_tag(x_339) == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +x_304 = x_339; +x_305 = x_340; +goto block_310; +} +else +{ +lean_object* x_341; lean_object* x_342; uint8_t x_343; +x_341 = lean_ctor_get(x_339, 0); +lean_inc(x_341); +x_342 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_343 = lean_nat_dec_eq(x_342, x_341); +lean_dec(x_341); +if (x_343 == 0) +{ +lean_dec(x_3); +lean_dec(x_2); +x_304 = x_339; +x_305 = x_340; +goto block_310; +} +else +{ +lean_object* x_344; +lean_dec(x_339); +x_344 = lean_box(0); +x_311 = x_344; +x_312 = x_340; +goto block_338; +} +} +} +} +else +{ +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; +lean_dec(x_287); +lean_dec(x_282); +lean_dec(x_281); +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_405 = lean_ctor_get(x_290, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_290, 1); +lean_inc(x_406); +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_407 = x_290; +} else { + lean_dec_ref(x_290); + x_407 = lean_box(0); +} +if (lean_is_scalar(x_407)) { + x_408 = lean_alloc_ctor(1, 2, 0); +} else { + x_408 = x_407; +} +lean_ctor_set(x_408, 0, x_405); +lean_ctor_set(x_408, 1, x_406); +return x_408; +} +} +block_430: +{ +if (x_410 == 0) +{ +lean_dec(x_6); +x_288 = x_411; +goto block_409; +} +else +{ +lean_object* x_412; +lean_inc(x_2); +x_412 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_412, 0, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_413 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__7; +x_414 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_414, 0, x_413); +lean_ctor_set(x_414, 1, x_412); +x_415 = l_Lean_KernelException_toMessageData___closed__15; +x_416 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_416, 0, x_414); +lean_ctor_set(x_416, 1, x_415); +x_417 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_416, x_8, x_9, x_10, x_11, x_287, x_13, x_411); +x_418 = lean_ctor_get(x_417, 1); +lean_inc(x_418); +lean_dec(x_417); +x_288 = x_418; +goto block_409; +} +else +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; +x_419 = lean_ctor_get(x_3, 0); +lean_inc(x_419); +x_420 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_420, 0, x_419); +x_421 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3; +x_422 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_422, 0, x_421); +lean_ctor_set(x_422, 1, x_420); +x_423 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5; +x_424 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_423); +x_425 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_425, 0, x_424); +lean_ctor_set(x_425, 1, x_412); +x_426 = l_Lean_KernelException_toMessageData___closed__15; +x_427 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_427, 0, x_425); +lean_ctor_set(x_427, 1, x_426); +x_428 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_427, x_8, x_9, x_10, x_11, x_287, x_13, x_411); +x_429 = lean_ctor_get(x_428, 1); +lean_inc(x_429); +lean_dec(x_428); +x_288 = x_429; +goto block_409; +} +} +} +} +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_st_ref_take(x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_16, x_17); +lean_ctor_set(x_13, 1, x_18); +x_19 = lean_st_ref_set(x_10, x_13, x_14); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = !lean_is_exclusive(x_5); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_5, 4); +lean_dec(x_22); +lean_ctor_set(x_5, 4, x_16); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_9, 2); +lean_inc(x_24); +x_25 = lean_nat_dec_eq(x_23, x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__2; +x_27 = lean_box(0); +x_28 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_23, x_4, x_1, x_2, x_3, x_26, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_23); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +lean_dec(x_23); +lean_dec(x_4); +lean_dec(x_1); +x_29 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_30 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_30); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_35 = lean_ctor_get(x_5, 0); +x_36 = lean_ctor_get(x_5, 1); +x_37 = lean_ctor_get(x_5, 2); +x_38 = lean_ctor_get(x_5, 3); +x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); +x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); +x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_42 = lean_ctor_get(x_5, 5); +x_43 = lean_ctor_get(x_5, 6); +x_44 = lean_ctor_get(x_5, 7); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_5); +x_45 = lean_alloc_ctor(0, 8, 3); +lean_ctor_set(x_45, 0, x_35); +lean_ctor_set(x_45, 1, x_36); +lean_ctor_set(x_45, 2, x_37); +lean_ctor_set(x_45, 3, x_38); +lean_ctor_set(x_45, 4, x_16); +lean_ctor_set(x_45, 5, x_42); +lean_ctor_set(x_45, 6, x_43); +lean_ctor_set(x_45, 7, x_44); +lean_ctor_set_uint8(x_45, sizeof(void*)*8, x_39); +lean_ctor_set_uint8(x_45, sizeof(void*)*8 + 1, x_40); +lean_ctor_set_uint8(x_45, sizeof(void*)*8 + 2, x_41); +x_46 = lean_ctor_get(x_9, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_9, 2); +lean_inc(x_47); +x_48 = lean_nat_dec_eq(x_46, x_47); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__2; +x_50 = lean_box(0); +x_51 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_46, x_4, x_1, x_2, x_3, x_49, x_50, x_45, x_6, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_46); +return x_51; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_46); +lean_dec(x_4); +lean_dec(x_1); +x_52 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_53 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_52, x_45, x_6, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_56 = x_53; +} else { + lean_dec_ref(x_53); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_58 = lean_ctor_get(x_13, 0); +x_59 = lean_ctor_get(x_13, 1); +x_60 = lean_ctor_get(x_13, 2); +x_61 = lean_ctor_get(x_13, 3); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_13); +x_62 = lean_unsigned_to_nat(1u); +x_63 = lean_nat_add(x_59, x_62); +x_64 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_64, 0, x_58); +lean_ctor_set(x_64, 1, x_63); +lean_ctor_set(x_64, 2, x_60); +lean_ctor_set(x_64, 3, x_61); +x_65 = lean_st_ref_set(x_10, x_64, x_14); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_ctor_get(x_5, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_5, 1); +lean_inc(x_68); +x_69 = lean_ctor_get(x_5, 2); +lean_inc(x_69); +x_70 = lean_ctor_get(x_5, 3); +lean_inc(x_70); +x_71 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); +x_72 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); +x_73 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_74 = lean_ctor_get(x_5, 5); +lean_inc(x_74); +x_75 = lean_ctor_get(x_5, 6); +lean_inc(x_75); +x_76 = lean_ctor_get(x_5, 7); +lean_inc(x_76); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + x_77 = x_5; +} else { + lean_dec_ref(x_5); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(0, 8, 3); +} else { + x_78 = x_77; +} +lean_ctor_set(x_78, 0, x_67); +lean_ctor_set(x_78, 1, x_68); +lean_ctor_set(x_78, 2, x_69); +lean_ctor_set(x_78, 3, x_70); +lean_ctor_set(x_78, 4, x_59); +lean_ctor_set(x_78, 5, x_74); +lean_ctor_set(x_78, 6, x_75); +lean_ctor_set(x_78, 7, x_76); +lean_ctor_set_uint8(x_78, sizeof(void*)*8, x_71); +lean_ctor_set_uint8(x_78, sizeof(void*)*8 + 1, x_72); +lean_ctor_set_uint8(x_78, sizeof(void*)*8 + 2, x_73); +x_79 = lean_ctor_get(x_9, 1); +lean_inc(x_79); +x_80 = lean_ctor_get(x_9, 2); +lean_inc(x_80); +x_81 = lean_nat_dec_eq(x_79, x_80); +lean_dec(x_80); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__2; +x_83 = lean_box(0); +x_84 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_79, x_4, x_1, x_2, x_3, x_82, x_83, x_78, x_6, x_7, x_8, x_9, x_10, x_66); +lean_dec(x_79); +return x_84; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_79); +lean_dec(x_4); +lean_dec(x_1); +x_85 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_86 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_85, x_78, x_6, x_7, x_8, x_9, x_10, x_66); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_89 = x_86; +} else { + lean_dec_ref(x_86); + x_89 = lean_box(0); +} +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); +} else { + x_90 = x_89; +} +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_88); +return x_90; +} +} +} +} +lean_object* l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_3); +lean_dec(x_3); +x_13 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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) { +_start: +{ +uint8_t x_13; uint8_t x_14; lean_object* x_15; +x_13 = lean_unbox(x_4); +lean_dec(x_4); +x_14 = lean_unbox(x_5); +lean_dec(x_5); +x_15 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_unbox(x_4); +lean_dec(x_4); +x_16 = lean_unbox(x_5); +lean_dec(x_5); +x_17 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_1, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_7); +lean_dec(x_1); +return x_17; +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_unbox(x_2); +lean_dec(x_2); +x_13 = lean_unbox(x_3); +lean_dec(x_3); +x_14 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_get(x_3, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 5); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); +lean_dec(x_13); +if (x_14 == 0) +{ +uint8_t x_15; +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_11, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_11, 0, x_17); +return x_11; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_dec(x_11); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_21); +lean_dec(x_11); +x_22 = lean_st_ref_get(x_7, x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_st_ref_take(x_3, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 5); +lean_inc(x_26); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_25, 5); +lean_dec(x_29); +x_30 = !lean_is_exclusive(x_26); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_26, 1); +x_32 = l_Std_PersistentArray_push___rarg(x_31, x_1); +lean_ctor_set(x_26, 1, x_32); +x_33 = lean_st_ref_set(x_3, x_25, x_27); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +x_36 = lean_box(0); +lean_ctor_set(x_33, 0, x_36); +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_33, 1); +lean_inc(x_37); +lean_dec(x_33); +x_38 = lean_box(0); +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_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_40 = lean_ctor_get_uint8(x_26, sizeof(void*)*2); +x_41 = lean_ctor_get(x_26, 0); +x_42 = lean_ctor_get(x_26, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_26); +x_43 = l_Std_PersistentArray_push___rarg(x_42, x_1); +x_44 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_43); +lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_40); +lean_ctor_set(x_25, 5, x_44); +x_45 = lean_st_ref_set(x_3, x_25, x_27); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_47 = x_45; +} else { + lean_dec_ref(x_45); + x_47 = lean_box(0); +} +x_48 = lean_box(0); +if (lean_is_scalar(x_47)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_47; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_50 = lean_ctor_get(x_25, 0); +x_51 = lean_ctor_get(x_25, 1); +x_52 = lean_ctor_get(x_25, 2); +x_53 = lean_ctor_get(x_25, 3); +x_54 = lean_ctor_get(x_25, 4); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_25); +x_55 = lean_ctor_get_uint8(x_26, sizeof(void*)*2); +x_56 = lean_ctor_get(x_26, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_26, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_58 = x_26; +} else { + lean_dec_ref(x_26); + x_58 = lean_box(0); +} +x_59 = l_Std_PersistentArray_push___rarg(x_57, x_1); +if (lean_is_scalar(x_58)) { + x_60 = lean_alloc_ctor(0, 2, 1); +} else { + x_60 = x_58; +} +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_59); +lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_55); +x_61 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_61, 0, x_50); +lean_ctor_set(x_61, 1, x_51); +lean_ctor_set(x_61, 2, x_52); +lean_ctor_set(x_61, 3, x_53); +lean_ctor_set(x_61, 4, x_54); +lean_ctor_set(x_61, 5, x_60); +x_62 = lean_st_ref_set(x_3, x_61, x_27); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_64 = x_62; +} else { + lean_dec_ref(x_62); + x_64 = lean_box(0); +} +x_65 = lean_box(0); +if (lean_is_scalar(x_64)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_64; +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_63); +return x_66; +} +} +} +} +lean_object* l_Lean_Elab_Term_addTermInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_st_ref_get(x_4, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 5); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2); +lean_dec(x_14); +if (x_15 == 0) +{ +uint8_t x_16; +lean_dec(x_2); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_12, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_12, 0, x_18); +return x_12; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_dec(x_12); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_dec(x_12); +x_23 = lean_ctor_get(x_5, 1); +lean_inc(x_23); +x_24 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_2); +lean_ctor_set(x_24, 2, x_1); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = l_Std_PersistentArray_empty___closed__1; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___spec__1(x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +return x_28; +} +} +} +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Lean_Elab_Term_addTermInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Term_addTermInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 2: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_2(x_2, x_5, x_6); +return x_7; +} +case 3: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_apply_2(x_3, x_8, x_9); +return x_10; +} +default: +{ +lean_object* x_11; +lean_dec(x_3); +lean_dec(x_2); +x_11 = lean_apply_1(x_4, x_1); +return x_11; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkTermInfo_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_box_uint64(x_5); +x_7 = lean_apply_2(x_2, x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +lean_dec(x_2); +x_8 = lean_apply_1(x_3, x_1); +return x_8; +} +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkTermInfo_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkTermInfo_match__3___rarg), 3, 0); +return x_2; +} +} +uint8_t l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(uint8_t x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 1); +x_5 = l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(x_1, x_4); +x_6 = lean_ctor_get(x_3, 2); +switch (lean_obj_tag(x_6)) { +case 2: +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +case 3: +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +default: +{ +return x_5; +} +} +} +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo(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; +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; +x_21 = lean_ctor_get(x_2, 0); +lean_inc(x_21); +x_22 = lean_st_ref_get(x_8, x_9); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_st_ref_get(x_4, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = 0; +x_29 = l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(x_28, x_27); +lean_dec(x_27); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_21); +x_30 = lean_box(0); +x_10 = x_30; +x_11 = x_26; +goto block_20; +} +else +{ +lean_object* x_31; +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_21); +x_10 = x_31; +x_11 = x_26; +goto block_20; +} +} +else +{ +lean_object* x_32; +x_32 = lean_box(0); +x_10 = x_32; +x_11 = x_9; +goto block_20; +} +block_20: +{ +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +x_13 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_2); +lean_ctor_set(x_13, 2, x_1); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_ctor_get(x_10, 0); +lean_inc(x_17); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_11); +return x_19; +} +} +} +} +lean_object* l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(x_3, x_2); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_mkTermInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Term_mkTermInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_elabTerm___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_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; @@ -24596,7 +27402,7 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean x_31 = lean_ctor_get(x_25, 1); lean_inc(x_31); lean_dec(x_25); -x_32 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__4___rarg(x_4, x_5, x_6, x_7, x_8, x_31); +x_32 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg(x_4, x_5, x_6, x_7, x_8, x_31); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -25251,2902 +28057,6 @@ return x_21; } } } -lean_object* l_Lean_Elab_withInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_withInfoContext___at_Lean_Elab_Term_withMacroExpansion___spec__2___rarg___lambda__1___boxed), 9, 1); -lean_closure_set(x_10, 0, x_2); -x_11 = l_Lean_Elab_withInfoContext_x27___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -lean_object* l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__2___boxed), 10, 2); -lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_2); -x_12 = l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___closed__1; -x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2); -lean_closure_set(x_13, 0, x_12); -lean_closure_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_withInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_14; -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_9 = lean_ctor_get(x_6, 3); -x_10 = lean_ctor_get(x_2, 3); -lean_inc(x_10); -lean_inc(x_10); -x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); -x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -lean_dec(x_2); -lean_dec(x_10); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_11); -lean_ctor_set(x_21, 1, x_19); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -} -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_7); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_7, 3); -x_12 = l_Lean_replaceRef(x_1, x_11); -lean_dec(x_11); -lean_ctor_set(x_7, 3, x_12); -x_13 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_14 = lean_ctor_get(x_7, 0); -x_15 = lean_ctor_get(x_7, 1); -x_16 = lean_ctor_get(x_7, 2); -x_17 = lean_ctor_get(x_7, 3); -x_18 = lean_ctor_get(x_7, 4); -x_19 = lean_ctor_get(x_7, 5); -x_20 = lean_ctor_get(x_7, 6); -x_21 = lean_ctor_get(x_7, 7); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_7); -x_22 = l_Lean_replaceRef(x_1, x_17); -lean_dec(x_17); -x_23 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_23, 0, x_14); -lean_ctor_set(x_23, 1, x_15); -lean_ctor_set(x_23, 2, x_16); -lean_ctor_set(x_23, 3, x_22); -lean_ctor_set(x_23, 4, x_18); -lean_ctor_set(x_23, 5, x_19); -lean_ctor_set(x_23, 6, x_20); -lean_ctor_set(x_23, 7, x_21); -x_24 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); -lean_dec(x_23); -return x_24; -} -} -} -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg), 1, 0); -return x_7; -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_9 = lean_ctor_get(x_6, 3); -x_10 = lean_ctor_get(x_2, 3); -lean_inc(x_10); -lean_inc(x_10); -x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); -x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -lean_dec(x_2); -lean_dec(x_10); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_11); -lean_ctor_set(x_21, 1, x_19); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_12; -x_12 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_2); -x_13 = lean_ctor_get(x_4, 0); -lean_inc(x_13); -lean_dec(x_4); -x_14 = l_Array_empty___closed__1; -x_15 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda(x_1, x_3, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_15; -} -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; -x_13 = !lean_is_exclusive(x_6); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_6, 3); -lean_inc(x_2); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_1); -lean_ctor_set(x_15, 1, x_2); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -lean_ctor_set(x_6, 3, x_16); -x_17 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_3, x_4, x_5, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; uint8_t 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; -x_18 = lean_ctor_get(x_6, 0); -x_19 = lean_ctor_get(x_6, 1); -x_20 = lean_ctor_get(x_6, 2); -x_21 = lean_ctor_get(x_6, 3); -x_22 = lean_ctor_get(x_6, 4); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*8); -x_24 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 1); -x_25 = lean_ctor_get_uint8(x_6, sizeof(void*)*8 + 2); -x_26 = lean_ctor_get(x_6, 5); -x_27 = lean_ctor_get(x_6, 6); -x_28 = lean_ctor_get(x_6, 7); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_6); -lean_inc(x_2); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_1); -lean_ctor_set(x_29, 1, x_2); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_21); -x_31 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_19); -lean_ctor_set(x_31, 2, x_20); -lean_ctor_set(x_31, 3, x_30); -lean_ctor_set(x_31, 4, x_22); -lean_ctor_set(x_31, 5, x_26); -lean_ctor_set(x_31, 6, x_27); -lean_ctor_set(x_31, 7, x_28); -lean_ctor_set_uint8(x_31, sizeof(void*)*8, x_23); -lean_ctor_set_uint8(x_31, sizeof(void*)*8 + 1, x_24); -lean_ctor_set_uint8(x_31, sizeof(void*)*8 + 2, x_25); -x_32 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_3, x_4, x_5, x_2, x_31, x_7, x_8, x_9, x_10, x_11, x_12); -return x_32; -} -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elaborator"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("expected type: "); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__2; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(", term\n"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__4; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3; -x_2 = l_Lean_instToMessageDataOptionExpr___closed__3; -x_3 = lean_alloc_ctor(10, 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___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__6; -x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5; -x_3 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t 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; lean_object* x_16; uint8_t x_17; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_1, x_15); -x_17 = !lean_is_exclusive(x_12); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_248; lean_object* x_249; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; -x_18 = lean_ctor_get(x_12, 2); -x_19 = lean_ctor_get(x_12, 3); -x_20 = lean_ctor_get(x_12, 1); -lean_dec(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_16); -lean_ctor_set(x_12, 1, x_16); -x_269 = lean_st_ref_get(x_13, x_14); -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_270, 3); -lean_inc(x_271); -lean_dec(x_270); -x_272 = lean_ctor_get_uint8(x_271, sizeof(void*)*1); -lean_dec(x_271); -if (x_272 == 0) -{ -lean_object* x_273; uint8_t x_274; -x_273 = lean_ctor_get(x_269, 1); -lean_inc(x_273); -lean_dec(x_269); -x_274 = 0; -x_248 = x_274; -x_249 = x_273; -goto block_268; -} -else -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; -x_275 = lean_ctor_get(x_269, 1); -lean_inc(x_275); -lean_dec(x_269); -lean_inc(x_6); -x_276 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_275); -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -lean_dec(x_276); -x_279 = lean_unbox(x_277); -lean_dec(x_277); -x_248 = x_279; -x_249 = x_278; -goto block_268; -} -block_247: -{ -lean_object* x_22; lean_object* x_23; -x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; -x_23 = l_Lean_Core_checkMaxHeartbeats(x_22, x_12, x_13, x_21); -if (lean_obj_tag(x_23) == 0) -{ -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_38; lean_object* x_39; lean_object* x_46; lean_object* x_47; lean_object* x_74; lean_object* x_75; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_st_ref_get(x_13, x_24); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 3); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -lean_dec(x_28); -x_81 = lean_st_ref_take(x_13, x_27); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_82, 3); -lean_inc(x_83); -x_84 = lean_ctor_get(x_81, 1); -lean_inc(x_84); -lean_dec(x_81); -x_85 = !lean_is_exclusive(x_82); -if (x_85 == 0) -{ -lean_object* x_86; uint8_t x_87; -x_86 = lean_ctor_get(x_82, 3); -lean_dec(x_86); -x_87 = !lean_is_exclusive(x_83); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_88 = lean_ctor_get(x_83, 0); -lean_dec(x_88); -x_89 = l_Std_PersistentArray_empty___closed__1; -lean_ctor_set(x_83, 0, x_89); -x_90 = lean_st_ref_set(x_13, x_82, x_84); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); -x_92 = lean_st_ref_get(x_13, x_91); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_ctor_get(x_93, 0); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_st_ref_get(x_13, x_94); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_ctor_get(x_97, 0); -lean_inc(x_99); -lean_dec(x_97); -x_100 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_12, x_13, x_98); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_103 = lean_st_ref_get(x_13, x_102); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -lean_inc(x_99); -x_107 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_107, 0, x_99); -x_108 = x_107; -x_109 = lean_environment_main_module(x_99); -lean_inc(x_19); -x_110 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -lean_ctor_set(x_110, 2, x_101); -lean_ctor_set(x_110, 3, x_16); -lean_ctor_set(x_110, 4, x_18); -lean_ctor_set(x_110, 5, x_19); -lean_inc(x_2); -x_111 = l_Lean_Elab_getMacros(x_95, x_2, x_110, x_106); -lean_dec(x_95); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = lean_st_ref_take(x_13, x_105); -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec(x_114); -x_117 = !lean_is_exclusive(x_115); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_118 = lean_ctor_get(x_115, 1); -lean_dec(x_118); -lean_ctor_set(x_115, 1, x_113); -x_119 = lean_st_ref_set(x_13, x_115, x_116); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -lean_dec(x_119); -x_121 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_121, 0, x_112); -x_46 = x_121; -x_47 = x_120; -goto block_73; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_122 = lean_ctor_get(x_115, 0); -x_123 = lean_ctor_get(x_115, 2); -x_124 = lean_ctor_get(x_115, 3); -lean_inc(x_124); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_115); -x_125 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_125, 0, x_122); -lean_ctor_set(x_125, 1, x_113); -lean_ctor_set(x_125, 2, x_123); -lean_ctor_set(x_125, 3, x_124); -x_126 = lean_st_ref_set(x_13, x_125, x_116); -x_127 = lean_ctor_get(x_126, 1); -lean_inc(x_127); -lean_dec(x_126); -x_128 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_128, 0, x_112); -x_46 = x_128; -x_47 = x_127; -goto block_73; -} -} -else -{ -lean_object* x_129; -x_129 = lean_ctor_get(x_111, 0); -lean_inc(x_129); -lean_dec(x_111); -if (lean_obj_tag(x_129) == 0) -{ -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; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_132 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_132, 0, x_131); -x_133 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_133, 0, x_132); -lean_inc(x_12); -lean_inc(x_8); -x_134 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_130, x_133, x_8, x_9, x_10, x_11, x_12, x_13, x_105); -lean_dec(x_130); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -lean_dec(x_134); -x_74 = x_135; -x_75 = x_136; -goto block_80; -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_105); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec(x_137); -x_74 = x_138; -x_75 = x_139; -goto block_80; -} -} -} -else -{ -uint8_t x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_140 = lean_ctor_get_uint8(x_83, sizeof(void*)*1); -lean_dec(x_83); -x_141 = l_Std_PersistentArray_empty___closed__1; -x_142 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set_uint8(x_142, sizeof(void*)*1, x_140); -lean_ctor_set(x_82, 3, x_142); -x_143 = lean_st_ref_set(x_13, x_82, x_84); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -lean_dec(x_143); -x_145 = lean_st_ref_get(x_13, x_144); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -lean_dec(x_145); -x_148 = lean_ctor_get(x_146, 0); -lean_inc(x_148); -lean_dec(x_146); -x_149 = lean_st_ref_get(x_13, x_147); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_152 = lean_ctor_get(x_150, 0); -lean_inc(x_152); -lean_dec(x_150); -x_153 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_12, x_13, x_151); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -lean_dec(x_153); -x_156 = lean_st_ref_get(x_13, x_155); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -lean_dec(x_156); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -lean_dec(x_157); -lean_inc(x_152); -x_160 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_160, 0, x_152); -x_161 = x_160; -x_162 = lean_environment_main_module(x_152); -lean_inc(x_19); -x_163 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -lean_ctor_set(x_163, 2, x_154); -lean_ctor_set(x_163, 3, x_16); -lean_ctor_set(x_163, 4, x_18); -lean_ctor_set(x_163, 5, x_19); -lean_inc(x_2); -x_164 = l_Lean_Elab_getMacros(x_148, x_2, x_163, x_159); -lean_dec(x_148); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_167 = lean_st_ref_take(x_13, x_158); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); -x_170 = lean_ctor_get(x_168, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_168, 2); -lean_inc(x_171); -x_172 = lean_ctor_get(x_168, 3); -lean_inc(x_172); -if (lean_is_exclusive(x_168)) { - lean_ctor_release(x_168, 0); - lean_ctor_release(x_168, 1); - lean_ctor_release(x_168, 2); - lean_ctor_release(x_168, 3); - x_173 = x_168; -} else { - lean_dec_ref(x_168); - x_173 = lean_box(0); -} -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(0, 4, 0); -} else { - x_174 = x_173; -} -lean_ctor_set(x_174, 0, x_170); -lean_ctor_set(x_174, 1, x_166); -lean_ctor_set(x_174, 2, x_171); -lean_ctor_set(x_174, 3, x_172); -x_175 = lean_st_ref_set(x_13, x_174, x_169); -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -lean_dec(x_175); -x_177 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_177, 0, x_165); -x_46 = x_177; -x_47 = x_176; -goto block_73; -} -else -{ -lean_object* x_178; -x_178 = lean_ctor_get(x_164, 0); -lean_inc(x_178); -lean_dec(x_164); -if (lean_obj_tag(x_178) == 0) -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -lean_dec(x_178); -x_181 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_181, 0, x_180); -x_182 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_182, 0, x_181); -lean_inc(x_12); -lean_inc(x_8); -x_183 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_179, x_182, x_8, x_9, x_10, x_11, x_12, x_13, x_158); -lean_dec(x_179); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -lean_dec(x_183); -x_74 = x_184; -x_75 = x_185; -goto block_80; -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_158); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -lean_dec(x_186); -x_74 = x_187; -x_75 = x_188; -goto block_80; -} -} -} -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_189 = lean_ctor_get(x_82, 0); -x_190 = lean_ctor_get(x_82, 1); -x_191 = lean_ctor_get(x_82, 2); -lean_inc(x_191); -lean_inc(x_190); -lean_inc(x_189); -lean_dec(x_82); -x_192 = lean_ctor_get_uint8(x_83, sizeof(void*)*1); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - x_193 = x_83; -} else { - lean_dec_ref(x_83); - x_193 = lean_box(0); -} -x_194 = l_Std_PersistentArray_empty___closed__1; -if (lean_is_scalar(x_193)) { - x_195 = lean_alloc_ctor(0, 1, 1); -} else { - x_195 = x_193; -} -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set_uint8(x_195, sizeof(void*)*1, x_192); -x_196 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_196, 0, x_189); -lean_ctor_set(x_196, 1, x_190); -lean_ctor_set(x_196, 2, x_191); -lean_ctor_set(x_196, 3, x_195); -x_197 = lean_st_ref_set(x_13, x_196, x_84); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -lean_dec(x_197); -x_199 = lean_st_ref_get(x_13, x_198); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -lean_dec(x_199); -x_202 = lean_ctor_get(x_200, 0); -lean_inc(x_202); -lean_dec(x_200); -x_203 = lean_st_ref_get(x_13, x_201); -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -lean_dec(x_203); -x_206 = lean_ctor_get(x_204, 0); -lean_inc(x_206); -lean_dec(x_204); -x_207 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_12, x_13, x_205); -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -lean_dec(x_207); -x_210 = lean_st_ref_get(x_13, x_209); -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -lean_dec(x_211); -lean_inc(x_206); -x_214 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_214, 0, x_206); -x_215 = x_214; -x_216 = lean_environment_main_module(x_206); -lean_inc(x_19); -x_217 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_217, 0, x_215); -lean_ctor_set(x_217, 1, x_216); -lean_ctor_set(x_217, 2, x_208); -lean_ctor_set(x_217, 3, x_16); -lean_ctor_set(x_217, 4, x_18); -lean_ctor_set(x_217, 5, x_19); -lean_inc(x_2); -x_218 = l_Lean_Elab_getMacros(x_202, x_2, x_217, x_213); -lean_dec(x_202); -if (lean_obj_tag(x_218) == 0) -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_219 = lean_ctor_get(x_218, 0); -lean_inc(x_219); -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -lean_dec(x_218); -x_221 = lean_st_ref_take(x_13, x_212); -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); -lean_dec(x_221); -x_224 = lean_ctor_get(x_222, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_222, 2); -lean_inc(x_225); -x_226 = lean_ctor_get(x_222, 3); -lean_inc(x_226); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - lean_ctor_release(x_222, 2); - lean_ctor_release(x_222, 3); - x_227 = x_222; -} else { - lean_dec_ref(x_222); - x_227 = lean_box(0); -} -if (lean_is_scalar(x_227)) { - x_228 = lean_alloc_ctor(0, 4, 0); -} else { - x_228 = x_227; -} -lean_ctor_set(x_228, 0, x_224); -lean_ctor_set(x_228, 1, x_220); -lean_ctor_set(x_228, 2, x_225); -lean_ctor_set(x_228, 3, x_226); -x_229 = lean_st_ref_set(x_13, x_228, x_223); -x_230 = lean_ctor_get(x_229, 1); -lean_inc(x_230); -lean_dec(x_229); -x_231 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_231, 0, x_219); -x_46 = x_231; -x_47 = x_230; -goto block_73; -} -else -{ -lean_object* x_232; -x_232 = lean_ctor_get(x_218, 0); -lean_inc(x_232); -lean_dec(x_218); -if (lean_obj_tag(x_232) == 0) -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); -lean_inc(x_234); -lean_dec(x_232); -x_235 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_235, 0, x_234); -x_236 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_236, 0, x_235); -lean_inc(x_12); -lean_inc(x_8); -x_237 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_233, x_236, x_8, x_9, x_10, x_11, x_12, x_13, x_212); -lean_dec(x_233); -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_237, 1); -lean_inc(x_239); -lean_dec(x_237); -x_74 = x_238; -x_75 = x_239; -goto block_80; -} -else -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_212); -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -lean_dec(x_240); -x_74 = x_241; -x_75 = x_242; -goto block_80; -} -} -} -block_37: -{ -lean_object* x_32; uint8_t x_33; -x_32 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_19, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_31); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set(x_32, 0, x_30); -return x_32; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_30); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -block_45: -{ -lean_object* x_40; uint8_t x_41; -x_40 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_19, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_39); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -lean_ctor_set_tag(x_40, 1); -lean_ctor_set(x_40, 0, x_38); -return x_40; -} -else -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_38); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -block_73: -{ -if (lean_obj_tag(x_46) == 0) -{ -if (x_5 == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_box(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); -x_49 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_48, x_8, x_9, x_10, x_11, x_12, x_13, x_47); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_30 = x_50; -x_31 = x_51; -goto block_37; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_49, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_49, 1); -lean_inc(x_53); -lean_dec(x_49); -x_38 = x_52; -x_39 = x_53; -goto block_45; -} -} -else -{ -lean_object* x_54; -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_3); -lean_inc(x_2); -x_54 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f(x_2, x_3, x_8, x_9, x_10, x_11, x_12, x_13, x_47); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_57 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_55, x_8, x_9, x_10, x_11, x_12, x_13, x_56); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_30 = x_58; -x_31 = x_59; -goto block_37; -} -else -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_57, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -lean_dec(x_57); -x_38 = x_60; -x_39 = x_61; -goto block_45; -} -} -else -{ -lean_object* x_62; lean_object* x_63; -lean_dec(x_3); -lean_dec(x_2); -x_62 = lean_ctor_get(x_54, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_54, 1); -lean_inc(x_63); -lean_dec(x_54); -x_38 = x_62; -x_39 = x_63; -goto block_45; -} -} -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_64 = lean_ctor_get(x_46, 0); -lean_inc(x_64); -lean_dec(x_46); -x_65 = lean_box(x_4); -x_66 = lean_box(x_5); -lean_inc(x_64); -lean_inc(x_2); -x_67 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2___boxed), 12, 5); -lean_closure_set(x_67, 0, x_2); -lean_closure_set(x_67, 1, x_64); -lean_closure_set(x_67, 2, x_3); -lean_closure_set(x_67, 3, x_65); -lean_closure_set(x_67, 4, x_66); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_68 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_2, x_64, x_67, x_8, x_9, x_10, x_11, x_12, x_13, x_47); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_30 = x_69; -x_31 = x_70; -goto block_37; -} -else -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_68, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_68, 1); -lean_inc(x_72); -lean_dec(x_68); -x_38 = x_71; -x_39 = x_72; -goto block_45; -} -} -} -block_80: -{ -if (lean_obj_tag(x_74) == 0) -{ -lean_dec(x_3); -lean_dec(x_2); -x_38 = x_74; -x_39 = x_75; -goto block_45; -} -else -{ -lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_76 = lean_ctor_get(x_74, 0); -lean_inc(x_76); -x_77 = l_Lean_Elab_unsupportedSyntaxExceptionId; -x_78 = lean_nat_dec_eq(x_77, x_76); -lean_dec(x_76); -if (x_78 == 0) -{ -lean_dec(x_3); -lean_dec(x_2); -x_38 = x_74; -x_39 = x_75; -goto block_45; -} -else -{ -lean_object* x_79; -lean_dec(x_74); -x_79 = lean_box(0); -x_46 = x_79; -x_47 = x_75; -goto block_73; -} -} -} -} -else -{ -uint8_t x_243; -lean_dec(x_12); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_243 = !lean_is_exclusive(x_23); -if (x_243 == 0) -{ -return x_23; -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_23, 0); -x_245 = lean_ctor_get(x_23, 1); -lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_23); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_244); -lean_ctor_set(x_246, 1, x_245); -return x_246; -} -} -} -block_268: -{ -if (x_248 == 0) -{ -lean_dec(x_6); -x_21 = x_249; -goto block_247; -} -else -{ -lean_object* x_250; -lean_inc(x_2); -x_250 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_250, 0, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_251 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__7; -x_252 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_252, 0, x_251); -lean_ctor_set(x_252, 1, x_250); -x_253 = l_Lean_KernelException_toMessageData___closed__15; -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_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_254, x_8, x_9, x_10, x_11, x_12, x_13, x_249); -x_256 = lean_ctor_get(x_255, 1); -lean_inc(x_256); -lean_dec(x_255); -x_21 = x_256; -goto block_247; -} -else -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_257 = lean_ctor_get(x_3, 0); -lean_inc(x_257); -x_258 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_258, 0, x_257); -x_259 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3; -x_260 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_260, 0, x_259); -lean_ctor_set(x_260, 1, x_258); -x_261 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5; -x_262 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_262, 0, x_260); -lean_ctor_set(x_262, 1, x_261); -x_263 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_263, 0, x_262); -lean_ctor_set(x_263, 1, x_250); -x_264 = l_Lean_KernelException_toMessageData___closed__15; -x_265 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_265, 0, x_263); -lean_ctor_set(x_265, 1, x_264); -x_266 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_265, x_8, x_9, x_10, x_11, x_12, x_13, x_249); -x_267 = lean_ctor_get(x_266, 1); -lean_inc(x_267); -lean_dec(x_266); -x_21 = x_267; -goto block_247; -} -} -} -} -else -{ -lean_object* x_280; lean_object* x_281; 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; uint8_t x_410; lean_object* x_411; lean_object* x_431; lean_object* x_432; lean_object* x_433; uint8_t x_434; -x_280 = lean_ctor_get(x_12, 0); -x_281 = lean_ctor_get(x_12, 2); -x_282 = lean_ctor_get(x_12, 3); -x_283 = lean_ctor_get(x_12, 4); -x_284 = lean_ctor_get(x_12, 5); -x_285 = lean_ctor_get(x_12, 6); -x_286 = lean_ctor_get(x_12, 7); -lean_inc(x_286); -lean_inc(x_285); -lean_inc(x_284); -lean_inc(x_283); -lean_inc(x_282); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_12); -lean_inc(x_282); -lean_inc(x_281); -lean_inc(x_16); -x_287 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_287, 0, x_280); -lean_ctor_set(x_287, 1, x_16); -lean_ctor_set(x_287, 2, x_281); -lean_ctor_set(x_287, 3, x_282); -lean_ctor_set(x_287, 4, x_283); -lean_ctor_set(x_287, 5, x_284); -lean_ctor_set(x_287, 6, x_285); -lean_ctor_set(x_287, 7, x_286); -x_431 = lean_st_ref_get(x_13, x_14); -x_432 = lean_ctor_get(x_431, 0); -lean_inc(x_432); -x_433 = lean_ctor_get(x_432, 3); -lean_inc(x_433); -lean_dec(x_432); -x_434 = lean_ctor_get_uint8(x_433, sizeof(void*)*1); -lean_dec(x_433); -if (x_434 == 0) -{ -lean_object* x_435; uint8_t x_436; -x_435 = lean_ctor_get(x_431, 1); -lean_inc(x_435); -lean_dec(x_431); -x_436 = 0; -x_410 = x_436; -x_411 = x_435; -goto block_430; -} -else -{ -lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; -x_437 = lean_ctor_get(x_431, 1); -lean_inc(x_437); -lean_dec(x_431); -lean_inc(x_6); -x_438 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_6, x_8, x_9, x_10, x_11, x_287, x_13, x_437); -x_439 = lean_ctor_get(x_438, 0); -lean_inc(x_439); -x_440 = lean_ctor_get(x_438, 1); -lean_inc(x_440); -lean_dec(x_438); -x_441 = lean_unbox(x_439); -lean_dec(x_439); -x_410 = x_441; -x_411 = x_440; -goto block_430; -} -block_409: -{ -lean_object* x_289; lean_object* x_290; -x_289 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; -x_290 = l_Lean_Core_checkMaxHeartbeats(x_289, x_287, x_13, x_288); -if (lean_obj_tag(x_290) == 0) -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_304; lean_object* x_305; lean_object* x_311; lean_object* x_312; lean_object* x_339; lean_object* x_340; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; -x_291 = lean_ctor_get(x_290, 1); -lean_inc(x_291); -lean_dec(x_290); -x_292 = lean_st_ref_get(x_13, x_291); -x_293 = lean_ctor_get(x_292, 0); -lean_inc(x_293); -x_294 = lean_ctor_get(x_292, 1); -lean_inc(x_294); -lean_dec(x_292); -x_295 = lean_ctor_get(x_293, 3); -lean_inc(x_295); -lean_dec(x_293); -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -lean_dec(x_295); -x_346 = lean_st_ref_take(x_13, x_294); -x_347 = lean_ctor_get(x_346, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_347, 3); -lean_inc(x_348); -x_349 = lean_ctor_get(x_346, 1); -lean_inc(x_349); -lean_dec(x_346); -x_350 = lean_ctor_get(x_347, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_347, 1); -lean_inc(x_351); -x_352 = lean_ctor_get(x_347, 2); -lean_inc(x_352); -if (lean_is_exclusive(x_347)) { - lean_ctor_release(x_347, 0); - lean_ctor_release(x_347, 1); - lean_ctor_release(x_347, 2); - lean_ctor_release(x_347, 3); - x_353 = x_347; -} else { - lean_dec_ref(x_347); - x_353 = lean_box(0); -} -x_354 = lean_ctor_get_uint8(x_348, sizeof(void*)*1); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - x_355 = x_348; -} else { - lean_dec_ref(x_348); - x_355 = lean_box(0); -} -x_356 = l_Std_PersistentArray_empty___closed__1; -if (lean_is_scalar(x_355)) { - x_357 = lean_alloc_ctor(0, 1, 1); -} else { - x_357 = x_355; -} -lean_ctor_set(x_357, 0, x_356); -lean_ctor_set_uint8(x_357, sizeof(void*)*1, x_354); -if (lean_is_scalar(x_353)) { - x_358 = lean_alloc_ctor(0, 4, 0); -} else { - x_358 = x_353; -} -lean_ctor_set(x_358, 0, x_350); -lean_ctor_set(x_358, 1, x_351); -lean_ctor_set(x_358, 2, x_352); -lean_ctor_set(x_358, 3, x_357); -x_359 = lean_st_ref_set(x_13, x_358, x_349); -x_360 = lean_ctor_get(x_359, 1); -lean_inc(x_360); -lean_dec(x_359); -x_361 = lean_st_ref_get(x_13, x_360); -x_362 = lean_ctor_get(x_361, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec(x_361); -x_364 = lean_ctor_get(x_362, 0); -lean_inc(x_364); -lean_dec(x_362); -x_365 = lean_st_ref_get(x_13, x_363); -x_366 = lean_ctor_get(x_365, 0); -lean_inc(x_366); -x_367 = lean_ctor_get(x_365, 1); -lean_inc(x_367); -lean_dec(x_365); -x_368 = lean_ctor_get(x_366, 0); -lean_inc(x_368); -lean_dec(x_366); -x_369 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_9, x_10, x_11, x_287, x_13, x_367); -x_370 = lean_ctor_get(x_369, 0); -lean_inc(x_370); -x_371 = lean_ctor_get(x_369, 1); -lean_inc(x_371); -lean_dec(x_369); -x_372 = lean_st_ref_get(x_13, x_371); -x_373 = lean_ctor_get(x_372, 0); -lean_inc(x_373); -x_374 = lean_ctor_get(x_372, 1); -lean_inc(x_374); -lean_dec(x_372); -x_375 = lean_ctor_get(x_373, 1); -lean_inc(x_375); -lean_dec(x_373); -lean_inc(x_368); -x_376 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_376, 0, x_368); -x_377 = x_376; -x_378 = lean_environment_main_module(x_368); -lean_inc(x_282); -x_379 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_379, 0, x_377); -lean_ctor_set(x_379, 1, x_378); -lean_ctor_set(x_379, 2, x_370); -lean_ctor_set(x_379, 3, x_16); -lean_ctor_set(x_379, 4, x_281); -lean_ctor_set(x_379, 5, x_282); -lean_inc(x_2); -x_380 = l_Lean_Elab_getMacros(x_364, x_2, x_379, x_375); -lean_dec(x_364); -if (lean_obj_tag(x_380) == 0) -{ -lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_381 = lean_ctor_get(x_380, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_380, 1); -lean_inc(x_382); -lean_dec(x_380); -x_383 = lean_st_ref_take(x_13, x_374); -x_384 = lean_ctor_get(x_383, 0); -lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 1); -lean_inc(x_385); -lean_dec(x_383); -x_386 = lean_ctor_get(x_384, 0); -lean_inc(x_386); -x_387 = lean_ctor_get(x_384, 2); -lean_inc(x_387); -x_388 = lean_ctor_get(x_384, 3); -lean_inc(x_388); -if (lean_is_exclusive(x_384)) { - lean_ctor_release(x_384, 0); - lean_ctor_release(x_384, 1); - lean_ctor_release(x_384, 2); - lean_ctor_release(x_384, 3); - x_389 = x_384; -} else { - lean_dec_ref(x_384); - x_389 = lean_box(0); -} -if (lean_is_scalar(x_389)) { - x_390 = lean_alloc_ctor(0, 4, 0); -} else { - x_390 = x_389; -} -lean_ctor_set(x_390, 0, x_386); -lean_ctor_set(x_390, 1, x_382); -lean_ctor_set(x_390, 2, x_387); -lean_ctor_set(x_390, 3, x_388); -x_391 = lean_st_ref_set(x_13, x_390, x_385); -x_392 = lean_ctor_get(x_391, 1); -lean_inc(x_392); -lean_dec(x_391); -x_393 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_393, 0, x_381); -x_311 = x_393; -x_312 = x_392; -goto block_338; -} -else -{ -lean_object* x_394; -x_394 = lean_ctor_get(x_380, 0); -lean_inc(x_394); -lean_dec(x_380); -if (lean_obj_tag(x_394) == 0) -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_395 = lean_ctor_get(x_394, 0); -lean_inc(x_395); -x_396 = lean_ctor_get(x_394, 1); -lean_inc(x_396); -lean_dec(x_394); -x_397 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_397, 0, x_396); -x_398 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_398, 0, x_397); -lean_inc(x_287); -lean_inc(x_8); -x_399 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_395, x_398, x_8, x_9, x_10, x_11, x_287, x_13, x_374); -lean_dec(x_395); -x_400 = lean_ctor_get(x_399, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_399, 1); -lean_inc(x_401); -lean_dec(x_399); -x_339 = x_400; -x_340 = x_401; -goto block_345; -} -else -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; -x_402 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(x_374); -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); -lean_dec(x_402); -x_339 = x_403; -x_340 = x_404; -goto block_345; -} -} -block_303: -{ -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_299 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_282, x_296, x_8, x_9, x_10, x_11, x_287, x_13, x_298); -lean_dec(x_13); -lean_dec(x_287); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_300 = lean_ctor_get(x_299, 1); -lean_inc(x_300); -if (lean_is_exclusive(x_299)) { - lean_ctor_release(x_299, 0); - lean_ctor_release(x_299, 1); - x_301 = x_299; -} else { - lean_dec_ref(x_299); - x_301 = lean_box(0); -} -if (lean_is_scalar(x_301)) { - x_302 = lean_alloc_ctor(0, 2, 0); -} else { - x_302 = x_301; -} -lean_ctor_set(x_302, 0, x_297); -lean_ctor_set(x_302, 1, x_300); -return x_302; -} -block_310: -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_306 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_282, x_296, x_8, x_9, x_10, x_11, x_287, x_13, x_305); -lean_dec(x_13); -lean_dec(x_287); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_306)) { - lean_ctor_release(x_306, 0); - lean_ctor_release(x_306, 1); - x_308 = x_306; -} else { - lean_dec_ref(x_306); - x_308 = lean_box(0); -} -if (lean_is_scalar(x_308)) { - x_309 = lean_alloc_ctor(1, 2, 0); -} else { - x_309 = x_308; - lean_ctor_set_tag(x_309, 1); -} -lean_ctor_set(x_309, 0, x_304); -lean_ctor_set(x_309, 1, x_307); -return x_309; -} -block_338: -{ -if (lean_obj_tag(x_311) == 0) -{ -if (x_5 == 0) -{ -lean_object* x_313; lean_object* x_314; -x_313 = lean_box(0); -lean_inc(x_13); -lean_inc(x_287); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_314 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_313, x_8, x_9, x_10, x_11, x_287, x_13, x_312); -if (lean_obj_tag(x_314) == 0) -{ -lean_object* x_315; lean_object* x_316; -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -lean_dec(x_314); -x_297 = x_315; -x_298 = x_316; -goto block_303; -} -else -{ -lean_object* x_317; lean_object* x_318; -x_317 = lean_ctor_get(x_314, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_314, 1); -lean_inc(x_318); -lean_dec(x_314); -x_304 = x_317; -x_305 = x_318; -goto block_310; -} -} -else -{ -lean_object* x_319; -lean_inc(x_13); -lean_inc(x_287); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_3); -lean_inc(x_2); -x_319 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f(x_2, x_3, x_8, x_9, x_10, x_11, x_287, x_13, x_312); -if (lean_obj_tag(x_319) == 0) -{ -lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 1); -lean_inc(x_321); -lean_dec(x_319); -lean_inc(x_13); -lean_inc(x_287); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_322 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_2, x_3, x_4, x_320, x_8, x_9, x_10, x_11, x_287, x_13, x_321); -if (lean_obj_tag(x_322) == 0) -{ -lean_object* x_323; lean_object* x_324; -x_323 = lean_ctor_get(x_322, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_322, 1); -lean_inc(x_324); -lean_dec(x_322); -x_297 = x_323; -x_298 = x_324; -goto block_303; -} -else -{ -lean_object* x_325; lean_object* x_326; -x_325 = lean_ctor_get(x_322, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_322, 1); -lean_inc(x_326); -lean_dec(x_322); -x_304 = x_325; -x_305 = x_326; -goto block_310; -} -} -else -{ -lean_object* x_327; lean_object* x_328; -lean_dec(x_3); -lean_dec(x_2); -x_327 = lean_ctor_get(x_319, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_319, 1); -lean_inc(x_328); -lean_dec(x_319); -x_304 = x_327; -x_305 = x_328; -goto block_310; -} -} -} -else -{ -lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_329 = lean_ctor_get(x_311, 0); -lean_inc(x_329); -lean_dec(x_311); -x_330 = lean_box(x_4); -x_331 = lean_box(x_5); -lean_inc(x_329); -lean_inc(x_2); -x_332 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2___boxed), 12, 5); -lean_closure_set(x_332, 0, x_2); -lean_closure_set(x_332, 1, x_329); -lean_closure_set(x_332, 2, x_3); -lean_closure_set(x_332, 3, x_330); -lean_closure_set(x_332, 4, x_331); -lean_inc(x_13); -lean_inc(x_287); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_333 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_2, x_329, x_332, x_8, x_9, x_10, x_11, x_287, x_13, x_312); -if (lean_obj_tag(x_333) == 0) -{ -lean_object* x_334; lean_object* x_335; -x_334 = lean_ctor_get(x_333, 0); -lean_inc(x_334); -x_335 = lean_ctor_get(x_333, 1); -lean_inc(x_335); -lean_dec(x_333); -x_297 = x_334; -x_298 = x_335; -goto block_303; -} -else -{ -lean_object* x_336; lean_object* x_337; -x_336 = lean_ctor_get(x_333, 0); -lean_inc(x_336); -x_337 = lean_ctor_get(x_333, 1); -lean_inc(x_337); -lean_dec(x_333); -x_304 = x_336; -x_305 = x_337; -goto block_310; -} -} -} -block_345: -{ -if (lean_obj_tag(x_339) == 0) -{ -lean_dec(x_3); -lean_dec(x_2); -x_304 = x_339; -x_305 = x_340; -goto block_310; -} -else -{ -lean_object* x_341; lean_object* x_342; uint8_t x_343; -x_341 = lean_ctor_get(x_339, 0); -lean_inc(x_341); -x_342 = l_Lean_Elab_unsupportedSyntaxExceptionId; -x_343 = lean_nat_dec_eq(x_342, x_341); -lean_dec(x_341); -if (x_343 == 0) -{ -lean_dec(x_3); -lean_dec(x_2); -x_304 = x_339; -x_305 = x_340; -goto block_310; -} -else -{ -lean_object* x_344; -lean_dec(x_339); -x_344 = lean_box(0); -x_311 = x_344; -x_312 = x_340; -goto block_338; -} -} -} -} -else -{ -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -lean_dec(x_287); -lean_dec(x_282); -lean_dec(x_281); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_405 = lean_ctor_get(x_290, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_290, 1); -lean_inc(x_406); -if (lean_is_exclusive(x_290)) { - lean_ctor_release(x_290, 0); - lean_ctor_release(x_290, 1); - x_407 = x_290; -} else { - lean_dec_ref(x_290); - x_407 = lean_box(0); -} -if (lean_is_scalar(x_407)) { - x_408 = lean_alloc_ctor(1, 2, 0); -} else { - x_408 = x_407; -} -lean_ctor_set(x_408, 0, x_405); -lean_ctor_set(x_408, 1, x_406); -return x_408; -} -} -block_430: -{ -if (x_410 == 0) -{ -lean_dec(x_6); -x_288 = x_411; -goto block_409; -} -else -{ -lean_object* x_412; -lean_inc(x_2); -x_412 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_412, 0, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_413 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__7; -x_414 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_414, 0, x_413); -lean_ctor_set(x_414, 1, x_412); -x_415 = l_Lean_KernelException_toMessageData___closed__15; -x_416 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_416, 0, x_414); -lean_ctor_set(x_416, 1, x_415); -x_417 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_416, x_8, x_9, x_10, x_11, x_287, x_13, x_411); -x_418 = lean_ctor_get(x_417, 1); -lean_inc(x_418); -lean_dec(x_417); -x_288 = x_418; -goto block_409; -} -else -{ -lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; -x_419 = lean_ctor_get(x_3, 0); -lean_inc(x_419); -x_420 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_420, 0, x_419); -x_421 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__3; -x_422 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_422, 0, x_421); -lean_ctor_set(x_422, 1, x_420); -x_423 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__5; -x_424 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_424, 0, x_422); -lean_ctor_set(x_424, 1, x_423); -x_425 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_425, 0, x_424); -lean_ctor_set(x_425, 1, x_412); -x_426 = l_Lean_KernelException_toMessageData___closed__15; -x_427 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_427, 0, x_425); -lean_ctor_set(x_427, 1, x_426); -x_428 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_427, x_8, x_9, x_10, x_11, x_287, x_13, x_411); -x_429 = lean_ctor_get(x_428, 1); -lean_inc(x_429); -lean_dec(x_428); -x_288 = x_429; -goto block_409; -} -} -} -} -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_st_ref_take(x_10, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_16 = lean_ctor_get(x_13, 1); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_16, x_17); -lean_ctor_set(x_13, 1, x_18); -x_19 = lean_st_ref_set(x_10, x_13, x_14); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = !lean_is_exclusive(x_5); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = lean_ctor_get(x_5, 4); -lean_dec(x_22); -lean_ctor_set(x_5, 4, x_16); -x_23 = lean_ctor_get(x_9, 1); -lean_inc(x_23); -x_24 = lean_ctor_get(x_9, 2); -lean_inc(x_24); -x_25 = lean_nat_dec_eq(x_23, x_24); -lean_dec(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__2; -x_27 = lean_box(0); -x_28 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_23, x_4, x_1, x_2, x_3, x_26, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_20); -lean_dec(x_23); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_dec(x_23); -lean_dec(x_4); -lean_dec(x_1); -x_29 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_30 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_20); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -return x_30; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_30); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_35 = lean_ctor_get(x_5, 0); -x_36 = lean_ctor_get(x_5, 1); -x_37 = lean_ctor_get(x_5, 2); -x_38 = lean_ctor_get(x_5, 3); -x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); -x_42 = lean_ctor_get(x_5, 5); -x_43 = lean_ctor_get(x_5, 6); -x_44 = lean_ctor_get(x_5, 7); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_5); -x_45 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_45, 0, x_35); -lean_ctor_set(x_45, 1, x_36); -lean_ctor_set(x_45, 2, x_37); -lean_ctor_set(x_45, 3, x_38); -lean_ctor_set(x_45, 4, x_16); -lean_ctor_set(x_45, 5, x_42); -lean_ctor_set(x_45, 6, x_43); -lean_ctor_set(x_45, 7, x_44); -lean_ctor_set_uint8(x_45, sizeof(void*)*8, x_39); -lean_ctor_set_uint8(x_45, sizeof(void*)*8 + 1, x_40); -lean_ctor_set_uint8(x_45, sizeof(void*)*8 + 2, x_41); -x_46 = lean_ctor_get(x_9, 1); -lean_inc(x_46); -x_47 = lean_ctor_get(x_9, 2); -lean_inc(x_47); -x_48 = lean_nat_dec_eq(x_46, x_47); -lean_dec(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__2; -x_50 = lean_box(0); -x_51 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_46, x_4, x_1, x_2, x_3, x_49, x_50, x_45, x_6, x_7, x_8, x_9, x_10, x_20); -lean_dec(x_46); -return x_51; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_46); -lean_dec(x_4); -lean_dec(x_1); -x_52 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_53 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_52, x_45, x_6, x_7, x_8, x_9, x_10, x_20); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_56 = x_53; -} else { - lean_dec_ref(x_53); - x_56 = lean_box(0); -} -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(1, 2, 0); -} else { - x_57 = x_56; -} -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; -} -} -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_58 = lean_ctor_get(x_13, 0); -x_59 = lean_ctor_get(x_13, 1); -x_60 = lean_ctor_get(x_13, 2); -x_61 = lean_ctor_get(x_13, 3); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_13); -x_62 = lean_unsigned_to_nat(1u); -x_63 = lean_nat_add(x_59, x_62); -x_64 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_64, 0, x_58); -lean_ctor_set(x_64, 1, x_63); -lean_ctor_set(x_64, 2, x_60); -lean_ctor_set(x_64, 3, x_61); -x_65 = lean_st_ref_set(x_10, x_64, x_14); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -lean_dec(x_65); -x_67 = lean_ctor_get(x_5, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_5, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_5, 2); -lean_inc(x_69); -x_70 = lean_ctor_get(x_5, 3); -lean_inc(x_70); -x_71 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_72 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_73 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); -x_74 = lean_ctor_get(x_5, 5); -lean_inc(x_74); -x_75 = lean_ctor_get(x_5, 6); -lean_inc(x_75); -x_76 = lean_ctor_get(x_5, 7); -lean_inc(x_76); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - lean_ctor_release(x_5, 1); - lean_ctor_release(x_5, 2); - lean_ctor_release(x_5, 3); - lean_ctor_release(x_5, 4); - lean_ctor_release(x_5, 5); - lean_ctor_release(x_5, 6); - lean_ctor_release(x_5, 7); - x_77 = x_5; -} else { - lean_dec_ref(x_5); - x_77 = lean_box(0); -} -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(0, 8, 3); -} else { - x_78 = x_77; -} -lean_ctor_set(x_78, 0, x_67); -lean_ctor_set(x_78, 1, x_68); -lean_ctor_set(x_78, 2, x_69); -lean_ctor_set(x_78, 3, x_70); -lean_ctor_set(x_78, 4, x_59); -lean_ctor_set(x_78, 5, x_74); -lean_ctor_set(x_78, 6, x_75); -lean_ctor_set(x_78, 7, x_76); -lean_ctor_set_uint8(x_78, sizeof(void*)*8, x_71); -lean_ctor_set_uint8(x_78, sizeof(void*)*8 + 1, x_72); -lean_ctor_set_uint8(x_78, sizeof(void*)*8 + 2, x_73); -x_79 = lean_ctor_get(x_9, 1); -lean_inc(x_79); -x_80 = lean_ctor_get(x_9, 2); -lean_inc(x_80); -x_81 = lean_nat_dec_eq(x_79, x_80); -lean_dec(x_80); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1077____closed__2; -x_83 = lean_box(0); -x_84 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_79, x_4, x_1, x_2, x_3, x_82, x_83, x_78, x_6, x_7, x_8, x_9, x_10, x_66); -lean_dec(x_79); -return x_84; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_79); -lean_dec(x_4); -lean_dec(x_1); -x_85 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_86 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_85, x_78, x_6, x_7, x_8, x_9, x_10, x_66); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_89 = x_86; -} else { - lean_dec_ref(x_86); - x_89 = lean_box(0); -} -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(1, 2, 0); -} else { - x_90 = x_89; -} -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_88); -return x_90; -} -} -} -} -lean_object* l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_10; -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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: -{ -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_3); -lean_dec(x_3); -x_13 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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) { -_start: -{ -uint8_t x_13; uint8_t x_14; lean_object* x_15; -x_13 = lean_unbox(x_4); -lean_dec(x_4); -x_14 = lean_unbox(x_5); -lean_dec(x_5); -x_15 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_15; -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -uint8_t x_15; uint8_t x_16; lean_object* x_17; -x_15 = lean_unbox(x_4); -lean_dec(x_4); -x_16 = lean_unbox(x_5); -lean_dec(x_5); -x_17 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3(x_1, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_7); -lean_dec(x_1); -return x_17; -} -} -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; uint8_t x_13; lean_object* x_14; -x_12 = lean_unbox(x_2); -lean_dec(x_2); -x_13 = lean_unbox(x_3); -lean_dec(x_3); -x_14 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_14; -} -} -lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_3, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 5); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); -lean_dec(x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_1); -x_15 = !lean_is_exclusive(x_11); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_11, 0); -lean_dec(x_16); -x_17 = lean_box(0); -lean_ctor_set(x_11, 0, x_17); -return x_11; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); -lean_dec(x_11); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; -} -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); -lean_dec(x_11); -x_22 = lean_st_ref_get(x_7, x_21); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_st_ref_take(x_3, x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_25, 5); -lean_inc(x_26); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = !lean_is_exclusive(x_25); -if (x_28 == 0) -{ -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_25, 5); -lean_dec(x_29); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_26, 1); -x_32 = l_Std_PersistentArray_push___rarg(x_31, x_1); -lean_ctor_set(x_26, 1, x_32); -x_33 = lean_st_ref_set(x_3, x_25, x_27); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -x_36 = lean_box(0); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 1); -lean_inc(x_37); -lean_dec(x_33); -x_38 = lean_box(0); -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_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_40 = lean_ctor_get_uint8(x_26, sizeof(void*)*2); -x_41 = lean_ctor_get(x_26, 0); -x_42 = lean_ctor_get(x_26, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_26); -x_43 = l_Std_PersistentArray_push___rarg(x_42, x_1); -x_44 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_43); -lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_40); -lean_ctor_set(x_25, 5, x_44); -x_45 = lean_st_ref_set(x_3, x_25, x_27); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_47 = x_45; -} else { - lean_dec_ref(x_45); - x_47 = lean_box(0); -} -x_48 = lean_box(0); -if (lean_is_scalar(x_47)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_47; -} -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_50 = lean_ctor_get(x_25, 0); -x_51 = lean_ctor_get(x_25, 1); -x_52 = lean_ctor_get(x_25, 2); -x_53 = lean_ctor_get(x_25, 3); -x_54 = lean_ctor_get(x_25, 4); -lean_inc(x_54); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_25); -x_55 = lean_ctor_get_uint8(x_26, sizeof(void*)*2); -x_56 = lean_ctor_get(x_26, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_26, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - x_58 = x_26; -} else { - lean_dec_ref(x_26); - x_58 = lean_box(0); -} -x_59 = l_Std_PersistentArray_push___rarg(x_57, x_1); -if (lean_is_scalar(x_58)) { - x_60 = lean_alloc_ctor(0, 2, 1); -} else { - x_60 = x_58; -} -lean_ctor_set(x_60, 0, x_56); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set_uint8(x_60, sizeof(void*)*2, x_55); -x_61 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_61, 0, x_50); -lean_ctor_set(x_61, 1, x_51); -lean_ctor_set(x_61, 2, x_52); -lean_ctor_set(x_61, 3, x_53); -lean_ctor_set(x_61, 4, x_54); -lean_ctor_set(x_61, 5, x_60); -x_62 = lean_st_ref_set(x_3, x_61, x_27); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_64 = x_62; -} else { - lean_dec_ref(x_62); - x_64 = lean_box(0); -} -x_65 = lean_box(0); -if (lean_is_scalar(x_64)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_64; -} -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_63); -return x_66; -} -} -} -} -lean_object* l_Lean_Elab_Term_addTermInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_st_ref_get(x_4, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_13, 5); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2); -lean_dec(x_14); -if (x_15 == 0) -{ -uint8_t x_16; -lean_dec(x_2); -lean_dec(x_1); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_12, 0); -lean_dec(x_17); -x_18 = lean_box(0); -lean_ctor_set(x_12, 0, x_18); -return x_12; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_12, 1); -lean_inc(x_19); -lean_dec(x_12); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_dec(x_12); -x_23 = lean_ctor_get(x_5, 1); -lean_inc(x_23); -x_24 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_2); -lean_ctor_set(x_24, 2, x_1); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Std_PersistentArray_empty___closed__1; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___spec__1(x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_22); -return x_28; -} -} -} -lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addTermInfo___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -lean_object* l_Lean_Elab_Term_addTermInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Term_addTermInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_10; -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 2: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -lean_dec(x_4); -lean_dec(x_3); -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_2(x_2, x_5, x_6); -return x_7; -} -case 3: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_4); -lean_dec(x_2); -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -lean_dec(x_1); -x_10 = lean_apply_2(x_3, x_8, x_9); -return x_10; -} -default: -{ -lean_object* x_11; -lean_dec(x_3); -lean_dec(x_2); -x_11 = lean_apply_1(x_4, x_1); -return x_11; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkTermInfo_match__1___rarg), 4, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 2) -{ -lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; -lean_dec(x_3); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); -lean_dec(x_1); -x_6 = lean_box_uint64(x_5); -x_7 = lean_apply_2(x_2, x_4, x_6); -return x_7; -} -else -{ -lean_object* x_8; -lean_dec(x_2); -x_8 = lean_apply_1(x_3, x_1); -return x_8; -} -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo_match__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkTermInfo_match__2___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_3); -x_4 = lean_box(0); -x_5 = lean_apply_1(x_2, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_1(x_3, x_6); -return x_7; -} -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo_match__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkTermInfo_match__3___rarg), 3, 0); -return x_2; -} -} -uint8_t l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(uint8_t x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(x_1, x_4); -x_6 = lean_ctor_get(x_3, 2); -switch (lean_obj_tag(x_6)) { -case 2: -{ -uint8_t x_7; -x_7 = 1; -return x_7; -} -case 3: -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -default: -{ -return x_5; -} -} -} -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo(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; -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; -x_21 = lean_ctor_get(x_2, 0); -lean_inc(x_21); -x_22 = lean_st_ref_get(x_8, x_9); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_st_ref_get(x_4, x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = 0; -x_29 = l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(x_28, x_27); -lean_dec(x_27); -if (x_29 == 0) -{ -lean_object* x_30; -lean_dec(x_21); -x_30 = lean_box(0); -x_10 = x_30; -x_11 = x_26; -goto block_20; -} -else -{ -lean_object* x_31; -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_21); -x_10 = x_31; -x_11 = x_26; -goto block_20; -} -} -else -{ -lean_object* x_32; -x_32 = lean_box(0); -x_10 = x_32; -x_11 = x_9; -goto block_20; -} -block_20: -{ -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -x_13 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_2); -lean_ctor_set(x_13, 2, x_1); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_11); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_2); -lean_dec(x_1); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -lean_dec(x_10); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_11); -return x_19; -} -} -} -} -lean_object* l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; uint8_t x_4; lean_object* x_5; -x_3 = lean_unbox(x_1); -lean_dec(x_1); -x_4 = l_List_foldr___at_Lean_Elab_Term_mkTermInfo___spec__1(x_3, x_2); -lean_dec(x_2); -x_5 = lean_box(x_4); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_mkTermInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Term_mkTermInfo(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_10; -} -} lean_object* l_Lean_Elab_Term_elabTerm___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -28212,7 +28122,7 @@ lean_closure_set(x_14, 0, x_13); lean_closure_set(x_14, 1, x_12); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkTermInfo___boxed), 9, 1); lean_closure_set(x_15, 0, x_1); -x_16 = l_Lean_Elab_withInfoContext_x27___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_16 = l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_elabTerm___spec__1(x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_16; } } @@ -43523,8 +43433,6 @@ l_Lean_Elab_Term_throwErrorIfErrors___closed__2 = _init_l_Lean_Elab_Term_throwEr lean_mark_persistent(l_Lean_Elab_Term_throwErrorIfErrors___closed__2); l_Lean_Elab_Term_throwErrorIfErrors___closed__3 = _init_l_Lean_Elab_Term_throwErrorIfErrors___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_throwErrorIfErrors___closed__3); -l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___closed__1 = _init_l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___closed__1); l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1 = _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1); l_Lean_Elab_Term_MVarErrorInfo_logError___closed__2 = _init_l_Lean_Elab_Term_MVarErrorInfo_logError___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index 7bf92a60b1..d7c51be8a4 100644 --- a/stage0/stdlib/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Lean/Parser/Tactic.c @@ -20,7 +20,9 @@ lean_object* l_Lean_Parser_nonReservedSymbol_formatter___boxed(lean_object*, lea lean_object* l_Lean_Parser_Tactic_matchRhs_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_match___closed__7; lean_object* l___regBuiltin_Lean_Parser_Tactic_match_formatter(lean_object*); +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_unknown___elambda__1___lambda__1___closed__1; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_match; lean_object* l_Lean_Parser_Tactic_unknown___elambda__1___closed__2; lean_object* l_Lean_Parser_andthenInfo(lean_object*, lean_object*); @@ -32,7 +34,9 @@ lean_object* l_Lean_Parser_Tactic_introMatch_parenthesizer___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__7; extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_1057____closed__11; +lean_object* l_Lean_Parser_symbol_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs; extern lean_object* l_Lean_Parser_Term_simpleBinder_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_introMatch_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_match_formatter___closed__4; @@ -59,7 +63,9 @@ lean_object* l_Lean_Parser_Tactic_matchAlts_formatter(lean_object*, lean_object* lean_object* l_Lean_Parser_Tactic_matchRhs_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_introMatch_parenthesizer___closed__2; lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__7; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_match_formatter___closed__2; extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__3; lean_object* l_Lean_Parser_nonReservedSymbol(lean_object*, uint8_t); @@ -71,6 +77,7 @@ lean_object* l_Lean_Parser_Tactic_matchRhs___closed__4; extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__3; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_nestedTactic_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__8; lean_object* l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_case___closed__10; lean_object* l_Lean_Parser_Tactic_matchRhs___closed__2; @@ -86,6 +93,8 @@ extern lean_object* l_Lean_PrettyPrinter_parenthesizerAttribute; extern lean_object* l_Lean_Parser_Term_hole___closed__4; lean_object* l_Lean_Parser_Tactic_initFn____x40_Lean_Parser_Tactic___hyg_5____closed__1; lean_object* l_Lean_Parser_Tactic_unknown_formatter___closed__3; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__5; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1; lean_object* l_Lean_PrettyPrinter_Formatter_errorAtSavedPos_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__8; extern lean_object* l_Lean_Parser_Term_structInst_formatter___closed__2; @@ -98,19 +107,26 @@ lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTactic_parenthesizer(lean_object*); lean_object* l_Lean_Parser_nodeInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_introMatch___closed__6; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__2; lean_object* l_Lean_Parser_Tactic_unknown___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__5; lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__2; lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__8; +lean_object* l_Lean_Parser_symbol(lean_object*); extern lean_object* l_Lean_Parser_Term_byTactic_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__7; lean_object* l_Lean_Parser_Tactic_introMatch___closed__1; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__4; +lean_object* l___regBuiltinParser_Lean_Parser_Tactic_eraseAuxDiscrs(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Tactic_introMatch_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_introMatch___closed__2; lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__3; extern lean_object* l_Lean_Parser_Term_syntheticHole___closed__6; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__1; extern lean_object* l_Lean_Parser_Term_byTactic_parenthesizer___closed__2; lean_object* l_Lean_Parser_errorAtSavedPosFn(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__6; lean_object* l___regBuiltin_Lean_Parser_Tactic_match_formatter___closed__1; extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_938____closed__19; extern lean_object* l_Lean_Parser_parserAliasesRef; @@ -121,16 +137,20 @@ lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTactic_formatter___closed__ lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_introMatch_formatter___closed__3; extern lean_object* l___regBuiltin_Lean_Parser_Term_syntheticHole_parenthesizer___closed__1; +extern lean_object* l_Lean_Parser_maxPrec; lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__5; lean_object* l___regBuiltin_Lean_Parser_Tactic_unknown_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__3; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__2; extern lean_object* l_Lean_PrettyPrinter_formatterAttribute; lean_object* l_Lean_Parser_Tactic_match___closed__8; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_Term_simpleBinder_formatter___closed__2; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_match_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_unknown_formatter___closed__1; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__3; lean_object* l_Lean_Parser_Tactic_match___closed__9; extern lean_object* l_Lean_Parser_Term_match_formatter___closed__4; lean_object* l_Lean_Parser_Tactic_introMatch___closed__4; @@ -141,14 +161,17 @@ lean_object* l_Lean_Parser_Tactic_matchRhs___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_unknown_parenthesizer___closed__4; extern lean_object* l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__5; lean_object* l_Lean_Parser_Tactic_match___closed__2; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__5; lean_object* l_Lean_Parser_Tactic_unknown_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_unknown___closed__7; +lean_object* l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Tactic_matchRhs_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Formatter_withPosition_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Tactic_nestedTactic(lean_object*); lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_unknown_formatter___closed__5; lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__9; +extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_unknown_formatter___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_match(lean_object*); lean_object* l_Lean_Parser_Tactic_match___closed__4; @@ -167,11 +190,14 @@ lean_object* l_Lean_Parser_Tactic_initFn____x40_Lean_Parser_Tactic___hyg_5____cl extern lean_object* l_Lean_PrettyPrinter_Formatter_formatterAliasesRef; lean_object* l___regBuiltin_Lean_Parser_Tactic_nestedTactic_parenthesizer___closed__1; lean_object* l_Lean_Parser_Tactic_match___closed__5; +lean_object* l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__7; lean_object* l_Lean_Parser_Tactic_introMatch_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__6; lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_matchRhs___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_unknown_parenthesizer___closed__1; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__3; lean_object* l_Lean_Parser_errorAtSavedPos(lean_object*, uint8_t); lean_object* l_Lean_Parser_Tactic_match_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__9; @@ -189,12 +215,15 @@ extern lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__3; extern lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e_____closed__6; lean_object* l_Lean_Parser_Tactic_nestedTactic_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_hole; +lean_object* l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter(lean_object*); extern lean_object* l___regBuiltin_Lean_Parser_Term_hole_formatter___closed__1; extern lean_object* l_Lean_Parser_Level_paren___elambda__1___closed__8; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_nodeFn(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_unknown___closed__6; lean_object* l_Lean_Parser_Tactic_match_formatter___closed__6; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_initFn____x40_Lean_Parser_Tactic___hyg_5_(lean_object*); lean_object* l_Lean_Parser_Tactic_match_parenthesizer___closed__4; lean_object* l_Lean_Parser_Tactic_unknown_parenthesizer___closed__5; @@ -203,6 +232,7 @@ extern lean_object* l_Lean_Parser_Tactic_intro___closed__2; lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_PrettyPrinter_Parenthesizer_withPosition_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_unknown___closed__3; +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__2; lean_object* l___regBuiltin_Lean_Parser_Tactic_match_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__1; lean_object* l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -223,6 +253,7 @@ lean_object* l_Lean_Parser_Tactic_matchAlts_formatter___closed__1; lean_object* l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_match___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_introMatch_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_andthenFn(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_syntheticHole; @@ -1052,6 +1083,300 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("eraseAuxDiscrs"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_intro___closed__2; +x_2 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1; +x_2 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("eraseAuxDiscrs!"); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__5; +x_2 = l_Lean_Parser_symbol(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__6; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); +lean_closure_set(x_4, 0, x_3); +lean_closure_set(x_4, 1, x_2); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_fun___elambda__1___closed__7; +x_2 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__7; +x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__8; +x_6 = 1; +x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2); +return x_7; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__6; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_4 = l_Lean_Parser_nodeInfo(x_3, x_2); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_epsilonInfo; +x_2 = l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__1; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__2; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__3; +x_2 = l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__4; +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_Lean_Parser_Tactic_eraseAuxDiscrs() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__5; +return x_1; +} +} +lean_object* l___regBuiltinParser_Lean_Parser_Tactic_eraseAuxDiscrs(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_2 = l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e_____closed__6; +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_4 = 1; +x_5 = l_Lean_Parser_Tactic_eraseAuxDiscrs; +x_6 = lean_unsigned_to_nat(1000u); +x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); +return x_7; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1; +x_2 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3; +x_3 = 1; +x_4 = lean_box(x_3); +x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +lean_closure_set(x_5, 2, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__5; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_2 = l_Lean_Parser_maxPrec; +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__2; +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1; +x_7 = l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__3; +x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter), 5, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_PrettyPrinter_formatterAttribute; +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3; +x_2 = 1; +x_3 = lean_box(x_2); +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 7, 2); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_2 = l_Lean_Parser_maxPrec; +x_3 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__1; +x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +lean_closure_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1; +x_7 = l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__2; +x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); +return x_8; +} +} +static lean_object* _init_l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer), 5, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; +x_3 = l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} static lean_object* _init_l_Lean_Parser_Tactic_matchRhs___elambda__1___closed__1() { _start: { @@ -2145,6 +2470,57 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_nestedTactic_parenthesize res = l___regBuiltin_Lean_Parser_Tactic_nestedTactic_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__1); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__2); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__3); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__4 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__4); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__5 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__5); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__6 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__6); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__7 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__7); +l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__8 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___elambda__1___closed__8); +l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__1 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__1); +l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__2 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__2); +l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__3 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__3); +l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__4 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__4(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__4); +l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__5 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__5(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs___closed__5); +l_Lean_Parser_Tactic_eraseAuxDiscrs = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs); +res = l___regBuiltinParser_Lean_Parser_Tactic_eraseAuxDiscrs(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1); +l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__2 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__2); +l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__3 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__3(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__3); +l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter___closed__1); +res = l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_formatter(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1); +l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__2 = _init_l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__2(); +lean_mark_persistent(l_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__2); +l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer___closed__1); +res = l___regBuiltin_Lean_Parser_Tactic_eraseAuxDiscrs_parenthesizer(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Tactic_matchRhs___elambda__1___closed__1 = _init_l_Lean_Parser_Tactic_matchRhs___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Tactic_matchRhs___elambda__1___closed__1); l_Lean_Parser_Tactic_matchRhs___closed__1 = _init_l_Lean_Parser_Tactic_matchRhs___closed__1();