From 41cec8b6347b4fc84dcda51f203692c52d4eac45 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 3 May 2021 11:44:07 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Meta.lean | 43 +- stage0/src/Init/NotationExtra.lean | 3 +- stage0/src/Lean/Elab/Do.lean | 39 +- stage0/src/Lean/Elab/InfoTree.lean | 4 - stage0/src/Lean/Elab/MutualDef.lean | 12 +- stage0/src/Lean/Elab/Quotation.lean | 6 +- stage0/src/Lean/Elab/Quotation/Precheck.lean | 7 + stage0/src/Lean/Elab/Syntax.lean | 16 +- stage0/src/Lean/Elab/SyntheticMVars.lean | 11 +- stage0/src/Lean/Elab/Tactic/Basic.lean | 41 +- stage0/src/Lean/Elab/Tactic/Induction.lean | 2 +- stage0/src/Lean/Elab/Tactic/Rewrite.lean | 28 +- stage0/src/Lean/Meta/InferType.lean | 4 +- stage0/src/Lean/Meta/Tactic/Util.lean | 4 +- stage0/src/Lean/MetavarContext.lean | 18 +- stage0/src/Lean/Server/FileWorker.lean | 4 +- stage0/src/Lean/Server/InfoUtils.lean | 46 +- stage0/src/util/name.cpp | 25 +- stage0/stdlib/Init/Meta.c | 1229 ++++++---- stage0/stdlib/Init/NotationExtra.c | 1582 ++++++------ stage0/stdlib/Lean/Attributes.c | 4 +- stage0/stdlib/Lean/Class.c | 4 +- stage0/stdlib/Lean/Compiler/IR/Boxing.c | 8 +- stage0/stdlib/Lean/Compiler/IR/Format.c | 14 +- stage0/stdlib/Lean/Data/Format.c | 8 +- stage0/stdlib/Lean/Data/Position.c | 18 +- stage0/stdlib/Lean/DeclarationRange.c | 28 +- stage0/stdlib/Lean/Elab/App.c | 8 +- stage0/stdlib/Lean/Elab/Binders.c | 14 +- stage0/stdlib/Lean/Elab/DeclUtil.c | 4 +- stage0/stdlib/Lean/Elab/Declaration.c | 22 +- stage0/stdlib/Lean/Elab/DeclarationRange.c | 4 +- stage0/stdlib/Lean/Elab/DefView.c | 8 +- stage0/stdlib/Lean/Elab/Deriving/BEq.c | 16 +- stage0/stdlib/Lean/Elab/Deriving/DecEq.c | 12 +- stage0/stdlib/Lean/Elab/Deriving/FromToJson.c | 6 +- stage0/stdlib/Lean/Elab/Deriving/Hashable.c | 14 +- stage0/stdlib/Lean/Elab/Deriving/Inhabited.c | 32 +- stage0/stdlib/Lean/Elab/Deriving/Ord.c | 16 +- stage0/stdlib/Lean/Elab/Deriving/Repr.c | 14 +- stage0/stdlib/Lean/Elab/Deriving/Util.c | 18 +- stage0/stdlib/Lean/Elab/Do.c | 938 ++++--- stage0/stdlib/Lean/Elab/Inductive.c | 18 +- stage0/stdlib/Lean/Elab/InfoTree.c | 120 +- stage0/stdlib/Lean/Elab/Match.c | 10 +- stage0/stdlib/Lean/Elab/MutualDef.c | 1123 ++++----- stage0/stdlib/Lean/Elab/Quotation.c | 2173 +++++++++-------- stage0/stdlib/Lean/Elab/Quotation/Precheck.c | 136 +- stage0/stdlib/Lean/Elab/StructInst.c | 4 +- stage0/stdlib/Lean/Elab/Structure.c | 16 +- stage0/stdlib/Lean/Elab/Syntax.c | 829 ++++--- stage0/stdlib/Lean/Elab/SyntheticMVars.c | 1619 ++++++------ stage0/stdlib/Lean/Elab/Tactic/Basic.c | 1451 +++++++---- stage0/stdlib/Lean/Elab/Tactic/Induction.c | 165 +- stage0/stdlib/Lean/Elab/Tactic/Match.c | 4 +- stage0/stdlib/Lean/Elab/Tactic/Rewrite.c | 349 +-- stage0/stdlib/Lean/Elab/Term.c | 4 +- stage0/stdlib/Lean/Elab/Util.c | 4 +- stage0/stdlib/Lean/Expr.c | 8 +- stage0/stdlib/Lean/Hygiene.c | 8 +- stage0/stdlib/Lean/LocalContext.c | 4 +- stage0/stdlib/Lean/Meta/AbstractMVars.c | 8 +- .../stdlib/Lean/Meta/AbstractNestedProofs.c | 10 +- stage0/stdlib/Lean/Meta/AppBuilder.c | 4 +- stage0/stdlib/Lean/Meta/Closure.c | 532 +--- stage0/stdlib/Lean/Meta/Coe.c | 12 +- stage0/stdlib/Lean/Meta/ExprDefEq.c | 437 +--- stage0/stdlib/Lean/Meta/IndPredBelow.c | 12 +- stage0/stdlib/Lean/Meta/InferType.c | 17 +- stage0/stdlib/Lean/Meta/Instances.c | 4 +- .../stdlib/Lean/Meta/Match/CaseArraySizes.c | 4 +- stage0/stdlib/Lean/Meta/Match/CaseValues.c | 8 +- stage0/stdlib/Lean/Meta/Match/Match.c | 6 +- stage0/stdlib/Lean/Meta/Reduce.c | 12 +- stage0/stdlib/Lean/Meta/SizeOf.c | 12 +- stage0/stdlib/Lean/Meta/Tactic/Cases.c | 4 +- stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c | 32 +- stage0/stdlib/Lean/Meta/Tactic/Induction.c | 4 +- .../Lean/Meta/Tactic/Simp/CongrLemmas.c | 38 +- stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c | 12 +- stage0/stdlib/Lean/Meta/Tactic/Subst.c | 4 +- stage0/stdlib/Lean/Meta/Tactic/Util.c | 92 +- stage0/stdlib/Lean/Meta/Transform.c | 141 +- stage0/stdlib/Lean/MetavarContext.c | 843 +++++-- stage0/stdlib/Lean/MonadEnv.c | 4 +- stage0/stdlib/Lean/Parser/Attr.c | 22 +- stage0/stdlib/Lean/Parser/Command.c | 122 +- stage0/stdlib/Lean/Parser/Tactic.c | 12 +- stage0/stdlib/Lean/Parser/Term.c | 30 +- .../Lean/PrettyPrinter/Delaborator/Basic.c | 4 +- .../Lean/PrettyPrinter/Delaborator/Builtins.c | 4 +- stage0/stdlib/Lean/Server/FileWorker.c | 193 +- stage0/stdlib/Lean/Server/InfoUtils.c | 1775 ++++++++++++-- stage0/stdlib/Lean/Structure.c | 6 +- stage0/stdlib/Lean/Util/CollectLevelParams.c | 4 +- 95 files changed, 9614 insertions(+), 7189 deletions(-) diff --git a/stage0/src/Init/Meta.lean b/stage0/src/Init/Meta.lean index 938de8a907..28fee3ba78 100644 --- a/stage0/src/Init/Meta.lean +++ b/stage0/src/Init/Meta.lean @@ -89,25 +89,39 @@ def capitalize : Name → Name | Name.str p s _ => Name.mkStr p s.capitalize | n => n -def appendAfter : Name → String → Name - | str p s _, suffix => Name.mkStr p (s ++ suffix) - | n, suffix => Name.mkStr n suffix - -def appendIndexAfter : Name → Nat → Name - | str p s _, idx => Name.mkStr p (s ++ "_" ++ toString idx) - | n, idx => Name.mkStr n ("_" ++ toString idx) - -def appendBefore : Name → String → Name - | anonymous, pre => Name.mkStr anonymous pre - | str p s _, pre => Name.mkStr p (pre ++ s) - | num p n _, pre => Name.mkNum (Name.mkStr p pre) n - def replacePrefix : Name → Name → Name → Name | anonymous, anonymous, newP => newP | anonymous, _, _ => anonymous | n@(str p s _), queryP, newP => if n == queryP then newP else Name.mkStr (p.replacePrefix queryP newP) s | n@(num p s _), queryP, newP => if n == queryP then newP else Name.mkNum (p.replacePrefix queryP newP) s +/-- Remove macros scopes, apply `f`, and put them back -/ +@[inline] def modifyBase (n : Name) (f : Name → Name) : Name := + if n.hasMacroScopes then + let view := extractMacroScopes n + { view with name := f view.name }.review + else + f n + +@[export lean_name_append_after] +def appendAfter (n : Name) (suffix : String) : Name := + n.modifyBase fun + | str p s _ => Name.mkStr p (s ++ suffix) + | n => Name.mkStr n suffix + +@[export lean_name_append_index_after] +def appendIndexAfter (n : Name) (idx : Nat) : Name := + n.modifyBase fun + | str p s _ => Name.mkStr p (s ++ "_" ++ toString idx) + | n => Name.mkStr n ("_" ++ toString idx) + +@[export lean_name_append_before] +def appendBefore (n : Name) (pre : String) : Name := + n.modifyBase fun + | anonymous => Name.mkStr anonymous pre + | str p s _ => Name.mkStr p (pre ++ s) + | num p n _ => Name.mkNum (Name.mkStr p pre) n + end Name structure NameGenerator where @@ -235,6 +249,9 @@ partial def getHead? : Syntax → Option Syntax | node _ args => args.findSome? getHead? | _ => none +def copyHeadTailInfoFrom (target source : Syntax) : Syntax := + target.setHeadInfo source.getHeadInfo |>.setTailInfo source.getTailInfo + end Syntax /-- Use the head atom/identifier of the current `ref` as the `ref` -/ diff --git a/stage0/src/Init/NotationExtra.lean b/stage0/src/Init/NotationExtra.lean index 9063234d89..773dcba8eb 100644 --- a/stage0/src/Init/NotationExtra.lean +++ b/stage0/src/Init/NotationExtra.lean @@ -171,8 +171,7 @@ macro_rules for parent in parents do auxBinders := auxBinders.push (← `(bracketedBinder| [ $parent:term ])) ctorArgs := ctorArgs.push inferInst - let view := Lean.extractMacroScopes name.getId - let ctor := mkIdentFrom name { view with name := view.name ++ `mk }.review + let ctor := mkIdentFrom name <| name.getId.modifyBase (. ++ `mk) `(class $name:ident $params* extends $[$parents:term],* instance $auxBinders:explicitBinder* : @ $name:ident $typeArgs* := @ $ctor:ident $ctorArgs*) diff --git a/stage0/src/Lean/Elab/Do.lean b/stage0/src/Lean/Elab/Do.lean index ea646b6181..54349a16f1 100644 --- a/stage0/src/Lean/Elab/Do.lean +++ b/stage0/src/Lean/Elab/Do.lean @@ -93,21 +93,36 @@ private def mkIdBindFor (type : Expr) : TermElabM ExtractMonadResult := do let idBindVal := Lean.mkConst `Id.hasBind [u] pure { m := id, hasBindInst := idBindVal, α := type, expectedType := mkApp id type } -private def extractBind (expectedType? : Option Expr) : TermElabM ExtractMonadResult := do +private partial def extractBind (expectedType? : Option Expr) : TermElabM ExtractMonadResult := do match expectedType? with | none => throwError "invalid 'do' notation, expected type is not available" | some expectedType => - let type ← withReducible $ whnf expectedType - if type.getAppFn.isMVar then throwError "invalid 'do' notation, expected type is not available" - match type with - | Expr.app m α _ => - try - let bindInstType ← mkAppM `Bind #[m] - let bindInstVal ← synthesizeInst bindInstType - pure { m := m, hasBindInst := bindInstVal, α := α, expectedType := expectedType } - catch _ => - mkIdBindFor type - | _ => mkIdBindFor type + let extractStep? (type : Expr) : MetaM (Option ExtractMonadResult) := do + match type with + | Expr.app m α _ => + try + let bindInstType ← mkAppM `Bind #[m] + let bindInstVal ← Meta.synthInstance bindInstType + return some { m := m, hasBindInst := bindInstVal, α := α, expectedType := expectedType } + catch _ => + return none + | _ => + return none + let rec extract? (type : Expr) : MetaM (Option ExtractMonadResult) := do + match (← extractStep? type) with + | some r => return r + | none => + let typeNew ← whnfCore type + if typeNew != type then + extract? typeNew + else + if typeNew.getAppFn.isMVar then throwError "invalid 'do' notation, expected type is not available" + match (← unfoldDefinition? typeNew) with + | some typeNew => extract? typeNew + | none => return none + match (← extract? expectedType) with + | some r => return r + | none => mkIdBindFor expectedType namespace Do diff --git a/stage0/src/Lean/Elab/InfoTree.lean b/stage0/src/Lean/Elab/InfoTree.lean index 02107ab1cd..6428fc0fd4 100644 --- a/stage0/src/Lean/Elab/InfoTree.lean +++ b/stage0/src/Lean/Elab/InfoTree.lean @@ -268,10 +268,6 @@ def resolveGlobalConstWithInfos [MonadResolveName m] [MonadEnv m] [MonadError m] pushInfoLeaf <| Info.ofTermInfo { lctx := LocalContext.empty, expr := (← mkConstWithLevelParams n), stx := stx } return ns -def mkInfoNode (info : Info) : m Unit := do - if (← getInfoState).enabled then - modifyInfoTrees fun ts => PersistentArray.empty.push <| InfoTree.node info ts - @[inline] def withInfoContext' [MonadFinally m] (x : m α) (mkInfo : α → m (Sum Info MVarId)) : m α := do if (← getInfoState).enabled then let treesSaved ← getResetInfoTrees diff --git a/stage0/src/Lean/Elab/MutualDef.lean b/stage0/src/Lean/Elab/MutualDef.lean index c7ecaa2118..43f9146bed 100644 --- a/stage0/src/Lean/Elab/MutualDef.lean +++ b/stage0/src/Lean/Elab/MutualDef.lean @@ -612,7 +612,12 @@ private def levelMVarToParamHeaders (views : Array DefView) (headers : Array Def let newHeaders ← process.run' 1 newHeaders.mapM fun header => return { header with type := (← instantiateMVars header.type) } -def elabMutualDef (vars : Array Expr) (views : Array DefView) : TermElabM Unit := do +def elabMutualDef (vars : Array Expr) (views : Array DefView) : TermElabM Unit := + if isExample views then + withoutModifyingEnv go + else + go +where go := do let scopeLevelNames ← getLevelNames let headers ← elabHeaders views let headers ← levelMVarToParamHeaders views headers @@ -630,10 +635,7 @@ def elabMutualDef (vars : Array Expr) (views : Array DefView) : TermElabM Unit : let preDefs ← levelMVarToParamPreDecls preDefs let preDefs ← instantiateMVarsAtPreDecls preDefs let preDefs ← fixLevelParams preDefs scopeLevelNames allUserLevelNames - if isExample views then - withoutModifyingEnv <| addPreDefinitions preDefs - else - addPreDefinitions preDefs + addPreDefinitions preDefs end Term namespace Command diff --git a/stage0/src/Lean/Elab/Quotation.lean b/stage0/src/Lean/Elab/Quotation.lean index 0c17d5221b..4076041fc9 100644 --- a/stage0/src/Lean/Elab/Quotation.lean +++ b/stage0/src/Lean/Elab/Quotation.lean @@ -383,7 +383,7 @@ private partial def getHeadInfo (alt : Alt) : TermElabM HeadInfo := { info with onMatch := fun taken => match info.onMatch taken with | covered f exh => covered (fun alt => f alt >>= adaptRhs (`(let $id := discr; $(·)))) exh | r => r } - | _ => throwErrorAt pat "match_syntax: unexpected pattern kind {pat}" + | _ => throwErrorAt pat "match (syntax) : unexpected pattern kind {pat}" -- Bind right-hand side to new `let_delayed` decl in order to prevent code duplication private def deduplicate (floatedLetDecls : Array Syntax) : Alt → TermElabM (Array Syntax × Alt) @@ -406,7 +406,9 @@ private partial def compileStxMatch (discrs : List Syntax) (alts : List Alt) : T trace[Elab.match_syntax] "match {discrs} with {alts}" match discrs, alts with | [], ([], rhs)::_ => pure rhs -- nothing left to match - | _, [] => throwError "non-exhaustive 'match_syntax'" + | _, [] => + logError "non-exhaustive 'match' (syntax)" + pure Syntax.missing | discr::discrs, alt::alts => do let info ← getHeadInfo alt let pat := alt.1.head! diff --git a/stage0/src/Lean/Elab/Quotation/Precheck.lean b/stage0/src/Lean/Elab/Quotation/Precheck.lean index e6efc96063..666f983c06 100644 --- a/stage0/src/Lean/Elab/Quotation/Precheck.lean +++ b/stage0/src/Lean/Elab/Quotation/Precheck.lean @@ -31,6 +31,11 @@ register_builtin_option quotPrecheck : Bool := { Note that type-sensitive syntax (\"elaborators\") needs special support for this kind of check, so it might need to be turned off when using such syntax." } +register_builtin_option quotPrecheck.allowSectionVars : Bool := { + defValue := false + descr := "Allow occurrences of section variables in checked quotations, it is useful when declaring local notation." +} + unsafe def mkPrecheckAttribute : IO (KeyedDeclsAttribute Precheck) := KeyedDeclsAttribute.init { builtinName := `builtinQuotPrecheck, @@ -80,6 +85,8 @@ def runPrecheck (stx : Syntax) : TermElabM Unit := do return if (← read).quotLCtx.contains val then return + if quotPrecheck.allowSectionVars.get (← getOptions) && (← readThe Term.Context).sectionVars.contains val then + return throwError "unknown identifier '{val}'" | _ => throwUnsupportedSyntax diff --git a/stage0/src/Lean/Elab/Syntax.lean b/stage0/src/Lean/Elab/Syntax.lean index c1005daff6..72f1b41ada 100644 --- a/stage0/src/Lean/Elab/Syntax.lean +++ b/stage0/src/Lean/Elab/Syntax.lean @@ -381,11 +381,11 @@ def elabNoKindMacroRulesAux (attrKind : Syntax) (alts : Array Syntax) : CommandE @[builtinCommandElab «macro_rules»] def elabMacroRules : CommandElab := adaptExpander fun stx => match stx with - | `($attrKind:attrKind macro_rules $alts:matchAlt*) => + | `($attrKind:attrKind macro_rules $alts:matchAlt*) => elabNoKindMacroRulesAux attrKind alts - | `($attrKind:attrKind macro_rules (kind := $kind) | $x:ident => $rhs) => + | `($attrKind:attrKind macro_rules (kind := $kind) | $x:ident => $rhs) => `(@[$attrKind:attrKind macro $kind] def myMacro : Macro := fun $x:ident => $rhs) - | `($attrKind:attrKind macro_rules (kind := $kind) $alts:matchAlt*) => + | `($attrKind:attrKind macro_rules (kind := $kind) $alts:matchAlt*) => do elabMacroRulesAux attrKind ((← getCurrNamespace) ++ kind.getId) alts | _ => throwUnsupportedSyntax @@ -470,6 +470,11 @@ def mkSimpleDelab (attrKind : Syntax) (vars : Array Syntax) (pat qrhs : Syntax) `(@[$attrKind:attrKind appUnexpander $(mkIdent c):ident] def unexpand : Lean.PrettyPrinter.Unexpander := fun _ => `($pat)) | _ => failure +private def isLocalAttrKind (attrKind : Syntax) : Bool := + match attrKind with + | `(Parser.Term.attrKind| local) => true + | _ => false + private def expandNotationAux (ref : Syntax) (currNamespace : Name) (attrKind : Syntax) (prec? : Option Syntax) (name? : Option Syntax) (prio? : Option Syntax) (items : Array Syntax) (rhs : Syntax) : MacroM Syntax := do let prio ← evalOptPrio prio? @@ -490,7 +495,10 @@ private def expandNotationAux (ref : Syntax) let fullName := currNamespace ++ name let pat := Syntax.node fullName patArgs let stxDecl ← `($attrKind:attrKind syntax $[: $prec?]? (name := $(mkIdent name)) (priority := $(quote prio):numLit) $[$syntaxParts]* : $cat) - let macroDecl ← `(macro_rules | `($pat) => ``($qrhs)) + let mut macroDecl ← `(macro_rules | `($pat) => ``($qrhs)) + if isLocalAttrKind attrKind then + -- Make sure the quotation pre-checker takes section variables into account for local notation. + macroDecl ← `(section set_option quotPrecheck.allowSectionVars true $macroDecl end) match (← mkSimpleDelab attrKind vars pat qrhs |>.run) with | some delabDecl => mkNullNode #[stxDecl, macroDecl, delabDecl] | none => mkNullNode #[stxDecl, macroDecl] diff --git a/stage0/src/Lean/Elab/SyntheticMVars.lean b/stage0/src/Lean/Elab/SyntheticMVars.lean index 6ae22292a7..7c07cff814 100644 --- a/stage0/src/Lean/Elab/SyntheticMVars.lean +++ b/stage0/src/Lean/Elab/SyntheticMVars.lean @@ -8,7 +8,7 @@ import Lean.Elab.Term import Lean.Elab.Tactic.Basic namespace Lean.Elab.Term -open Tactic (TacticM evalTactic getUnsolvedGoals) +open Tactic (TacticM evalTactic getUnsolvedGoals withTacticInfoContext) open Meta /-- Auxiliary function used to implement `synthesizeSyntheticMVars`. -/ @@ -205,11 +205,14 @@ mutual modify fun s => { s with syntheticMVars := savedSyntheticMVars } partial def runTactic (mvarId : MVarId) (tacticCode : Syntax) : TermElabM Unit := do - /- Recall, `tacticCode` is the whole `by ...` expression. - We store the `by` because in the future we want to save the initial state information at the `by` position. -/ + /- Recall, `tacticCode` is the whole `by ...` expression. -/ + let byTk := tacticCode[0] let code := tacticCode[1] modifyThe Meta.State fun s => { s with mctx := s.mctx.instantiateMVarDeclMVars mvarId } - let remainingGoals ← withInfoHole mvarId do liftTacticElabM mvarId do evalTactic code; getUnsolvedGoals + let remainingGoals ← withInfoHole mvarId <| + liftTacticElabM mvarId do + withTacticInfoContext tacticCode (evalTactic code) + getUnsolvedGoals unless remainingGoals.isEmpty do reportUnsolvedGoals remainingGoals /-- Try to synthesize the given pending synthetic metavariable. -/ diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index c12a9661d6..cb1d52cee7 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -95,6 +95,20 @@ private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tact def getGoals : TacticM (List MVarId) := return (← get).goals +def mkTacticInfo (mctxBefore : MetavarContext) (goalsBefore : List MVarId) (stx : Syntax) : TacticM Info := + return Info.ofTacticInfo { + mctxBefore := mctxBefore + goalsBefore := goalsBefore + stx := stx + mctxAfter := (← getMCtx) + goalsAfter := (← getGoals) + } + +@[inline] def withTacticInfoContext (stx : Syntax) (x : TacticM α) : TacticM α := do + let mctxBefore ← getMCtx + let goalsBefore ← getGoals + withInfoContext x (mkTacticInfo mctxBefore goalsBefore stx) + mutual partial def expandTacticMacroFns (stx : Syntax) (macros : List Macro) : TacticM Unit := @@ -132,19 +146,8 @@ mutual | none => expandTacticMacro stx | _ => throwError "unexpected command" - partial def mkTacticInfo (mctxBefore : MetavarContext) (goalsBefore : List MVarId) (stx : Syntax) : TacticM Info := - return Info.ofTacticInfo { - mctxBefore := mctxBefore - goalsBefore := goalsBefore - stx := stx - mctxAfter := (← getMCtx) - goalsAfter := (← getGoals) - } - - partial def evalTactic (stx : Syntax) : TacticM Unit := do - let mctxBefore ← getMCtx - let goalsBefore ← getGoals - withInfoContext (evalTacticAux stx) (mkTacticInfo mctxBefore goalsBefore stx) + partial def evalTactic (stx : Syntax) : TacticM Unit := + withTacticInfoContext stx (evalTacticAux stx) end @@ -155,9 +158,7 @@ end -/ def saveTacticInfoForToken (stx : Syntax) : TacticM Unit := do unless stx.getPos?.isNone do - let mctxBefore ← getMCtx - let goalsBefore ← getGoals - withInfoContext (pure ()) (mkTacticInfo mctxBefore goalsBefore stx) + withTacticInfoContext stx (pure ()) /- Elaborate `x` with `stx` on the macro stack -/ @[inline] @@ -288,10 +289,10 @@ def admitGoal (mvarId : MVarId) : TacticM Unit := do assignExprMVar mvarId (← mkSorry mvarType (synthetic := true)) /- Close the main goal using the given tactic. If it fails, log the error and `admit` -/ -def closeUsingOrAdmit (tac : Syntax) : TacticM Unit := do +def closeUsingOrAdmit (tac : TacticM Unit) : TacticM Unit := do let mvarId :: mvarIds ← getUnsolvedGoals | throwNoGoalsToBeSolved try - focusAndDone (evalTactic tac) + focusAndDone tac catch ex => logException ex admitGoal mvarId @@ -541,7 +542,7 @@ def withCaseRef [Monad m] [MonadRef m] (arrow body : Syntax) (x : m α) : m α : withRef (mkNullNode #[arrow, body]) x @[builtinTactic «case»] def evalCase : Tactic - | `(tactic| case $tag $hs* =>%$arr $tac:tacticSeq) => do + | stx@`(tactic| case $tag $hs* =>%$arr $tac:tacticSeq) => do let tag := tag.getId let gs ← getUnsolvedGoals let some g ← findTag? gs tag | throwError "tag not found" @@ -575,7 +576,7 @@ def withCaseRef [Monad m] [MonadRef m] (arrow body : Syntax) (x : m α) : m α : setMVarTag g Name.anonymous try withCaseRef arr tac do - closeUsingOrAdmit tac + closeUsingOrAdmit (withTacticInfoContext stx (evalTactic tac)) finally setMVarTag g savedTag done diff --git a/stage0/src/Lean/Elab/Tactic/Induction.lean b/stage0/src/Lean/Elab/Tactic/Induction.lean index 9448b93e8f..5843dd1e93 100644 --- a/stage0/src/Lean/Elab/Tactic/Induction.lean +++ b/stage0/src/Lean/Elab/Tactic/Induction.lean @@ -54,7 +54,7 @@ def evalAlt (mvarId : MVarId) (alt : Syntax) (remainingGoals : Array MVarId) : T return remainingGoals ++ gs' else setGoals [mvarId] - closeUsingOrAdmit rhs + closeUsingOrAdmit (withTacticInfoContext alt (evalTactic rhs)) return remainingGoals /- diff --git a/stage0/src/Lean/Elab/Tactic/Rewrite.lean b/stage0/src/Lean/Elab/Tactic/Rewrite.lean index 70a7061cb1..6e0b185240 100644 --- a/stage0/src/Lean/Elab/Tactic/Rewrite.lean +++ b/stage0/src/Lean/Elab/Tactic/Rewrite.lean @@ -11,23 +11,35 @@ import Lean.Elab.Tactic.Location namespace Lean.Elab.Tactic open Meta -private def expand (kind : SyntaxNodeKind) (token : String) (stx : Syntax) : Syntax := do - let rwRules := stx[1][1].getSepArgs +private def expand (kind : SyntaxNodeKind) (stx : Syntax) : Syntax := do + let token := stx[0] + let lbrak := stx[1][0] + let rwRules := stx[1][1].getArgs + let rbrak := stx[1][2] let loc := stx[2] let mut newTacs := #[] - for i in [:rwRules.size] do - let rwRule := rwRules[i] + let numRules := (rwRules.size + 1) / 2 + for i in [:numRules] do + let rwRule := rwRules[i * 2] + let sep := rwRules.getD (i * 2 + 1) Syntax.missing -- We use `stx` as "position provider" for the first rule -- Without this change, we don't get correct information when we hover over `rw`/`rewrite`/`erewrite` with multiple rewrites - let ref ← if i == 0 then stx else pure rwRule - newTacs := newTacs.push <| Syntax.node kind #[mkAtomFrom ref token, rwRule, loc] + let ref := + -- use whole original tactic as "position provider" for last rule so + -- we show the final state outside the brackets + if i == numRules - 1 then stx + -- other rules: include separator + else mkNullNode #[rwRule, sep] + let newTac := Syntax.node kind #[token, rwRule, loc] + let newTac := newTac.copyHeadTailInfoFrom ref + newTacs := newTacs.push newTac return mkNullNode newTacs @[builtinMacro Lean.Parser.Tactic.rewriteSeq] def expandRewriteTactic : Macro := fun stx => - return expand ``Parser.Tactic.rewrite "rewrite " stx + return expand ``Parser.Tactic.rewrite stx @[builtinMacro Lean.Parser.Tactic.erewriteSeq] def expandERewriteTactic : Macro := fun stx => - return expand ``Parser.Tactic.erewrite "erewrite " stx + return expand ``Parser.Tactic.erewrite stx def rewriteTarget (stx : Syntax) (symm : Bool) (mode : TransparencyMode) : TacticM Unit := do Term.withSynthesize <| withMainContext do diff --git a/stage0/src/Lean/Meta/InferType.lean b/stage0/src/Lean/Meta/InferType.lean index 6f8235b51f..8377d68d74 100644 --- a/stage0/src/Lean/Meta/InferType.lean +++ b/stage0/src/Lean/Meta/InferType.lean @@ -29,11 +29,11 @@ partial def Expr.instantiateBetaRevRange (e : Expr) (start : Nat) (stop : Nat) ( else e where - visit (e : Expr) (offset : Nat) : MonadStateCacheT (Expr × Nat) Expr Id Expr := + visit (e : Expr) (offset : Nat) : MonadStateCacheT (ExprStructEq × Nat) Expr Id Expr := if offset >= e.looseBVarRange then -- `e` doesn't have free variables return e - else checkCache (e, offset) fun _ => do + else checkCache ({ val := e : ExprStructEq }, offset) fun _ => do match e with | Expr.forallE _ d b _ => return e.updateForallE! (← visit d offset) (← visit b (offset+1)) | Expr.lam _ d b _ => return e.updateLambdaE! (← visit d offset) (← visit b (offset+1)) diff --git a/stage0/src/Lean/Meta/Tactic/Util.lean b/stage0/src/Lean/Meta/Tactic/Util.lean index c778c06ac7..ceb5b21513 100644 --- a/stage0/src/Lean/Meta/Tactic/Util.lean +++ b/stage0/src/Lean/Meta/Tactic/Util.lean @@ -20,9 +20,7 @@ def setMVarTag (mvarId : MVarId) (tag : Name) : MetaM Unit := do modify fun s => { s with mctx := s.mctx.setMVarUserName mvarId tag } def appendTag (tag : Name) (suffix : Name) : Name := - let view := extractMacroScopes tag - let view := { view with name := view.name ++ suffix.eraseMacroScopes } - view.review + tag.modifyBase (. ++ suffix.eraseMacroScopes) def appendTagSuffix (mvarId : MVarId) (suffix : Name) : MetaM Unit := do let tag ← getMVarTag mvarId diff --git a/stage0/src/Lean/MetavarContext.lean b/stage0/src/Lean/MetavarContext.lean index 6ea0508d6f..eab0220b22 100644 --- a/stage0/src/Lean/MetavarContext.lean +++ b/stage0/src/Lean/MetavarContext.lean @@ -519,10 +519,10 @@ partial def instantiateLevelMVars [Monad m] [MonadMCtx m] : Level → m Level | lvl => pure lvl /-- instantiateExprMVars main function -/ -partial def instantiateExprMVars [Monad m] [MonadMCtx m] [STWorld ω m] [MonadLiftT (ST ω) m] (e : Expr) : MonadCacheT Expr Expr m Expr := +partial def instantiateExprMVars [Monad m] [MonadMCtx m] [STWorld ω m] [MonadLiftT (ST ω) m] (e : Expr) : MonadCacheT ExprStructEq Expr m Expr := if !e.hasMVar then pure e - else checkCache e fun _ => do match e with + else checkCache { val := e : ExprStructEq } fun _ => do match e with | Expr.proj _ _ s _ => return e.updateProj! (← instantiateExprMVars s) | Expr.forallE _ d b _ => return e.updateForallE! (← instantiateExprMVars d) (← instantiateExprMVars b) | Expr.lam _ d b _ => return e.updateLambdaE! (← instantiateExprMVars d) (← instantiateExprMVars b) @@ -531,10 +531,10 @@ partial def instantiateExprMVars [Monad m] [MonadMCtx m] [STWorld ω m] [MonadLi | Expr.sort lvl _ => return e.updateSort! (← instantiateLevelMVars lvl) | Expr.mdata _ b _ => return e.updateMData! (← instantiateExprMVars b) | Expr.app .. => e.withApp fun f args => do - let instArgs (f : Expr) : MonadCacheT Expr Expr m Expr := do + let instArgs (f : Expr) : MonadCacheT ExprStructEq Expr m Expr := do let args ← args.mapM instantiateExprMVars pure (mkAppN f args) - let instApp : MonadCacheT Expr Expr m Expr := do + let instApp : MonadCacheT ExprStructEq Expr m Expr := do let wasMVar := f.isMVar let f ← instantiateExprMVars f if wasMVar && f.isLambda then @@ -581,7 +581,7 @@ partial def instantiateExprMVars [Monad m] [MonadMCtx m] [STWorld ω m] [MonadLi let result := mkAppRange result fvars.size args.size args pure result | _ => instApp - | e@(Expr.mvar mvarId _) => checkCache e fun _ => do + | e@(Expr.mvar mvarId _) => checkCache { val := e : ExprStructEq } fun _ => do let mctx ← getMCtx match mctx.getExprAssignment? mvarId with | some newE => do @@ -599,7 +599,7 @@ def instantiateMVars (mctx : MetavarContext) (e : Expr) : Expr × MetavarContext if !e.hasMVar then (e, mctx) else - let instantiate {ω} (e : Expr) : (MonadCacheT Expr Expr $ StateRefT MetavarContext $ ST ω) Expr := + let instantiate {ω} (e : Expr) : (MonadCacheT ExprStructEq Expr $ StateRefT MetavarContext $ ST ω) Expr := instantiateExprMVars e runST fun _ => instantiate e |>.run |>.run mctx @@ -1036,11 +1036,11 @@ structure State where mctx : MetavarContext paramNames : Array Name := #[] nextParamIdx : Nat - cache : HashMap Expr Expr := {} + cache : HashMap ExprStructEq Expr := {} abbrev M := ReaderT Context $ StateM State -instance : MonadCache Expr Expr M where +instance : MonadCache ExprStructEq Expr M where findCached? e := return (← get).cache.find? e cache e v := modify fun s => { s with cache := s.cache.insert e v } @@ -1076,7 +1076,7 @@ partial def main (e : Expr) : M Expr := if !e.hasMVar then return e else - checkCache e fun _ => do + checkCache { val := e : ExprStructEq } fun _ => do match e with | Expr.proj _ _ s _ => return e.updateProj! (← main s) | Expr.forallE _ d b _ => return e.updateForallE! (← main d) (← main b) diff --git a/stage0/src/Lean/Server/FileWorker.lean b/stage0/src/Lean/Server/FileWorker.lean index 6b01e900c7..a36f15f9fb 100644 --- a/stage0/src/Lean/Server/FileWorker.lean +++ b/stage0/src/Lean/Server/FileWorker.lean @@ -609,10 +609,10 @@ section RequestHandling if let (some pos, some tailPos) := (stx.getPos?, stx.getTailPos?) then for t in (← read).infoState.trees do for ti in t.deepestNodes (fun - | _, i@(Elab.Info.ofTermInfo ti) => match i.pos? with + | _, i@(Elab.Info.ofTermInfo ti), _ => match i.pos? with | some ipos => if pos <= ipos && ipos < tailPos then some ti else none | _ => none - | _, _ => none) do + | _, _, _ => none) do match ti.expr with | Expr.fvar .. => addToken ti.stx SemanticTokenType.variable | _ => if ti.stx.getPos?.get! > pos then addToken ti.stx SemanticTokenType.property diff --git a/stage0/src/Lean/Server/InfoUtils.lean b/stage0/src/Lean/Server/InfoUtils.lean index 0340ab40f3..986ae2ba39 100644 --- a/stage0/src/Lean/Server/InfoUtils.lean +++ b/stage0/src/Lean/Server/InfoUtils.lean @@ -13,17 +13,16 @@ namespace Lean.Elab /-- For every branch, find the deepest node in that branch matching `p` with a surrounding context (the innermost one) and return all of them. -/ -partial def InfoTree.deepestNodes (p : ContextInfo → Info → Option α) : InfoTree → List α := +partial def InfoTree.deepestNodes (p : ContextInfo → Info → Std.PersistentArray InfoTree → Option α) : InfoTree → List α := go none where go ctx? | context ctx t => go ctx t | n@(node i cs) => - let cs := cs.toList - let ccs := cs.map (go <| i.updateContext? ctx?) - let cs := ccs.join - if !cs.isEmpty then cs + let ccs := cs.toList.map (go <| i.updateContext? ctx?) + let cs' := ccs.join + if !cs'.isEmpty then cs' else match ctx? with - | some ctx => match p ctx i with + | some ctx => match p ctx i cs with | some a => [a] | _ => [] | _ => [] @@ -86,7 +85,7 @@ def Info.occursBefore? (i : Info) (hoverPos : String.Pos) : Option Nat := Option return hoverPos - tailPos def InfoTree.smallestInfo? (p : Info → Bool) (t : InfoTree) : Option (ContextInfo × Info) := - let ts := t.deepestNodes fun ctx i => if p i then some (ctx, i) else none + let ts := t.deepestNodes fun ctx i _ => if p i then some (ctx, i) else none let infos := ts.map fun (ci, i) => let diff := i.tailPos?.get! - i.pos?.get! @@ -160,18 +159,41 @@ structure GoalsAtResult where - None of the `children` can provide satisfy the condition above. That is, for composite tactics such as `induction`, we always give preference for information stored in nested (children) tactics. - Moreover, we instruct the LSP server to use the state after the tactic execution if hoverPos >= endPos + Moreover, we instruct the LSP server to use the state after the tactic execution if hoverPos >= endPos *and* + there is no nested tactic info (i.e. it is a leaf tactic; tactic combinators should decide for themselves + where to show intermediate/final states) -/ partial def InfoTree.goalsAt? (t : InfoTree) (hoverPos : String.Pos) : List GoalsAtResult := do - t.deepestNodes fun - | ctx, i@(Info.ofTacticInfo ti) => OptionM.run do + let rs := t.deepestNodes fun + | ctx, i@(Info.ofTacticInfo ti), cs => OptionM.run do let (some pos, some tailPos) ← pure (i.pos?, i.tailPos?) | failure let trailSize := i.stx.getTrailingSize -- NOTE: include position just after tactic, i.e. when the cursor is still adjacent -- (even when `trailSize == 0`, which is the case at EOF) guard <| pos ≤ hoverPos ∧ hoverPos < tailPos + Nat.max 1 trailSize - return { ctxInfo := ctx, tacticInfo := ti, useAfter := hoverPos > pos } - | _, _ => none + return { ctxInfo := ctx, tacticInfo := ti, useAfter := + hoverPos > pos && !cs.any (hasNestedTactic pos tailPos) } + | _, _, _ => none + if let r::_ := rs then + -- The above lenient heuristics return both goals when the cursor is placed adjacent + -- to two infos, such as in `skip;` (recall that `;` also has a tactic info). + -- Select goals with the minimum position only to resolve this. + -- NOTE: We can assume that the list is sorted by position + return rs.filter (·.tacticInfo.stx.getPos? == r.tacticInfo.stx.getPos?) + return rs +where + hasNestedTactic (pos tailPos) : InfoTree → Bool + | InfoTree.node (Info.ofTacticInfo ti) cs => do + if let `(by $t) := ti.stx then + return false -- ignore term-nested proofs such as in `simp [show p by ...]` + if let (some pos', some tailPos') := (ti.stx.getPos?, ti.stx.getTailPos?) then + -- ignore nested infos of the same tactic, e.g. from expansion + if (pos', tailPos') != (pos, tailPos) then + return true + cs.any (hasNestedTactic pos tailPos) + | InfoTree.node (Info.ofMacroExpansionInfo _) cs => + cs.any (hasNestedTactic pos tailPos) + | _ => false end Lean.Elab diff --git a/stage0/src/util/name.cpp b/stage0/src/util/name.cpp index 918f9dbb37..f68a03f2b6 100644 --- a/stage0/src/util/name.cpp +++ b/stage0/src/util/name.cpp @@ -354,24 +354,16 @@ name operator+(name const & n1, name const & n2) { } } +extern "C" obj_res lean_name_append_after(obj_arg n, obj_arg s); +extern "C" obj_res lean_name_append_before(obj_arg n, obj_arg s); +extern "C" obj_res lean_name_append_index_after(obj_arg n, obj_arg i); + name name::append_before(char const * p) const { - if (is_anonymous()) { - return name(p); - } else if (is_string()) { - return name(get_prefix(), string_ref(std::string(p) + get_string().to_std_string())); - } else { - return name(name(get_prefix(), p), get_numeral()); - } + return name(lean_name_append_before(to_obj_arg(), lean_mk_string(p))); } name name::append_after(char const * s) const { - if (is_anonymous()) { - return name(s); - } else if (is_string()) { - return name(get_prefix(), string_ref(get_string().to_std_string() + std::string(s))); - } else { - return name(*this, s); - } + return name(lean_name_append_after(to_obj_arg(), lean_mk_string(s))); } name name::get_subscript_base() const { @@ -383,10 +375,7 @@ name name::get_subscript_base() const { } name name::append_after(unsigned i) const { - name b = get_subscript_base(); - std::ostringstream s; - s << b.get_string().to_std_string() << "_" << i; - return name(b.get_prefix(), string_ref(s.str())); + return name(lean_name_append_index_after(to_obj_arg(), lean_unsigned_to_nat(i))); } optional> name::is_subscripted() const { diff --git a/stage0/stdlib/Init/Meta.c b/stage0/stdlib/Init/Meta.c index e61379a143..a5168be32e 100644 --- a/stage0/stdlib/Init/Meta.c +++ b/stage0/stdlib/Init/Meta.c @@ -23,12 +23,12 @@ lean_object* l_Lean_Name_toString___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__13; lean_object* l_Lean_Syntax_isIdOrAtom_x3f___boxed(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_mkIdentFromRef(lean_object*); lean_object* l_Lean_Syntax_setInfo_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); extern lean_object* l_Lean_fieldIdxKind; lean_object* l_Lean_Syntax_isNatLit_x3f___boxed(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1(lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteName___closed__5; lean_object* l___private_Init_Meta_0__Lean_Syntax_updateFirst___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -37,16 +37,18 @@ lean_object* l_Lean_instQuoteBool(uint8_t); extern lean_object* l_myMacro____x40_Init_Notation___hyg_2526____closed__4; lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeAfterExp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__2; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1(lean_object*); extern lean_object* l_instReprOption___rarg___closed__1; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Syntax_getTrailingSize(lean_object*); lean_object* l_Lean_Syntax_expandInterpolatedStr___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__23; lean_object* l___private_Init_Meta_0__Lean_Syntax_updateFirst___at_Lean_Syntax_setHeadInfoAux___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Syntax_getSepArgs___boxed(lean_object*); lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__23; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__21; lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexDigit(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -55,7 +57,6 @@ uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); uint32_t l_Lean_idBeginEscape; lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar_match__1(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__21; extern lean_object* l_Lean_Parser_Syntax_addPrio___closed__4; lean_object* l_Array_mapMUnsafe_map___at_Lean_expandMacros___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_withHeadRefOnly_match__1(lean_object*); @@ -68,7 +69,6 @@ lean_object* l_Array_filterSepElemsM___rarg(lean_object*, lean_object*, lean_obj lean_object* l_Lean_instQuoteSubstring___closed__3; lean_object* l_Lean_SourceInfo_fromRef(lean_object*); lean_object* l_Lean_Name_capitalize(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__17; lean_object* l_Lean_Syntax_isAtom___boxed(lean_object*); lean_object* l_Lean_termEval__prec_____closed__6; lean_object* l_Lean_version_specialDesc___closed__1; @@ -76,27 +76,26 @@ lean_object* l___private_Init_Meta_0__Lean_Syntax_updateFirst(lean_object*); lean_object* l_Lean_monadNameGeneratorLift(lean_object*, lean_object*); lean_object* l_Lean_withRef___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapSepElemsM___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__8; lean_object* l_Lean_instQuoteBool_match__1___rarg(uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__8; lean_object* l___private_Init_Meta_0__Lean_quoteName___closed__7; uint8_t l_Lean_Meta_Simp_Config_ctorEq___default; lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeAfterDot(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_toNat___boxed(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__17; uint8_t l_Lean_Meta_Simp_Config_memoize___default; lean_object* l_Lean_Syntax_getHead_x3f(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16268____closed__8; uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar(lean_object*, lean_object*); lean_object* l_Lean_termEval__prec__; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___lambda__2___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__1; lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l_Lean_Syntax_SepArray_ofElemsUsingRef___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__5; @@ -104,6 +103,7 @@ lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeOctalLitAux(lean_object* lean_object* l_Lean_Syntax_isInterpolatedStrLit_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_findAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_getHead_x3f___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Char_isDigit(uint32_t); extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; @@ -131,25 +131,25 @@ lean_object* l_Lean_mkHole___boxed(lean_object*); lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___at_Array_filterSepElems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__1; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setInfo_match__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_version_getSpecialDesc___boxed(lean_object*); lean_object* l_Lean_Syntax_mkApp_match__1(lean_object*); extern lean_object* l_Array_getEvenElems___rarg___closed__1; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__9; lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexDigit___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; lean_object* l_Lean_Syntax_setTailInfo(lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; lean_object* l_Lean_instQuoteArray(lean_object*); lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instQuoteProd_match__1(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Simp_Config_decide___default; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__9; extern lean_object* l_Applicative_seqRight___default___rarg___closed__1; lean_object* l___private_Init_Data_String_Basic_0__Substring_takeWhileAux___at___private_Init_Meta_0__Lean_Syntax_decodeNameLitAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterSepElemsM___at_Array_filterSepElems___spec__1(lean_object*, lean_object*); uint8_t l_Lean_Meta_Simp_Config_contextual___default; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__19; lean_object* l_Lean_instQuoteList___rarg(lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_mkAtom(lean_object*); @@ -159,15 +159,16 @@ extern lean_object* l_instReprProd___rarg___closed__1; lean_object* l_Array_filterSepElems___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setHeadInfo(lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__19; extern lean_object* l_instReprBool___closed__2; lean_object* l_Lean_instQuoteBool___closed__1; uint8_t l_USize_decLt(size_t, size_t); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; lean_object* l_Lean_version_patch; extern lean_object* l_Lean_nameLitKind; lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux___boxed(lean_object*, lean_object*); lean_object* l_Lean_withHeadRefOnly___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instQuoteBool___boxed(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* l_Lean_version_specialDesc; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkSep___boxed(lean_object*, lean_object*); @@ -202,6 +203,7 @@ lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__6; lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_version_getMinor___boxed(lean_object*); lean_object* l_Lean_evalPrio___closed__1; +uint8_t l_Lean_Name_hasMacroScopes(lean_object*); uint8_t l_Lean_version_isRelease___closed__1; lean_object* l_Lean_instQuoteBool___closed__5; lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeExp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -214,15 +216,15 @@ lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTrailingSize___boxed(lean_object*); lean_object* l_Lean_Syntax_isNatLit_x3f(lean_object*); lean_object* l_Lean_version_major; -lean_object* l_Lean_Name_appendAfter_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_instBEqSyntax; uint8_t l_Lean_Meta_Simp_Config_zeta___default; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_isEqvAux___at_Lean_Syntax_structEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setHeadInfoAux_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__11; lean_object* l_Lean_Syntax_SepArray_ofElemsUsingRef___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_instDecidableNot___rarg(uint8_t); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__11; lean_object* l_Lean_Syntax_mkStrLit___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkApp_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_expandInterpolatedStr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -253,7 +255,7 @@ lean_object* l___private_Init_Data_String_Basic_0__Substring_takeWhileAux___at__ lean_object* l_Lean_Syntax_decodeQuotedChar_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_SepArray_getElems(lean_object*); lean_object* l_Lean_Syntax_structEq___boxed(lean_object*, lean_object*); -uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276_(lean_object*, lean_object*); +uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279_(lean_object*, lean_object*); uint8_t l_Lean_Meta_Simp_ConfigCtx_contextual___default; lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_23565____closed__8; @@ -262,6 +264,7 @@ lean_object* l_Lean_Syntax_setTailInfo_match__1___rarg(lean_object*, lean_object lean_object* l___private_Init_Meta_0__Lean_Syntax_updateLast_match__1(lean_object*, lean_object*); lean_object* l_Lean_instQuoteProd___rarg___closed__1; lean_object* l_Lean_Name_capitalize_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); lean_object* l_Lean_Syntax_SepArray_ofElems___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexLitAux(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isNumericSubscript(uint32_t); @@ -288,23 +291,23 @@ lean_object* l_Lean_Syntax_SepArray_getElems___boxed(lean_object*); lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Syntax_getTailInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_instReprBool___closed__3; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendAfter_match__1(lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__2; -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_instReprConfig___closed__1; lean_object* l_Array_getSepElems___rarg(lean_object*); extern lean_object* l_Lean_reservedMacroScope; lean_object* l_Lean_NameGenerator_namePrefix___default___closed__1; lean_object* l_Lean_mkNullNode(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__26; lean_object* l_Lean_Name_instToStringName; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__26; lean_object* l_Lean_Syntax_structEq_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Syntax_addPrio___closed__2; +lean_object* l_Lean_Name_modifyBase(lean_object*, lean_object*); lean_object* l_Lean_instQuoteBool___closed__3; extern lean_object* l_term_x7b_____x3a___x2f_x2f___x7d___closed__3; lean_object* l_Nat_repr(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__12; lean_object* l_Array_mapSepElemsM___at_Array_mapSepElems___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__12; lean_object* l_Lean_instQuoteSubstring___boxed(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instQuoteSubstring(lean_object*); @@ -314,7 +317,6 @@ lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar___boxed(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__14; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276____boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getHead_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_charLitKind; lean_object* l_Lean_Syntax_instBEqSyntax___closed__1; @@ -324,6 +326,7 @@ lean_object* l___private_Init_Data_String_Basic_0__Substring_takeWhileAux___at__ lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_mkFreshId(lean_object*); lean_object* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279____boxed(lean_object*, lean_object*); lean_object* l_Lean_mkCIdent(lean_object*); lean_object* l_Lean_version_getIsRelease___boxed(lean_object*); extern lean_object* l_Lean_numLitKind___closed__2; @@ -338,10 +341,10 @@ lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeAfterExp(lean_object lean_object* l_Lean_Syntax_setTailInfoAux_match__1(lean_object*); lean_object* l_Lean_mkOptionalNode(lean_object*); lean_object* l___private_Init_Meta_0__Lean_version_getPatch___boxed(lean_object*); +lean_object* l_Lean_Syntax_copyHeadTailInfoFrom(lean_object*, lean_object*); lean_object* l_Nat_pred(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux(lean_object*); -lean_object* l_Lean_Name_appendIndexAfter_match__1(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeNameLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_evalOptPrec(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__4; @@ -361,7 +364,6 @@ lean_object* l_Lean_Syntax_SepArray_ofElemsUsingRef___rarg(lean_object*, lean_ob lean_object* l_Lean_Name_appendBefore_match__1(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeNameLitAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isNumericSubscript___boxed(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_NameGenerator_mkChild(lean_object*); extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__10; @@ -373,7 +375,6 @@ extern lean_object* l_term___x2b_x2b_____closed__2; lean_object* l_Lean_version_minor; lean_object* l_Lean_Syntax_decodeStrLit___boxed(lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteName___closed__1; -lean_object* l_Lean_Name_appendIndexAfter_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___at_Array_mapSepElems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_NameGenerator_namePrefix___default___closed__2; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -402,6 +403,7 @@ lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkNumLit(lean_object*, lean_object*); lean_object* l_Lean_instInhabitedNameGenerator___closed__1; lean_object* l_Lean_Syntax_SepArray_ofElemsUsingRef(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; extern lean_object* l_Lean_groupKind; lean_object* l_Lean_Syntax_unsetTrailing(lean_object*); lean_object* l_Lean_termEval__prio_____closed__7; @@ -421,10 +423,8 @@ uint8_t l_UInt32_decEq(uint32_t, uint32_t); lean_object* l_Lean_Name_instReprName___closed__1; lean_object* l_Lean_Syntax_getTrailingSize_match__1(lean_object*); lean_object* l_Lean_Name_instReprName___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_quoteName_match__1(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_version_getIsRelease(lean_object*); -lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); +lean_object* lean_name_append_after(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_version_getMinor(lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); lean_object* l_Lean_mkHole(lean_object*); @@ -440,42 +440,43 @@ uint8_t l_Lean_Meta_Simp_Config_eta___default; extern lean_object* l_Lean_Parser_Syntax_subPrio___closed__2; lean_object* l_Lean_Syntax_expandInterpolatedStrChunks___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_hasArgs(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__10; lean_object* l___private_Init_Meta_0__Lean_quoteList(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux_match__1(lean_object*); lean_object* l_Lean_withHeadRefOnly(lean_object*); lean_object* l_String_quote(lean_object*); uint8_t l_Char_isAlphanum(uint32_t); +lean_object* l_Lean_Syntax_copyHeadTailInfoFrom___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_instReprConfig; lean_object* l_Lean_instInhabitedNameGenerator; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__10; lean_object* l_Lean_Syntax_getHead_x3f_match__1(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f(lean_object*); uint8_t l_Lean_isGreek(uint32_t); lean_object* l___private_Init_Meta_0__Lean_quoteList_match__1(lean_object*, lean_object*); +lean_object* l_Lean_MacroScopesView_review(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar___boxed__const__1; lean_object* l_Array_filterSepElems(lean_object*, lean_object*); lean_object* l_Array_mapSepElemsM___at_Array_mapSepElems___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexLitAux_match__1(lean_object*); -lean_object* l_Lean_Name_appendBefore_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__7; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463_(lean_object*, lean_object*); +lean_object* l_Lean_Name_appendBefore_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466_(lean_object*, lean_object*); lean_object* l_Lean_mkSepArray_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_instQuoteSubstring___closed__4; lean_object* l_Lean_Name_replacePrefix___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__7; lean_object* l_Lean_mkSepArray_match__1(lean_object*); lean_object* l_Lean_expandMacros___boxed__const__1; lean_object* l_Lean_Syntax_getOptionalIdent_x3f(lean_object*); lean_object* l_Lean_evalPrec___closed__1; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__16; lean_object* l_Lean_Name_toStringWithSep___closed__1; lean_object* l_Lean_NameGenerator_curr(lean_object*); lean_object* l_Lean_Syntax_SepArray_getElems___rarg___boxed(lean_object*); lean_object* l_Lean_Syntax_isNameLit_x3f___boxed(lean_object*); lean_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__16; lean_object* l_Lean_isIdBeginEscape___boxed(lean_object*); lean_object* l_Lean_withHeadRefOnly_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -491,8 +492,8 @@ lean_object* l_Lean_Syntax_decodeQuotedChar___boxed__const__1; lean_object* l_Lean_Syntax_getTailInfo_x3f(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_instBEqConfig; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; lean_object* l_Lean_termEval__prec_____closed__2; -lean_object* l___private_Init_Meta_0__Lean_quoteName_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Simp_Config_iota___default; lean_object* l_Lean_Syntax_setInfo(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption(lean_object*); @@ -512,61 +513,61 @@ lean_object* l_String_trim(lean_object*); lean_object* l_Lean_Syntax_decodeQuotedChar___boxed(lean_object*, lean_object*); lean_object* l_Lean_isIdEndEscape___boxed(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__3; lean_object* l_Lean_Syntax_getTailInfo_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_getTailInfo(lean_object*); lean_object* l_Lean_Syntax_getOptionalIdent_x3f___boxed(lean_object*); lean_object* l_Lean_termEval__prec_____closed__5; lean_object* l_Lean_instQuoteBool___closed__4; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__3; lean_object* l_Lean_mkCIdentFromRef(lean_object*); lean_object* l_Lean_Syntax_unsetTrailing_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeStrLit(lean_object*); uint8_t l_Lean_isIdFirst(uint32_t); lean_object* l_Lean_instQuoteName; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__15; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNone___boxed(lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__18; lean_object* l_Lean_instQuoteBool_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isToken___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__15; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__14; lean_object* l_Lean_mkCIdentFrom___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkCIdentFrom___closed__1; lean_object* l_Lean_Syntax_getTailInfo___boxed(lean_object*); lean_object* l_Lean_Syntax_decodeQuotedChar___boxed__const__3; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; extern lean_object* l_prec_x28___x29___closed__7; lean_object* l_Lean_Syntax_isInterpolatedStrLit_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_SepArray_instCoeTailSepArrayArraySyntax___boxed(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__14; lean_object* l_Lean_Syntax_decodeNameLit___boxed(lean_object*); lean_object* lean_string_length(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_findAux___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Syntax_SepArray_instCoeTailSepArrayArraySyntax___closed__1; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; extern lean_object* l_Substring_splitOn_loop___closed__2; lean_object* l_Lean_Name_instReprName___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_2278____closed__4; uint8_t l_Lean_isSubScriptAlnum(uint32_t); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; lean_object* l_Lean_Syntax_toNat_match__1(lean_object*); uint8_t l_Lean_Meta_Simp_Config_beta___default; uint8_t l_List_beq___at_Lean_Syntax_structEq___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_setTailInfoAux_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_prec_x28___x29___closed__3; extern lean_object* l_Lean_myMacro____x40_Init_Notation___hyg_17039____closed__5; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; lean_object* lean_mk_syntax_ident(lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_updateFirst___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_termEval__prec_____closed__1; lean_object* l_Lean_Syntax_toNat(lean_object*); -lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); +lean_object* lean_name_append_before(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_version_getPatch(lean_object*); lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Syntax_getOptional_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_decodeQuotedChar_match__1(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__18; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__22; lean_object* l_Lean_mkCIdentFrom___closed__2; lean_object* l_Lean_instQuoteArray___rarg(lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__22; lean_object* l_Lean_SourceInfo_getPos_x3f(lean_object*, uint8_t); lean_object* l___private_Init_Meta_0__Lean_quoteName___closed__3; lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___at_Array_filterSepElems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -578,20 +579,20 @@ uint8_t l_Lean_Meta_Simp_Config_proj___default; lean_object* l_Lean_Syntax_instCoeArraySyntaxSepArray(lean_object*); lean_object* l_Lean_Syntax_find_x3f(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__5; lean_object* l_Lean_Syntax_decodeStrLitAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteList_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterSepElemsM___at_Array_filterSepElems___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteOption_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_monadNameGeneratorLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_replacePrefix_match__1(lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5070_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5202_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4574_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4685_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4817_(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4959_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5073_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5205_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4577_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4688_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4820_(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4962_(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_expandInterpolatedStr___closed__1; -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__5; lean_object* l_Lean_Syntax_expandInterpolatedStr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSepArray___closed__1; extern lean_object* l_Lean_Parser_Syntax_subPrec___closed__2; @@ -617,7 +618,6 @@ lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*) lean_object* l_Lean_termEval__prio_____closed__5; lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrLit_loop(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__6; uint8_t l_Lean_Syntax_isToken(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isFieldIdx_x3f___boxed(lean_object*); lean_object* l_Lean_Name_instToStringName___closed__1; @@ -626,14 +626,15 @@ lean_object* l_Lean_evalPrio(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_defaultMaxSteps; extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__6; lean_object* l_Lean_Syntax_setHeadInfoAux(lean_object*, lean_object*); lean_object* l_Lean_Option_hasQuote___rarg(lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__13; extern lean_object* l_Lean_interpolatedStrLitKind; lean_object* l_Lean_termEval__prio_____closed__3; lean_object* l_Lean_Meta_Simp_instInhabitedConfig___closed__1; extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__8; lean_object* l___private_Init_Meta_0__Lean_Syntax_updateLast___at_Lean_Syntax_setTailInfoAux___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__13; uint8_t l_Lean_isIdRest(uint32_t); lean_object* l_Lean_expandMacros_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -641,7 +642,7 @@ lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*); lean_object* l_Char_ofNat(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__25; +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__25; lean_object* l___private_Init_Meta_0__Lean_version_getMajor___boxed(lean_object* x_1) { _start: { @@ -1650,221 +1651,6 @@ return x_1; } } } -lean_object* l_Lean_Name_appendAfter_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_5; lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_4); -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_ctor_get_usize(x_1, 2); -lean_dec(x_1); -x_8 = lean_box_usize(x_7); -x_9 = lean_apply_4(x_3, x_5, x_6, x_8, x_2); -return x_9; -} -else -{ -lean_object* x_10; -lean_dec(x_3); -x_10 = lean_apply_2(x_4, x_1, x_2); -return x_10; -} -} -} -lean_object* l_Lean_Name_appendAfter_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Name_appendAfter_match__1___rarg), 4, 0); -return x_2; -} -} -lean_object* l_Lean_Name_appendAfter(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 1) -{ -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); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_string_append(x_4, x_2); -lean_dec(x_2); -x_6 = lean_name_mk_string(x_3, x_5); -return x_6; -} -else -{ -lean_object* x_7; -x_7 = lean_name_mk_string(x_1, x_2); -return x_7; -} -} -} -lean_object* l_Lean_Name_appendIndexAfter_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_5; lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_4); -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_ctor_get_usize(x_1, 2); -lean_dec(x_1); -x_8 = lean_box_usize(x_7); -x_9 = lean_apply_4(x_3, x_5, x_6, x_8, x_2); -return x_9; -} -else -{ -lean_object* x_10; -lean_dec(x_3); -x_10 = lean_apply_2(x_4, x_1, x_2); -return x_10; -} -} -} -lean_object* l_Lean_Name_appendIndexAfter_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Name_appendIndexAfter_match__1___rarg), 4, 0); -return x_2; -} -} -lean_object* l_Lean_Name_appendIndexAfter(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; -x_6 = lean_string_append(x_4, x_5); -x_7 = l_Nat_repr(x_2); -x_8 = lean_string_append(x_6, x_7); -lean_dec(x_7); -x_9 = lean_name_mk_string(x_3, x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = l_Nat_repr(x_2); -x_11 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = lean_name_mk_string(x_1, x_12); -return x_13; -} -} -} -lean_object* l_Lean_Name_appendBefore_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_6; -lean_dec(x_5); -lean_dec(x_4); -x_6 = lean_apply_1(x_3, x_2); -return x_6; -} -case 1: -{ -lean_object* x_7; lean_object* x_8; size_t x_9; lean_object* x_10; lean_object* x_11; -lean_dec(x_5); -lean_dec(x_3); -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -x_9 = lean_ctor_get_usize(x_1, 2); -lean_dec(x_1); -x_10 = lean_box_usize(x_9); -x_11 = lean_apply_4(x_4, x_7, x_8, x_10, x_2); -return x_11; -} -default: -{ -lean_object* x_12; lean_object* x_13; size_t x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_4); -lean_dec(x_3); -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -x_14 = lean_ctor_get_usize(x_1, 2); -lean_dec(x_1); -x_15 = lean_box_usize(x_14); -x_16 = lean_apply_4(x_5, x_12, x_13, x_15, x_2); -return x_16; -} -} -} -} -lean_object* l_Lean_Name_appendBefore_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Name_appendBefore_match__1___rarg), 5, 0); -return x_2; -} -} -lean_object* l_Lean_Name_appendBefore(lean_object* x_1, lean_object* x_2) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_box(0); -x_4 = lean_name_mk_string(x_3, x_2); -return x_4; -} -case 1: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -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_string_append(x_2, x_6); -lean_dec(x_6); -x_8 = lean_name_mk_string(x_5, x_7); -return x_8; -} -default: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_dec(x_1); -x_11 = lean_name_mk_string(x_9, x_2); -x_12 = lean_name_mk_numeral(x_11, x_10); -return x_12; -} -} -} -} lean_object* l_Lean_Name_replacePrefix_match__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) { _start: { @@ -2008,6 +1794,549 @@ lean_dec(x_2); return x_4; } } +lean_object* l_Lean_Name_modifyBase(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Name_hasMacroScopes(x_1); +if (x_3 == 0) +{ +lean_object* x_4; +x_4 = lean_apply_1(x_2, x_1); +return x_4; +} +else +{ +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_extractMacroScopes(x_1); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_apply_1(x_2, x_7); +lean_ctor_set(x_5, 0, x_8); +x_9 = l_Lean_MacroScopesView_review(x_5); +return x_9; +} +else +{ +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; +x_10 = lean_ctor_get(x_5, 0); +x_11 = lean_ctor_get(x_5, 1); +x_12 = lean_ctor_get(x_5, 2); +x_13 = lean_ctor_get(x_5, 3); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_5); +x_14 = lean_apply_1(x_2, x_10); +x_15 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_11); +lean_ctor_set(x_15, 2, x_12); +lean_ctor_set(x_15, 3, x_13); +x_16 = l_Lean_MacroScopesView_review(x_15); +return x_16; +} +} +} +} +lean_object* lean_name_append_after(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Name_hasMacroScopes(x_1); +if (x_3 == 0) +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_string_append(x_5, x_2); +lean_dec(x_2); +x_7 = lean_name_mk_string(x_4, x_6); +return x_7; +} +else +{ +lean_object* x_8; +x_8 = lean_name_mk_string(x_1, x_2); +return x_8; +} +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = l_Lean_extractMacroScopes(x_1); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 1) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (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; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_string_append(x_14, x_2); +lean_dec(x_2); +x_16 = lean_name_mk_string(x_13, x_15); +lean_ctor_set(x_9, 0, x_16); +x_17 = l_Lean_MacroScopesView_review(x_9); +return x_17; +} +else +{ +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; +x_18 = lean_ctor_get(x_9, 1); +x_19 = lean_ctor_get(x_9, 2); +x_20 = lean_ctor_get(x_9, 3); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_21 = lean_ctor_get(x_10, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_10, 1); +lean_inc(x_22); +lean_dec(x_10); +x_23 = lean_string_append(x_22, x_2); +lean_dec(x_2); +x_24 = lean_name_mk_string(x_21, x_23); +x_25 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_18); +lean_ctor_set(x_25, 2, x_19); +lean_ctor_set(x_25, 3, x_20); +x_26 = l_Lean_MacroScopesView_review(x_25); +return x_26; +} +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_9, 0); +lean_dec(x_28); +x_29 = lean_name_mk_string(x_10, x_2); +lean_ctor_set(x_9, 0, x_29); +x_30 = l_Lean_MacroScopesView_review(x_9); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_31 = lean_ctor_get(x_9, 1); +x_32 = lean_ctor_get(x_9, 2); +x_33 = lean_ctor_get(x_9, 3); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_9); +x_34 = lean_name_mk_string(x_10, x_2); +x_35 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_31); +lean_ctor_set(x_35, 2, x_32); +lean_ctor_set(x_35, 3, x_33); +x_36 = l_Lean_MacroScopesView_review(x_35); +return x_36; +} +} +} +} +} +lean_object* lean_name_append_index_after(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Name_hasMacroScopes(x_1); +if (x_3 == 0) +{ +if (lean_obj_tag(x_1) == 1) +{ +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; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; +x_7 = lean_string_append(x_5, x_6); +x_8 = l_Nat_repr(x_2); +x_9 = lean_string_append(x_7, x_8); +lean_dec(x_8); +x_10 = lean_name_mk_string(x_4, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Nat_repr(x_2); +x_12 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; +x_13 = lean_string_append(x_12, x_11); +lean_dec(x_11); +x_14 = lean_name_mk_string(x_1, x_13); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = l_Lean_extractMacroScopes(x_1); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 1) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +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; +x_18 = lean_ctor_get(x_15, 0); +lean_dec(x_18); +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; +x_22 = lean_string_append(x_20, x_21); +x_23 = l_Nat_repr(x_2); +x_24 = lean_string_append(x_22, x_23); +lean_dec(x_23); +x_25 = lean_name_mk_string(x_19, x_24); +lean_ctor_set(x_15, 0, x_25); +x_26 = l_Lean_MacroScopesView_review(x_15); +return x_26; +} +else +{ +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; lean_object* x_38; +x_27 = lean_ctor_get(x_15, 1); +x_28 = lean_ctor_get(x_15, 2); +x_29 = lean_ctor_get(x_15, 3); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_15); +x_30 = lean_ctor_get(x_16, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_16, 1); +lean_inc(x_31); +lean_dec(x_16); +x_32 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; +x_33 = lean_string_append(x_31, x_32); +x_34 = l_Nat_repr(x_2); +x_35 = lean_string_append(x_33, x_34); +lean_dec(x_34); +x_36 = lean_name_mk_string(x_30, x_35); +x_37 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_27); +lean_ctor_set(x_37, 2, x_28); +lean_ctor_set(x_37, 3, x_29); +x_38 = l_Lean_MacroScopesView_review(x_37); +return x_38; +} +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_15); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_40 = lean_ctor_get(x_15, 0); +lean_dec(x_40); +x_41 = l_Nat_repr(x_2); +x_42 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; +x_43 = lean_string_append(x_42, x_41); +lean_dec(x_41); +x_44 = lean_name_mk_string(x_16, x_43); +lean_ctor_set(x_15, 0, x_44); +x_45 = l_Lean_MacroScopesView_review(x_15); +return x_45; +} +else +{ +lean_object* 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; +x_46 = lean_ctor_get(x_15, 1); +x_47 = lean_ctor_get(x_15, 2); +x_48 = lean_ctor_get(x_15, 3); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_15); +x_49 = l_Nat_repr(x_2); +x_50 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; +x_51 = lean_string_append(x_50, x_49); +lean_dec(x_49); +x_52 = lean_name_mk_string(x_16, x_51); +x_53 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_46); +lean_ctor_set(x_53, 2, x_47); +lean_ctor_set(x_53, 3, x_48); +x_54 = l_Lean_MacroScopesView_review(x_53); +return x_54; +} +} +} +} +} +lean_object* l_Lean_Name_appendBefore_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 0: +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +case 1: +{ +lean_object* x_7; lean_object* x_8; size_t x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +x_9 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_10 = lean_box_usize(x_9); +x_11 = lean_apply_3(x_3, x_7, x_8, x_10); +return x_11; +} +default: +{ +lean_object* x_12; lean_object* x_13; size_t x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +x_14 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_15 = lean_box_usize(x_14); +x_16 = lean_apply_3(x_4, x_12, x_13, x_15); +return x_16; +} +} +} +} +lean_object* l_Lean_Name_appendBefore_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Name_appendBefore_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* lean_name_append_before(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Name_hasMacroScopes(x_1); +if (x_3 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_box(0); +x_5 = lean_name_mk_string(x_4, x_2); +return x_5; +} +case 1: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_string_append(x_2, x_7); +lean_dec(x_7); +x_9 = lean_name_mk_string(x_6, x_8); +return x_9; +} +default: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_name_mk_string(x_10, x_2); +x_13 = lean_name_mk_numeral(x_12, x_11); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = l_Lean_extractMacroScopes(x_1); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +switch (lean_obj_tag(x_15)) { +case 0: +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +x_18 = lean_box(0); +x_19 = lean_name_mk_string(x_18, x_2); +lean_ctor_set(x_14, 0, x_19); +x_20 = l_Lean_MacroScopesView_review(x_14); +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; +x_21 = lean_ctor_get(x_14, 1); +x_22 = lean_ctor_get(x_14, 2); +x_23 = lean_ctor_get(x_14, 3); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_14); +x_24 = lean_box(0); +x_25 = lean_name_mk_string(x_24, x_2); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_21); +lean_ctor_set(x_26, 2, x_22); +lean_ctor_set(x_26, 3, x_23); +x_27 = l_Lean_MacroScopesView_review(x_26); +return x_27; +} +} +case 1: +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_14); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_29 = lean_ctor_get(x_14, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_15, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_15, 1); +lean_inc(x_31); +lean_dec(x_15); +x_32 = lean_string_append(x_2, x_31); +lean_dec(x_31); +x_33 = lean_name_mk_string(x_30, x_32); +lean_ctor_set(x_14, 0, x_33); +x_34 = l_Lean_MacroScopesView_review(x_14); +return x_34; +} +else +{ +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; +x_35 = lean_ctor_get(x_14, 1); +x_36 = lean_ctor_get(x_14, 2); +x_37 = lean_ctor_get(x_14, 3); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_14); +x_38 = lean_ctor_get(x_15, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_15, 1); +lean_inc(x_39); +lean_dec(x_15); +x_40 = lean_string_append(x_2, x_39); +lean_dec(x_39); +x_41 = lean_name_mk_string(x_38, x_40); +x_42 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_35); +lean_ctor_set(x_42, 2, x_36); +lean_ctor_set(x_42, 3, x_37); +x_43 = l_Lean_MacroScopesView_review(x_42); +return x_43; +} +} +default: +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_14); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_45 = lean_ctor_get(x_14, 0); +lean_dec(x_45); +x_46 = lean_ctor_get(x_15, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_15, 1); +lean_inc(x_47); +lean_dec(x_15); +x_48 = lean_name_mk_string(x_46, x_2); +x_49 = lean_name_mk_numeral(x_48, x_47); +lean_ctor_set(x_14, 0, x_49); +x_50 = l_Lean_MacroScopesView_review(x_14); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_51 = lean_ctor_get(x_14, 1); +x_52 = lean_ctor_get(x_14, 2); +x_53 = lean_ctor_get(x_14, 3); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_14); +x_54 = lean_ctor_get(x_15, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_15, 1); +lean_inc(x_55); +lean_dec(x_15); +x_56 = lean_name_mk_string(x_54, x_2); +x_57 = lean_name_mk_numeral(x_56, x_55); +x_58 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_51); +lean_ctor_set(x_58, 2, x_52); +lean_ctor_set(x_58, 3, x_53); +x_59 = l_Lean_MacroScopesView_review(x_58); +return x_59; +} +} +} +} +} +} static lean_object* _init_l_Lean_NameGenerator_namePrefix___default___closed__1() { _start: { @@ -4232,6 +4561,26 @@ lean_dec(x_1); return x_8; } } +lean_object* l_Lean_Syntax_copyHeadTailInfoFrom(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = l_Lean_Syntax_getHeadInfo(x_2); +x_4 = l_Lean_Syntax_setHeadInfo(x_1, x_3); +x_5 = l_Lean_Syntax_getTailInfo(x_2); +x_6 = l_Lean_Syntax_setTailInfo(x_4, x_5); +return x_6; +} +} +lean_object* l_Lean_Syntax_copyHeadTailInfoFrom___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Syntax_copyHeadTailInfoFrom(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} lean_object* l_Lean_withHeadRefOnly_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -9031,60 +9380,6 @@ lean_dec(x_1); return x_2; } } -lean_object* l___private_Init_Meta_0__Lean_quoteName_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 0: -{ -lean_object* x_5; lean_object* x_6; -lean_dec(x_4); -lean_dec(x_3); -x_5 = lean_box(0); -x_6 = lean_apply_1(x_2, x_5); -return x_6; -} -case 1: -{ -lean_object* x_7; lean_object* x_8; size_t x_9; lean_object* x_10; lean_object* x_11; -lean_dec(x_4); -lean_dec(x_2); -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -x_9 = lean_ctor_get_usize(x_1, 2); -lean_dec(x_1); -x_10 = lean_box_usize(x_9); -x_11 = lean_apply_3(x_3, x_7, x_8, x_10); -return x_11; -} -default: -{ -lean_object* x_12; lean_object* x_13; size_t x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_3); -lean_dec(x_2); -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -x_14 = lean_ctor_get_usize(x_1, 2); -lean_dec(x_1); -x_15 = lean_box_usize(x_14); -x_16 = lean_apply_3(x_4, x_12, x_13, x_15); -return x_16; -} -} -} -} -lean_object* l___private_Init_Meta_0__Lean_quoteName_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_quoteName_match__1___rarg), 4, 0); -return x_2; -} -} static lean_object* _init_l___private_Init_Meta_0__Lean_quoteName___closed__1() { _start: { @@ -9870,7 +10165,7 @@ return x_75; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4574_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4577_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10005,7 +10300,7 @@ return x_40; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4685_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4688_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10224,7 +10519,7 @@ x_1 = l_Lean_termEval__prec_____closed__7; return x_1; } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4817_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4820_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10645,7 +10940,7 @@ return x_75; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4959_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_4962_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10780,7 +11075,7 @@ return x_40; } } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5070_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5073_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -10999,7 +11294,7 @@ x_1 = l_Lean_termEval__prio_____closed__7; return x_1; } } -lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5202_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_myMacro____x40_Init_Meta___hyg_5205_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -13196,7 +13491,7 @@ x_1 = l_Lean_Meta_Simp_instInhabitedConfig___closed__1; return x_1; } } -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t 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; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; @@ -13251,24 +13546,24 @@ x_47 = lean_apply_m(x_3, 22, _aargs); } return x_47; } } -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1(lean_object* x_1) { +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276__match__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279__match__1___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); return x_5; } } -uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276_(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; uint8_t x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; lean_object* x_25; lean_object* x_29; lean_object* x_35; lean_object* x_41; lean_object* x_47; lean_object* x_53; lean_object* x_59; lean_object* x_65; lean_object* x_71; uint8_t x_77; @@ -13649,11 +13944,11 @@ goto block_70; } } } -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276____boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276_(x_1, x_2); +x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -13664,7 +13959,7 @@ static lean_object* _init_l_Lean_Meta_Simp_instBEqConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6276____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_6279____boxed), 2, 0); return x_1; } } @@ -13676,7 +13971,7 @@ x_1 = l_Lean_Meta_Simp_instBEqConfig___closed__1; return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__1() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__1() { _start: { lean_object* x_1; @@ -13684,29 +13979,29 @@ x_1 = lean_mk_string("maxSteps"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__2() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__1; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__3() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__2; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__2; x_3 = lean_alloc_ctor(4, 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_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -13716,19 +14011,19 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__5() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__3; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_3 = lean_alloc_ctor(4, 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_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__6() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__6() { _start: { lean_object* x_1; @@ -13736,17 +14031,17 @@ x_1 = lean_mk_string("contextual"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__7() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__6; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__6; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__8() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__8() { _start: { lean_object* x_1; @@ -13754,17 +14049,17 @@ x_1 = lean_mk_string("memoize"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__9() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__8; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__8; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__10() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__10() { _start: { lean_object* x_1; @@ -13772,17 +14067,17 @@ x_1 = lean_mk_string("singlePass"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__11() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__10; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__10; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__12() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__12() { _start: { lean_object* x_1; @@ -13790,17 +14085,17 @@ x_1 = lean_mk_string("zeta"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__13() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__12; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__12; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__14() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__14() { _start: { lean_object* x_1; @@ -13808,17 +14103,17 @@ x_1 = lean_mk_string("beta"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__15() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__14; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__14; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__16() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__16() { _start: { lean_object* x_1; @@ -13826,17 +14121,17 @@ x_1 = lean_mk_string("eta"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__17() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__17() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__16; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__16; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__18() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__18() { _start: { lean_object* x_1; @@ -13844,17 +14139,17 @@ x_1 = lean_mk_string("iota"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__19() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__19() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__18; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__18; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20() { _start: { lean_object* x_1; @@ -13862,17 +14157,17 @@ x_1 = lean_mk_string("proj"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__21() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__21() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__22() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__22() { _start: { lean_object* x_1; @@ -13880,17 +14175,17 @@ x_1 = lean_mk_string("ctorEq"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__23() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__23() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__22; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__22; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24() { _start: { lean_object* x_1; @@ -13898,17 +14193,17 @@ x_1 = lean_mk_string("decide"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__25() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__25() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__26() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__26() { _start: { lean_object* x_1; lean_object* x_2; @@ -13917,16 +14212,16 @@ x_2 = lean_string_length(x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__26; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__26; x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28() { _start: { lean_object* x_1; lean_object* x_2; @@ -13936,7 +14231,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29() { _start: { lean_object* x_1; lean_object* x_2; @@ -13946,7 +14241,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463_(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 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; uint8_t x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; @@ -13955,7 +14250,7 @@ lean_inc(x_3); x_4 = l_Nat_repr(x_3); x_5 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_5, 0, x_4); -x_6 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__5; +x_6 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__5; x_7 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -13967,11 +14262,11 @@ x_10 = lean_box(1); x_11 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); -x_12 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__7; +x_12 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__7; x_13 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_15 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -14012,7 +14307,7 @@ lean_ctor_set(x_28, 1, x_8); x_29 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_10); -x_30 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__9; +x_30 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__9; x_31 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -14045,7 +14340,7 @@ lean_ctor_set(x_35, 1, x_8); x_36 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_10); -x_37 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__11; +x_37 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__11; x_38 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); @@ -14078,7 +14373,7 @@ lean_ctor_set(x_42, 1, x_8); x_43 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_10); -x_44 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__13; +x_44 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__13; x_45 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); @@ -14111,7 +14406,7 @@ lean_ctor_set(x_49, 1, x_8); x_50 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_10); -x_51 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__15; +x_51 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__15; x_52 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); @@ -14144,7 +14439,7 @@ lean_ctor_set(x_56, 1, x_8); x_57 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_10); -x_58 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__17; +x_58 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__17; x_59 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_59, 0, x_57); lean_ctor_set(x_59, 1, x_58); @@ -14177,7 +14472,7 @@ lean_ctor_set(x_63, 1, x_8); x_64 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_10); -x_65 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__19; +x_65 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__19; x_66 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_66, 0, x_64); lean_ctor_set(x_66, 1, x_65); @@ -14210,7 +14505,7 @@ lean_ctor_set(x_70, 1, x_8); x_71 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_10); -x_72 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__21; +x_72 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__21; x_73 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_73, 0, x_71); lean_ctor_set(x_73, 1, x_72); @@ -14243,7 +14538,7 @@ lean_ctor_set(x_77, 1, x_8); x_78 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_78, 0, x_77); lean_ctor_set(x_78, 1, x_10); -x_79 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__23; +x_79 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__23; x_80 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_80, 0, x_78); lean_ctor_set(x_80, 1, x_79); @@ -14263,7 +14558,7 @@ lean_ctor_set(x_84, 1, x_8); x_85 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_85, 0, x_84); lean_ctor_set(x_85, 1, x_10); -x_86 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__25; +x_86 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__25; x_87 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_87, 0, x_85); lean_ctor_set(x_87, 1, x_86); @@ -14276,15 +14571,15 @@ lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean x_89 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_82); -x_90 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_90 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_91 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_91, 0, x_90); lean_ctor_set(x_91, 1, x_89); -x_92 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_92 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_93 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_93, 0, x_91); lean_ctor_set(x_93, 1, x_92); -x_94 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_94 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_95 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_95, 0, x_94); lean_ctor_set(x_95, 1, x_93); @@ -14301,15 +14596,15 @@ x_98 = l_instReprBool___closed__3; x_99 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_99, 0, x_88); lean_ctor_set(x_99, 1, x_98); -x_100 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_100 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_101 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_101, 0, x_100); lean_ctor_set(x_101, 1, x_99); -x_102 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_102 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_103 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_103, 0, x_101); lean_ctor_set(x_103, 1, x_102); -x_104 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_104 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_105 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_103); @@ -14333,7 +14628,7 @@ lean_ctor_set(x_110, 1, x_8); x_111 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_111, 0, x_110); lean_ctor_set(x_111, 1, x_10); -x_112 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__25; +x_112 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__25; x_113 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_113, 0, x_111); lean_ctor_set(x_113, 1, x_112); @@ -14347,15 +14642,15 @@ x_115 = l_instReprBool___closed__1; x_116 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_116, 0, x_114); lean_ctor_set(x_116, 1, x_115); -x_117 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_117 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_118 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_118, 0, x_117); lean_ctor_set(x_118, 1, x_116); -x_119 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_119 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_120 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_120, 0, x_118); lean_ctor_set(x_120, 1, x_119); -x_121 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_121 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_122 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_122, 0, x_121); lean_ctor_set(x_122, 1, x_120); @@ -14371,15 +14666,15 @@ lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; x_125 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_125, 0, x_114); lean_ctor_set(x_125, 1, x_108); -x_126 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_126 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_127 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_127, 0, x_126); lean_ctor_set(x_127, 1, x_125); -x_128 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_128 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_129 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_129, 0, x_127); lean_ctor_set(x_129, 1, x_128); -x_130 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_130 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_131 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_129); @@ -14400,11 +14695,11 @@ return x_133; } } } -lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463_(x_1, x_2); +x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -14413,7 +14708,7 @@ static lean_object* _init_l_Lean_Meta_Simp_instReprConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____boxed), 2, 0); return x_1; } } @@ -14652,64 +14947,64 @@ l_Lean_Meta_Simp_instBEqConfig___closed__1 = _init_l_Lean_Meta_Simp_instBEqConfi lean_mark_persistent(l_Lean_Meta_Simp_instBEqConfig___closed__1); l_Lean_Meta_Simp_instBEqConfig = _init_l_Lean_Meta_Simp_instBEqConfig(); lean_mark_persistent(l_Lean_Meta_Simp_instBEqConfig); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__1 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__1(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__1); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__2 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__2(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__2); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__3 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__3(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__3); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__5 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__5(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__5); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__6 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__6(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__6); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__7 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__7(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__7); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__8 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__8(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__8); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__9 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__9(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__9); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__10 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__10(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__10); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__11 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__11(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__11); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__12 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__12(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__12); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__13 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__13(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__13); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__14 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__14(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__14); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__15 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__15(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__15); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__16 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__16(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__16); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__17 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__17(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__17); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__18 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__18(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__18); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__19 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__19(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__19); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__21 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__21(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__21); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__22 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__22(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__22); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__23 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__23(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__23); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__25 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__25(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__25); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__26 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__26(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__26); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__1 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__1(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__1); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__2 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__2(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__2); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__3 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__3(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__3); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__5 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__5(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__5); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__6 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__6(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__6); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__7 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__7(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__7); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__8 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__8(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__8); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__9 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__9(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__9); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__10 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__10(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__10); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__11 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__11(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__11); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__12 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__12(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__12); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__13 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__13(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__13); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__14 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__14(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__14); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__15 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__15(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__15); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__16 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__16(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__16); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__17 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__17(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__17); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__18 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__18(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__18); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__19 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__19(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__19); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__21 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__21(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__21); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__22 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__22(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__22); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__23 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__23(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__23); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__25 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__25(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__25); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__26 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__26(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__26); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29); l_Lean_Meta_Simp_instReprConfig___closed__1 = _init_l_Lean_Meta_Simp_instReprConfig___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_instReprConfig___closed__1); l_Lean_Meta_Simp_instReprConfig = _init_l_Lean_Meta_Simp_instReprConfig(); diff --git a/stage0/stdlib/Init/NotationExtra.c b/stage0/stdlib/Init/NotationExtra.c index c8dfc2d061..6863e995a8 100644 --- a/stage0/stdlib/Init/NotationExtra.c +++ b/stage0/stdlib/Init/NotationExtra.c @@ -44,13 +44,11 @@ lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_object* l_Lean_unbracktedExplicitBinders; lean_object* l_Lean_explicitBinders___closed__4; lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__18; -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; extern lean_object* l_term_x5b___x5d___closed__9; lean_object* l_Lean_unifConstraint___closed__8; lean_object* l_Lean_unifConstraint___closed__2; extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__2; -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_expandExplicitBinders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_sequenceMap___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__1(lean_object*, lean_object*); @@ -152,6 +150,7 @@ lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_36_(lean_object*, le lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__21; extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__5; lean_object* l_commandClassAbbrev_______x3a_x3d_____x2c___closed__12; +lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7451____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_term_u03a3___x2c_____closed__1; lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__10; lean_object* l_Lean_expandBrackedBindersAux_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -167,13 +166,13 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_1346____closed__6; lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__1; lean_object* l_Lean_binderIdent; -lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7474____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_myMacro____x40_Init_NotationExtra___hyg_1354____closed__7; lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__2; lean_object* l_term_u03a3___x2c_____closed__8; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2313____boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_SepArray_getElems___rarg(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2; +uint8_t l_Lean_Name_hasMacroScopes(lean_object*); lean_object* l_Lean_expandBrackedBinders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; lean_object* lean_array_fget(lean_object*, lean_object*); @@ -254,6 +253,7 @@ lean_object* l___private_Init_Meta_0__Lean_quoteName(lean_object*); lean_object* l_term_u03a3_x27___x2c_____closed__4; lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__22; lean_object* l_Lean_bracketedExplicitBinders___closed__2; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__6; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Init_NotationExtra_0__Lean_mkHintBody___spec__1___closed__3; @@ -288,6 +288,7 @@ lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__34; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____boxed(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__5; lean_object* l_tacticFunext____; lean_object* l_commandClassAbbrev_______x3a_x3d_____x2c___closed__15; @@ -298,6 +299,7 @@ extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__29; extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_commandClassAbbrev_______x3a_x3d_____x2c___closed__5; +lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7451____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_unexpandPSigma___closed__1; lean_object* l_unexpandPSigma(lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -359,17 +361,14 @@ lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; extern lean_object* l_term_x5b___x5d___closed__6; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_36____closed__5; -lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7474____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_term_u03a3___x2c_____closed__4; lean_object* l_Array_appendCore___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___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_term___xd7_x27_____closed__1; lean_object* l_term_u03a3___x2c_____closed__7; -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474____boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_simp___closed__5; lean_object* l_Array_forInUnsafe_loop___at___private_Init_NotationExtra_0__Lean_mkHintBody___spec__1___closed__4; extern lean_object* l_Lean_Parser_Tactic_done___closed__1; -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_commandClassAbbrev_______x3a_x3d_____x2c___closed__16; lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_tacticSolve_x7c___x7c; @@ -383,7 +382,7 @@ lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2580_(lean_object*, lean_ lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2744_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2665_(lean_object*, lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711_(lean_object*, lean_object*, lean_object*); -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474_(lean_object*, lean_object*, lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451_(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16268____closed__9; lean_object* l_term___xd7_x27__; lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__1(lean_object*, size_t, size_t, lean_object*); @@ -442,6 +441,7 @@ extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_expandExplicitBindersAux_loop___closed__2; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__36; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____lambda__2(lean_object*); +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__27; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5248__match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_unbracktedExplicitBinders___closed__1; @@ -466,6 +466,7 @@ lean_object* l_Lean_termMacro_x2etrace_x5b_____x5d_____closed__7; lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__21; lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__17; extern lean_object* l_term___xd7_____closed__4; +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___closed__1; lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2491____closed__1; uint8_t l_Lean_Syntax_matchesIdent(lean_object*, lean_object*); lean_object* l_myMacro____x40_Init_NotationExtra___hyg_4972____closed__2; @@ -9614,9 +9615,9 @@ static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_instQuoteProd___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = l_myMacro____x40_Init_Notation___hyg_15342____closed__5; +x_2 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_3 = lean_array_push(x_1, x_2); return x_3; } } @@ -9624,7 +9625,7 @@ static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_15342____closed__5; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_2 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_3 = lean_array_push(x_1, x_2); return x_3; @@ -9664,9 +9665,11 @@ static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__7; -x_2 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_3 = lean_array_push(x_1, x_2); +x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__7; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__7; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); return x_3; } } @@ -9674,25 +9677,13 @@ static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__7; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__8; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__8; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10() { _start: { lean_object* x_1; @@ -9700,17 +9691,17 @@ x_1 = lean_mk_string("structure"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12() { _start: { lean_object* x_1; @@ -9718,17 +9709,17 @@ x_1 = lean_mk_string("classTk"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14() { _start: { lean_object* x_1; @@ -9736,7 +9727,7 @@ x_1 = lean_mk_string("class"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15() { _start: { lean_object* x_1; @@ -9744,17 +9735,17 @@ x_1 = lean_mk_string("extends"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17() { _start: { lean_object* x_1; @@ -9762,21 +9753,21 @@ x_1 = lean_mk_string("optDeriving"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; x_2 = l_myMacro____x40_Init_Notation___hyg_15342____closed__5; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -9784,7 +9775,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20() { _start: { lean_object* x_1; @@ -9792,17 +9783,17 @@ x_1 = lean_mk_string("instance"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9814,17 +9805,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24() { _start: { lean_object* x_1; @@ -9832,17 +9823,17 @@ x_1 = lean_mk_string("declSig"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26() { _start: { lean_object* x_1; @@ -9850,12 +9841,22 @@ x_1 = lean_mk_string("explicit"); return x_1; } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_instQuoteProd___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -9971,7 +9972,7 @@ lean_dec(x_40); x_44 = !lean_is_exclusive(x_41); if (x_44 == 0) { -lean_object* x_45; lean_object* 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; lean_object* x_56; size_t 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; uint8_t x_65; +lean_object* x_45; lean_object* 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; lean_object* x_56; size_t 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_262; uint8_t x_263; x_45 = lean_ctor_get(x_41, 0); x_46 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_myMacro____x40_Init_Notation___hyg_17039__expandListLit___spec__1(x_2, x_42); x_47 = lean_ctor_get(x_46, 0); @@ -10007,863 +10008,720 @@ lean_inc(x_61); x_62 = lean_ctor_get(x_59, 1); lean_inc(x_62); lean_dec(x_59); -x_63 = l_Lean_Syntax_getId(x_9); -x_64 = l_Lean_extractMacroScopes(x_63); -x_65 = !lean_is_exclusive(x_64); -if (x_65 == 0) +x_262 = l_Lean_Syntax_getId(x_9); +x_263 = l_Lean_Name_hasMacroScopes(x_262); +if (x_263 == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; -x_66 = lean_ctor_get(x_64, 0); -x_67 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; -x_68 = l_Lean_Name_append(x_66, x_67); -lean_dec(x_66); -lean_ctor_set(x_64, 0, x_68); -x_69 = l_Lean_MacroScopesView_review(x_64); -x_70 = l_Lean_mkIdentFrom(x_9, x_69); -x_71 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_2, x_60); +lean_object* x_264; lean_object* x_265; +x_264 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_265 = l_Lean_Name_append(x_262, x_264); +lean_dec(x_262); +x_63 = x_265; +goto block_261; +} +else +{ +lean_object* x_266; uint8_t x_267; +x_266 = l_Lean_extractMacroScopes(x_262); +x_267 = !lean_is_exclusive(x_266); +if (x_267 == 0) +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_268 = lean_ctor_get(x_266, 0); +x_269 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_270 = l_Lean_Name_append(x_268, x_269); +lean_dec(x_268); +lean_ctor_set(x_266, 0, x_270); +x_271 = l_Lean_MacroScopesView_review(x_266); +x_63 = x_271; +goto block_261; +} +else +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_272 = lean_ctor_get(x_266, 0); +x_273 = lean_ctor_get(x_266, 1); +x_274 = lean_ctor_get(x_266, 2); +x_275 = lean_ctor_get(x_266, 3); +lean_inc(x_275); +lean_inc(x_274); +lean_inc(x_273); +lean_inc(x_272); +lean_dec(x_266); +x_276 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_277 = l_Lean_Name_append(x_272, x_276); +lean_dec(x_272); +x_278 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_273); +lean_ctor_set(x_278, 2, x_274); +lean_ctor_set(x_278, 3, x_275); +x_279 = l_Lean_MacroScopesView_review(x_278); +x_63 = x_279; +goto block_261; +} +} +block_261: +{ +lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_64 = l_Lean_mkIdentFrom(x_9, x_63); +x_65 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_2, x_60); lean_dec(x_2); -x_72 = !lean_is_exclusive(x_71); -if (x_72 == 0) +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) { -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; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 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; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_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; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_73 = lean_ctor_get(x_71, 0); -x_74 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; -lean_inc(x_73); -x_75 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -x_76 = lean_array_push(x_30, x_75); -x_77 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 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; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_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; +x_67 = lean_ctor_get(x_65, 0); +x_68 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +lean_inc(x_67); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_array_push(x_30, x_69); +x_71 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = lean_array_push(x_30, x_72); +lean_inc(x_9); +x_74 = lean_array_push(x_30, x_9); +x_75 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_76 = lean_array_push(x_74, x_75); +x_77 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; x_78 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_78, 0, x_77); lean_ctor_set(x_78, 1, x_76); -x_79 = lean_array_push(x_30, x_78); -lean_inc(x_9); -x_80 = lean_array_push(x_30, x_9); -x_81 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_82 = lean_array_push(x_80, x_81); -x_83 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_82); -x_85 = lean_array_push(x_79, x_84); -x_86 = l_Array_appendCore___rarg(x_30, x_24); +x_79 = lean_array_push(x_73, x_78); +x_80 = l_Array_appendCore___rarg(x_30, x_24); lean_dec(x_24); -x_87 = l_Lean_nullKind___closed__2; -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -x_89 = lean_array_push(x_85, x_88); -x_90 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; -lean_inc(x_73); -x_91 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_91, 0, x_73); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_array_push(x_30, x_91); -x_93 = x_23; -x_94 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_57, x_36, x_93); -x_95 = x_94; -x_96 = l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__6; -x_97 = l_Lean_mkSepArray(x_95, x_96); -lean_dec(x_95); -x_98 = l_Array_appendCore___rarg(x_30, x_97); -lean_dec(x_97); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_87); -lean_ctor_set(x_99, 1, x_98); -x_100 = lean_array_push(x_92, x_99); -x_101 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_100); -x_103 = lean_array_push(x_30, x_102); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_87); -lean_ctor_set(x_104, 1, x_103); -x_105 = lean_array_push(x_89, x_104); -x_106 = lean_array_push(x_105, x_81); -x_107 = lean_array_push(x_106, x_81); -x_108 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; -x_109 = lean_array_push(x_107, x_108); -x_110 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_109); -x_112 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; -x_113 = lean_array_push(x_112, x_111); -x_114 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_113); -x_116 = lean_array_push(x_30, x_115); -x_117 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; -lean_inc(x_73); -x_118 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_118, 0, x_73); -lean_ctor_set(x_118, 1, x_117); -x_119 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; -x_120 = lean_array_push(x_119, x_118); -x_121 = lean_array_push(x_120, x_81); -x_122 = lean_array_push(x_121, x_81); -x_123 = l_Array_appendCore___rarg(x_30, x_62); +x_81 = l_Lean_nullKind___closed__2; +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_80); +x_83 = lean_array_push(x_79, x_82); +x_84 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +lean_inc(x_67); +x_85 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_85, 0, x_67); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_array_push(x_30, x_85); +x_87 = x_23; +x_88 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_57, x_36, x_87); +x_89 = x_88; +x_90 = l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__6; +x_91 = l_Lean_mkSepArray(x_89, x_90); +lean_dec(x_89); +x_92 = l_Array_appendCore___rarg(x_30, x_91); +lean_dec(x_91); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_81); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_array_push(x_86, x_93); +x_95 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = lean_array_push(x_30, x_96); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_81); +lean_ctor_set(x_98, 1, x_97); +x_99 = lean_array_push(x_83, x_98); +x_100 = lean_array_push(x_99, x_75); +x_101 = lean_array_push(x_100, x_75); +x_102 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_103 = lean_array_push(x_101, x_102); +x_104 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_103); +x_106 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; +x_107 = lean_array_push(x_106, x_105); +x_108 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_107); +x_110 = lean_array_push(x_30, x_109); +x_111 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; +lean_inc(x_67); +x_112 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_112, 0, x_67); +lean_ctor_set(x_112, 1, x_111); +x_113 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; +x_114 = lean_array_push(x_113, x_112); +x_115 = lean_array_push(x_114, x_75); +x_116 = lean_array_push(x_115, x_75); +x_117 = l_Array_appendCore___rarg(x_30, x_62); lean_dec(x_62); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_87); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_81); +lean_ctor_set(x_118, 1, x_117); +x_119 = lean_array_push(x_30, x_118); +x_120 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; +lean_inc(x_67); +x_121 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_121, 0, x_67); +lean_ctor_set(x_121, 1, x_120); +x_122 = lean_array_push(x_30, x_121); +x_123 = l_Lean_Parser_Tactic_inductionAlt___closed__5; +lean_inc(x_67); +x_124 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_124, 0, x_67); lean_ctor_set(x_124, 1, x_123); x_125 = lean_array_push(x_30, x_124); -x_126 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; -lean_inc(x_73); -x_127 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_127, 0, x_73); -lean_ctor_set(x_127, 1, x_126); -x_128 = lean_array_push(x_30, x_127); -x_129 = l_Lean_Parser_Tactic_inductionAlt___closed__5; -lean_inc(x_73); -x_130 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_130, 0, x_73); -lean_ctor_set(x_130, 1, x_129); -x_131 = lean_array_push(x_30, x_130); -lean_inc(x_131); -x_132 = lean_array_push(x_131, x_9); -x_133 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +lean_inc(x_125); +x_126 = lean_array_push(x_125, x_9); +x_127 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = lean_array_push(x_30, x_128); +x_130 = l_Array_appendCore___rarg(x_30, x_45); +lean_dec(x_45); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_81); +lean_ctor_set(x_131, 1, x_130); +x_132 = lean_array_push(x_129, x_131); +x_133 = l_myMacro____x40_Init_Notation___hyg_2278____closed__4; x_134 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_134, 0, x_133); lean_ctor_set(x_134, 1, x_132); -x_135 = lean_array_push(x_30, x_134); -x_136 = l_Array_appendCore___rarg(x_30, x_45); -lean_dec(x_45); +x_135 = lean_array_push(x_122, x_134); +x_136 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_87); -lean_ctor_set(x_137, 1, x_136); -x_138 = lean_array_push(x_135, x_137); -x_139 = l_myMacro____x40_Init_Notation___hyg_2278____closed__4; +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +x_138 = lean_array_push(x_119, x_137); +x_139 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_140 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_140, 0, x_139); lean_ctor_set(x_140, 1, x_138); -x_141 = lean_array_push(x_128, x_140); -x_142 = l_Lean_expandExplicitBindersAux_loop___closed__4; -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_141); -x_144 = lean_array_push(x_125, x_143); -x_145 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_141 = lean_array_push(x_116, x_140); +x_142 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +x_143 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_143, 0, x_67); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_array_push(x_30, x_143); +x_145 = lean_array_push(x_125, x_64); x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -x_147 = lean_array_push(x_122, x_146); -x_148 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -x_149 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_149, 0, x_73); -lean_ctor_set(x_149, 1, x_148); -x_150 = lean_array_push(x_30, x_149); -x_151 = lean_array_push(x_131, x_70); -x_152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_152, 0, x_133); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_array_push(x_30, x_152); -x_154 = l_Array_appendCore___rarg(x_30, x_61); +lean_ctor_set(x_146, 0, x_127); +lean_ctor_set(x_146, 1, x_145); +x_147 = lean_array_push(x_30, x_146); +x_148 = l_Array_appendCore___rarg(x_30, x_61); lean_dec(x_61); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_81); +lean_ctor_set(x_149, 1, x_148); +x_150 = lean_array_push(x_147, x_149); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_133); +lean_ctor_set(x_151, 1, x_150); +x_152 = lean_array_push(x_144, x_151); +x_153 = lean_array_push(x_152, x_75); +x_154 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__32; x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_87); -lean_ctor_set(x_155, 1, x_154); -x_156 = lean_array_push(x_153, x_155); -x_157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_157, 0, x_139); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_array_push(x_150, x_157); -x_159 = lean_array_push(x_158, x_81); -x_160 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__32; -x_161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_159); -x_162 = lean_array_push(x_147, x_161); -x_163 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_162); -x_165 = lean_array_push(x_112, x_164); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_114); -lean_ctor_set(x_166, 1, x_165); -x_167 = lean_array_push(x_116, x_166); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_87); -lean_ctor_set(x_168, 1, x_167); -lean_ctor_set(x_71, 0, x_168); -return x_71; +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_153); +x_156 = lean_array_push(x_141, x_155); +x_157 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_156); +x_159 = lean_array_push(x_106, x_158); +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_108); +lean_ctor_set(x_160, 1, x_159); +x_161 = lean_array_push(x_110, x_160); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_81); +lean_ctor_set(x_162, 1, x_161); +lean_ctor_set(x_65, 0, x_162); +return x_65; } else { -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; 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; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 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; 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; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; 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; -x_169 = lean_ctor_get(x_71, 0); -x_170 = lean_ctor_get(x_71, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_71); -x_171 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; -lean_inc(x_169); -x_172 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_172, 0, x_169); -lean_ctor_set(x_172, 1, x_171); -x_173 = lean_array_push(x_30, x_172); -x_174 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* 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; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 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; 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; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_163 = lean_ctor_get(x_65, 0); +x_164 = lean_ctor_get(x_65, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_65); +x_165 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +lean_inc(x_163); +x_166 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_165); +x_167 = lean_array_push(x_30, x_166); +x_168 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_167); +x_170 = lean_array_push(x_30, x_169); +lean_inc(x_9); +x_171 = lean_array_push(x_30, x_9); +x_172 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_173 = lean_array_push(x_171, x_172); +x_174 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; x_175 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_175, 0, x_174); lean_ctor_set(x_175, 1, x_173); -x_176 = lean_array_push(x_30, x_175); -lean_inc(x_9); -x_177 = lean_array_push(x_30, x_9); -x_178 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_179 = lean_array_push(x_177, x_178); -x_180 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_179); -x_182 = lean_array_push(x_176, x_181); -x_183 = l_Array_appendCore___rarg(x_30, x_24); +x_176 = lean_array_push(x_170, x_175); +x_177 = l_Array_appendCore___rarg(x_30, x_24); lean_dec(x_24); -x_184 = l_Lean_nullKind___closed__2; -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_183); -x_186 = lean_array_push(x_182, x_185); -x_187 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; -lean_inc(x_169); -x_188 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_188, 0, x_169); -lean_ctor_set(x_188, 1, x_187); -x_189 = lean_array_push(x_30, x_188); -x_190 = x_23; -x_191 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_57, x_36, x_190); -x_192 = x_191; -x_193 = l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__6; -x_194 = l_Lean_mkSepArray(x_192, x_193); -lean_dec(x_192); -x_195 = l_Array_appendCore___rarg(x_30, x_194); -lean_dec(x_194); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_184); -lean_ctor_set(x_196, 1, x_195); -x_197 = lean_array_push(x_189, x_196); -x_198 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_197); -x_200 = lean_array_push(x_30, x_199); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_184); -lean_ctor_set(x_201, 1, x_200); -x_202 = lean_array_push(x_186, x_201); -x_203 = lean_array_push(x_202, x_178); -x_204 = lean_array_push(x_203, x_178); -x_205 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; -x_206 = lean_array_push(x_204, x_205); -x_207 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_206); -x_209 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; -x_210 = lean_array_push(x_209, x_208); -x_211 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_210); -x_213 = lean_array_push(x_30, x_212); -x_214 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; -lean_inc(x_169); -x_215 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_215, 0, x_169); -lean_ctor_set(x_215, 1, x_214); -x_216 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; -x_217 = lean_array_push(x_216, x_215); -x_218 = lean_array_push(x_217, x_178); -x_219 = lean_array_push(x_218, x_178); -x_220 = l_Array_appendCore___rarg(x_30, x_62); +x_178 = l_Lean_nullKind___closed__2; +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_177); +x_180 = lean_array_push(x_176, x_179); +x_181 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +lean_inc(x_163); +x_182 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_182, 0, x_163); +lean_ctor_set(x_182, 1, x_181); +x_183 = lean_array_push(x_30, x_182); +x_184 = x_23; +x_185 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_57, x_36, x_184); +x_186 = x_185; +x_187 = l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__6; +x_188 = l_Lean_mkSepArray(x_186, x_187); +lean_dec(x_186); +x_189 = l_Array_appendCore___rarg(x_30, x_188); +lean_dec(x_188); +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_178); +lean_ctor_set(x_190, 1, x_189); +x_191 = lean_array_push(x_183, x_190); +x_192 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_191); +x_194 = lean_array_push(x_30, x_193); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_178); +lean_ctor_set(x_195, 1, x_194); +x_196 = lean_array_push(x_180, x_195); +x_197 = lean_array_push(x_196, x_172); +x_198 = lean_array_push(x_197, x_172); +x_199 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_200 = lean_array_push(x_198, x_199); +x_201 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_200); +x_203 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; +x_204 = lean_array_push(x_203, x_202); +x_205 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_204); +x_207 = lean_array_push(x_30, x_206); +x_208 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; +lean_inc(x_163); +x_209 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_209, 0, x_163); +lean_ctor_set(x_209, 1, x_208); +x_210 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; +x_211 = lean_array_push(x_210, x_209); +x_212 = lean_array_push(x_211, x_172); +x_213 = lean_array_push(x_212, x_172); +x_214 = l_Array_appendCore___rarg(x_30, x_62); lean_dec(x_62); -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_184); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_178); +lean_ctor_set(x_215, 1, x_214); +x_216 = lean_array_push(x_30, x_215); +x_217 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; +lean_inc(x_163); +x_218 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_218, 0, x_163); +lean_ctor_set(x_218, 1, x_217); +x_219 = lean_array_push(x_30, x_218); +x_220 = l_Lean_Parser_Tactic_inductionAlt___closed__5; +lean_inc(x_163); +x_221 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_221, 0, x_163); lean_ctor_set(x_221, 1, x_220); x_222 = lean_array_push(x_30, x_221); -x_223 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; -lean_inc(x_169); -x_224 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_224, 0, x_169); -lean_ctor_set(x_224, 1, x_223); -x_225 = lean_array_push(x_30, x_224); -x_226 = l_Lean_Parser_Tactic_inductionAlt___closed__5; -lean_inc(x_169); -x_227 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_227, 0, x_169); -lean_ctor_set(x_227, 1, x_226); -x_228 = lean_array_push(x_30, x_227); -lean_inc(x_228); -x_229 = lean_array_push(x_228, x_9); -x_230 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +lean_inc(x_222); +x_223 = lean_array_push(x_222, x_9); +x_224 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_223); +x_226 = lean_array_push(x_30, x_225); +x_227 = l_Array_appendCore___rarg(x_30, x_45); +lean_dec(x_45); +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_178); +lean_ctor_set(x_228, 1, x_227); +x_229 = lean_array_push(x_226, x_228); +x_230 = l_myMacro____x40_Init_Notation___hyg_2278____closed__4; x_231 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_231, 0, x_230); lean_ctor_set(x_231, 1, x_229); -x_232 = lean_array_push(x_30, x_231); -x_233 = l_Array_appendCore___rarg(x_30, x_45); -lean_dec(x_45); +x_232 = lean_array_push(x_219, x_231); +x_233 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_184); -lean_ctor_set(x_234, 1, x_233); -x_235 = lean_array_push(x_232, x_234); -x_236 = l_myMacro____x40_Init_Notation___hyg_2278____closed__4; +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_232); +x_235 = lean_array_push(x_216, x_234); +x_236 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_237 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_237, 0, x_236); lean_ctor_set(x_237, 1, x_235); -x_238 = lean_array_push(x_225, x_237); -x_239 = l_Lean_expandExplicitBindersAux_loop___closed__4; -x_240 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_238); -x_241 = lean_array_push(x_222, x_240); -x_242 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_238 = lean_array_push(x_213, x_237); +x_239 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +x_240 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_240, 0, x_163); +lean_ctor_set(x_240, 1, x_239); +x_241 = lean_array_push(x_30, x_240); +x_242 = lean_array_push(x_222, x_64); x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_241); -x_244 = lean_array_push(x_219, x_243); -x_245 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -x_246 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_246, 0, x_169); +lean_ctor_set(x_243, 0, x_224); +lean_ctor_set(x_243, 1, x_242); +x_244 = lean_array_push(x_30, x_243); +x_245 = l_Array_appendCore___rarg(x_30, x_61); +lean_dec(x_61); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_178); lean_ctor_set(x_246, 1, x_245); -x_247 = lean_array_push(x_30, x_246); -x_248 = lean_array_push(x_228, x_70); -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_230); -lean_ctor_set(x_249, 1, x_248); -x_250 = lean_array_push(x_30, x_249); -x_251 = l_Array_appendCore___rarg(x_30, x_61); -lean_dec(x_61); +x_247 = lean_array_push(x_244, x_246); +x_248 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_248, 0, x_230); +lean_ctor_set(x_248, 1, x_247); +x_249 = lean_array_push(x_241, x_248); +x_250 = lean_array_push(x_249, x_172); +x_251 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__32; x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_184); -lean_ctor_set(x_252, 1, x_251); -x_253 = lean_array_push(x_250, x_252); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_236); -lean_ctor_set(x_254, 1, x_253); -x_255 = lean_array_push(x_247, x_254); -x_256 = lean_array_push(x_255, x_178); -x_257 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__32; -x_258 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_256); -x_259 = lean_array_push(x_244, x_258); -x_260 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; -x_261 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_259); -x_262 = lean_array_push(x_209, x_261); -x_263 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_263, 0, x_211); -lean_ctor_set(x_263, 1, x_262); -x_264 = lean_array_push(x_213, x_263); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_184); -lean_ctor_set(x_265, 1, x_264); -x_266 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_170); -return x_266; +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +x_253 = lean_array_push(x_238, x_252); +x_254 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_253); +x_256 = lean_array_push(x_203, x_255); +x_257 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_257, 0, x_205); +lean_ctor_set(x_257, 1, x_256); +x_258 = lean_array_push(x_207, x_257); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_178); +lean_ctor_set(x_259, 1, x_258); +x_260 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_164); +return x_260; +} } } else { -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; 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; lean_object* x_289; lean_object* x_290; 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_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; 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; lean_object* 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; -x_267 = lean_ctor_get(x_64, 0); -x_268 = lean_ctor_get(x_64, 1); -x_269 = lean_ctor_get(x_64, 2); -x_270 = lean_ctor_get(x_64, 3); -lean_inc(x_270); -lean_inc(x_269); -lean_inc(x_268); -lean_inc(x_267); -lean_dec(x_64); -x_271 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; -x_272 = l_Lean_Name_append(x_267, x_271); -lean_dec(x_267); -x_273 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_268); -lean_ctor_set(x_273, 2, x_269); -lean_ctor_set(x_273, 3, x_270); -x_274 = l_Lean_MacroScopesView_review(x_273); -x_275 = l_Lean_mkIdentFrom(x_9, x_274); -x_276 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_2, x_60); -lean_dec(x_2); -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_279 = x_276; -} else { - lean_dec_ref(x_276); - x_279 = lean_box(0); -} -x_280 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; -lean_inc(x_277); -x_281 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_281, 0, x_277); -lean_ctor_set(x_281, 1, x_280); -x_282 = lean_array_push(x_30, x_281); -x_283 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; -x_284 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_282); -x_285 = lean_array_push(x_30, x_284); -lean_inc(x_9); -x_286 = lean_array_push(x_30, x_9); -x_287 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_288 = lean_array_push(x_286, x_287); -x_289 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; -x_290 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_290, 0, x_289); -lean_ctor_set(x_290, 1, x_288); -x_291 = lean_array_push(x_285, x_290); -x_292 = l_Array_appendCore___rarg(x_30, x_24); -lean_dec(x_24); -x_293 = l_Lean_nullKind___closed__2; -x_294 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_292); -x_295 = lean_array_push(x_291, x_294); -x_296 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; -lean_inc(x_277); -x_297 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_297, 0, x_277); -lean_ctor_set(x_297, 1, x_296); -x_298 = lean_array_push(x_30, x_297); -x_299 = x_23; -x_300 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_57, x_36, x_299); -x_301 = x_300; -x_302 = l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__6; -x_303 = l_Lean_mkSepArray(x_301, x_302); -lean_dec(x_301); -x_304 = l_Array_appendCore___rarg(x_30, x_303); -lean_dec(x_303); -x_305 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_305, 0, x_293); -lean_ctor_set(x_305, 1, x_304); -x_306 = lean_array_push(x_298, x_305); -x_307 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; -x_308 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_308, 0, x_307); -lean_ctor_set(x_308, 1, x_306); -x_309 = lean_array_push(x_30, x_308); -x_310 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_310, 0, x_293); -lean_ctor_set(x_310, 1, x_309); -x_311 = lean_array_push(x_295, x_310); -x_312 = lean_array_push(x_311, x_287); -x_313 = lean_array_push(x_312, x_287); -x_314 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; -x_315 = lean_array_push(x_313, x_314); -x_316 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; -x_317 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_317, 0, x_316); -lean_ctor_set(x_317, 1, x_315); -x_318 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; -x_319 = lean_array_push(x_318, x_317); -x_320 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; -x_321 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_319); -x_322 = lean_array_push(x_30, x_321); -x_323 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; -lean_inc(x_277); -x_324 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_324, 0, x_277); -lean_ctor_set(x_324, 1, x_323); -x_325 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; -x_326 = lean_array_push(x_325, x_324); -x_327 = lean_array_push(x_326, x_287); -x_328 = lean_array_push(x_327, x_287); -x_329 = l_Array_appendCore___rarg(x_30, x_62); -lean_dec(x_62); -x_330 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_330, 0, x_293); -lean_ctor_set(x_330, 1, x_329); -x_331 = lean_array_push(x_30, x_330); -x_332 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; -lean_inc(x_277); -x_333 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_333, 0, x_277); -lean_ctor_set(x_333, 1, x_332); -x_334 = lean_array_push(x_30, x_333); -x_335 = l_Lean_Parser_Tactic_inductionAlt___closed__5; -lean_inc(x_277); -x_336 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_336, 0, x_277); -lean_ctor_set(x_336, 1, x_335); -x_337 = lean_array_push(x_30, x_336); -lean_inc(x_337); -x_338 = lean_array_push(x_337, x_9); -x_339 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; -x_340 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_340, 0, x_339); -lean_ctor_set(x_340, 1, x_338); -x_341 = lean_array_push(x_30, x_340); -x_342 = l_Array_appendCore___rarg(x_30, x_45); -lean_dec(x_45); -x_343 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_343, 0, x_293); -lean_ctor_set(x_343, 1, x_342); -x_344 = lean_array_push(x_341, x_343); -x_345 = l_myMacro____x40_Init_Notation___hyg_2278____closed__4; -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_344); -x_347 = lean_array_push(x_334, x_346); -x_348 = l_Lean_expandExplicitBindersAux_loop___closed__4; -x_349 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_349, 0, x_348); -lean_ctor_set(x_349, 1, x_347); -x_350 = lean_array_push(x_331, x_349); -x_351 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; -x_352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_352, 0, x_351); -lean_ctor_set(x_352, 1, x_350); -x_353 = lean_array_push(x_328, x_352); -x_354 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -x_355 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_355, 0, x_277); -lean_ctor_set(x_355, 1, x_354); -x_356 = lean_array_push(x_30, x_355); -x_357 = lean_array_push(x_337, x_275); -x_358 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_358, 0, x_339); -lean_ctor_set(x_358, 1, x_357); -x_359 = lean_array_push(x_30, x_358); -x_360 = l_Array_appendCore___rarg(x_30, x_61); -lean_dec(x_61); -x_361 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_361, 0, x_293); -lean_ctor_set(x_361, 1, x_360); -x_362 = lean_array_push(x_359, x_361); -x_363 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_363, 0, x_345); -lean_ctor_set(x_363, 1, x_362); -x_364 = lean_array_push(x_356, x_363); -x_365 = lean_array_push(x_364, x_287); -x_366 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__32; -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_366); -lean_ctor_set(x_367, 1, x_365); -x_368 = lean_array_push(x_353, x_367); -x_369 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; -x_370 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_370, 0, x_369); -lean_ctor_set(x_370, 1, x_368); -x_371 = lean_array_push(x_318, x_370); -x_372 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_372, 0, x_320); -lean_ctor_set(x_372, 1, x_371); -x_373 = lean_array_push(x_322, x_372); -x_374 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_374, 0, x_293); -lean_ctor_set(x_374, 1, x_373); -if (lean_is_scalar(x_279)) { - x_375 = lean_alloc_ctor(0, 2, 0); -} else { - x_375 = x_279; -} -lean_ctor_set(x_375, 0, x_374); -lean_ctor_set(x_375, 1, x_278); -return x_375; -} -} -else -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; size_t x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; 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; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; 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; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; -x_376 = lean_ctor_get(x_41, 0); -x_377 = lean_ctor_get(x_41, 1); -lean_inc(x_377); -lean_inc(x_376); +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; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; size_t x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_403; uint8_t x_404; +x_280 = lean_ctor_get(x_41, 0); +x_281 = lean_ctor_get(x_41, 1); +lean_inc(x_281); +lean_inc(x_280); lean_dec(x_41); -x_378 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_myMacro____x40_Init_Notation___hyg_17039__expandListLit___spec__1(x_2, x_42); -x_379 = lean_ctor_get(x_378, 0); -lean_inc(x_379); -x_380 = lean_ctor_get(x_378, 1); -lean_inc(x_380); -lean_dec(x_378); -x_381 = lean_ctor_get(x_2, 2); -lean_inc(x_381); -x_382 = lean_ctor_get(x_2, 1); -lean_inc(x_382); -x_383 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18874____closed__3; -x_384 = l_Lean_addMacroScope(x_382, x_383, x_381); -x_385 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18874____closed__2; -x_386 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18874____closed__5; -x_387 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_387, 0, x_379); -lean_ctor_set(x_387, 1, x_385); -lean_ctor_set(x_387, 2, x_384); -lean_ctor_set(x_387, 3, x_386); -x_388 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_388, 0, x_43); -lean_ctor_set(x_388, 1, x_377); -x_389 = lean_array_get_size(x_23); -x_390 = lean_usize_of_nat(x_389); -lean_dec(x_389); -x_391 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__4(x_30, x_37, x_387, x_23, x_390, x_36, x_388, x_2, x_380); -x_392 = lean_ctor_get(x_391, 0); -lean_inc(x_392); -x_393 = lean_ctor_get(x_391, 1); -lean_inc(x_393); -lean_dec(x_391); -x_394 = lean_ctor_get(x_392, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_392, 1); -lean_inc(x_395); -lean_dec(x_392); -x_396 = l_Lean_Syntax_getId(x_9); -x_397 = l_Lean_extractMacroScopes(x_396); -x_398 = lean_ctor_get(x_397, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_397, 1); -lean_inc(x_399); -x_400 = lean_ctor_get(x_397, 2); -lean_inc(x_400); -x_401 = lean_ctor_get(x_397, 3); -lean_inc(x_401); -if (lean_is_exclusive(x_397)) { - lean_ctor_release(x_397, 0); - lean_ctor_release(x_397, 1); - lean_ctor_release(x_397, 2); - lean_ctor_release(x_397, 3); - x_402 = x_397; -} else { - lean_dec_ref(x_397); - x_402 = lean_box(0); +x_282 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_myMacro____x40_Init_Notation___hyg_17039__expandListLit___spec__1(x_2, x_42); +x_283 = lean_ctor_get(x_282, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_282, 1); +lean_inc(x_284); +lean_dec(x_282); +x_285 = lean_ctor_get(x_2, 2); +lean_inc(x_285); +x_286 = lean_ctor_get(x_2, 1); +lean_inc(x_286); +x_287 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18874____closed__3; +x_288 = l_Lean_addMacroScope(x_286, x_287, x_285); +x_289 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18874____closed__2; +x_290 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18874____closed__5; +x_291 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_291, 0, x_283); +lean_ctor_set(x_291, 1, x_289); +lean_ctor_set(x_291, 2, x_288); +lean_ctor_set(x_291, 3, x_290); +x_292 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_292, 0, x_43); +lean_ctor_set(x_292, 1, x_281); +x_293 = lean_array_get_size(x_23); +x_294 = lean_usize_of_nat(x_293); +lean_dec(x_293); +x_295 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__4(x_30, x_37, x_291, x_23, x_294, x_36, x_292, x_2, x_284); +x_296 = lean_ctor_get(x_295, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_295, 1); +lean_inc(x_297); +lean_dec(x_295); +x_298 = lean_ctor_get(x_296, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_296, 1); +lean_inc(x_299); +lean_dec(x_296); +x_403 = l_Lean_Syntax_getId(x_9); +x_404 = l_Lean_Name_hasMacroScopes(x_403); +if (x_404 == 0) +{ +lean_object* x_405; lean_object* x_406; +x_405 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_406 = l_Lean_Name_append(x_403, x_405); +lean_dec(x_403); +x_300 = x_406; +goto block_402; } -x_403 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; -x_404 = l_Lean_Name_append(x_398, x_403); -lean_dec(x_398); -if (lean_is_scalar(x_402)) { - x_405 = lean_alloc_ctor(0, 4, 0); -} else { - x_405 = x_402; -} -lean_ctor_set(x_405, 0, x_404); -lean_ctor_set(x_405, 1, x_399); -lean_ctor_set(x_405, 2, x_400); -lean_ctor_set(x_405, 3, x_401); -x_406 = l_Lean_MacroScopesView_review(x_405); -x_407 = l_Lean_mkIdentFrom(x_9, x_406); -x_408 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_2, x_393); -lean_dec(x_2); -x_409 = lean_ctor_get(x_408, 0); +else +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_407 = l_Lean_extractMacroScopes(x_403); +x_408 = lean_ctor_get(x_407, 0); +lean_inc(x_408); +x_409 = lean_ctor_get(x_407, 1); lean_inc(x_409); -x_410 = lean_ctor_get(x_408, 1); +x_410 = lean_ctor_get(x_407, 2); lean_inc(x_410); -if (lean_is_exclusive(x_408)) { - lean_ctor_release(x_408, 0); - lean_ctor_release(x_408, 1); - x_411 = x_408; +x_411 = lean_ctor_get(x_407, 3); +lean_inc(x_411); +if (lean_is_exclusive(x_407)) { + lean_ctor_release(x_407, 0); + lean_ctor_release(x_407, 1); + lean_ctor_release(x_407, 2); + lean_ctor_release(x_407, 3); + x_412 = x_407; } else { - lean_dec_ref(x_408); - x_411 = lean_box(0); + lean_dec_ref(x_407); + x_412 = lean_box(0); } -x_412 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; -lean_inc(x_409); -x_413 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_413, 0, x_409); -lean_ctor_set(x_413, 1, x_412); -x_414 = lean_array_push(x_30, x_413); -x_415 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; -x_416 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_416, 0, x_415); -lean_ctor_set(x_416, 1, x_414); -x_417 = lean_array_push(x_30, x_416); +x_413 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_414 = l_Lean_Name_append(x_408, x_413); +lean_dec(x_408); +if (lean_is_scalar(x_412)) { + x_415 = lean_alloc_ctor(0, 4, 0); +} else { + x_415 = x_412; +} +lean_ctor_set(x_415, 0, x_414); +lean_ctor_set(x_415, 1, x_409); +lean_ctor_set(x_415, 2, x_410); +lean_ctor_set(x_415, 3, x_411); +x_416 = l_Lean_MacroScopesView_review(x_415); +x_300 = x_416; +goto block_402; +} +block_402: +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; 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; lean_object* 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; 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; lean_object* x_394; 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_301 = l_Lean_mkIdentFrom(x_9, x_300); +x_302 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_113____spec__1(x_2, x_297); +lean_dec(x_2); +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_302, 1); +lean_inc(x_304); +if (lean_is_exclusive(x_302)) { + lean_ctor_release(x_302, 0); + lean_ctor_release(x_302, 1); + x_305 = x_302; +} else { + lean_dec_ref(x_302); + x_305 = lean_box(0); +} +x_306 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +lean_inc(x_303); +x_307 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_307, 0, x_303); +lean_ctor_set(x_307, 1, x_306); +x_308 = lean_array_push(x_30, x_307); +x_309 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; +x_310 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_310, 0, x_309); +lean_ctor_set(x_310, 1, x_308); +x_311 = lean_array_push(x_30, x_310); lean_inc(x_9); -x_418 = lean_array_push(x_30, x_9); -x_419 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_420 = lean_array_push(x_418, x_419); -x_421 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; -x_422 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_422, 0, x_421); -lean_ctor_set(x_422, 1, x_420); -x_423 = lean_array_push(x_417, x_422); -x_424 = l_Array_appendCore___rarg(x_30, x_24); +x_312 = lean_array_push(x_30, x_9); +x_313 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_314 = lean_array_push(x_312, x_313); +x_315 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; +x_316 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_314); +x_317 = lean_array_push(x_311, x_316); +x_318 = l_Array_appendCore___rarg(x_30, x_24); lean_dec(x_24); -x_425 = l_Lean_nullKind___closed__2; -x_426 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_426, 0, x_425); -lean_ctor_set(x_426, 1, x_424); -x_427 = lean_array_push(x_423, x_426); -x_428 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; -lean_inc(x_409); -x_429 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_429, 0, x_409); -lean_ctor_set(x_429, 1, x_428); -x_430 = lean_array_push(x_30, x_429); -x_431 = x_23; -x_432 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_390, x_36, x_431); -x_433 = x_432; -x_434 = l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__6; -x_435 = l_Lean_mkSepArray(x_433, x_434); -lean_dec(x_433); -x_436 = l_Array_appendCore___rarg(x_30, x_435); -lean_dec(x_435); -x_437 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_437, 0, x_425); -lean_ctor_set(x_437, 1, x_436); -x_438 = lean_array_push(x_430, x_437); -x_439 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; -x_440 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_440, 0, x_439); -lean_ctor_set(x_440, 1, x_438); -x_441 = lean_array_push(x_30, x_440); -x_442 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_442, 0, x_425); -lean_ctor_set(x_442, 1, x_441); -x_443 = lean_array_push(x_427, x_442); -x_444 = lean_array_push(x_443, x_419); -x_445 = lean_array_push(x_444, x_419); -x_446 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; -x_447 = lean_array_push(x_445, x_446); -x_448 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_448); -lean_ctor_set(x_449, 1, x_447); -x_450 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; -x_451 = lean_array_push(x_450, x_449); -x_452 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; -x_453 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_453, 0, x_452); -lean_ctor_set(x_453, 1, x_451); -x_454 = lean_array_push(x_30, x_453); -x_455 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; -lean_inc(x_409); -x_456 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_456, 0, x_409); -lean_ctor_set(x_456, 1, x_455); -x_457 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; -x_458 = lean_array_push(x_457, x_456); -x_459 = lean_array_push(x_458, x_419); -x_460 = lean_array_push(x_459, x_419); -x_461 = l_Array_appendCore___rarg(x_30, x_395); -lean_dec(x_395); -x_462 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_462, 0, x_425); -lean_ctor_set(x_462, 1, x_461); -x_463 = lean_array_push(x_30, x_462); -x_464 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; -lean_inc(x_409); -x_465 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_465, 0, x_409); -lean_ctor_set(x_465, 1, x_464); -x_466 = lean_array_push(x_30, x_465); -x_467 = l_Lean_Parser_Tactic_inductionAlt___closed__5; -lean_inc(x_409); -x_468 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_468, 0, x_409); -lean_ctor_set(x_468, 1, x_467); -x_469 = lean_array_push(x_30, x_468); -lean_inc(x_469); -x_470 = lean_array_push(x_469, x_9); -x_471 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; -x_472 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_472, 0, x_471); -lean_ctor_set(x_472, 1, x_470); -x_473 = lean_array_push(x_30, x_472); -x_474 = l_Array_appendCore___rarg(x_30, x_376); -lean_dec(x_376); -x_475 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_475, 0, x_425); -lean_ctor_set(x_475, 1, x_474); -x_476 = lean_array_push(x_473, x_475); -x_477 = l_myMacro____x40_Init_Notation___hyg_2278____closed__4; -x_478 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_478, 0, x_477); -lean_ctor_set(x_478, 1, x_476); -x_479 = lean_array_push(x_466, x_478); -x_480 = l_Lean_expandExplicitBindersAux_loop___closed__4; -x_481 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_481, 0, x_480); -lean_ctor_set(x_481, 1, x_479); -x_482 = lean_array_push(x_463, x_481); -x_483 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; -x_484 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_484, 0, x_483); -lean_ctor_set(x_484, 1, x_482); -x_485 = lean_array_push(x_460, x_484); -x_486 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -x_487 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_487, 0, x_409); -lean_ctor_set(x_487, 1, x_486); -x_488 = lean_array_push(x_30, x_487); -x_489 = lean_array_push(x_469, x_407); -x_490 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_490, 0, x_471); -lean_ctor_set(x_490, 1, x_489); -x_491 = lean_array_push(x_30, x_490); -x_492 = l_Array_appendCore___rarg(x_30, x_394); -lean_dec(x_394); -x_493 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_493, 0, x_425); -lean_ctor_set(x_493, 1, x_492); -x_494 = lean_array_push(x_491, x_493); -x_495 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_495, 0, x_477); -lean_ctor_set(x_495, 1, x_494); -x_496 = lean_array_push(x_488, x_495); -x_497 = lean_array_push(x_496, x_419); -x_498 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__32; -x_499 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_499, 0, x_498); -lean_ctor_set(x_499, 1, x_497); -x_500 = lean_array_push(x_485, x_499); -x_501 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; -x_502 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_502, 0, x_501); -lean_ctor_set(x_502, 1, x_500); -x_503 = lean_array_push(x_450, x_502); -x_504 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_504, 0, x_452); -lean_ctor_set(x_504, 1, x_503); -x_505 = lean_array_push(x_454, x_504); -x_506 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_506, 0, x_425); -lean_ctor_set(x_506, 1, x_505); -if (lean_is_scalar(x_411)) { - x_507 = lean_alloc_ctor(0, 2, 0); +x_319 = l_Lean_nullKind___closed__2; +x_320 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_320, 0, x_319); +lean_ctor_set(x_320, 1, x_318); +x_321 = lean_array_push(x_317, x_320); +x_322 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +lean_inc(x_303); +x_323 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_323, 0, x_303); +lean_ctor_set(x_323, 1, x_322); +x_324 = lean_array_push(x_30, x_323); +x_325 = x_23; +x_326 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_294, x_36, x_325); +x_327 = x_326; +x_328 = l_myMacro____x40_Init_NotationExtra___hyg_5248____closed__6; +x_329 = l_Lean_mkSepArray(x_327, x_328); +lean_dec(x_327); +x_330 = l_Array_appendCore___rarg(x_30, x_329); +lean_dec(x_329); +x_331 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_331, 0, x_319); +lean_ctor_set(x_331, 1, x_330); +x_332 = lean_array_push(x_324, x_331); +x_333 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; +x_334 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_332); +x_335 = lean_array_push(x_30, x_334); +x_336 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_336, 0, x_319); +lean_ctor_set(x_336, 1, x_335); +x_337 = lean_array_push(x_321, x_336); +x_338 = lean_array_push(x_337, x_313); +x_339 = lean_array_push(x_338, x_313); +x_340 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_341 = lean_array_push(x_339, x_340); +x_342 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_342); +lean_ctor_set(x_343, 1, x_341); +x_344 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; +x_345 = lean_array_push(x_344, x_343); +x_346 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; +x_347 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_347, 0, x_346); +lean_ctor_set(x_347, 1, x_345); +x_348 = lean_array_push(x_30, x_347); +x_349 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; +lean_inc(x_303); +x_350 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_350, 0, x_303); +lean_ctor_set(x_350, 1, x_349); +x_351 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; +x_352 = lean_array_push(x_351, x_350); +x_353 = lean_array_push(x_352, x_313); +x_354 = lean_array_push(x_353, x_313); +x_355 = l_Array_appendCore___rarg(x_30, x_299); +lean_dec(x_299); +x_356 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_356, 0, x_319); +lean_ctor_set(x_356, 1, x_355); +x_357 = lean_array_push(x_30, x_356); +x_358 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; +lean_inc(x_303); +x_359 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_359, 0, x_303); +lean_ctor_set(x_359, 1, x_358); +x_360 = lean_array_push(x_30, x_359); +x_361 = l_Lean_Parser_Tactic_inductionAlt___closed__5; +lean_inc(x_303); +x_362 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_362, 0, x_303); +lean_ctor_set(x_362, 1, x_361); +x_363 = lean_array_push(x_30, x_362); +lean_inc(x_363); +x_364 = lean_array_push(x_363, x_9); +x_365 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; +x_366 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_366, 0, x_365); +lean_ctor_set(x_366, 1, x_364); +x_367 = lean_array_push(x_30, x_366); +x_368 = l_Array_appendCore___rarg(x_30, x_280); +lean_dec(x_280); +x_369 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_319); +lean_ctor_set(x_369, 1, x_368); +x_370 = lean_array_push(x_367, x_369); +x_371 = l_myMacro____x40_Init_Notation___hyg_2278____closed__4; +x_372 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_370); +x_373 = lean_array_push(x_360, x_372); +x_374 = l_Lean_expandExplicitBindersAux_loop___closed__4; +x_375 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_373); +x_376 = lean_array_push(x_357, x_375); +x_377 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_378 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_378, 0, x_377); +lean_ctor_set(x_378, 1, x_376); +x_379 = lean_array_push(x_354, x_378); +x_380 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +x_381 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_381, 0, x_303); +lean_ctor_set(x_381, 1, x_380); +x_382 = lean_array_push(x_30, x_381); +x_383 = lean_array_push(x_363, x_301); +x_384 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_384, 0, x_365); +lean_ctor_set(x_384, 1, x_383); +x_385 = lean_array_push(x_30, x_384); +x_386 = l_Array_appendCore___rarg(x_30, x_298); +lean_dec(x_298); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_319); +lean_ctor_set(x_387, 1, x_386); +x_388 = lean_array_push(x_385, x_387); +x_389 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_389, 0, x_371); +lean_ctor_set(x_389, 1, x_388); +x_390 = lean_array_push(x_382, x_389); +x_391 = lean_array_push(x_390, x_313); +x_392 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__32; +x_393 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_393, 0, x_392); +lean_ctor_set(x_393, 1, x_391); +x_394 = lean_array_push(x_379, x_393); +x_395 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_396 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_396, 0, x_395); +lean_ctor_set(x_396, 1, x_394); +x_397 = lean_array_push(x_344, x_396); +x_398 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_398, 0, x_346); +lean_ctor_set(x_398, 1, x_397); +x_399 = lean_array_push(x_348, x_398); +x_400 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_400, 0, x_319); +lean_ctor_set(x_400, 1, x_399); +if (lean_is_scalar(x_305)) { + x_401 = lean_alloc_ctor(0, 2, 0); } else { - x_507 = x_411; + x_401 = x_305; +} +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_304); +return x_401; } -lean_ctor_set(x_507, 0, x_506); -lean_ctor_set(x_507, 1, x_410); -return x_507; } } else { -uint8_t x_508; +uint8_t x_417; lean_dec(x_24); lean_dec(x_23); lean_dec(x_9); lean_dec(x_2); -x_508 = !lean_is_exclusive(x_39); -if (x_508 == 0) +x_417 = !lean_is_exclusive(x_39); +if (x_417 == 0) { return x_39; } else { -lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_509 = lean_ctor_get(x_39, 0); -x_510 = lean_ctor_get(x_39, 1); -lean_inc(x_510); -lean_inc(x_509); +lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_418 = lean_ctor_get(x_39, 0); +x_419 = lean_ctor_get(x_39, 1); +lean_inc(x_419); +lean_inc(x_418); lean_dec(x_39); -x_511 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_511, 0, x_509); -lean_ctor_set(x_511, 1, x_510); -return x_511; +x_420 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_419); +return x_420; } } } @@ -11045,7 +10903,7 @@ x_1 = l_tacticSolve_x7c___x7c___closed__7; return x_1; } } -lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7474____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, size_t x_9, size_t x_10, lean_object* x_11) { +lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7451____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, size_t x_9, size_t x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -11164,7 +11022,7 @@ goto _start; } } } -static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___closed__1() { +static lean_object* _init_l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -11176,7 +11034,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; @@ -11217,9 +11075,9 @@ x_26 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18113____closed__ x_27 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18113____closed__5; x_28 = l_Lean_nullKind___closed__2; x_29 = l_Lean_groupKind___closed__2; -x_30 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7474____spec__1(x_10, x_25, x_13, x_26, x_27, x_28, x_29, x_18, x_22, x_23, x_24); +x_30 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7451____spec__1(x_10, x_25, x_13, x_26, x_27, x_28, x_29, x_18, x_22, x_23, x_24); x_31 = x_30; -x_32 = l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___closed__1; +x_32 = l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___closed__1; x_33 = l_Lean_mkSepArray(x_31, x_32); lean_dec(x_31); x_34 = l_Array_appendCore___rarg(x_13, x_33); @@ -11292,9 +11150,9 @@ x_68 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18113____closed__ x_69 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18113____closed__5; x_70 = l_Lean_nullKind___closed__2; x_71 = l_Lean_groupKind___closed__2; -x_72 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7474____spec__1(x_51, x_67, x_55, x_68, x_69, x_70, x_71, x_60, x_64, x_65, x_66); +x_72 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7451____spec__1(x_51, x_67, x_55, x_68, x_69, x_70, x_71, x_60, x_64, x_65, x_66); x_73 = x_72; -x_74 = l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___closed__1; +x_74 = l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___closed__1; x_75 = l_Lean_mkSepArray(x_73, x_74); lean_dec(x_73); x_76 = l_Array_appendCore___rarg(x_55, x_75); @@ -11336,7 +11194,7 @@ return x_93; } } } -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451_(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11378,7 +11236,7 @@ else { lean_object* x_15; lean_object* x_16; x_15 = lean_box(0); -x_16 = l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1(x_1, x_15, x_2, x_3); +x_16 = l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1(x_1, x_15, x_2, x_3); lean_dec(x_1); return x_16; } @@ -11388,14 +11246,14 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_9); x_17 = lean_box(0); -x_18 = l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1(x_1, x_17, x_2, x_3); +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1(x_1, x_17, x_2, x_3); lean_dec(x_1); return x_18; } } } } -lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7474____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7451____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -11403,26 +11261,26 @@ x_12 = lean_unbox_usize(x_9); lean_dec(x_9); x_13 = lean_unbox_usize(x_10); lean_dec(x_10); -x_14 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7474____spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12, x_13, x_11); +x_14 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_7451____spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12, x_13, x_11); return x_14; } } -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7474____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_myMacro____x40_Init_NotationExtra___hyg_7474_(x_1, x_2, x_3); +x_4 = l_myMacro____x40_Init_NotationExtra___hyg_7451_(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -11996,8 +11854,8 @@ l_tacticSolve_x7c___x7c___closed__7 = _init_l_tacticSolve_x7c___x7c___closed__7( lean_mark_persistent(l_tacticSolve_x7c___x7c___closed__7); l_tacticSolve_x7c___x7c = _init_l_tacticSolve_x7c___x7c(); lean_mark_persistent(l_tacticSolve_x7c___x7c); -l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___closed__1 = _init_l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___closed__1(); -lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_7474____lambda__1___closed__1); +l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___closed__1 = _init_l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___closed__1(); +lean_mark_persistent(l_myMacro____x40_Init_NotationExtra___hyg_7451____lambda__1___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Attributes.c b/stage0/stdlib/Lean/Attributes.c index f29ade4b40..5fbbcc05f0 100644 --- a/stage0/stdlib/Lean/Attributes.c +++ b/stage0/stdlib/Lean/Attributes.c @@ -229,9 +229,9 @@ lean_object* l_Lean_registerEnumAttributes___rarg___lambda__2(lean_object*, lean lean_object* l_Lean_registerEnumAttributes___rarg___lambda__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Attribute_Builtin_getId___closed__3; lean_object* l_Array_qpartition_loop___at_Lean_registerParametricAttribute___spec__3(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; lean_object* l_Lean_getAttributeNames___boxed(lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; lean_object* l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2(lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_instInhabitedParametricAttribute___closed__1; @@ -6035,7 +6035,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Attr_simp___closed__2; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Class.c b/stage0/stdlib/Lean/Class.c index 85df36a834..b7b6a4f472 100644 --- a/stage0/stdlib/Lean/Class.c +++ b/stage0/stdlib/Lean/Class.c @@ -115,7 +115,7 @@ lean_object* l_Std_mkHashMapImp___rarg(lean_object*); uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_isClass___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_hasOutParams_match__1(lean_object*); lean_object* l_Lean_isClass___boxed(lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; lean_object* l_Lean_classExtension___closed__5; size_t l_Lean_Name_hash(lean_object*); lean_object* l_Nat_repr(lean_object*); @@ -3798,7 +3798,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Compiler/IR/Boxing.c b/stage0/stdlib/Lean/Compiler/IR/Boxing.c index 63a288ca1b..ceb73feb97 100644 --- a/stage0/stdlib/Lean/Compiler/IR/Boxing.c +++ b/stage0/stdlib/Lean/Compiler/IR/Boxing.c @@ -99,7 +99,7 @@ lean_object* l_Lean_IR_ExplicitBoxing_getScrutineeType_match__2___rarg(uint8_t, lean_object* l_Lean_IR_ExplicitBoxing_visitFnBody_match__1(lean_object*); lean_object* l_Lean_IR_LocalContext_addJP(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_IR_ExplicitBoxing_getScrutineeType_match__2(lean_object*); lean_object* l_Lean_IR_ExplicitBoxing_mkCast___closed__1; lean_object* l_Lean_IR_ExplicitBoxing_mkCast___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2579,7 +2579,7 @@ lean_dec(x_38); x_39 = lean_ctor_get(x_4, 0); x_40 = l_Lean_IR_ExplicitBoxing_mkCast___closed__4; lean_inc(x_32); -x_41 = l_Lean_Name_appendIndexAfter(x_40, x_32); +x_41 = lean_name_append_index_after(x_40, x_32); x_42 = l_Lean_Name_append(x_39, x_41); x_43 = l_Array_empty___closed__1; lean_inc(x_42); @@ -2615,7 +2615,7 @@ lean_dec(x_20); x_50 = lean_ctor_get(x_4, 0); x_51 = l_Lean_IR_ExplicitBoxing_mkCast___closed__4; lean_inc(x_32); -x_52 = l_Lean_Name_appendIndexAfter(x_51, x_32); +x_52 = lean_name_append_index_after(x_51, x_32); x_53 = l_Lean_Name_append(x_50, x_52); x_54 = l_Array_empty___closed__1; lean_inc(x_53); @@ -2718,7 +2718,7 @@ if (lean_is_exclusive(x_63)) { x_77 = lean_ctor_get(x_4, 0); x_78 = l_Lean_IR_ExplicitBoxing_mkCast___closed__4; lean_inc(x_74); -x_79 = l_Lean_Name_appendIndexAfter(x_78, x_74); +x_79 = lean_name_append_index_after(x_78, x_74); x_80 = l_Lean_Name_append(x_77, x_79); x_81 = l_Array_empty___closed__1; lean_inc(x_80); diff --git a/stage0/stdlib/Lean/Compiler/IR/Format.c b/stage0/stdlib/Lean/Compiler/IR/Format.c index c54503f2ac..1bf2ade141 100644 --- a/stage0/stdlib/Lean/Compiler/IR/Format.c +++ b/stage0/stdlib/Lean/Compiler/IR/Format.c @@ -74,8 +74,8 @@ extern lean_object* l_Std_Format_sbracket___closed__4; lean_object* l_Lean_IR_formatArray___at_Lean_IR_formatParams___spec__1(lean_object*); lean_object* l_Lean_IR_formatAlt___closed__2; lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType___closed__19; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; lean_object* l_Lean_IR_formatFnBodyHead___closed__11; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* l_Lean_IR_formatFnBodyHead___closed__8; lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatLitVal(lean_object*); lean_object* l_Lean_IR_formatArray___rarg(lean_object*, lean_object*); @@ -3580,7 +3580,7 @@ x_13 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_3); x_14 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_15 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_16 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -3673,7 +3673,7 @@ x_53 = l_Lean_IR_formatFnBodyHead___closed__9; x_54 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); -x_55 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_55 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_56 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); @@ -3781,7 +3781,7 @@ x_103 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_84); x_104 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_104, 0, x_102); lean_ctor_set(x_104, 1, x_103); -x_105 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_105 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_106 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_106, 0, x_104); lean_ctor_set(x_106, 1, x_105); @@ -4133,7 +4133,7 @@ x_15 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_4); x_16 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -4283,7 +4283,7 @@ x_82 = l_Lean_IR_formatFnBodyHead___closed__9; x_83 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_83, 0, x_82); lean_ctor_set(x_83, 1, x_81); -x_84 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_84 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_85 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_85, 0, x_83); lean_ctor_set(x_85, 1, x_84); @@ -4419,7 +4419,7 @@ x_146 = l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType(x_126); x_147 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_147, 0, x_145); lean_ctor_set(x_147, 1, x_146); -x_148 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_148 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_149 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_149, 0, x_147); lean_ctor_set(x_149, 1, x_148); diff --git a/stage0/stdlib/Lean/Data/Format.c b/stage0/stdlib/Lean/Data/Format.c index 02868ecaf5..e04ce1da83 100644 --- a/stage0/stdlib/Lean/Data/Format.c +++ b/stage0/stdlib/Lean/Data/Format.c @@ -34,7 +34,7 @@ extern lean_object* l_Std_Format_sbracket___closed__4; lean_object* l_Lean_Option_get___at_Std_Format_pretty_x27___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_Format_getIndent___closed__1; lean_object* l_Std_Format_getIndent___boxed(lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Std_Format_initFn____x40_Lean_Data_Format___hyg_25____spec__1(lean_object*, lean_object*, lean_object*); @@ -865,7 +865,7 @@ x_4 = l_Lean_Name_toString___closed__1; x_5 = l_Lean_Name_toStringWithSep(x_4, x_2); x_6 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_6, 0, x_5); -x_7 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_7 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_8 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); @@ -1018,7 +1018,7 @@ x_8 = l_Lean_Name_toString___closed__1; x_9 = l_Lean_Name_toStringWithSep(x_8, x_6); x_10 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_10, 0, x_9); -x_11 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_11 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_12 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -1156,7 +1156,7 @@ x_52 = l_Lean_Name_toString___closed__1; x_53 = l_Lean_Name_toStringWithSep(x_52, x_50); x_54 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_54, 0, x_53); -x_55 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_55 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_56 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); diff --git a/stage0/stdlib/Lean/Data/Position.c b/stage0/stdlib/Lean/Data/Position.c index a09003fe8e..43d2114fc8 100644 --- a/stage0/stdlib/Lean/Data/Position.c +++ b/stage0/stdlib/Lean/Data/Position.c @@ -30,12 +30,12 @@ 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*); lean_object* lean_string_append(lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; lean_object* l_prodHasDecidableLt___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Position_0__Lean_decEqPosition____x40_Lean_Data_Position___hyg_16__match__1(lean_object*); extern lean_object* l_instReprProd___rarg___closed__1; lean_object* l_Lean_FileMap_ofString___closed__1; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* l_Lean_Position_lt(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_instReprPosition; @@ -77,9 +77,9 @@ lean_object* l_Lean_instInhabitedFileMap___closed__1; lean_object* l_Lean_Position_instToFormatPosition(lean_object*); lean_object* l_Lean_Position_lt___closed__1; lean_object* l_Lean_Position_instToFormatPosition_match__1(lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; lean_object* l_Lean_instInhabitedPosition___closed__1; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Data_Position_0__Lean_reprPosition____x40_Lean_Data_Position___hyg_121_(lean_object*, lean_object*); extern lean_object* l_instReprSigma___rarg___closed__6; @@ -225,7 +225,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Data_Position_0__Lean_reprPosition____x40_Lean_Data_Position___hyg_121____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -275,7 +275,7 @@ x_12 = l___private_Lean_Data_Position_0__Lean_reprPosition____x40_Lean_Data_Posi x_13 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_15 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -288,15 +288,15 @@ lean_ctor_set(x_18, 0, x_17); x_19 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_19, 0, x_15); lean_ctor_set(x_19, 1, x_18); -x_20 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_20 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_21 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); -x_22 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_22 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_23 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_24 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_25 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); diff --git a/stage0/stdlib/Lean/DeclarationRange.c b/stage0/stdlib/Lean/DeclarationRange.c index 35623a0023..6505f5c7b0 100644 --- a/stage0/stdlib/Lean/DeclarationRange.c +++ b/stage0/stdlib/Lean/DeclarationRange.c @@ -46,13 +46,13 @@ lean_object* l_Lean_declRangeExt; lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_instReprDeclarationRange; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; lean_object* l_Lean_declRangeExt___elambda__1___boxed(lean_object*); extern lean_object* l_instReprProd___rarg___closed__1; lean_object* l_Lean_declRangeExt___closed__4; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; extern lean_object* l_Lean_auxRecExt; lean_object* l_Lean_declRangeExt___elambda__4(lean_object*, lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Lean_findDeclarationRanges_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -135,9 +135,9 @@ lean_object* l_Lean_instInhabitedDeclarationRange; lean_object* l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRange____x40_Lean_DeclarationRange___hyg_213____closed__1; lean_object* l_Lean_declRangeExt___elambda__3(lean_object*, lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; extern lean_object* l_Lean_instInhabitedPosition___closed__1; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; lean_object* l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRange____x40_Lean_DeclarationRange___hyg_213_(lean_object*, lean_object*); lean_object* l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRange____x40_Lean_DeclarationRange___hyg_213____closed__9; lean_object* l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRanges____x40_Lean_DeclarationRange___hyg_304____closed__6; @@ -323,7 +323,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRange____x40_Lean_DeclarationRange___hyg_213____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -408,7 +408,7 @@ x_12 = l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRange____x40_Lea x_13 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_15 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -461,15 +461,15 @@ lean_ctor_set(x_35, 0, x_34); x_36 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_36, 0, x_32); lean_ctor_set(x_36, 1, x_35); -x_37 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_37 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_38 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); -x_39 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_39 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_40 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_40, 0, x_38); lean_ctor_set(x_40, 1, x_39); -x_41 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_41 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_42 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); @@ -559,7 +559,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRanges____x40_Lean_DeclarationRange___hyg_304____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -608,7 +608,7 @@ x_12 = l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRanges____x40_Le x_13 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_15 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -619,15 +619,15 @@ x_17 = l___private_Lean_DeclarationRange_0__Lean_reprDeclarationRange____x40_Lea x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_15); lean_ctor_set(x_18, 1, x_17); -x_19 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_19 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_20 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); -x_21 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_21 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_22 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); -x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_24 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index bfac3d20a0..725956fca3 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -307,7 +307,6 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg_match__1(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType_match__1(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__5___boxed(lean_object**); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___boxed(lean_object**); lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -411,6 +410,7 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections_match__1(lean_object*); lean_object* l_Lean_Elab_Term_instToStringNamedArg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__1; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_Elab_Term_LVal_getRef(lean_object*); uint8_t l_Lean_Expr_isAutoParam(lean_object*); extern lean_object* l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; @@ -21370,7 +21370,7 @@ x_31 = l_Lean_Syntax_isOfKind(x_1, x_30); if (x_31 == 0) { lean_object* x_32; uint8_t x_33; -x_32 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_32 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_inc(x_1); x_33 = l_Lean_Syntax_isOfKind(x_1, x_32); if (x_33 == 0) @@ -35929,7 +35929,7 @@ lean_object* l_Lean_Elab_Term_elabExplicit(lean_object* x_1, lean_object* x_2, l _start: { lean_object* x_10; uint8_t x_11; -x_10 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_10 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_inc(x_1); x_11 = l_Lean_Syntax_isOfKind(x_1, x_10); if (x_11 == 0) @@ -36068,7 +36068,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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_4 = l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 87fac466f0..3b5d8eaef9 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -255,7 +255,6 @@ lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__5; lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_6010_(lean_object*); lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_1171_(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__20; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__8; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -344,6 +343,7 @@ uint8_t l_Lean_Syntax_isAntiquot(lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo___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_expandFunBinders_loop_match__3(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; extern lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__2; lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___closed__1; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo___closed__1; @@ -19454,7 +19454,7 @@ x_30 = l_Array_empty___closed__1; x_31 = lean_array_push(x_30, x_29); lean_inc(x_24); x_32 = lean_array_push(x_31, x_24); -x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -19713,7 +19713,7 @@ x_148 = l_Array_empty___closed__1; x_149 = lean_array_push(x_148, x_147); lean_inc(x_142); x_150 = lean_array_push(x_149, x_142); -x_151 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_151 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_152 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_152, 0, x_151); lean_ctor_set(x_152, 1, x_150); @@ -19928,7 +19928,7 @@ x_231 = l_Array_empty___closed__1; x_232 = lean_array_push(x_231, x_230); lean_inc(x_225); x_233 = lean_array_push(x_232, x_225); -x_234 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_234 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_235 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_235, 0, x_234); lean_ctor_set(x_235, 1, x_233); @@ -20570,7 +20570,7 @@ lean_ctor_set(x_28, 1, x_27); lean_ctor_set(x_28, 2, x_25); lean_ctor_set(x_28, 3, x_26); x_29 = lean_array_push(x_23, x_28); -x_30 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_30 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); @@ -20766,7 +20766,7 @@ lean_ctor_set(x_105, 1, x_104); lean_ctor_set(x_105, 2, x_102); lean_ctor_set(x_105, 3, x_103); x_106 = lean_array_push(x_100, x_105); -x_107 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_107 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_107); lean_ctor_set(x_108, 1, x_106); @@ -20946,7 +20946,7 @@ lean_ctor_set(x_165, 1, x_164); lean_ctor_set(x_165, 2, x_162); lean_ctor_set(x_165, 3, x_163); x_166 = lean_array_push(x_160, x_165); -x_167 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_167 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_168 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_168, 0, x_167); lean_ctor_set(x_168, 1, x_166); diff --git a/stage0/stdlib/Lean/Elab/DeclUtil.c b/stage0/stdlib/Lean/Elab/DeclUtil.c index c05dedee18..dafda5ddb3 100644 --- a/stage0/stdlib/Lean/Elab/DeclUtil.c +++ b/stage0/stdlib/Lean/Elab/DeclUtil.c @@ -95,7 +95,7 @@ lean_object* l_Lean_Meta_forallTelescopeCompatible___rarg___lambda__2___boxed(le lean_object* l_Lean_Meta_forallTelescopeCompatibleAux(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4(lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__2(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2772,7 +2772,7 @@ x_3 = lean_environment_main_module(x_1); x_4 = l_Lean_Elab_mkFreshInstanceName___closed__2; x_5 = l_Lean_Name_append(x_3, x_4); lean_dec(x_3); -x_6 = l_Lean_Name_appendIndexAfter(x_5, x_2); +x_6 = lean_name_append_index_after(x_5, x_2); return x_6; } } diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index c3dbfdcd4f..01c997c179 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -34,7 +34,6 @@ lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble___closed__1; lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; extern lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___closed__2; extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__7; @@ -101,7 +100,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object*); lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; lean_object* l_Lean_Elab_Command_expandMutualElement_match__1(lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__19; lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); @@ -143,6 +141,7 @@ lean_object* l_Lean_Elab_addDeclarationRanges___at_Lean_Elab_Command_elabAxiom__ lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_getDeclarationRange___at_Lean_Elab_Command_elabAxiom___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; @@ -233,6 +232,7 @@ lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; lean_object* l_Lean_Elab_Command_expandMutualPreamble(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; @@ -254,7 +254,6 @@ lean_object* l_Lean_Syntax_getSepArgs(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__4; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__11; extern lean_object* l_Lean_CollectLevelParams_instInhabitedState___closed__1; extern lean_object* l_Array_partition___rarg___closed__1; @@ -271,6 +270,7 @@ lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_object* l_Lean_Elab_Term_applyAttributes(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_1354____closed__3; extern lean_object* l_Lean_Elab_Command_elabStructure___closed__1; @@ -317,7 +317,6 @@ lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDeclarationRanges___at_Lean_Elab_Command_elabAxiom___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___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_Declaration_0__Lean_Elab_Command_elabMutualInductive___boxed__const__1; @@ -354,6 +353,7 @@ lean_object* l_Lean_Elab_getDeclarationSelectionRef(lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__2___rarg(lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive(lean_object*); extern lean_object* l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_276____closed__2; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -771,12 +771,12 @@ x_21 = lean_name_eq(x_7, x_20); if (x_21 == 0) { lean_object* x_22; uint8_t x_23; -x_22 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_22 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_23 = lean_name_eq(x_7, x_22); if (x_23 == 0) { lean_object* x_24; uint8_t x_25; -x_24 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_24 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_25 = lean_name_eq(x_7, x_24); lean_dec(x_7); if (x_25 == 0) @@ -4830,7 +4830,7 @@ x_19 = lean_name_eq(x_13, x_18); if (x_19 == 0) { lean_object* x_20; uint8_t x_21; -x_20 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_20 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_21 = lean_name_eq(x_13, x_20); lean_dec(x_13); if (x_21 == 0) @@ -8221,7 +8221,7 @@ x_117 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_117, 0, x_52); lean_ctor_set(x_117, 1, x_116); x_118 = lean_array_push(x_56, x_117); -x_119 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_119 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_120 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_120, 0, x_119); lean_ctor_set(x_120, 1, x_118); @@ -8424,7 +8424,7 @@ x_229 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_229, 0, x_164); lean_ctor_set(x_229, 1, x_228); x_230 = lean_array_push(x_168, x_229); -x_231 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_231 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_232 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_232, 0, x_231); lean_ctor_set(x_232, 1, x_230); @@ -8477,7 +8477,7 @@ x_254 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_255 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_255, 0, x_254); lean_ctor_set(x_255, 1, x_253); -x_256 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_256 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_257 = lean_array_push(x_256, x_255); x_258 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_259 = lean_alloc_ctor(1, 2, 0); @@ -8654,7 +8654,7 @@ x_351 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_352 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_352, 0, x_351); lean_ctor_set(x_352, 1, x_350); -x_353 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_353 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_354 = lean_array_push(x_353, x_352); x_355 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_356 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/DeclarationRange.c b/stage0/stdlib/Lean/Elab/DeclarationRange.c index 625675af4c..55cc5a9554 100644 --- a/stage0/stdlib/Lean/Elab/DeclarationRange.c +++ b/stage0/stdlib/Lean/Elab/DeclarationRange.c @@ -25,10 +25,10 @@ lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Elab_addAuxDeclarationRanges(lean_object*); lean_object* l_Lean_Elab_addDeclarationRanges___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addDeclarationRanges(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_object* l_Lean_Elab_getDeclarationRange___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Elab_addAuxDeclarationRanges___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -194,7 +194,7 @@ _start: lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_inc(x_1); x_2 = l_Lean_Syntax_getKind(x_1); -x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_4 = lean_name_eq(x_2, x_3); lean_dec(x_2); if (x_4 == 0) diff --git a/stage0/stdlib/Lean/Elab/DefView.c b/stage0/stdlib/Lean/Elab/DefView.c index 419987f5de..0a78ee547d 100644 --- a/stage0/stdlib/Lean/Elab/DefView.c +++ b/stage0/stdlib/Lean/Elab/DefView.c @@ -106,6 +106,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefView lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__6; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__6___rarg(lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__1; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_String_capitalize(lean_object*); @@ -170,7 +171,6 @@ extern lean_object* l_Lean_Syntax_mkApp___closed__1; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); uint8_t l_String_isEmpty(lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfTheorem_match__1(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__6(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefViewOfInstance___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__6___rarg(lean_object*); @@ -6331,7 +6331,7 @@ x_15 = l_Lean_Elab_Command_getMainModule___rarg(x_4, x_14); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); lean_dec(x_15); -x_17 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_17 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_11); lean_ctor_set(x_18, 1, x_17); @@ -6598,7 +6598,7 @@ x_10 = lean_name_eq(x_2, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -x_11 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_11 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_12 = lean_name_eq(x_2, x_11); if (x_12 == 0) { @@ -6755,7 +6755,7 @@ x_14 = lean_name_eq(x_6, x_13); if (x_14 == 0) { lean_object* x_15; uint8_t x_16; -x_15 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_15 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_16 = lean_name_eq(x_6, x_15); if (x_16 == 0) { diff --git a/stage0/stdlib/Lean/Elab/Deriving/BEq.c b/stage0/stdlib/Lean/Elab/Deriving/BEq.c index d54b100557..3364e1f915 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/BEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/BEq.c @@ -77,6 +77,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__6___lambda__1___closed__2; extern lean_object* l_Lean_setOptionFromString___closed__4; extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(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_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___rarg(lean_object*, lean_object*, lean_object*); @@ -93,7 +94,6 @@ lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts_match__1(lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkMatch(lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__1; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_23565____closed__1; lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkAlts_match__1___rarg(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__6___lambda__1___closed__1; @@ -124,10 +124,10 @@ lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(lean_object*, lean_object*, le extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__13; lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__4; extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__5(lean_object*); @@ -1761,7 +1761,7 @@ x_69 = lean_array_push(x_2, x_68); x_70 = lean_mk_syntax_ident(x_5); lean_inc(x_70); x_71 = lean_array_push(x_69, x_70); -x_72 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_72 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_73 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_73, 0, x_72); lean_ctor_set(x_73, 1, x_71); @@ -2021,7 +2021,7 @@ x_175 = lean_array_push(x_2, x_174); x_176 = lean_mk_syntax_ident(x_5); lean_inc(x_176); x_177 = lean_array_push(x_175, x_176); -x_178 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_178 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_178); lean_ctor_set(x_179, 1, x_177); @@ -2859,7 +2859,7 @@ x_31 = l_Lean_nullKind___closed__2; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_34 = lean_array_push(x_33, x_32); x_35 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_36 = lean_array_push(x_34, x_35); @@ -2968,7 +2968,7 @@ x_93 = l_Lean_nullKind___closed__2; x_94 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_94, 0, x_93); lean_ctor_set(x_94, 1, x_92); -x_95 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_95 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_96 = lean_array_push(x_95, x_94); x_97 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_98 = lean_array_push(x_96, x_97); @@ -3094,7 +3094,7 @@ x_164 = l_Lean_nullKind___closed__2; x_165 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_165, 0, x_164); lean_ctor_set(x_165, 1, x_163); -x_166 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_166 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_167 = lean_array_push(x_166, x_165); x_168 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_169 = lean_array_push(x_167, x_168); @@ -3217,7 +3217,7 @@ x_233 = l_Lean_nullKind___closed__2; x_234 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_234, 0, x_233); lean_ctor_set(x_234, 1, x_232); -x_235 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_235 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_236 = lean_array_push(x_235, x_234); x_237 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_238 = lean_array_push(x_236, x_237); diff --git a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c index 27d7ea335d..d6bc8906fb 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c @@ -95,6 +95,7 @@ lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, le uint8_t lean_nat_dec_eq(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__11; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__5___closed__1; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; extern lean_object* l_Lean_groupKind___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_assumption___closed__1; @@ -112,7 +113,6 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__2___boxed(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*); extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__43; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__8; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___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* l_Lean_Elab_Deriving_DecEq_mkDecEqCmds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -150,10 +150,10 @@ lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_obje lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__13; lean_object* l_Lean_Elab_Deriving_mkContext(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_NotationExtra___hyg_5711____closed__4; extern lean_object* l_myMacro____x40_Init_Notation___hyg_23758____closed__2; extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3581,7 +3581,7 @@ x_52 = lean_array_push(x_2, x_51); x_53 = lean_mk_syntax_ident(x_5); lean_inc(x_53); x_54 = lean_array_push(x_52, x_53); -x_55 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_55 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_55); lean_ctor_set(x_56, 1, x_54); @@ -3852,7 +3852,7 @@ x_163 = lean_array_push(x_2, x_162); x_164 = lean_mk_syntax_ident(x_5); lean_inc(x_164); x_165 = lean_array_push(x_163, x_164); -x_166 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_166 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_167 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_167, 0, x_166); lean_ctor_set(x_167, 1, x_165); @@ -5339,7 +5339,7 @@ x_85 = lean_array_push(x_38, x_84); x_86 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_86, 0, x_59); lean_ctor_set(x_86, 1, x_85); -x_87 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_87 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_88 = lean_array_push(x_87, x_86); x_89 = lean_array_push(x_88, x_57); x_90 = lean_array_push(x_89, x_57); @@ -5434,7 +5434,7 @@ x_138 = lean_array_push(x_38, x_137); x_139 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_139, 0, x_59); lean_ctor_set(x_139, 1, x_138); -x_140 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_140 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_141 = lean_array_push(x_140, x_139); x_142 = lean_array_push(x_141, x_57); x_143 = lean_array_push(x_142, x_57); diff --git a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c index 9851d7de9b..b90cc5571a 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c +++ b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c @@ -88,6 +88,7 @@ lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda_ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__11; extern lean_object* l_term___x3c_x7c_____closed__2; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__18; extern lean_object* l_Lean_groupKind___closed__2; lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -123,7 +124,6 @@ lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1 lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(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_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_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__12; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_doReturn___elambda__1___closed__2; @@ -1193,7 +1193,7 @@ x_53 = l_Lean_nullKind___closed__2; 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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_55 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_56 = lean_array_push(x_55, x_54); x_57 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_58 = lean_array_push(x_56, x_57); @@ -2781,7 +2781,7 @@ x_53 = l_Lean_nullKind___closed__2; 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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_55 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_56 = lean_array_push(x_55, x_54); x_57 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_58 = lean_array_push(x_56, x_57); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Hashable.c b/stage0/stdlib/Lean/Elab/Deriving/Hashable.c index e6f7d3e248..2b564c50b3 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Hashable.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Hashable.c @@ -73,6 +73,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_Hashable_mkHashab lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; lean_object* l___private_Lean_Elab_Deriving_Hashable_0__Lean_Elab_Deriving_Hashable_mkHashableInstanceCmds___closed__1; extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Elab_Deriving_Hashable_mkAuxFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -84,7 +85,6 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_Hashable_mkHashableH 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_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___spec__4___closed__13; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts_match__2(lean_object*); lean_object* l_Lean_Elab_Deriving_Hashable_mkMatch___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_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___spec__4___closed__6; @@ -110,9 +110,9 @@ lean_object* l_Lean_Elab_Deriving_Hashable_mkAuxFunction___boxed(lean_object*, l lean_object* l_Lean_Elab_Deriving_Hashable_mkAuxFunction___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__13; lean_object* l_Lean_Elab_Deriving_mkContext(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_NotationExtra___hyg_5711____closed__4; extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___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*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -1196,7 +1196,7 @@ lean_inc(x_2); x_60 = lean_array_push(x_2, x_59); x_61 = lean_mk_syntax_ident(x_7); x_62 = lean_array_push(x_60, x_61); -x_63 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_63 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_62); @@ -2105,7 +2105,7 @@ x_40 = l_Lean_nullKind___closed__2; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); -x_42 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_42 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_43 = lean_array_push(x_42, x_41); x_44 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_45 = lean_array_push(x_43, x_44); @@ -2215,7 +2215,7 @@ x_102 = l_Lean_nullKind___closed__2; x_103 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_103, 0, x_102); lean_ctor_set(x_103, 1, x_101); -x_104 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_104 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_105 = lean_array_push(x_104, x_103); x_106 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_107 = lean_array_push(x_105, x_106); @@ -2355,7 +2355,7 @@ x_175 = l_Lean_nullKind___closed__2; x_176 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_176, 0, x_175); lean_ctor_set(x_176, 1, x_174); -x_177 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_177 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_178 = lean_array_push(x_177, x_176); x_179 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_180 = lean_array_push(x_178, x_179); @@ -2479,7 +2479,7 @@ x_244 = l_Lean_nullKind___closed__2; x_245 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_245, 0, x_244); lean_ctor_set(x_245, 1, x_243); -x_246 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_246 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_247 = lean_array_push(x_246, x_245); x_248 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_249 = lean_array_push(x_247, x_248); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c index b2217d1ed6..b073986b3f 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c @@ -16,7 +16,6 @@ extern "C" { lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__4___closed__4; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith(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_NotationExtra___hyg_5711____closed__10; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___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_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_mkInhabitedInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -26,7 +25,6 @@ lean_object* l_List_map___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); extern lean_object* l_instReprSigma___rarg___closed__2; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_object* l_List_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_instBinder; @@ -66,7 +64,6 @@ lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___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*); extern lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___spec__5___closed__1; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__1___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*); @@ -84,6 +81,7 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_947___ lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_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*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_match__1(lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___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*); @@ -101,11 +99,11 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_implicitBinderF; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams___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_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux_match__1(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__8___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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__8___closed__2; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux(lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_match__1(lean_object*); @@ -142,14 +140,17 @@ lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedIn lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___closed__5; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__7(lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_mkInhabitedInstanceHandler___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams(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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___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_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__1___closed__2; extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__1___closed__1; @@ -165,7 +166,6 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____close lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts_match__2(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; lean_object* l_Std_RBNode_revFold___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__3___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts(lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___closed__9; @@ -5225,7 +5225,7 @@ lean_ctor_set(x_50, 1, x_49); x_51 = lean_array_push(x_23, x_50); x_52 = lean_mk_syntax_ident(x_1); x_53 = lean_array_push(x_51, x_52); -x_54 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_54 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_55 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); @@ -5367,12 +5367,12 @@ if (x_122 == 0) lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; 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; 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; x_123 = lean_ctor_get(x_121, 0); lean_dec(x_123); -x_124 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_124 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_inc(x_117); x_125 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_125, 0, x_117); lean_ctor_set(x_125, 1, x_124); -x_126 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_126 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_127 = lean_array_push(x_126, x_125); x_128 = lean_array_push(x_127, x_64); x_129 = lean_array_push(x_128, x_64); @@ -5394,7 +5394,7 @@ x_138 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_138, 0, x_137); lean_ctor_set(x_138, 1, x_136); x_139 = lean_array_push(x_132, x_138); -x_140 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_140 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_141 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_141, 0, x_140); lean_ctor_set(x_141, 1, x_139); @@ -5411,11 +5411,11 @@ x_149 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_149, 0, x_148); lean_ctor_set(x_149, 1, x_147); x_150 = lean_array_push(x_142, x_149); -x_151 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_151 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_152 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_152, 0, x_151); lean_ctor_set(x_152, 1, x_150); -x_153 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; +x_153 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; x_154 = lean_array_push(x_153, x_152); x_155 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; x_156 = lean_alloc_ctor(1, 2, 0); @@ -5430,12 +5430,12 @@ lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; x_157 = lean_ctor_get(x_121, 1); lean_inc(x_157); lean_dec(x_121); -x_158 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_158 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_inc(x_117); x_159 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_159, 0, x_117); lean_ctor_set(x_159, 1, x_158); -x_160 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_160 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_161 = lean_array_push(x_160, x_159); x_162 = lean_array_push(x_161, x_64); x_163 = lean_array_push(x_162, x_64); @@ -5457,7 +5457,7 @@ x_172 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_172, 0, x_171); lean_ctor_set(x_172, 1, x_170); x_173 = lean_array_push(x_166, x_172); -x_174 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_174 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_175 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_175, 0, x_174); lean_ctor_set(x_175, 1, x_173); @@ -5474,11 +5474,11 @@ x_183 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_183, 0, x_182); lean_ctor_set(x_183, 1, x_181); x_184 = lean_array_push(x_176, x_183); -x_185 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_185 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_186 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_186, 0, x_185); lean_ctor_set(x_186, 1, x_184); -x_187 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; +x_187 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; x_188 = lean_array_push(x_187, x_186); x_189 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; x_190 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Ord.c b/stage0/stdlib/Lean/Elab/Deriving/Ord.c index 0f94de0446..44202854e8 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Ord.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Ord.c @@ -78,6 +78,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_Ord_mkMatch(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__11; lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_Ord_mkOrdInstanceHandler___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; lean_object* l_Lean_Elab_Deriving_Ord_mkMatch_mkAlts_match__2(lean_object*); lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___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*); @@ -93,7 +94,6 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_Ord_mkOrdInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_Ord_mkMatch_mkAlts_match__1(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_Ord_mkOrdInstanceHandler___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__7___lambda__1___closed__4; extern lean_object* l_myMacro____x40_Init_Notation___hyg_8420____closed__6; @@ -124,10 +124,10 @@ lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_obje lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__13; lean_object* l_Lean_Elab_Deriving_mkContext(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_NotationExtra___hyg_5711____closed__4; extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_Syntax_mkAntiquotNode___closed__9; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; @@ -1688,7 +1688,7 @@ x_70 = lean_array_push(x_2, x_69); x_71 = lean_mk_syntax_ident(x_4); lean_inc(x_71); x_72 = lean_array_push(x_70, x_71); -x_73 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_73 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -2136,7 +2136,7 @@ x_274 = lean_array_push(x_2, x_273); x_275 = lean_mk_syntax_ident(x_4); lean_inc(x_275); x_276 = lean_array_push(x_274, x_275); -x_277 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_277 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_278 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_278, 0, x_277); lean_ctor_set(x_278, 1, x_276); @@ -3155,7 +3155,7 @@ x_181 = l_Lean_nullKind___closed__2; x_182 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_182, 0, x_181); lean_ctor_set(x_182, 1, x_180); -x_183 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_183 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_184 = lean_array_push(x_183, x_182); x_185 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_186 = lean_array_push(x_184, x_185); @@ -3264,7 +3264,7 @@ x_243 = l_Lean_nullKind___closed__2; x_244 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_244, 0, x_243); lean_ctor_set(x_244, 1, x_242); -x_245 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_245 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_246 = lean_array_push(x_245, x_244); x_247 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_248 = lean_array_push(x_246, x_247); @@ -3405,7 +3405,7 @@ x_32 = l_Lean_nullKind___closed__2; x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); -x_34 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_34 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_35 = lean_array_push(x_34, x_33); x_36 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_37 = lean_array_push(x_35, x_36); @@ -3528,7 +3528,7 @@ x_101 = l_Lean_nullKind___closed__2; x_102 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_102, 0, x_101); lean_ctor_set(x_102, 1, x_100); -x_103 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_103 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_104 = lean_array_push(x_103, x_102); x_105 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_106 = lean_array_push(x_104, x_105); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Repr.c b/stage0/stdlib/Lean/Elab/Deriving/Repr.c index 6332538818..7f7fcbcade 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Repr.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Repr.c @@ -103,6 +103,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__11; lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___rarg___boxed(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_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_NotationExtra___hyg_5711____closed__3; extern lean_object* l_Std_myMacro____x40_Init_Data_Format_Macro___hyg_26____closed__3; lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForInduct___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_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -123,7 +124,6 @@ extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__14; lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___rarg___lambda__1(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* l_Lean_Elab_Deriving_Repr_mkBodyForStruct_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__43; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; extern lean_object* l_Lean_strLitKind___closed__2; extern lean_object* l_Std_myMacro____x40_Init_Data_Format_Macro___hyg_26____closed__5; lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__4___lambda__1___closed__19; @@ -164,10 +164,10 @@ lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAl extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__13; lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__4___lambda__1___closed__16; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); extern lean_object* l_term___x2b_x2b_____closed__2; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Deriving_Repr_mkReprInstanceHandler___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3535,7 +3535,7 @@ lean_inc(x_2); x_74 = lean_array_push(x_2, x_73); x_75 = lean_mk_syntax_ident(x_6); x_76 = lean_array_push(x_74, x_75); -x_77 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_77 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_78 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_78, 0, x_77); lean_ctor_set(x_78, 1, x_76); @@ -4735,7 +4735,7 @@ x_31 = l_Lean_nullKind___closed__2; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_34 = lean_array_push(x_33, x_32); x_35 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_36 = lean_array_push(x_34, x_35); @@ -4844,7 +4844,7 @@ x_93 = l_Lean_nullKind___closed__2; x_94 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_94, 0, x_93); lean_ctor_set(x_94, 1, x_92); -x_95 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_95 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_96 = lean_array_push(x_95, x_94); x_97 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_98 = lean_array_push(x_96, x_97); @@ -4970,7 +4970,7 @@ x_164 = l_Lean_nullKind___closed__2; x_165 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_165, 0, x_164); lean_ctor_set(x_165, 1, x_163); -x_166 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_166 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_167 = lean_array_push(x_166, x_165); x_168 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_169 = lean_array_push(x_167, x_168); @@ -5093,7 +5093,7 @@ x_233 = l_Lean_nullKind___closed__2; x_234 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_234, 0, x_233); lean_ctor_set(x_234, 1, x_232); -x_235 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__4; +x_235 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; x_236 = lean_array_push(x_235, x_234); x_237 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_238 = lean_array_push(x_236, x_237); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Util.c b/stage0/stdlib/Lean/Elab/Deriving/Util.c index 4a5334945d..9997f56787 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Util.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Util.c @@ -23,6 +23,7 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInstImpl lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___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*); extern lean_object* l_instReprSigma___rarg___closed__2; lean_object* l_Lean_Elab_Deriving_mkInstImplicitBinders___lambda__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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_object* l_Lean_LocalDecl_userName(lean_object*); extern lean_object* l_Lean_Parser_Term_instBinder; lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_Deriving_mkDiscrs___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -82,7 +83,6 @@ lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_mkContext___spec__4___clo lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_mkContext___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkInstImplicitBinders___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_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkInductiveApp___spec__1___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; lean_object* l_Lean_Elab_Deriving_mkDiscrs___boxed__const__1; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkDiscr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -97,6 +97,7 @@ lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Deriving_mkLet___spec__1__ 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*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_8912____closed__6; lean_object* l_Lean_Elab_Deriving_mkLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_Deriving_mkDiscrs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkArrow___closed__2; lean_object* l_Lean_Elab_Deriving_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -104,7 +105,6 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_mkContext___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkDiscrs___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkHeader___spec__2(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___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*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -129,6 +129,7 @@ lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_obj extern lean_object* l_Lean_KernelException_toMessageData___closed__3; lean_object* l_Lean_Elab_Deriving_mkInductArgNames___closed__1; size_t lean_usize_of_nat(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkImplicitBinders___boxed__const__1; extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; @@ -149,7 +150,6 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__1; lean_object* l_Lean_Elab_Deriving_explicitBinderF; lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_mkContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_object* l_Array_appendCore___rarg(lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInstImplicitBinders___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___boxed(lean_object**); @@ -569,7 +569,7 @@ lean_ctor_set(x_28, 1, x_27); x_29 = l_Array_empty___closed__1; x_30 = lean_array_push(x_29, x_28); x_31 = lean_array_push(x_30, x_12); -x_32 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_32 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); @@ -601,7 +601,7 @@ lean_ctor_set(x_43, 1, x_42); x_44 = l_Array_empty___closed__1; x_45 = lean_array_push(x_44, x_43); x_46 = lean_array_push(x_45, x_12); -x_47 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_47 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_48 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); @@ -2504,7 +2504,7 @@ lean_ctor_set(x_37, 0, x_29); lean_ctor_set(x_37, 1, x_36); lean_inc(x_3); x_38 = lean_array_push(x_3, x_37); -x_39 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_39 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_inc(x_25); x_40 = lean_name_mk_string(x_25, x_39); x_41 = l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__3; @@ -2524,7 +2524,7 @@ lean_inc(x_30); x_47 = lean_array_push(x_46, x_30); lean_inc(x_30); x_48 = lean_array_push(x_47, x_30); -x_49 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_49 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_inc(x_25); x_50 = lean_name_mk_string(x_25, x_49); lean_inc(x_3); @@ -2616,7 +2616,7 @@ lean_ctor_set(x_92, 0, x_84); lean_ctor_set(x_92, 1, x_91); lean_inc(x_3); x_93 = lean_array_push(x_3, x_92); -x_94 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_94 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_inc(x_80); x_95 = lean_name_mk_string(x_80, x_94); x_96 = l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__3; @@ -2636,7 +2636,7 @@ lean_inc(x_85); x_102 = lean_array_push(x_101, x_85); lean_inc(x_85); x_103 = lean_array_push(x_102, x_85); -x_104 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_104 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_inc(x_80); x_105 = lean_name_mk_string(x_80, x_104); lean_inc(x_3); diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 4da69266bf..e77f790cc9 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -165,6 +165,7 @@ lean_object* l_Lean_Elab_Term_Do_extendUpdatedVarsAux(lean_object*, lean_object* lean_object* l_Lean_Elab_Term_Do_ToTerm_run(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_doReassignArrow___elambda__1___closed__2; lean_object* l_List_forM___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__3(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_Meta_addDefaultInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_letPatDecl___closed__2; uint8_t l_Lean_Elab_Term_Do_hasTerminalAction(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__11; @@ -261,6 +262,7 @@ extern lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Util_Trace_0__ lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_extendUpdatedVarsAux_update(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_convertTerminalActionIntoJmp_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__6; extern lean_object* l_Lean_Option_myMacro____x40_Lean_Data_Options___hyg_892____closed__11; lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -277,7 +279,6 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___lamb lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__24; lean_object* l_Lean_Elab_Term_Do_ToTerm_declToTerm_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_hasReturn___spec__2___boxed(lean_object*, lean_object*, 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___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__8; extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_hasTerminalAction___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -286,7 +287,7 @@ extern lean_object* l_Lean_Meta_assert___closed__1; lean_object* l_Lean_Elab_Term_Do_mkSimpleJmp___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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___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* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__36; 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*); @@ -322,6 +323,7 @@ lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_Do_concat___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_nat_add(lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_Do_isMutableLet(lean_object*); +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__25; extern lean_object* l_Lean_Parser_Term_doUnless___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_Do_elabDo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -362,7 +364,6 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit(lean_object*, lean_object* l_List_map___at_Lean_Elab_Term_CollectPatternVars_collect_processExplicitArg___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__17; lean_object* l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___spec__1(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(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_getPatternVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___boxed__const__1; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doUnlessToCode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -400,6 +401,7 @@ lean_object* l_Lean_Elab_Term_Do_getLetDeclVars(lean_object*, lean_object*, lean lean_object* l___regBuiltin_Lean_Elab_Term_expandTermReturn(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__2(lean_object*); extern lean_object* l_Lean_Parser_Term_termReturn___elambda__1___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -423,8 +425,10 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureInsideFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__10; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__11; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__4; +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___lambda__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_CodeBlocl_toMessageData_loop___closed__4; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__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*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -442,6 +446,7 @@ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term extern lean_object* l_Lean_groupKind___closed__2; lean_object* l_Lean_Elab_Term_Do_ToTerm_declToTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__33; lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__22; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -489,6 +494,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_concat___ lean_object* l_Lean_Elab_Term_Do_ToTerm_mkIte___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__2; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___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_Meta_WHNF_0__Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__1(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_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___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_myMacro____x40_Init_Notation___hyg_2278____closed__3; @@ -630,7 +636,6 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_T lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Term_Do_mkJmp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlock_doUnlessToCode___spec__3___boxed(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_extractBind___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_Do_mkAuxDeclFor___at_Lean_Elab_Term_Do_pullExitPointsAux___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_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_13436____closed__7; @@ -708,7 +713,6 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__18; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToTerm_toTerm___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_mkIte(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandTermUnless(lean_object*); -lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_instInhabitedAlt(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_getTryCatchUpdatedVars___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__15; @@ -799,7 +803,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Ter lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__6; lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__15; -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_28972_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_29114_(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__24; lean_object* l_Lean_Elab_Term_Do_hasExitPointPred_loop___at_Lean_Elab_Term_Do_hasTerminalAction___spec__1___boxed(lean_object*); lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___lambda__1___closed__1; @@ -818,6 +822,7 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkMonadAlias___closed lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor___boxed(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_Term_Do_extendUpdatedVarsAux_update___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*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_extendUpdatedVarsAux_update___spec__1(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_mkJmp___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); @@ -854,6 +859,7 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__ lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); +uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___rarg___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__8; @@ -918,6 +924,7 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__4; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___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* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__27; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS___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_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__1(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doIfToCode___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___boxed__const__1; lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedKind_match__1(lean_object*); @@ -1061,8 +1068,10 @@ lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__4; extern lean_object* l_prec_x28___x29___closed__7; extern lean_object* l_Lean_Meta_mkAuxDefinition___closed__1; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__7___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___lambda__1___closed__3; @@ -1127,6 +1136,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Do_ToCodeBlo lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__1; lean_object* l_Lean_addTrace___at_Lean_Elab_Term_Do_mkJmp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__11___closed__9; +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2; lean_object* l_Lean_Elab_Term_Do_getDoReassignVars___boxed(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_14734____closed__4; lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__3; @@ -1196,7 +1206,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__6; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_getTryCatchUpdatedVars___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__11___closed__1; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__11; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__5; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_mkUVarTuple___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1241,7 +1250,6 @@ lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___lamb lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandTermTry(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_Do_ToTerm_instInhabitedKind; -lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_mkJmp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Do_getDoReassignVars___closed__2; lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__28; @@ -2053,6 +2061,68 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extr return x_2; } } +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_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_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__2___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_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f_match__2___rarg), 3, 0); +return x_2; +} +} lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2084,6 +2154,327 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extr return x_2; } } +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___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) { +_start: +{ +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = l_Lean_Meta_unfoldDefinition_x3f(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(x_2, x_18, x_4, x_5, x_6, x_7, x_17); +return x_19; +} +} +else +{ +uint8_t x_20; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) +{ +return x_9; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_9); +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; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid 'do' notation, expected type is not available"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_1); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_8 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_11 = l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__2(x_2, x_3, x_4, x_5, x_6, x_10); +if (lean_obj_tag(x_11) == 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); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_expr_eqv(x_12, x_2); +lean_dec(x_2); +if (x_14 == 0) +{ +x_2 = x_12; +x_7 = x_13; +goto _start; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = l_Lean_Expr_getAppFn(x_12); +x_17 = l_Lean_Expr_isMVar(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___lambda__1(x_12, x_1, x_18, x_3, x_4, x_5, x_6, x_13); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_dec(x_12); +lean_dec(x_1); +x_20 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2; +x_21 = l_Lean_throwError___at_Lean_Meta_addDefaultInstance___spec__1(x_20, x_3, x_4, x_5, x_6, x_13); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +return x_21; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_21); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_11); +if (x_26 == 0) +{ +return x_11; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_11); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +uint8_t x_30; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_8); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_8, 0); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_9); +if (x_32 == 0) +{ +return x_8; +} +else +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_9, 0); +lean_inc(x_33); +lean_dec(x_9); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_8, 0, x_34); +return x_8; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_8, 1); +lean_inc(x_35); +lean_dec(x_8); +x_36 = lean_ctor_get(x_9, 0); +lean_inc(x_36); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + x_37 = x_9; +} else { + lean_dec_ref(x_9); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(1, 1, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_36); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_35); +return x_39; +} +} +} +else +{ +uint8_t x_40; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_8); +if (x_40 == 0) +{ +return x_8; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_8, 0); +x_42 = lean_ctor_get(x_8, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_8); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +} +lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___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) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} lean_object* l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___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: { @@ -2132,133 +2523,154 @@ return x_22; } } } -lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___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* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___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: { -if (lean_obj_tag(x_1) == 5) +if (lean_obj_tag(x_2) == 5) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = lean_ctor_get(x_1, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_1, 1); -lean_inc(x_12); -x_13 = l_Lean_mkOptionalNode___closed__2; -lean_inc(x_11); -x_14 = lean_array_push(x_13, x_11); -x_15 = l_myMacro____x40_Init_Notation___hyg_13436____closed__5; -lean_inc(x_9); +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, 0); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_16 = l_Lean_Meta_mkAppM(x_15, x_14, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); +x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); +lean_dec(x_2); +x_10 = l_Lean_mkOptionalNode___closed__2; lean_inc(x_8); -lean_inc(x_7); +x_11 = lean_array_push(x_10, x_8); +x_12 = l_myMacro____x40_Init_Notation___hyg_13436____closed__5; lean_inc(x_6); +lean_inc(x_5); lean_inc(x_4); -x_19 = l_Lean_Elab_Term_synthesizeInst(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_19) == 0) +lean_inc(x_3); +x_13 = l_Lean_Meta_mkAppM(x_12, x_11, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_13) == 0) { -uint8_t x_20; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +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 = lean_box(0); +x_17 = l_Lean_Meta_synthInstance(x_14, x_16, x_3, x_4, x_5, x_6, x_15); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_22, 0, x_11); -lean_ctor_set(x_22, 1, x_12); -lean_ctor_set(x_22, 2, x_21); -lean_ctor_set(x_22, 3, x_2); -lean_ctor_set(x_19, 0, x_22); -return x_19; +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_9); +lean_ctor_set(x_20, 2, x_19); +lean_ctor_set(x_20, 3, x_1); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_17, 0, x_21); +return x_17; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_19, 0); -x_24 = lean_ctor_get(x_19, 1); -lean_inc(x_24); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); lean_inc(x_23); -lean_dec(x_19); -x_25 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_25, 0, x_11); -lean_ctor_set(x_25, 1, x_12); -lean_ctor_set(x_25, 2, x_23); -lean_ctor_set(x_25, 3, x_2); +lean_inc(x_22); +lean_dec(x_17); +x_24 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_24, 0, x_8); +lean_ctor_set(x_24, 1, x_9); +lean_ctor_set(x_24, 2, x_22); +lean_ctor_set(x_24, 3, x_1); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); x_26 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); +lean_ctor_set(x_26, 1, x_23); return x_26; } } else { -lean_object* x_27; lean_object* x_28; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_2); -x_27 = lean_ctor_get(x_19, 1); -lean_inc(x_27); -lean_dec(x_19); -x_28 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_27); -lean_dec(x_4); -return x_28; -} +uint8_t x_27; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_17); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_17, 0); +lean_dec(x_28); +lean_ctor_set_tag(x_17, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; } else { lean_object* x_29; lean_object* x_30; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_2); -x_29 = lean_ctor_get(x_16, 1); +x_29 = lean_ctor_get(x_17, 1); lean_inc(x_29); -lean_dec(x_16); -x_30 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_29); -lean_dec(x_4); +lean_dec(x_17); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_16); +lean_ctor_set(x_30, 1, x_29); return x_30; } } +} else { -lean_object* x_31; -lean_dec(x_2); -x_31 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +uint8_t x_31; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -return x_31; -} -} -} -static lean_object* _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__1() { -_start: +lean_dec(x_3); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_13); +if (x_31 == 0) { -lean_object* x_1; -x_1 = lean_mk_string("invalid 'do' notation, expected type is not available"); -return x_1; +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_13, 0); +lean_dec(x_32); +x_33 = lean_box(0); +lean_ctor_set_tag(x_13, 0); +lean_ctor_set(x_13, 0, x_33); +return x_13; } -} -static lean_object* _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2() { -_start: +else { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_13, 1); +lean_inc(x_34); +lean_dec(x_13); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_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_7); +return x_38; +} } } lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -2267,7 +2679,7 @@ _start: if (lean_obj_tag(x_1) == 0) { lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2; +x_9 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2; x_10 = l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___spec__1(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); @@ -2277,225 +2689,97 @@ return x_10; } else { -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_ctor_get(x_4, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); lean_dec(x_1); -x_13 = lean_ctor_get(x_4, 1); -lean_inc(x_13); -x_14 = lean_ctor_get(x_4, 2); -lean_inc(x_14); -x_15 = lean_ctor_get(x_4, 3); -lean_inc(x_15); -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) -{ -uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_17 = 2; -lean_ctor_set_uint8(x_11, 5, x_17); -x_18 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_13); -lean_ctor_set(x_18, 2, x_14); -lean_ctor_set(x_18, 3, x_15); +lean_inc(x_11); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1), 7, 1); +lean_closure_set(x_12, 0, x_11); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_12); -x_19 = l_Lean_Meta_whnf(x_12, x_18, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_19) == 0) +lean_inc(x_4); +lean_inc(x_11); +x_13 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(x_12, x_11, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_20 = lean_ctor_get(x_19, 0); +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +lean_dec(x_2); +return x_16; +} +else +{ +uint8_t x_17; +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_13, 0); +lean_dec(x_18); +x_19 = lean_ctor_get(x_14, 0); +lean_inc(x_19); +lean_dec(x_14); +lean_ctor_set(x_13, 0, x_19); +return x_13; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_13, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_dec(x_13); +x_21 = lean_ctor_get(x_14, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_Expr_getAppFn(x_20); -x_23 = l_Lean_Expr_isMVar(x_22); -lean_dec(x_22); +lean_dec(x_14); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +} +else +{ +uint8_t x_23; +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_23 = !lean_is_exclusive(x_13); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_box(0); -x_25 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1(x_20, x_12, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_21); -return x_25; +return x_13; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -lean_dec(x_20); -lean_dec(x_12); -x_26 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2; -x_27 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_21); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -return x_27; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_27); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -uint8_t x_32; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_32 = !lean_is_exclusive(x_19); -if (x_32 == 0) -{ -return x_19; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_19, 0); -x_34 = lean_ctor_get(x_19, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_19); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -} -else -{ -uint8_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_36 = lean_ctor_get_uint8(x_11, 0); -x_37 = lean_ctor_get_uint8(x_11, 1); -x_38 = lean_ctor_get_uint8(x_11, 2); -x_39 = lean_ctor_get_uint8(x_11, 3); -x_40 = lean_ctor_get_uint8(x_11, 4); -x_41 = lean_ctor_get_uint8(x_11, 6); -x_42 = lean_ctor_get_uint8(x_11, 7); -x_43 = lean_ctor_get_uint8(x_11, 8); -lean_dec(x_11); -x_44 = 2; -x_45 = lean_alloc_ctor(0, 0, 9); -lean_ctor_set_uint8(x_45, 0, x_36); -lean_ctor_set_uint8(x_45, 1, x_37); -lean_ctor_set_uint8(x_45, 2, x_38); -lean_ctor_set_uint8(x_45, 3, x_39); -lean_ctor_set_uint8(x_45, 4, x_40); -lean_ctor_set_uint8(x_45, 5, x_44); -lean_ctor_set_uint8(x_45, 6, x_41); -lean_ctor_set_uint8(x_45, 7, x_42); -lean_ctor_set_uint8(x_45, 8, x_43); -x_46 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_13); -lean_ctor_set(x_46, 2, x_14); -lean_ctor_set(x_46, 3, x_15); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_12); -x_47 = l_Lean_Meta_whnf(x_12, x_46, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = l_Lean_Expr_getAppFn(x_48); -x_51 = l_Lean_Expr_isMVar(x_50); -lean_dec(x_50); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_box(0); -x_53 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1(x_48, x_12, x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_49); -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_dec(x_48); -lean_dec(x_12); -x_54 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2; -x_55 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_49); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_58 = x_55; -} else { - lean_dec_ref(x_55); - x_58 = lean_box(0); -} -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); -} else { - x_59 = x_58; -} -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -return x_59; -} -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_60 = lean_ctor_get(x_47, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_47, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - x_62 = x_47; -} else { - lean_dec_ref(x_47); - x_62 = lean_box(0); -} -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(1, 2, 0); -} else { - x_63 = x_62; -} -lean_ctor_set(x_63, 0, x_60); -lean_ctor_set(x_63, 1, x_61); -return x_63; +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_13); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } @@ -2514,16 +2798,6 @@ lean_dec(x_3); return x_9; } } -lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___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_Do_0__Lean_Elab_Term_extractBind___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_3); -return x_11; -} -} lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___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: { @@ -22621,7 +22895,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__4; -x_3 = lean_unsigned_to_nat(749u); +x_3 = lean_unsigned_to_nat(764u); x_4 = lean_unsigned_to_nat(13u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -25171,7 +25445,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__17; -x_3 = lean_unsigned_to_nat(868u); +x_3 = lean_unsigned_to_nat(883u); x_4 = lean_unsigned_to_nat(28u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -26783,7 +27057,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__1; -x_3 = lean_unsigned_to_nat(877u); +x_3 = lean_unsigned_to_nat(892u); x_4 = lean_unsigned_to_nat(28u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -27009,7 +27283,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__1; -x_3 = lean_unsigned_to_nat(881u); +x_3 = lean_unsigned_to_nat(896u); x_4 = lean_unsigned_to_nat(28u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -28176,7 +28450,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__1; -x_3 = lean_unsigned_to_nat(889u); +x_3 = lean_unsigned_to_nat(904u); x_4 = lean_unsigned_to_nat(28u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -28254,7 +28528,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__1; -x_3 = lean_unsigned_to_nat(893u); +x_3 = lean_unsigned_to_nat(908u); x_4 = lean_unsigned_to_nat(28u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -29469,7 +29743,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__5; -x_3 = lean_unsigned_to_nat(904u); +x_3 = lean_unsigned_to_nat(919u); x_4 = lean_unsigned_to_nat(28u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -40640,7 +40914,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_mkNestedKind___closed__1; -x_3 = lean_unsigned_to_nat(1051u); +x_3 = lean_unsigned_to_nat(1066u); x_4 = lean_unsigned_to_nat(27u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -40833,7 +41107,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__3; -x_3 = lean_unsigned_to_nat(1107u); +x_3 = lean_unsigned_to_nat(1122u); x_4 = lean_unsigned_to_nat(27u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -70519,7 +70793,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_Do___hyg_28972_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_29114_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -70857,10 +71131,10 @@ l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor___closed__3 = _init_l___p lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor___closed__3); l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor___closed__4 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor___closed__4(); lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkIdBindFor___closed__4); -l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__1 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__1); -l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2); +l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1); +l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2); l_Lean_Elab_Term_Do_instInhabitedCode___closed__1 = _init_l_Lean_Elab_Term_Do_instInhabitedCode___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Do_instInhabitedCode___closed__1); l_Lean_Elab_Term_Do_instInhabitedCode = _init_l_Lean_Elab_Term_Do_instInhabitedCode(); @@ -71510,7 +71784,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Do_elabDo___closed__1); res = l___regBuiltin_Lean_Elab_Term_Do_elabDo(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_Do___hyg_28972_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_29114_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index ef1a4f80be..4f672db6b5 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -74,6 +74,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_9160____closed__4; lean_object* l_Lean_Elab_Command_instInhabitedInductiveView; extern lean_object* l_myMacro____x40_Init_Notation___hyg_8668____closed__4; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1(lean_object*); +lean_object* l_Lean_Core_transform_visit___rarg___lambda__12(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -217,6 +218,7 @@ lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__2___boxed(lean_obj lean_object* l_Lean_mkBInductionOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpectedInductiveType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls(lean_object*); @@ -302,7 +304,6 @@ extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__2___boxed(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_Lean_Elab_Command_shouldInferResultUniverse___closed__2; @@ -387,7 +388,6 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Command_accLevelAtCtor___spec__3(l lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_elabCtorType___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_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); extern uint8_t l_instInhabitedBool; lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_checkParamOccs___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*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_checkParamOccs___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -517,6 +517,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDec lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__2___closed__1; extern lean_object* l_Lean_CollectFVars_instInhabitedState___closed__1; lean_object* l_Lean_Elab_Command_accLevelAtCtor_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___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*); @@ -529,7 +530,6 @@ lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__1___box lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___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_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_checkParamOccs___spec__1___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* lean_mk_rec_on(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_mkConstWithLevelParams___spec__1(lean_object*); @@ -6149,7 +6149,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_15, x_5); +x_17 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_15, x_5); lean_dec(x_15); if (lean_obj_tag(x_17) == 0) { @@ -6184,7 +6184,7 @@ x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); lean_inc(x_23); -x_25 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_25 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_25, 0, x_5); lean_closure_set(x_25, 1, x_23); x_26 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); @@ -6297,7 +6297,7 @@ x_42 = lean_ctor_get(x_13, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_13); -x_43 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_41, x_5); +x_43 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_41, x_5); lean_dec(x_41); if (lean_obj_tag(x_43) == 0) { @@ -6331,7 +6331,7 @@ x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); lean_inc(x_49); -x_51 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_51 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_51, 0, x_5); lean_closure_set(x_51, 1, x_49); x_52 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); @@ -12755,7 +12755,7 @@ lean_inc(x_18); lean_dec(x_15); lean_inc(x_3); x_19 = l_Lean_mkConst(x_18, x_3); -x_20 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_7, x_17, x_19); +x_20 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_7, x_17, x_19); x_21 = lean_ctor_get(x_4, 2); x_22 = lean_nat_add(x_6, x_21); lean_dec(x_6); @@ -12848,7 +12848,7 @@ goto block_215; else { lean_object* x_222; -x_222 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_2, x_5); +x_222 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_2, x_5); if (lean_obj_tag(x_222) == 0) { lean_object* x_223; diff --git a/stage0/stdlib/Lean/Elab/InfoTree.c b/stage0/stdlib/Lean/Elab/InfoTree.c index e1e87974b8..f4acc3480b 100644 --- a/stage0/stdlib/Lean/Elab/InfoTree.c +++ b/stage0/stdlib/Lean/Elab/InfoTree.c @@ -101,8 +101,8 @@ lean_object* l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1 lean_object* l_Lean_Elab_pushInfoLeaf___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_format_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; lean_object* l_Lean_Elab_InfoTree_format_match__2(lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* l_Lean_Elab_withInfoContext_x27___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf(lean_object*); lean_object* l_Lean_Elab_withInfoHole(lean_object*, lean_object*); @@ -118,7 +118,6 @@ lean_object* l_Lean_Elab_FieldInfo_format___lambda__1___boxed(lean_object*, lean extern lean_object* l_Lean_LocalContext_empty; lean_object* l_Lean_Elab_instInhabitedMacroExpansionInfo___closed__1; lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_mkInfoNode(lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoTree___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withMacroExpansionInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -139,7 +138,6 @@ lean_object* l_Lean_Elab_getInfoHoleIdAssignment_x3f___rarg___lambda__1(lean_obj lean_object* l_ReaderT_pure___at_Lean_Elab_CompletionInfo_format___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_insertAux___rarg___closed__3; lean_object* lean_nat_sub(lean_object*, lean_object*); -extern lean_object* l_Std_mkPersistentArray___rarg___closed__1; lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange_fmtPos_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoTree___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -162,7 +160,6 @@ lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___rarg___lambda__2___boxed( lean_object* l_Lean_Elab_withInfoContext_x27_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MetavarContext_instInhabitedMetavarContext___closed__1; -lean_object* l_Lean_Elab_mkInfoNode___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_ppSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instInhabited___rarg(lean_object*, lean_object*); lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2(lean_object*); @@ -194,7 +191,6 @@ lean_object* l_Lean_Elab_instMonadInfoTree___rarg___lambda__1(lean_object*, lean lean_object* l_Lean_Elab_withInfoContext_x27_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instInhabitedCommandInfo; size_t l_USize_shiftLeft(size_t, size_t); -lean_object* l_Lean_Elab_mkInfoNode___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_MacroExpansionInfo_format___closed__2; lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Elab_assignInfoHoleId___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_TermInfo_format(lean_object*, lean_object*, lean_object*); @@ -300,10 +296,8 @@ lean_object* l_Lean_Elab_withInfoContext_x27_match__2(lean_object*, lean_object* lean_object* l_Lean_Elab_instInhabitedContextInfo; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); lean_object* l_Lean_ppTerm(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_mkInfoNode___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withInfoTreeContext___rarg(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_Lean_Elab_mkInfoNode___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_withInfoContext_x27___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_enableInfoTree___rarg___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Elab_InfoTree_substitute___spec__6___boxed(lean_object*, lean_object*); @@ -3309,7 +3303,7 @@ lean_ctor_set(x_21, 1, x_20); x_22 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_11); -x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_24 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -3356,7 +3350,7 @@ lean_ctor_set(x_39, 1, x_38); x_40 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_11); -x_41 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_41 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_42 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_42, 0, x_40); lean_ctor_set(x_42, 1, x_41); @@ -5956,112 +5950,6 @@ lean_dec(x_8); return x_9; } } -lean_object* l_Lean_Elab_mkInfoNode___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_2, 1); -x_5 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -x_6 = l_Std_mkPersistentArray___rarg___closed__1; -x_7 = l_Std_PersistentArray_push___rarg(x_6, x_5); -lean_ctor_set(x_2, 1, x_7); -return x_2; -} -else -{ -uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); -x_9 = lean_ctor_get(x_2, 0); -x_10 = lean_ctor_get(x_2, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_2); -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_mkPersistentArray___rarg___closed__1; -x_13 = l_Std_PersistentArray_push___rarg(x_12, x_11); -x_14 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_14, 0, x_9); -lean_ctor_set(x_14, 1, x_13); -lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_8); -return x_14; -} -} -} -lean_object* l_Lean_Elab_mkInfoNode___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_ctor_get_uint8(x_4, sizeof(void*)*2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_3); -lean_dec(x_2); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_box(0); -x_9 = lean_apply_2(x_7, lean_box(0), x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -lean_dec(x_1); -x_10 = lean_ctor_get(x_2, 1); -lean_inc(x_10); -lean_dec(x_2); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_mkInfoNode___rarg___lambda__1), 2, 1); -lean_closure_set(x_11, 0, x_3); -x_12 = lean_apply_1(x_10, x_11); -return x_12; -} -} -} -lean_object* l_Lean_Elab_mkInfoNode___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -x_6 = lean_alloc_closure((void*)(l_Lean_Elab_mkInfoNode___rarg___lambda__2___boxed), 4, 3); -lean_closure_set(x_6, 0, x_1); -lean_closure_set(x_6, 1, x_2); -lean_closure_set(x_6, 2, x_3); -x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6); -return x_7; -} -} -lean_object* l_Lean_Elab_mkInfoNode(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_mkInfoNode___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_mkInfoNode___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_mkInfoNode___rarg___lambda__2(x_1, x_2, x_3, x_4); -lean_dec(x_4); -return x_5; -} -} lean_object* l_Lean_Elab_withInfoContext_x27_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -7372,7 +7260,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(307u); +x_3 = lean_unsigned_to_nat(303u); 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); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 1e689fc161..899411caec 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -442,7 +442,6 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern(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(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_getPatternsVars___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isPatternVar_isAtomicIdent___boxed(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_collect_processCtorApp_match__1___rarg(lean_object*, lean_object*); @@ -617,6 +616,7 @@ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_loop_ lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__11; extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_Term_precheckMatch_match__4(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkLocalDeclFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); @@ -2277,7 +2277,7 @@ x_10 = l_Lean_Syntax_isOfKind(x_1, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -x_11 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_11 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_inc(x_1); x_12 = l_Lean_Syntax_isOfKind(x_1, x_11); if (x_12 == 0) @@ -5451,7 +5451,7 @@ x_29 = lean_array_push(x_28, x_27); x_30 = lean_ctor_get(x_1, 0); lean_inc(x_30); x_31 = lean_array_push(x_29, x_30); -x_32 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_32 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); @@ -5477,7 +5477,7 @@ x_40 = lean_array_push(x_39, x_38); x_41 = lean_ctor_get(x_1, 0); lean_inc(x_41); x_42 = lean_array_push(x_40, x_41); -x_43 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_43 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_44 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); @@ -8277,7 +8277,7 @@ x_15 = l_Lean_Syntax_isOfKind(x_1, x_14); if (x_15 == 0) { lean_object* x_16; uint8_t x_17; -x_16 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_16 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_inc(x_1); x_17 = l_Lean_Syntax_isOfKind(x_1, x_16); if (x_17 == 0) diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 8ef2ebe2f7..a80e0f140f 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1; lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__3___boxed(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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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*); @@ -44,7 +45,6 @@ lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object* lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__14___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*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); -lean_object* l_Lean_Elab_Term_elabMutualDef___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_List_mapM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__2___boxed(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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___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*); @@ -89,7 +89,6 @@ lean_object* l_Lean_Elab_getDeclarationRange___at___private_Lean_Elab_MutualDef_ lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDocString_x27___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___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_CollectFVars_main(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabMutualDef___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); uint8_t l_Lean_Elab_Term_MutualClosure_FixPoint_State_modified___default; lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -117,7 +116,6 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1(lean_object*, lean_object*); -lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__3; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); @@ -191,6 +189,7 @@ lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___boxed( extern lean_object* l_myMacro____x40_Init_Notation___hyg_1481____closed__8; uint8_t l_USize_decLt(size_t, size_t); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMutualDef_go___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_match__1(lean_object*); 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*); @@ -231,8 +230,8 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls extern lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___rarg___lambda__1___closed__3; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed(lean_object*); +lean_object* l_Lean_Elab_Term_elabMutualDef_go(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_Command_runTermElabM___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_elabMutualDef___lambda__2___boxed__const__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___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_MutualClosure_insertReplacementForMainFns(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -286,6 +285,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsA lean_object* l_Lean_addTrace___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___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_elabMutualDef_go___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* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkModifiers___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_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_collectMVars(lean_object*, lean_object*); @@ -320,6 +320,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___c lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6; lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMutualDef_go___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_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -331,6 +332,7 @@ extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply___boxed(lean_object*, lean_object*); lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMutualDef_go___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_Syntax_getId(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -508,13 +510,11 @@ lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, l lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___boxed(lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__5(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_elabMutualDef___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_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_instInhabitedModifiers___closed__1; lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); -lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef___spec__1(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_typeHasRecFun(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -539,6 +539,7 @@ lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Mutual lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___spec__1(size_t, size_t, 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_declValToTerm(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMutualDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_pushMain(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_Lean_Elab_Command_elabMutualDef___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -557,6 +558,7 @@ lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec_ lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__3; +lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___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_MutualClosure_ClosureState_newLetDecls___default; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -566,7 +568,6 @@ lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___boxed(lean_ lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__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_elabMutualDef___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_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__6; @@ -719,6 +720,7 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____close lean_object* l_Lean_Meta_findLocalDecl_x3f(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_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1(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_withUsed___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*); extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__20___closed__2; static lean_object* _init_l_Lean_Elab_instInhabitedDefViewElabHeader___closed__1() { @@ -18093,7 +18095,7 @@ lean_dec(x_1); return x_10; } } -lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef___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* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___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: { if (lean_obj_tag(x_1) == 0) @@ -18131,7 +18133,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_17 = l_List_mapM___at_Lean_Elab_Term_elabMutualDef___spec__1(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_16); +x_17 = l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_16); if (lean_obj_tag(x_17) == 0) { uint8_t x_18; @@ -18236,7 +18238,7 @@ lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); lean_dec(x_33); -x_36 = l_List_mapM___at_Lean_Elab_Term_elabMutualDef___spec__1(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_35); +x_36 = l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_35); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; @@ -18323,290 +18325,192 @@ return x_49; } } } -lean_object* l_Lean_Elab_Term_elabMutualDef___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_16; -lean_inc(x_14); +lean_object* x_15; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_16 = l_Lean_Elab_Term_MutualClosure_main(x_8, x_1, x_2, x_3, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_16) == 0) +lean_inc(x_8); +x_15 = l_Lean_Elab_Term_MutualClosure_main(x_7, x_1, x_2, x_3, x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_16, 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); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_14); +lean_dec(x_15); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_19 = l_Lean_Elab_levelMVarToParamPreDecls(x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_18); -if (lean_obj_tag(x_19) == 0) +lean_inc(x_8); +x_18 = l_Lean_Elab_levelMVarToParamPreDecls(x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_19, 0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -lean_inc(x_14); +lean_dec(x_18); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_22 = l_Lean_Elab_instantiateMVarsAtPreDecls(x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_21); -if (lean_obj_tag(x_22) == 0) +lean_inc(x_8); +x_21 = l_Lean_Elab_instantiateMVarsAtPreDecls(x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_9); -x_25 = l_Lean_Elab_fixLevelParams(x_23, x_5, x_6, x_9, x_10, x_11, x_12, x_13, x_14, x_24); -if (lean_obj_tag(x_25) == 0) +lean_dec(x_21); +lean_inc(x_8); +x_24 = l_Lean_Elab_fixLevelParams(x_22, x_5, x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_23); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_25, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample(x_7); +lean_dec(x_24); +x_27 = l_Lean_Elab_addPreDefinitions(x_25, x_8, x_9, x_10, x_11, x_12, x_13, x_26); +return x_27; +} +else +{ +uint8_t x_28; +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_28 = !lean_is_exclusive(x_24); if (x_28 == 0) { -lean_object* x_29; -x_29 = l_Lean_Elab_addPreDefinitions(x_26, x_9, x_10, x_11, x_12, x_13, x_14, x_27); -return x_29; +return x_24; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_st_ref_get(x_14, x_27); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_ctor_get(x_31, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_24, 0); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_24); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_32 = !lean_is_exclusive(x_21); +if (x_32 == 0) +{ +return x_21; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_21, 0); +x_34 = lean_ctor_get(x_21, 1); +lean_inc(x_34); lean_inc(x_33); -lean_dec(x_31); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_34 = l_Lean_Elab_addPreDefinitions(x_26, x_9, x_10, x_11, x_12, x_13, x_14, x_32); -if (lean_obj_tag(x_34) == 0) +lean_dec(x_21); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_33, x_9, x_10, x_11, x_12, x_13, x_14, x_36); -lean_dec(x_14); +uint8_t x_36; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_36 = !lean_is_exclusive(x_18); +if (x_36 == 0) { -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -lean_ctor_set(x_37, 0, x_35); -return x_37; +return x_18; } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_35); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_18, 0); +x_38 = lean_ctor_get(x_18, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_18); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} } } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_42 = lean_ctor_get(x_34, 0); +uint8_t x_40; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +x_40 = !lean_is_exclusive(x_15); +if (x_40 == 0) +{ +return x_15; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_15, 0); +x_42 = lean_ctor_get(x_15, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_34, 1); -lean_inc(x_43); -lean_dec(x_34); -x_44 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_33, x_9, x_10, x_11, x_12, x_13, x_14, x_43); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -lean_ctor_set_tag(x_44, 1); -lean_ctor_set(x_44, 0, x_42); -return x_44; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_42); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_inc(x_41); +lean_dec(x_15); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } } -else -{ -uint8_t x_49; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_49 = !lean_is_exclusive(x_25); -if (x_49 == 0) -{ -return x_25; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_25, 0); -x_51 = lean_ctor_get(x_25, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_25); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -} -else -{ -uint8_t x_53; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -x_53 = !lean_is_exclusive(x_22); -if (x_53 == 0) -{ -return x_22; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_22, 0); -x_55 = lean_ctor_get(x_22, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_22); -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; -} -} -} -else -{ -uint8_t x_57; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -x_57 = !lean_is_exclusive(x_19); -if (x_57 == 0) -{ -return x_19; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_19, 0); -x_59 = lean_ctor_get(x_19, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_19); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -else -{ -uint8_t x_61; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -x_61 = !lean_is_exclusive(x_16); -if (x_61 == 0) -{ -return x_16; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_16, 0); -x_63 = lean_ctor_get(x_16, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_16); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed__const__1() { +static lean_object* _init_l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1() { _start: { size_t x_1; lean_object* x_2; @@ -18615,350 +18519,343 @@ x_2 = lean_box_usize(x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_elabMutualDef___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_Lean_Elab_Term_elabMutualDef_go___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_14; -lean_inc(x_12); +lean_object* x_13; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_1); -x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = 0; -x_18 = lean_box(0); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_19 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_17, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; size_t 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_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_array_get_size(x_15); -x_22 = lean_usize_of_nat(x_21); -lean_dec(x_21); -x_23 = x_15; -x_24 = lean_box_usize(x_22); -x_25 = l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed__const__1; -x_26 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__4___boxed), 10, 3); -lean_closure_set(x_26, 0, x_24); -lean_closure_set(x_26, 1, x_25); -lean_closure_set(x_26, 2, x_23); -x_27 = x_26; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_28 = lean_apply_7(x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_20); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; size_t 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_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_array_get_size(x_1); -x_32 = lean_usize_of_nat(x_31); -lean_dec(x_31); -x_33 = x_1; -x_34 = lean_box_usize(x_32); -x_35 = l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed__const__1; -x_36 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__5___boxed), 10, 3); -lean_closure_set(x_36, 0, x_34); -lean_closure_set(x_36, 1, x_35); -lean_closure_set(x_36, 2, x_33); -x_37 = x_36; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_38 = lean_apply_7(x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_30); -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; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Elab_Term_getLetRecsToLift___rarg(x_8, x_9, x_10, x_11, x_12, x_40); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_44 = l_List_mapM___at_Lean_Elab_Term_elabMutualDef___spec__1(x_42, x_7, x_8, x_9, x_10, x_11, x_12, x_43); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_7); -lean_inc_n(x_45, 2); lean_inc(x_6); -x_47 = l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__2(x_6, x_45, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_46); -if (lean_obj_tag(x_47) == 0) +lean_inc(x_1); +x_13 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -lean_inc(x_45); +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +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 = 0; +x_17 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_18 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; size_t 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; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_array_get_size(x_14); +x_21 = lean_usize_of_nat(x_20); +lean_dec(x_20); +x_22 = x_14; +x_23 = lean_box_usize(x_21); +x_24 = l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1; +x_25 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__4___boxed), 10, 3); +lean_closure_set(x_25, 0, x_23); +lean_closure_set(x_25, 1, x_24); +lean_closure_set(x_25, 2, x_22); +x_26 = x_25; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_27 = lean_apply_7(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; size_t 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; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_array_get_size(x_1); +x_31 = lean_usize_of_nat(x_30); +lean_dec(x_30); +x_32 = x_1; +x_33 = lean_box_usize(x_31); +x_34 = l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1; +x_35 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__5___boxed), 10, 3); +lean_closure_set(x_35, 0, x_33); +lean_closure_set(x_35, 1, x_34); +lean_closure_set(x_35, 2, x_32); +x_36 = x_35; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_37 = lean_apply_7(x_36, x_6, x_7, x_8, x_9, x_10, x_11, x_29); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); -x_49 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef___lambda__1___boxed), 15, 7); -lean_closure_set(x_49, 0, x_39); -lean_closure_set(x_49, 1, x_6); -lean_closure_set(x_49, 2, x_29); -lean_closure_set(x_49, 3, x_45); -lean_closure_set(x_49, 4, x_2); -lean_closure_set(x_49, 5, x_3); -lean_closure_set(x_49, 6, x_4); -x_50 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed___rarg(x_5, x_39, x_29, x_45, x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_48); -lean_dec(x_29); -lean_dec(x_39); -return x_50; -} -else +lean_dec(x_37); +x_40 = l_Lean_Elab_Term_getLetRecsToLift___rarg(x_7, x_8, x_9, x_10, x_11, x_39); +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); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_43 = l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1(x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_42); +if (lean_obj_tag(x_43) == 0) { -uint8_t x_51; -lean_dec(x_45); -lean_dec(x_39); -lean_dec(x_29); -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_4); -lean_dec(x_3); -lean_dec(x_2); -x_51 = !lean_is_exclusive(x_47); -if (x_51 == 0) +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_6); +lean_inc_n(x_44, 2); +lean_inc(x_5); +x_46 = l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLiftTypes___spec__2(x_5, x_44, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +if (lean_obj_tag(x_46) == 0) { -return x_47; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_47, 0); -x_53 = lean_ctor_get(x_47, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_47); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -else -{ -uint8_t x_55; -lean_dec(x_39); -lean_dec(x_29); -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_4); -lean_dec(x_3); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_44); -if (x_55 == 0) -{ -return x_44; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_44, 0); -x_57 = lean_ctor_get(x_44, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_44); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -uint8_t x_59; -lean_dec(x_29); -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_4); -lean_dec(x_3); -lean_dec(x_2); -x_59 = !lean_is_exclusive(x_38); -if (x_59 == 0) -{ -return x_38; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_38, 0); -x_61 = lean_ctor_get(x_38, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_38); -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; -} -} -} -else -{ -uint8_t x_63; -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_63 = !lean_is_exclusive(x_28); -if (x_63 == 0) -{ -return x_28; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_28, 0); -x_65 = lean_ctor_get(x_28, 1); -lean_inc(x_65); -lean_inc(x_64); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +lean_inc(x_44); +lean_inc(x_28); +lean_inc(x_38); +x_48 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_go___lambda__1), 14, 6); +lean_closure_set(x_48, 0, x_38); +lean_closure_set(x_48, 1, x_5); +lean_closure_set(x_48, 2, x_28); +lean_closure_set(x_48, 3, x_44); +lean_closure_set(x_48, 4, x_2); +lean_closure_set(x_48, 5, x_3); +x_49 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withUsed___rarg(x_4, x_38, x_28, x_44, x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_47); lean_dec(x_28); -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_dec(x_38); +return x_49; } else { -uint8_t x_67; -lean_dec(x_15); -lean_dec(x_12); +uint8_t x_50; +lean_dec(x_44); +lean_dec(x_38); +lean_dec(x_28); 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_4); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_67 = !lean_is_exclusive(x_19); -if (x_67 == 0) +x_50 = !lean_is_exclusive(x_46); +if (x_50 == 0) { -return x_19; +return x_46; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_19, 0); -x_69 = lean_ctor_get(x_19, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_19); -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; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_46, 0); +x_52 = lean_ctor_get(x_46, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_46); +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; } } } else { -uint8_t x_71; -lean_dec(x_12); +uint8_t x_54; +lean_dec(x_38); +lean_dec(x_28); 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_4); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_71 = !lean_is_exclusive(x_14); -if (x_71 == 0) +x_54 = !lean_is_exclusive(x_43); +if (x_54 == 0) { -return x_14; +return x_43; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_14, 0); -x_73 = lean_ctor_get(x_14, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_43, 0); +x_56 = lean_ctor_get(x_43, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_43); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_28); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_58 = !lean_is_exclusive(x_37); +if (x_58 == 0) +{ +return x_37; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_37, 0); +x_60 = lean_ctor_get(x_37, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_37); +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_62; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_62 = !lean_is_exclusive(x_27); +if (x_62 == 0) +{ +return x_27; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_27, 0); +x_64 = lean_ctor_get(x_27, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_27); +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_66; lean_dec(x_14); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_66 = !lean_is_exclusive(x_18); +if (x_66 == 0) +{ +return x_18; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_18, 0); +x_68 = lean_ctor_get(x_18, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_18); +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 +{ +uint8_t x_70; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_70 = !lean_is_exclusive(x_13); +if (x_70 == 0) +{ +return x_13; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_13, 0); +x_72 = lean_ctor_get(x_13, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_13); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } } -lean_object* l_Lean_Elab_Term_elabMutualDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Term_elabMutualDef_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; @@ -19000,12 +18897,11 @@ lean_inc(x_18); lean_dec(x_16); x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames(x_17); lean_inc(x_17); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed), 13, 5); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed), 12, 4); lean_closure_set(x_20, 0, x_17); lean_closure_set(x_20, 1, x_11); lean_closure_set(x_20, 2, x_19); -lean_closure_set(x_20, 3, x_2); -lean_closure_set(x_20, 4, x_1); +lean_closure_set(x_20, 3, x_1); x_21 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(x_17, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_18); return x_21; } @@ -19019,7 +18915,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); x_22 = !lean_is_exclusive(x_16); if (x_22 == 0) @@ -19051,7 +18946,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); x_26 = !lean_is_exclusive(x_13); if (x_26 == 0) @@ -19074,32 +18968,147 @@ return x_29; } } } -lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef___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* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___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_List_mapM___at_Lean_Elab_Term_elabMutualDef___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_2); return x_9; } } -lean_object* l_Lean_Elab_Term_elabMutualDef___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Lean_Elab_Term_elabMutualDef_go___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_16; -x_16 = l_Lean_Elab_Term_elabMutualDef___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_object* x_13; +x_13 = l_Lean_Elab_Term_elabMutualDef_go___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_4); +return x_13; +} +} +lean_object* l_Lean_Elab_Term_elabMutualDef_go___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_elabMutualDef_go(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_Term_elabMutualDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample(x_2); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Term_elabMutualDef_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_st_ref_get(x_8, x_9); +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_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +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_16 = l_Lean_Elab_Term_elabMutualDef_go(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +lean_dec(x_8); lean_dec(x_7); -return x_16; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_17); +return x_19; +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_17); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } -lean_object* l_Lean_Elab_Term_elabMutualDef___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) { +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_16, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); +lean_dec(x_16); +x_26 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +lean_ctor_set_tag(x_26, 1); +lean_ctor_set(x_26, 0, x_24); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +} +lean_object* l_Lean_Elab_Term_elabMutualDef___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_14; -x_14 = l_Lean_Elab_Term_elabMutualDef___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_5); -return x_14; +lean_object* x_10; +x_10 = l_Lean_Elab_Term_elabMutualDef(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_throwErrorAt___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -20796,7 +20805,7 @@ lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef), 9, 2); +x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef___boxed), 9, 2); lean_closure_set(x_35, 0, x_33); lean_closure_set(x_35, 1, x_3); x_36 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_35, x_5, x_6, x_7, x_8, x_9, x_10, x_34); @@ -20883,7 +20892,7 @@ lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); lean_dec(x_55); -x_58 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef), 9, 2); +x_58 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMutualDef___boxed), 9, 2); lean_closure_set(x_58, 0, x_56); lean_closure_set(x_58, 1, x_3); x_59 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_58, x_52, x_6, x_7, x_8, x_9, x_10, x_57); @@ -21390,8 +21399,8 @@ l_Lean_Elab_Term_MutualClosure_main___boxed__const__1 = _init_l_Lean_Elab_Term_M lean_mark_persistent(l_Lean_Elab_Term_MutualClosure_main___boxed__const__1); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___boxed__const__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders___boxed__const__1); -l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed__const__1 = _init_l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed__const__1(); -lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef___lambda__2___boxed__const__1); +l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1 = _init_l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1); l_Lean_Elab_Command_elabMutualDef___boxed__const__1 = _init_l_Lean_Elab_Command_elabMutualDef___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Command_elabMutualDef___boxed__const__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index 03a936a8d2..c6745996b8 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -62,7 +62,6 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___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_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__4; extern lean_object* l_Lean_nullKind; @@ -193,6 +192,7 @@ lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__2; lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__39; lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3774____closed__10; +lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__10; lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -390,6 +390,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__23; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__11; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12692____closed__7; +lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__13; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7; extern lean_object* l_Lean_Meta_mkArrow___closed__2; @@ -404,7 +405,6 @@ extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda lean_object* l_List_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__38; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__6; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__21; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__3___closed__3; extern lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__2; @@ -505,7 +505,7 @@ lean_object* l_Std_RBNode_find___at___private_Lean_Hygiene_0__Lean_sanitizeSynta extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__24(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11885_(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11891_(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___closed__7; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__3; @@ -528,7 +528,6 @@ lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__3; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___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_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__4(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -554,6 +553,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate_match__1(lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__2(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_Std_Format_sbracket___closed__3; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__16; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__10___closed__3; lean_object* l_Lean_Elab_Term_Quotation_resolveSectionVariable(lean_object*, lean_object*); @@ -576,6 +576,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__8___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_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__1; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__22; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -606,6 +607,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch_match__3(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__29; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; extern lean_object* l_term_x2d_____closed__3; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__21___lambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4249____closed__1; @@ -8718,7 +8720,7 @@ lean_ctor_set(x_190, 1, x_189); lean_ctor_set(x_190, 2, x_185); lean_ctor_set(x_190, 3, x_188); x_191 = lean_array_push(x_183, x_190); -x_192 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_192 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_193 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_193, 0, x_192); lean_ctor_set(x_193, 1, x_191); @@ -8830,7 +8832,7 @@ lean_ctor_set(x_242, 1, x_241); lean_ctor_set(x_242, 2, x_237); lean_ctor_set(x_242, 3, x_240); x_243 = lean_array_push(x_235, x_242); -x_244 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_244 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_245 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_245, 0, x_244); lean_ctor_set(x_245, 1, x_243); @@ -14197,7 +14199,7 @@ x_29 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_30 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); -x_31 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_31 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_32 = lean_array_push(x_31, x_30); x_33 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_34 = lean_alloc_ctor(1, 2, 0); @@ -14390,7 +14392,7 @@ x_131 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_132 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_132, 0, x_131); lean_ctor_set(x_132, 1, x_130); -x_133 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_133 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_134 = lean_array_push(x_133, x_132); x_135 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_136 = lean_alloc_ctor(1, 2, 0); @@ -20241,7 +20243,7 @@ lean_ctor_set(x_47, 0, x_20); lean_ctor_set(x_47, 1, x_46); lean_inc(x_2); x_48 = lean_array_push(x_2, x_47); -x_49 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; +x_49 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; lean_inc(x_1); x_50 = lean_name_mk_string(x_1, x_49); lean_inc(x_2); @@ -20596,7 +20598,7 @@ lean_ctor_set(x_196, 0, x_20); lean_ctor_set(x_196, 1, x_195); lean_inc(x_2); x_197 = lean_array_push(x_2, x_196); -x_198 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; +x_198 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; lean_inc(x_1); x_199 = lean_name_mk_string(x_1, x_198); lean_inc(x_2); @@ -23504,7 +23506,7 @@ lean_ctor_set(x_62, 1, x_60); lean_ctor_set(x_62, 2, x_58); lean_ctor_set(x_62, 3, x_61); x_63 = lean_array_push(x_56, x_62); -x_64 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_64 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_65 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); @@ -23646,7 +23648,7 @@ lean_ctor_set(x_137, 1, x_135); lean_ctor_set(x_137, 2, x_133); lean_ctor_set(x_137, 3, x_136); x_138 = lean_array_push(x_131, x_137); -x_139 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_139 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_140 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_140, 0, x_139); lean_ctor_set(x_140, 1, x_138); @@ -24798,7 +24800,7 @@ static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quot _start: { lean_object* x_1; -x_1 = lean_mk_string("match_syntax: unexpected pattern kind "); +x_1 = lean_mk_string("match (syntax) : unexpected pattern kind "); return x_1; } } @@ -31427,7 +31429,7 @@ static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quot _start: { lean_object* x_1; -x_1 = lean_mk_string("non-exhaustive 'match_syntax'"); +x_1 = lean_mk_string("non-exhaustive 'match' (syntax)"); return x_1; } } @@ -31436,32 +31438,43 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); return x_2; } } static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__3() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__4() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string("_private.Lean.Elab.Quotation.0.Lean.Elab.Term.Quotation.compileStxMatch"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepFromSplice___closed__2; -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__3; -x_3 = lean_unsigned_to_nat(453u); +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__4; +x_3 = lean_unsigned_to_nat(455u); x_4 = lean_unsigned_to_nat(12u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -31473,7 +31486,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7() { _start: { lean_object* x_1; @@ -31481,17 +31494,17 @@ x_1 = lean_mk_string("match_syntax"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1247____closed__1; -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__6; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9() { _start: { lean_object* x_1; lean_object* x_2; @@ -31500,7 +31513,7 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9() { +static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__10() { _start: { lean_object* x_1; lean_object* x_2; @@ -31512,96 +31525,119 @@ return x_2; lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; uint8_t x_338; lean_object* x_339; lean_object* x_355; lean_object* x_356; lean_object* x_357; uint8_t x_358; -x_355 = lean_st_ref_get(x_8, x_9); -x_356 = lean_ctor_get(x_355, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_356, 3); -lean_inc(x_357); -lean_dec(x_356); -x_358 = lean_ctor_get_uint8(x_357, sizeof(void*)*1); -lean_dec(x_357); -if (x_358 == 0) +lean_object* x_10; uint8_t x_352; lean_object* x_353; lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t x_372; +x_369 = lean_st_ref_get(x_8, x_9); +x_370 = lean_ctor_get(x_369, 0); +lean_inc(x_370); +x_371 = lean_ctor_get(x_370, 3); +lean_inc(x_371); +lean_dec(x_370); +x_372 = lean_ctor_get_uint8(x_371, sizeof(void*)*1); +lean_dec(x_371); +if (x_372 == 0) { -lean_object* x_359; uint8_t x_360; -x_359 = lean_ctor_get(x_355, 1); -lean_inc(x_359); -lean_dec(x_355); -x_360 = 0; -x_338 = x_360; -x_339 = x_359; -goto block_354; +lean_object* x_373; uint8_t x_374; +x_373 = lean_ctor_get(x_369, 1); +lean_inc(x_373); +lean_dec(x_369); +x_374 = 0; +x_352 = x_374; +x_353 = x_373; +goto block_368; } else { -lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; -x_361 = lean_ctor_get(x_355, 1); -lean_inc(x_361); -lean_dec(x_355); -x_362 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7; -x_363 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_362, x_3, x_4, x_5, x_6, x_7, x_8, x_361); -x_364 = lean_ctor_get(x_363, 0); -lean_inc(x_364); -x_365 = lean_ctor_get(x_363, 1); -lean_inc(x_365); -lean_dec(x_363); -x_366 = lean_unbox(x_364); -lean_dec(x_364); -x_338 = x_366; -x_339 = x_365; -goto block_354; +lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; uint8_t x_380; +x_375 = lean_ctor_get(x_369, 1); +lean_inc(x_375); +lean_dec(x_369); +x_376 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8; +x_377 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_376, x_3, x_4, x_5, x_6, x_7, x_8, x_375); +x_378 = lean_ctor_get(x_377, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_377, 1); +lean_inc(x_379); +lean_dec(x_377); +x_380 = lean_unbox(x_378); +lean_dec(x_378); +x_352 = x_380; +x_353 = x_379; +goto block_368; } -block_337: +block_351: { if (lean_obj_tag(x_1) == 0) { if (lean_obj_tag(x_2) == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__2; -x_12 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; +lean_object* x_11; uint8_t x_12; lean_object* x_13; uint8_t x_14; +x_11 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__3; +x_12 = 2; +x_13 = l_Lean_Elab_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__3(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_10); -return x_16; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +x_16 = lean_box(0); +lean_ctor_set(x_13, 0, x_16); +return x_13; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_14); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); lean_dec(x_13); -x_17 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_18 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__4; -x_19 = lean_panic_fn(x_17, x_18); -x_20 = lean_apply_7(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_10); -return x_20; +x_18 = lean_box(0); +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 +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_2, 0); +lean_inc(x_20); +lean_dec(x_2); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_21); +lean_dec(x_20); +x_24 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_25 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__5; +x_26 = lean_panic_fn(x_24, x_25); +x_27 = lean_apply_7(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +return x_27; } } } @@ -31609,1144 +31645,1167 @@ else { if (lean_obj_tag(x_2) == 0) { -lean_object* x_21; lean_object* x_22; +lean_object* x_28; uint8_t x_29; lean_object* x_30; uint8_t x_31; lean_dec(x_1); -x_21 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__2; -x_22 = l_Lean_throwError___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +x_28 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__3; +x_29 = 2; +x_30 = l_Lean_Elab_log___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__3(x_28, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_22; +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +x_33 = lean_box(0); +lean_ctor_set(x_30, 0, x_33); +return x_30; } else { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_1); -if (x_23 == 0) -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_2); -if (x_24 == 0) -{ -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_1, 0); -x_26 = lean_ctor_get(x_1, 1); -x_27 = lean_ctor_get(x_2, 0); -x_28 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_inc(x_3); -lean_inc(x_27); -x_29 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_10); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -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_7); -lean_inc(x_3); -lean_inc(x_30); -x_32 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 1); lean_inc(x_34); -lean_dec(x_32); -x_35 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__5; -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_36 = l_List_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(x_33, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_34); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -lean_dec(x_36); -x_41 = lean_ctor_get(x_37, 0); -lean_inc(x_41); -lean_dec(x_37); -x_42 = lean_ctor_get(x_38, 0); -lean_inc(x_42); -lean_dec(x_38); -x_43 = lean_ctor_get(x_39, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_dec(x_39); -x_45 = lean_ctor_get(x_30, 2); -lean_inc(x_45); lean_dec(x_30); -x_46 = l_Array_empty___closed__1; -lean_inc(x_26); -x_47 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__3), 12, 4); -lean_closure_set(x_47, 0, x_26); -lean_closure_set(x_47, 1, x_43); -lean_closure_set(x_47, 2, x_46); -lean_closure_set(x_47, 3, x_44); -lean_inc(x_25); -x_48 = lean_array_to_list(lean_box(0), x_42); -x_49 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__4), 9, 2); -lean_closure_set(x_49, 0, x_1); -lean_closure_set(x_49, 1, x_48); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +else +{ +uint8_t x_37; +x_37 = !lean_is_exclusive(x_1); +if (x_37 == 0) +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_2); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_1, 0); +x_40 = lean_ctor_get(x_1, 1); +x_41 = lean_ctor_get(x_2, 0); +x_42 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_41); +x_43 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_44); +x_46 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_45); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__6; 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_50 = lean_apply_9(x_45, x_47, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +x_50 = l_List_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(x_47, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_48); if (lean_obj_tag(x_50) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; size_t x_54; size_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; uint8_t x_66; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); +x_52 = lean_ctor_get(x_51, 1); lean_inc(x_52); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_50, 1); +lean_inc(x_54); lean_dec(x_50); -x_53 = lean_array_get_size(x_41); -x_54 = lean_usize_of_nat(x_53); -lean_dec(x_53); -x_55 = 0; -x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_46, x_41, x_54, x_55, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_52); -lean_dec(x_41); -x_57 = lean_ctor_get(x_56, 0); +x_55 = lean_ctor_get(x_51, 0); +lean_inc(x_55); +lean_dec(x_51); +x_56 = lean_ctor_get(x_52, 0); +lean_inc(x_56); +lean_dec(x_52); +x_57 = lean_ctor_get(x_53, 0); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_58 = lean_ctor_get(x_53, 1); lean_inc(x_58); -lean_dec(x_56); -x_59 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_7, x_8, x_58); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_61); +lean_dec(x_53); +x_59 = lean_ctor_get(x_44, 2); +lean_inc(x_59); +lean_dec(x_44); +x_60 = l_Array_empty___closed__1; +lean_inc(x_40); +x_61 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__3), 12, 4); +lean_closure_set(x_61, 0, x_40); +lean_closure_set(x_61, 1, x_57); +lean_closure_set(x_61, 2, x_60); +lean_closure_set(x_61, 3, x_58); +lean_inc(x_39); +x_62 = lean_array_to_list(lean_box(0), x_56); +x_63 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__4), 9, 2); +lean_closure_set(x_63, 0, x_1); +lean_closure_set(x_63, 1, x_62); +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_64 = lean_apply_9(x_59, x_61, x_63, x_3, x_4, x_5, x_6, x_7, x_8, x_54); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; size_t x_68; size_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_array_get_size(x_55); +x_68 = lean_usize_of_nat(x_67); +lean_dec(x_67); +x_69 = 0; +x_70 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_60, x_55, x_68, x_69, x_65, x_3, x_4, x_5, x_6, x_7, x_8, x_66); +lean_dec(x_55); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_7, x_8, x_72); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_75); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_64); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_78); lean_dec(x_8); -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_67 = lean_ctor_get(x_65, 0); -x_68 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; -lean_inc(x_60); -x_69 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_69, 0, x_60); -lean_ctor_set(x_69, 1, x_68); -x_70 = lean_array_push(x_46, x_69); -x_71 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; -x_72 = l_Lean_addMacroScope(x_67, x_71, x_63); -x_73 = lean_box(0); -x_74 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; -lean_inc(x_60); -x_75 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_75, 0, x_60); -lean_ctor_set(x_75, 1, x_74); -lean_ctor_set(x_75, 2, x_72); -lean_ctor_set(x_75, 3, x_73); -x_76 = lean_array_push(x_46, x_75); -x_77 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_78 = lean_array_push(x_76, x_77); -x_79 = lean_array_push(x_78, x_77); -x_80 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -lean_inc(x_60); -x_81 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_81, 0, x_60); -lean_ctor_set(x_81, 1, x_80); -x_82 = lean_array_push(x_79, x_81); -x_83 = lean_array_push(x_82, x_25); -x_84 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_83); -x_86 = lean_array_push(x_46, x_85); -x_87 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -x_89 = lean_array_push(x_70, x_88); -x_90 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; -x_91 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_91, 0, x_60); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_array_push(x_46, x_91); -x_93 = l_Lean_nullKind___closed__2; -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_92); -x_95 = lean_array_push(x_89, x_94); -x_96 = lean_array_push(x_95, x_57); -x_97 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -lean_ctor_set(x_65, 0, x_98); -return x_65; +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 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; +x_81 = lean_ctor_get(x_79, 0); +x_82 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; +lean_inc(x_74); +x_83 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_83, 0, x_74); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_array_push(x_60, x_83); +x_85 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; +x_86 = l_Lean_addMacroScope(x_81, x_85, x_77); +x_87 = lean_box(0); +x_88 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; +lean_inc(x_74); +x_89 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_89, 0, x_74); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_89, 2, x_86); +lean_ctor_set(x_89, 3, x_87); +x_90 = lean_array_push(x_60, x_89); +x_91 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_92 = lean_array_push(x_90, x_91); +x_93 = lean_array_push(x_92, x_91); +x_94 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_74); +x_95 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_95, 0, x_74); +lean_ctor_set(x_95, 1, x_94); +x_96 = lean_array_push(x_93, x_95); +x_97 = lean_array_push(x_96, x_39); +x_98 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +x_100 = lean_array_push(x_60, x_99); +x_101 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +x_103 = lean_array_push(x_84, x_102); +x_104 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_105 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_105, 0, x_74); +lean_ctor_set(x_105, 1, x_104); +x_106 = lean_array_push(x_60, x_105); +x_107 = l_Lean_nullKind___closed__2; +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_106); +x_109 = lean_array_push(x_103, x_108); +x_110 = lean_array_push(x_109, x_71); +x_111 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_110); +lean_ctor_set(x_79, 0, x_112); +return x_79; } else { -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; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_99 = lean_ctor_get(x_65, 0); -x_100 = lean_ctor_get(x_65, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_65); -x_101 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; -lean_inc(x_60); -x_102 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_102, 0, x_60); -lean_ctor_set(x_102, 1, x_101); -x_103 = lean_array_push(x_46, x_102); -x_104 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; -x_105 = l_Lean_addMacroScope(x_99, x_104, x_63); -x_106 = lean_box(0); -x_107 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; -lean_inc(x_60); -x_108 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_108, 0, x_60); -lean_ctor_set(x_108, 1, x_107); -lean_ctor_set(x_108, 2, x_105); -lean_ctor_set(x_108, 3, x_106); -x_109 = lean_array_push(x_46, x_108); -x_110 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_111 = lean_array_push(x_109, x_110); -x_112 = lean_array_push(x_111, x_110); -x_113 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -lean_inc(x_60); -x_114 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_114, 0, x_60); -lean_ctor_set(x_114, 1, x_113); -x_115 = lean_array_push(x_112, x_114); -x_116 = lean_array_push(x_115, x_25); -x_117 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_116); -x_119 = lean_array_push(x_46, x_118); -x_120 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_119); -x_122 = lean_array_push(x_103, x_121); -x_123 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; -x_124 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_124, 0, x_60); -lean_ctor_set(x_124, 1, x_123); -x_125 = lean_array_push(x_46, x_124); -x_126 = l_Lean_nullKind___closed__2; -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_125); -x_128 = lean_array_push(x_122, x_127); -x_129 = lean_array_push(x_128, x_57); -x_130 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_129); -x_132 = lean_alloc_ctor(0, 2, 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_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; 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; lean_object* x_146; +x_113 = lean_ctor_get(x_79, 0); +x_114 = lean_ctor_get(x_79, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_79); +x_115 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; +lean_inc(x_74); +x_116 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_116, 0, x_74); +lean_ctor_set(x_116, 1, x_115); +x_117 = lean_array_push(x_60, x_116); +x_118 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; +x_119 = l_Lean_addMacroScope(x_113, x_118, x_77); +x_120 = lean_box(0); +x_121 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; +lean_inc(x_74); +x_122 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_122, 0, x_74); +lean_ctor_set(x_122, 1, x_121); +lean_ctor_set(x_122, 2, x_119); +lean_ctor_set(x_122, 3, x_120); +x_123 = lean_array_push(x_60, x_122); +x_124 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_125 = lean_array_push(x_123, x_124); +x_126 = lean_array_push(x_125, x_124); +x_127 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_74); +x_128 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_128, 0, x_74); +lean_ctor_set(x_128, 1, x_127); +x_129 = lean_array_push(x_126, x_128); +x_130 = lean_array_push(x_129, x_39); +x_131 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; +x_132 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_100); -return x_132; +lean_ctor_set(x_132, 1, x_130); +x_133 = lean_array_push(x_60, x_132); +x_134 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_133); +x_136 = lean_array_push(x_117, x_135); +x_137 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_138 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_138, 0, x_74); +lean_ctor_set(x_138, 1, x_137); +x_139 = lean_array_push(x_60, x_138); +x_140 = l_Lean_nullKind___closed__2; +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_139); +x_142 = lean_array_push(x_136, x_141); +x_143 = lean_array_push(x_142, x_71); +x_144 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_114); +return x_146; } } else { -uint8_t x_133; -lean_dec(x_41); -lean_dec(x_25); +uint8_t x_147; +lean_dec(x_55); +lean_dec(x_39); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_133 = !lean_is_exclusive(x_50); -if (x_133 == 0) +x_147 = !lean_is_exclusive(x_64); +if (x_147 == 0) +{ +return x_64; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_64, 0); +x_149 = lean_ctor_get(x_64, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_64); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; +} +} +} +else +{ +uint8_t x_151; +lean_dec(x_44); +lean_free_object(x_1); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_151 = !lean_is_exclusive(x_50); +if (x_151 == 0) { return x_50; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_50, 0); -x_135 = lean_ctor_get(x_50, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_50); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; -} -} -} -else -{ -uint8_t x_137; -lean_dec(x_30); -lean_free_object(x_1); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_137 = !lean_is_exclusive(x_36); -if (x_137 == 0) -{ -return x_36; -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_36, 0); -x_139 = lean_ctor_get(x_36, 1); -lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_36); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; -} -} -} -else -{ -uint8_t x_141; -lean_dec(x_30); -lean_free_object(x_1); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_141 = !lean_is_exclusive(x_32); -if (x_141 == 0) -{ -return x_32; -} -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_32, 0); -x_143 = lean_ctor_get(x_32, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_32); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} -} -} -else -{ -uint8_t x_145; -lean_free_object(x_2); -lean_dec(x_28); -lean_dec(x_27); -lean_free_object(x_1); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_145 = !lean_is_exclusive(x_29); -if (x_145 == 0) -{ -return x_29; -} -else -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_29, 0); -x_147 = lean_ctor_get(x_29, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_29); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -return x_148; -} -} -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_149 = lean_ctor_get(x_1, 0); -x_150 = lean_ctor_get(x_1, 1); -x_151 = lean_ctor_get(x_2, 0); -x_152 = lean_ctor_get(x_2, 1); +lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_152 = lean_ctor_get(x_50, 0); +x_153 = lean_ctor_get(x_50, 1); +lean_inc(x_153); lean_inc(x_152); -lean_inc(x_151); +lean_dec(x_50); +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +return x_154; +} +} +} +else +{ +uint8_t x_155; +lean_dec(x_44); +lean_free_object(x_1); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_155 = !lean_is_exclusive(x_46); +if (x_155 == 0) +{ +return x_46; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_46, 0); +x_157 = lean_ctor_get(x_46, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_46); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +return x_158; +} +} +} +else +{ +uint8_t x_159; +lean_free_object(x_2); +lean_dec(x_42); +lean_dec(x_41); +lean_free_object(x_1); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_159 = !lean_is_exclusive(x_43); +if (x_159 == 0) +{ +return x_43; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_43, 0); +x_161 = lean_ctor_get(x_43, 1); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_43); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +return x_162; +} +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_163 = lean_ctor_get(x_1, 0); +x_164 = lean_ctor_get(x_1, 1); +x_165 = lean_ctor_get(x_2, 0); +x_166 = lean_ctor_get(x_2, 1); +lean_inc(x_166); +lean_inc(x_165); lean_dec(x_2); lean_inc(x_7); lean_inc(x_3); -lean_inc(x_151); -x_153 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_151, x_3, x_4, x_5, x_6, x_7, x_8, x_10); -if (lean_obj_tag(x_153) == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_151); -lean_ctor_set(x_156, 1, x_152); -lean_inc(x_7); -lean_inc(x_3); -lean_inc(x_154); -x_157 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_154, x_156, x_3, x_4, x_5, x_6, x_7, x_8, x_155); -if (lean_obj_tag(x_157) == 0) -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -lean_dec(x_157); -x_160 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__5; -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_161 = l_List_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(x_158, x_160, x_3, x_4, x_5, x_6, x_7, x_8, x_159); -if (lean_obj_tag(x_161) == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -x_165 = lean_ctor_get(x_161, 1); lean_inc(x_165); -lean_dec(x_161); -x_166 = lean_ctor_get(x_162, 0); -lean_inc(x_166); -lean_dec(x_162); -x_167 = lean_ctor_get(x_163, 0); -lean_inc(x_167); -lean_dec(x_163); -x_168 = lean_ctor_get(x_164, 0); +x_167 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_165, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_168 = lean_ctor_get(x_167, 0); lean_inc(x_168); -x_169 = lean_ctor_get(x_164, 1); +x_169 = lean_ctor_get(x_167, 1); lean_inc(x_169); -lean_dec(x_164); -x_170 = lean_ctor_get(x_154, 2); -lean_inc(x_170); -lean_dec(x_154); -x_171 = l_Array_empty___closed__1; -lean_inc(x_150); -x_172 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__3), 12, 4); -lean_closure_set(x_172, 0, x_150); -lean_closure_set(x_172, 1, x_168); -lean_closure_set(x_172, 2, x_171); -lean_closure_set(x_172, 3, x_169); -lean_inc(x_149); -x_173 = lean_array_to_list(lean_box(0), x_167); -x_174 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__4), 9, 2); -lean_closure_set(x_174, 0, x_1); -lean_closure_set(x_174, 1, x_173); +lean_dec(x_167); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_165); +lean_ctor_set(x_170, 1, x_166); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_168); +x_171 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_168, x_170, x_3, x_4, x_5, x_6, x_7, x_8, x_169); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +x_174 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__6; 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_175 = lean_apply_9(x_170, x_172, x_174, x_3, x_4, x_5, x_6, x_7, x_8, x_165); +x_175 = l_List_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(x_172, x_174, x_3, x_4, x_5, x_6, x_7, x_8, x_173); if (lean_obj_tag(x_175) == 0) { -lean_object* x_176; lean_object* x_177; lean_object* x_178; size_t x_179; size_t 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; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 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; 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_176; lean_object* 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; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; x_176 = lean_ctor_get(x_175, 0); lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 1); +x_177 = lean_ctor_get(x_176, 1); lean_inc(x_177); +x_178 = lean_ctor_get(x_177, 1); +lean_inc(x_178); +x_179 = lean_ctor_get(x_175, 1); +lean_inc(x_179); lean_dec(x_175); -x_178 = lean_array_get_size(x_166); -x_179 = lean_usize_of_nat(x_178); -lean_dec(x_178); -x_180 = 0; -x_181 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_171, x_166, x_179, x_180, x_176, x_3, x_4, x_5, x_6, x_7, x_8, x_177); -lean_dec(x_166); -x_182 = lean_ctor_get(x_181, 0); +x_180 = lean_ctor_get(x_176, 0); +lean_inc(x_180); +lean_dec(x_176); +x_181 = lean_ctor_get(x_177, 0); +lean_inc(x_181); +lean_dec(x_177); +x_182 = lean_ctor_get(x_178, 0); lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); +x_183 = lean_ctor_get(x_178, 1); lean_inc(x_183); -lean_dec(x_181); -x_184 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_7, x_8, x_183); -x_185 = lean_ctor_get(x_184, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec(x_184); -x_187 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_186); +lean_dec(x_178); +x_184 = lean_ctor_get(x_168, 2); +lean_inc(x_184); +lean_dec(x_168); +x_185 = l_Array_empty___closed__1; +lean_inc(x_164); +x_186 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__3), 12, 4); +lean_closure_set(x_186, 0, x_164); +lean_closure_set(x_186, 1, x_182); +lean_closure_set(x_186, 2, x_185); +lean_closure_set(x_186, 3, x_183); +lean_inc(x_163); +x_187 = lean_array_to_list(lean_box(0), x_181); +x_188 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__4), 9, 2); +lean_closure_set(x_188, 0, x_1); +lean_closure_set(x_188, 1, x_187); +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_189 = lean_apply_9(x_184, x_186, x_188, x_3, x_4, x_5, x_6, x_7, x_8, x_179); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; size_t x_193; size_t 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; 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; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +lean_dec(x_189); +x_192 = lean_array_get_size(x_180); +x_193 = lean_usize_of_nat(x_192); +lean_dec(x_192); +x_194 = 0; +x_195 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_185, x_180, x_193, x_194, x_190, x_3, x_4, x_5, x_6, x_7, x_8, x_191); +lean_dec(x_180); +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +lean_dec(x_195); +x_198 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_7, x_8, x_197); +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_198, 1); +lean_inc(x_200); +lean_dec(x_198); +x_201 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_200); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec(x_187); -x_190 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_189); +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +x_204 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_203); lean_dec(x_8); -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_193 = x_190; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; } else { - lean_dec_ref(x_190); - x_193 = lean_box(0); -} -x_194 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; -lean_inc(x_185); -x_195 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_195, 0, x_185); -lean_ctor_set(x_195, 1, x_194); -x_196 = lean_array_push(x_171, x_195); -x_197 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; -x_198 = l_Lean_addMacroScope(x_191, x_197, x_188); -x_199 = lean_box(0); -x_200 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; -lean_inc(x_185); -x_201 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_201, 0, x_185); -lean_ctor_set(x_201, 1, x_200); -lean_ctor_set(x_201, 2, x_198); -lean_ctor_set(x_201, 3, x_199); -x_202 = lean_array_push(x_171, x_201); -x_203 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_204 = lean_array_push(x_202, x_203); -x_205 = lean_array_push(x_204, x_203); -x_206 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -lean_inc(x_185); -x_207 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_207, 0, x_185); -lean_ctor_set(x_207, 1, x_206); -x_208 = lean_array_push(x_205, x_207); -x_209 = lean_array_push(x_208, x_149); -x_210 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_209); -x_212 = lean_array_push(x_171, x_211); -x_213 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_212); -x_215 = lean_array_push(x_196, x_214); -x_216 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; -x_217 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_217, 0, x_185); -lean_ctor_set(x_217, 1, x_216); -x_218 = lean_array_push(x_171, x_217); -x_219 = l_Lean_nullKind___closed__2; -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_218); -x_221 = lean_array_push(x_215, x_220); -x_222 = lean_array_push(x_221, x_182); -x_223 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_222); -if (lean_is_scalar(x_193)) { - x_225 = lean_alloc_ctor(0, 2, 0); -} else { - x_225 = x_193; + lean_dec_ref(x_204); + x_207 = lean_box(0); } +x_208 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; +lean_inc(x_199); +x_209 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_209, 0, x_199); +lean_ctor_set(x_209, 1, x_208); +x_210 = lean_array_push(x_185, x_209); +x_211 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; +x_212 = l_Lean_addMacroScope(x_205, x_211, x_202); +x_213 = lean_box(0); +x_214 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; +lean_inc(x_199); +x_215 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_215, 0, x_199); +lean_ctor_set(x_215, 1, x_214); +lean_ctor_set(x_215, 2, x_212); +lean_ctor_set(x_215, 3, x_213); +x_216 = lean_array_push(x_185, x_215); +x_217 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_218 = lean_array_push(x_216, x_217); +x_219 = lean_array_push(x_218, x_217); +x_220 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_199); +x_221 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_221, 0, x_199); +lean_ctor_set(x_221, 1, x_220); +x_222 = lean_array_push(x_219, x_221); +x_223 = lean_array_push(x_222, x_163); +x_224 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; +x_225 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_225, 0, x_224); -lean_ctor_set(x_225, 1, x_192); -return x_225; +lean_ctor_set(x_225, 1, x_223); +x_226 = lean_array_push(x_185, x_225); +x_227 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_226); +x_229 = lean_array_push(x_210, x_228); +x_230 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_231 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_231, 0, x_199); +lean_ctor_set(x_231, 1, x_230); +x_232 = lean_array_push(x_185, x_231); +x_233 = l_Lean_nullKind___closed__2; +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_232); +x_235 = lean_array_push(x_229, x_234); +x_236 = lean_array_push(x_235, x_196); +x_237 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_236); +if (lean_is_scalar(x_207)) { + x_239 = lean_alloc_ctor(0, 2, 0); +} else { + x_239 = x_207; +} +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_206); +return x_239; } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -lean_dec(x_166); -lean_dec(x_149); +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_180); +lean_dec(x_163); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_226 = lean_ctor_get(x_175, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_175, 1); -lean_inc(x_227); +x_240 = lean_ctor_get(x_189, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_189, 1); +lean_inc(x_241); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_242 = x_189; +} else { + lean_dec_ref(x_189); + x_242 = lean_box(0); +} +if (lean_is_scalar(x_242)) { + x_243 = lean_alloc_ctor(1, 2, 0); +} else { + x_243 = x_242; +} +lean_ctor_set(x_243, 0, x_240); +lean_ctor_set(x_243, 1, x_241); +return x_243; +} +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_dec(x_168); +lean_free_object(x_1); +lean_dec(x_164); +lean_dec(x_163); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_244 = lean_ctor_get(x_175, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_175, 1); +lean_inc(x_245); if (lean_is_exclusive(x_175)) { lean_ctor_release(x_175, 0); lean_ctor_release(x_175, 1); - x_228 = x_175; + x_246 = x_175; } else { lean_dec_ref(x_175); - x_228 = lean_box(0); + x_246 = lean_box(0); } -if (lean_is_scalar(x_228)) { - x_229 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(1, 2, 0); } else { - x_229 = x_228; + x_247 = x_246; } -lean_ctor_set(x_229, 0, x_226); -lean_ctor_set(x_229, 1, x_227); -return x_229; +lean_ctor_set(x_247, 0, x_244); +lean_ctor_set(x_247, 1, x_245); +return x_247; } } else { -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -lean_dec(x_154); +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +lean_dec(x_168); lean_free_object(x_1); -lean_dec(x_150); -lean_dec(x_149); +lean_dec(x_164); +lean_dec(x_163); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_230 = lean_ctor_get(x_161, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_161, 1); -lean_inc(x_231); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_232 = x_161; +x_248 = lean_ctor_get(x_171, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_171, 1); +lean_inc(x_249); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_250 = x_171; } else { - lean_dec_ref(x_161); - x_232 = lean_box(0); + lean_dec_ref(x_171); + x_250 = lean_box(0); } -if (lean_is_scalar(x_232)) { - x_233 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_250)) { + x_251 = lean_alloc_ctor(1, 2, 0); } else { - x_233 = x_232; + x_251 = x_250; } -lean_ctor_set(x_233, 0, x_230); -lean_ctor_set(x_233, 1, x_231); -return x_233; +lean_ctor_set(x_251, 0, x_248); +lean_ctor_set(x_251, 1, x_249); +return x_251; } } else { -lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -lean_dec(x_154); +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_166); +lean_dec(x_165); lean_free_object(x_1); -lean_dec(x_150); -lean_dec(x_149); +lean_dec(x_164); +lean_dec(x_163); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_234 = lean_ctor_get(x_157, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_157, 1); -lean_inc(x_235); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_236 = x_157; +x_252 = lean_ctor_get(x_167, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_167, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_254 = x_167; } else { - lean_dec_ref(x_157); - x_236 = lean_box(0); + lean_dec_ref(x_167); + x_254 = lean_box(0); } -if (lean_is_scalar(x_236)) { - x_237 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(1, 2, 0); } else { - x_237 = x_236; + x_255 = x_254; } -lean_ctor_set(x_237, 0, x_234); -lean_ctor_set(x_237, 1, x_235); -return x_237; -} -} -else -{ -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -lean_dec(x_152); -lean_dec(x_151); -lean_free_object(x_1); -lean_dec(x_150); -lean_dec(x_149); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_238 = lean_ctor_get(x_153, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_153, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_240 = x_153; -} else { - lean_dec_ref(x_153); - x_240 = lean_box(0); -} -if (lean_is_scalar(x_240)) { - x_241 = lean_alloc_ctor(1, 2, 0); -} else { - x_241 = x_240; -} -lean_ctor_set(x_241, 0, x_238); -lean_ctor_set(x_241, 1, x_239); -return x_241; +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_253); +return x_255; } } } else { -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_242 = lean_ctor_get(x_1, 0); -x_243 = lean_ctor_get(x_1, 1); -lean_inc(x_243); -lean_inc(x_242); +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_256 = lean_ctor_get(x_1, 0); +x_257 = lean_ctor_get(x_1, 1); +lean_inc(x_257); +lean_inc(x_256); lean_dec(x_1); -x_244 = lean_ctor_get(x_2, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_2, 1); -lean_inc(x_245); +x_258 = lean_ctor_get(x_2, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_2, 1); +lean_inc(x_259); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); - x_246 = x_2; + x_260 = x_2; } else { lean_dec_ref(x_2); - x_246 = lean_box(0); + x_260 = lean_box(0); } lean_inc(x_7); lean_inc(x_3); -lean_inc(x_244); -x_247 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_244, x_3, x_4, x_5, x_6, x_7, x_8, x_10); -if (lean_obj_tag(x_247) == 0) -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -lean_dec(x_247); -if (lean_is_scalar(x_246)) { - x_250 = lean_alloc_ctor(1, 2, 0); -} else { - x_250 = x_246; -} -lean_ctor_set(x_250, 0, x_244); -lean_ctor_set(x_250, 1, x_245); -lean_inc(x_7); -lean_inc(x_3); -lean_inc(x_248); -x_251 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_248, x_250, x_3, x_4, x_5, x_6, x_7, x_8, x_249); -if (lean_obj_tag(x_251) == 0) -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_252 = lean_ctor_get(x_251, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_251, 1); -lean_inc(x_253); -lean_dec(x_251); -x_254 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__5; -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_255 = l_List_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(x_252, x_254, x_3, x_4, x_5, x_6, x_7, x_8, x_253); -if (lean_obj_tag(x_255) == 0) -{ -lean_object* x_256; 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; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_256 = lean_ctor_get(x_255, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_256, 1); -lean_inc(x_257); -x_258 = lean_ctor_get(x_257, 1); lean_inc(x_258); -x_259 = lean_ctor_get(x_255, 1); -lean_inc(x_259); -lean_dec(x_255); -x_260 = lean_ctor_get(x_256, 0); -lean_inc(x_260); -lean_dec(x_256); -x_261 = lean_ctor_get(x_257, 0); -lean_inc(x_261); -lean_dec(x_257); -x_262 = lean_ctor_get(x_258, 0); +x_261 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo(x_258, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +if (lean_obj_tag(x_261) == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_262 = lean_ctor_get(x_261, 0); lean_inc(x_262); -x_263 = lean_ctor_get(x_258, 1); +x_263 = lean_ctor_get(x_261, 1); lean_inc(x_263); -lean_dec(x_258); -x_264 = lean_ctor_get(x_248, 2); -lean_inc(x_264); -lean_dec(x_248); -x_265 = l_Array_empty___closed__1; -lean_inc(x_243); -x_266 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__3), 12, 4); -lean_closure_set(x_266, 0, x_243); -lean_closure_set(x_266, 1, x_262); -lean_closure_set(x_266, 2, x_265); -lean_closure_set(x_266, 3, x_263); -lean_inc(x_242); -x_267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_267, 0, x_242); -lean_ctor_set(x_267, 1, x_243); -x_268 = lean_array_to_list(lean_box(0), x_261); -x_269 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__4), 9, 2); -lean_closure_set(x_269, 0, x_267); -lean_closure_set(x_269, 1, x_268); +lean_dec(x_261); +if (lean_is_scalar(x_260)) { + x_264 = lean_alloc_ctor(1, 2, 0); +} else { + x_264 = x_260; +} +lean_ctor_set(x_264, 0, x_258); +lean_ctor_set(x_264, 1, x_259); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_262); +x_265 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__1(x_262, x_264, x_3, x_4, x_5, x_6, x_7, x_8, x_263); +if (lean_obj_tag(x_265) == 0) +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_265, 1); +lean_inc(x_267); +lean_dec(x_265); +x_268 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__6; 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_270 = lean_apply_9(x_264, x_266, x_269, x_3, x_4, x_5, x_6, x_7, x_8, x_259); -if (lean_obj_tag(x_270) == 0) +x_269 = l_List_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__2(x_266, x_268, x_3, x_4, x_5, x_6, x_7, x_8, x_267); +if (lean_obj_tag(x_269) == 0) { -lean_object* x_271; lean_object* x_272; lean_object* x_273; size_t x_274; size_t x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; 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; lean_object* x_289; lean_object* x_290; 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_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_271 = lean_ctor_get(x_270, 0); +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_270, 1); lean_inc(x_271); -x_272 = lean_ctor_get(x_270, 1); +x_272 = lean_ctor_get(x_271, 1); lean_inc(x_272); +x_273 = lean_ctor_get(x_269, 1); +lean_inc(x_273); +lean_dec(x_269); +x_274 = lean_ctor_get(x_270, 0); +lean_inc(x_274); lean_dec(x_270); -x_273 = lean_array_get_size(x_260); -x_274 = lean_usize_of_nat(x_273); -lean_dec(x_273); -x_275 = 0; -x_276 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_265, x_260, x_274, x_275, x_271, x_3, x_4, x_5, x_6, x_7, x_8, x_272); -lean_dec(x_260); -x_277 = lean_ctor_get(x_276, 0); +x_275 = lean_ctor_get(x_271, 0); +lean_inc(x_275); +lean_dec(x_271); +x_276 = lean_ctor_get(x_272, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_272, 1); lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); +lean_dec(x_272); +x_278 = lean_ctor_get(x_262, 2); lean_inc(x_278); -lean_dec(x_276); -x_279 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_7, x_8, x_278); -x_280 = lean_ctor_get(x_279, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_279, 1); -lean_inc(x_281); -lean_dec(x_279); -x_282 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_281); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); -x_285 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_284); -lean_dec(x_8); -x_286 = lean_ctor_get(x_285, 0); +lean_dec(x_262); +x_279 = l_Array_empty___closed__1; +lean_inc(x_257); +x_280 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__3), 12, 4); +lean_closure_set(x_280, 0, x_257); +lean_closure_set(x_280, 1, x_276); +lean_closure_set(x_280, 2, x_279); +lean_closure_set(x_280, 3, x_277); +lean_inc(x_256); +x_281 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_281, 0, x_256); +lean_ctor_set(x_281, 1, x_257); +x_282 = lean_array_to_list(lean_box(0), x_275); +x_283 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__4), 9, 2); +lean_closure_set(x_283, 0, x_281); +lean_closure_set(x_283, 1, x_282); +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_284 = lean_apply_9(x_278, x_280, x_283, x_3, x_4, x_5, x_6, x_7, x_8, x_273); +if (lean_obj_tag(x_284) == 0) +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; size_t x_288; size_t x_289; lean_object* x_290; 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_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_285 = lean_ctor_get(x_284, 0); +lean_inc(x_285); +x_286 = lean_ctor_get(x_284, 1); lean_inc(x_286); -x_287 = lean_ctor_get(x_285, 1); -lean_inc(x_287); -if (lean_is_exclusive(x_285)) { - lean_ctor_release(x_285, 0); - lean_ctor_release(x_285, 1); - x_288 = x_285; +lean_dec(x_284); +x_287 = lean_array_get_size(x_274); +x_288 = lean_usize_of_nat(x_287); +lean_dec(x_287); +x_289 = 0; +x_290 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__6(x_279, x_274, x_288, x_289, x_285, x_3, x_4, x_5, x_6, x_7, x_8, x_286); +lean_dec(x_274); +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_290, 1); +lean_inc(x_292); +lean_dec(x_290); +x_293 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__3___rarg(x_7, x_8, x_292); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); +x_296 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_295); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_297 = lean_ctor_get(x_296, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_296, 1); +lean_inc(x_298); +lean_dec(x_296); +x_299 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_298); +lean_dec(x_8); +x_300 = lean_ctor_get(x_299, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_299, 1); +lean_inc(x_301); +if (lean_is_exclusive(x_299)) { + lean_ctor_release(x_299, 0); + lean_ctor_release(x_299, 1); + x_302 = x_299; } else { - lean_dec_ref(x_285); - x_288 = lean_box(0); -} -x_289 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; -lean_inc(x_280); -x_290 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_290, 0, x_280); -lean_ctor_set(x_290, 1, x_289); -x_291 = lean_array_push(x_265, x_290); -x_292 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; -x_293 = l_Lean_addMacroScope(x_286, x_292, x_283); -x_294 = lean_box(0); -x_295 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; -lean_inc(x_280); -x_296 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_296, 0, x_280); -lean_ctor_set(x_296, 1, x_295); -lean_ctor_set(x_296, 2, x_293); -lean_ctor_set(x_296, 3, x_294); -x_297 = lean_array_push(x_265, x_296); -x_298 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; -x_299 = lean_array_push(x_297, x_298); -x_300 = lean_array_push(x_299, x_298); -x_301 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -lean_inc(x_280); -x_302 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_302, 0, x_280); -lean_ctor_set(x_302, 1, x_301); -x_303 = lean_array_push(x_300, x_302); -x_304 = lean_array_push(x_303, x_242); -x_305 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; -x_306 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_306, 0, x_305); -lean_ctor_set(x_306, 1, x_304); -x_307 = lean_array_push(x_265, x_306); -x_308 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; -x_309 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_309, 0, x_308); -lean_ctor_set(x_309, 1, x_307); -x_310 = lean_array_push(x_291, x_309); -x_311 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; -x_312 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_312, 0, x_280); -lean_ctor_set(x_312, 1, x_311); -x_313 = lean_array_push(x_265, x_312); -x_314 = l_Lean_nullKind___closed__2; -x_315 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_315, 0, x_314); -lean_ctor_set(x_315, 1, x_313); -x_316 = lean_array_push(x_310, x_315); -x_317 = lean_array_push(x_316, x_277); -x_318 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_317); -if (lean_is_scalar(x_288)) { - x_320 = lean_alloc_ctor(0, 2, 0); -} else { - x_320 = x_288; + lean_dec_ref(x_299); + x_302 = lean_box(0); } +x_303 = l_myMacro____x40_Init_Notation___hyg_16821____closed__1; +lean_inc(x_294); +x_304 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_304, 0, x_294); +lean_ctor_set(x_304, 1, x_303); +x_305 = lean_array_push(x_279, x_304); +x_306 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12; +x_307 = l_Lean_addMacroScope(x_300, x_306, x_297); +x_308 = lean_box(0); +x_309 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11; +lean_inc(x_294); +x_310 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_310, 0, x_294); +lean_ctor_set(x_310, 1, x_309); +lean_ctor_set(x_310, 2, x_307); +lean_ctor_set(x_310, 3, x_308); +x_311 = lean_array_push(x_279, x_310); +x_312 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; +x_313 = lean_array_push(x_311, x_312); +x_314 = lean_array_push(x_313, x_312); +x_315 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_294); +x_316 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_316, 0, x_294); +lean_ctor_set(x_316, 1, x_315); +x_317 = lean_array_push(x_314, x_316); +x_318 = lean_array_push(x_317, x_256); +x_319 = l_myMacro____x40_Init_Notation___hyg_16821____closed__6; +x_320 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_287); -return x_320; +lean_ctor_set(x_320, 1, x_318); +x_321 = lean_array_push(x_279, x_320); +x_322 = l_myMacro____x40_Init_Notation___hyg_16821____closed__4; +x_323 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_323, 0, x_322); +lean_ctor_set(x_323, 1, x_321); +x_324 = lean_array_push(x_305, x_323); +x_325 = l_myMacro____x40_Init_Notation___hyg_16821____closed__12; +x_326 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_326, 0, x_294); +lean_ctor_set(x_326, 1, x_325); +x_327 = lean_array_push(x_279, x_326); +x_328 = l_Lean_nullKind___closed__2; +x_329 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_329, 0, x_328); +lean_ctor_set(x_329, 1, x_327); +x_330 = lean_array_push(x_324, x_329); +x_331 = lean_array_push(x_330, x_291); +x_332 = l_myMacro____x40_Init_Notation___hyg_16821____closed__2; +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_331); +if (lean_is_scalar(x_302)) { + x_334 = lean_alloc_ctor(0, 2, 0); +} else { + x_334 = x_302; +} +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_301); +return x_334; } else { -lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; +lean_dec(x_274); +lean_dec(x_256); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_335 = lean_ctor_get(x_284, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_284, 1); +lean_inc(x_336); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_337 = x_284; +} else { + lean_dec_ref(x_284); + x_337 = lean_box(0); +} +if (lean_is_scalar(x_337)) { + x_338 = lean_alloc_ctor(1, 2, 0); +} else { + x_338 = x_337; +} +lean_ctor_set(x_338, 0, x_335); +lean_ctor_set(x_338, 1, x_336); +return x_338; +} +} +else +{ +lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +lean_dec(x_262); +lean_dec(x_257); +lean_dec(x_256); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_339 = lean_ctor_get(x_269, 0); +lean_inc(x_339); +x_340 = lean_ctor_get(x_269, 1); +lean_inc(x_340); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_341 = x_269; +} else { + lean_dec_ref(x_269); + x_341 = lean_box(0); +} +if (lean_is_scalar(x_341)) { + x_342 = lean_alloc_ctor(1, 2, 0); +} else { + x_342 = x_341; +} +lean_ctor_set(x_342, 0, x_339); +lean_ctor_set(x_342, 1, x_340); +return x_342; +} +} +else +{ +lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; +lean_dec(x_262); +lean_dec(x_257); +lean_dec(x_256); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_343 = lean_ctor_get(x_265, 0); +lean_inc(x_343); +x_344 = lean_ctor_get(x_265, 1); +lean_inc(x_344); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_345 = x_265; +} else { + lean_dec_ref(x_265); + x_345 = lean_box(0); +} +if (lean_is_scalar(x_345)) { + x_346 = lean_alloc_ctor(1, 2, 0); +} else { + x_346 = x_345; +} +lean_ctor_set(x_346, 0, x_343); +lean_ctor_set(x_346, 1, x_344); +return x_346; +} +} +else +{ +lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_dec(x_260); -lean_dec(x_242); +lean_dec(x_259); +lean_dec(x_258); +lean_dec(x_257); +lean_dec(x_256); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_321 = lean_ctor_get(x_270, 0); -lean_inc(x_321); -x_322 = lean_ctor_get(x_270, 1); -lean_inc(x_322); -if (lean_is_exclusive(x_270)) { - lean_ctor_release(x_270, 0); - lean_ctor_release(x_270, 1); - x_323 = x_270; +x_347 = lean_ctor_get(x_261, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_261, 1); +lean_inc(x_348); +if (lean_is_exclusive(x_261)) { + lean_ctor_release(x_261, 0); + lean_ctor_release(x_261, 1); + x_349 = x_261; } else { - lean_dec_ref(x_270); - x_323 = lean_box(0); + lean_dec_ref(x_261); + x_349 = lean_box(0); } -if (lean_is_scalar(x_323)) { - x_324 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_349)) { + x_350 = lean_alloc_ctor(1, 2, 0); } else { - x_324 = x_323; + x_350 = x_349; } -lean_ctor_set(x_324, 0, x_321); -lean_ctor_set(x_324, 1, x_322); -return x_324; +lean_ctor_set(x_350, 0, x_347); +lean_ctor_set(x_350, 1, x_348); +return x_350; } } -else +} +} +} +block_368: { -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; -lean_dec(x_248); -lean_dec(x_243); -lean_dec(x_242); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_325 = lean_ctor_get(x_255, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_255, 1); -lean_inc(x_326); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - x_327 = x_255; -} else { - lean_dec_ref(x_255); - x_327 = lean_box(0); -} -if (lean_is_scalar(x_327)) { - x_328 = lean_alloc_ctor(1, 2, 0); -} else { - x_328 = x_327; -} -lean_ctor_set(x_328, 0, x_325); -lean_ctor_set(x_328, 1, x_326); -return x_328; -} -} -else +if (x_352 == 0) { -lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; -lean_dec(x_248); -lean_dec(x_243); -lean_dec(x_242); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_329 = lean_ctor_get(x_251, 0); -lean_inc(x_329); -x_330 = lean_ctor_get(x_251, 1); -lean_inc(x_330); -if (lean_is_exclusive(x_251)) { - lean_ctor_release(x_251, 0); - lean_ctor_release(x_251, 1); - x_331 = x_251; -} else { - lean_dec_ref(x_251); - x_331 = lean_box(0); -} -if (lean_is_scalar(x_331)) { - x_332 = lean_alloc_ctor(1, 2, 0); -} else { - x_332 = x_331; -} -lean_ctor_set(x_332, 0, x_329); -lean_ctor_set(x_332, 1, x_330); -return x_332; -} -} -else -{ -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; -lean_dec(x_246); -lean_dec(x_245); -lean_dec(x_244); -lean_dec(x_243); -lean_dec(x_242); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_333 = lean_ctor_get(x_247, 0); -lean_inc(x_333); -x_334 = lean_ctor_get(x_247, 1); -lean_inc(x_334); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_335 = x_247; -} else { - lean_dec_ref(x_247); - x_335 = lean_box(0); -} -if (lean_is_scalar(x_335)) { - x_336 = lean_alloc_ctor(1, 2, 0); -} else { - x_336 = x_335; -} -lean_ctor_set(x_336, 0, x_333); -lean_ctor_set(x_336, 1, x_334); -return x_336; -} -} -} -} -} -block_354: -{ -if (x_338 == 0) -{ -x_10 = x_339; -goto block_337; -} -else -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; 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; -lean_inc(x_1); -x_340 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_1); -x_341 = l_Lean_MessageData_ofList(x_340); -lean_dec(x_340); -x_342 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8; -x_343 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_343, 0, x_342); -lean_ctor_set(x_343, 1, x_341); -x_344 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9; -x_345 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_345, 0, x_343); -lean_ctor_set(x_345, 1, x_344); -lean_inc(x_2); -x_346 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__11(x_2); -x_347 = l_Lean_MessageData_ofList(x_346); -lean_dec(x_346); -x_348 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_348, 0, x_345); -lean_ctor_set(x_348, 1, x_347); -x_349 = l_Lean_KernelException_toMessageData___closed__15; -x_350 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_350, 0, x_348); -lean_ctor_set(x_350, 1, x_349); -x_351 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7; -x_352 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_351, x_350, x_3, x_4, x_5, x_6, x_7, x_8, x_339); -x_353 = lean_ctor_get(x_352, 1); -lean_inc(x_353); -lean_dec(x_352); x_10 = x_353; -goto block_337; +goto block_351; +} +else +{ +lean_object* 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_inc(x_1); +x_354 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__7(x_1); +x_355 = l_Lean_MessageData_ofList(x_354); +lean_dec(x_354); +x_356 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9; +x_357 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_357, 0, x_356); +lean_ctor_set(x_357, 1, x_355); +x_358 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__10; +x_359 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_359, 0, x_357); +lean_ctor_set(x_359, 1, x_358); +lean_inc(x_2); +x_360 = l_List_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__11(x_2); +x_361 = l_Lean_MessageData_ofList(x_360); +lean_dec(x_360); +x_362 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_362, 0, x_359); +lean_ctor_set(x_362, 1, x_361); +x_363 = l_Lean_KernelException_toMessageData___closed__15; +x_364 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_364, 0, x_362); +lean_ctor_set(x_364, 1, x_363); +x_365 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8; +x_366 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_365, x_364, x_3, x_4, x_5, x_6, x_7, x_8, x_353); +x_367 = lean_ctor_get(x_366, 1); +lean_inc(x_367); +lean_dec(x_366); +x_10 = x_367; +goto block_351; } } } @@ -33473,7 +33532,7 @@ static lean_object* _init_l_Lean_Elab_Term_Quotation_match__syntax_expand___lamb _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7; +x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8; x_2 = l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -34141,11 +34200,11 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11885_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11891_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__7; +x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -35017,6 +35076,8 @@ l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___cl lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__8); l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9(); lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__9); +l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__10 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__10); l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__1 = _init_l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__1); l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__2 = _init_l_Lean_Elab_Term_Quotation_match__syntax_expand___lambda__3___closed__2(); @@ -35032,7 +35093,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___c res = l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11885_(lean_io_mk_world()); +res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11891_(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/Quotation/Precheck.c b/stage0/stdlib/Lean/Elab/Quotation/Precheck.c index 9eef8bc8a6..da220390ea 100644 --- a/stage0/stdlib/Lean/Elab/Quotation/Precheck.c +++ b/stage0/stdlib/Lean/Elab/Quotation/Precheck.c @@ -36,6 +36,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_68_(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90_(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Term_Quotation_precheck___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_2278____closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Quotation_precheckParen___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*); @@ -57,6 +58,7 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_68____closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +lean_object* l_Lean_Elab_Term_Quotation_precheckIdent___lambda__4(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_Term_namedArgument___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_Quotation_precheck___lambda__3(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_Quotation_precheck___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -67,6 +69,7 @@ extern lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_mkPrecheckAttribute(lean_object*); uint8_t l_USize_decLt(size_t, size_t); +uint8_t l_Lean_NameMap_contains___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_precheck___spec__6___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_fold___at_Lean_Elab_Term_Quotation_precheckParen___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_throwErrorAt___at_Lean_Elab_Term_Quotation_precheck___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,6 +90,7 @@ lean_object* l_Lean_Elab_Term_Quotation_quotPrecheck; lean_object* l_Lean_Elab_Term_Quotation_precheck_hasQuotedIdent_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_precheck___lambda__1___closed__5; +lean_object* l_Lean_Elab_Term_Quotation_quotPrecheck_allowSectionVars; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_precheckParen___closed__1; lean_object* l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___closed__5; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); @@ -103,6 +107,7 @@ uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*) lean_object* l_Lean_Elab_Term_Quotation_precheck_hasQuotedIdent_match__1(lean_object*); extern lean_object* l_Lean_Elab_autoBoundImplicitLocal___closed__1; uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Quotation_precheck_hasQuotedIdent___spec__1(lean_object*, size_t, size_t); +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__3; lean_object* l_Lean_Elab_Term_Quotation_precheckIdent___lambda__3(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_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_getValues___rarg(lean_object*, lean_object*, lean_object*); @@ -111,8 +116,10 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_Quotation_precheck___spec__7( extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___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_Quotation_withNewLocals(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_precheckIdent___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__4; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_Quotation_precheck___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; @@ -167,10 +174,12 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Quotation_precheck_hasQu uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_resolveName_process___closed__2; +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__1; lean_object* l_Lean_Elab_Term_Quotation_withNewLocals___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_precheckIdent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_precheckIdent_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Quotation_hygiene; @@ -346,6 +355,57 @@ x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___ return x_4; } } +static lean_object* _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("allowSectionVars"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_68____closed__2; +x_2 = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Allow occurrences of section variables in checked quotations, it is useful when declaring local notation."); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__4() { +_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_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__3; +x_4 = lean_box(x_1); +x_5 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2; +x_3 = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__4; +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; +} +} lean_object* l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -2230,13 +2290,52 @@ return x_16; lean_object* l_Lean_Elab_Term_Quotation_precheckIdent___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; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 0); +x_12 = l_Lean_Elab_Term_Quotation_quotPrecheck_allowSectionVars; +x_13 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_11, x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__1(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_4, 6); +x_17 = l_Lean_NameMap_contains___rarg(x_16, x_1); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__1(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_1); +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_10); +return x_21; +} +} +} +} +lean_object* l_Lean_Elab_Term_Quotation_precheckIdent___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) { +_start: +{ uint8_t x_11; x_11 = l_Lean_NameSet_contains(x_3, x_1); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; x_12 = lean_box(0); -x_13 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__1(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__2(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_13; } else @@ -2251,7 +2350,7 @@ return x_15; } } } -lean_object* l_Lean_Elab_Term_Quotation_precheckIdent___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* l_Lean_Elab_Term_Quotation_precheckIdent___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; @@ -2267,7 +2366,7 @@ x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); x_14 = lean_box(0); -x_15 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__2(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_15 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__3(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_8); return x_15; } @@ -2330,7 +2429,7 @@ else { lean_object* x_15; lean_object* x_16; x_15 = lean_box(0); -x_16 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__3(x_10, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_16 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__4(x_10, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_16; } } @@ -2411,6 +2510,22 @@ _start: lean_object* x_11; x_11 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__3(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); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_Elab_Term_Quotation_precheckIdent___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Term_Quotation_precheckIdent___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3360,6 +3475,19 @@ if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_Quotation_quotPrecheck = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_Quotation_quotPrecheck); lean_dec_ref(res); +l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__1 = _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__1); +l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2 = _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2); +l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__3 = _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__3); +l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__4 = _init_l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__4); +res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_Term_Quotation_quotPrecheck_allowSectionVars = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_Term_Quotation_quotPrecheck_allowSectionVars); +lean_dec_ref(res); l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___closed__1 = _init_l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___closed__1); l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___closed__2 = _init_l_Lean_Elab_Term_Quotation_mkPrecheckAttribute___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 8cb9e782d9..5884240483 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -176,13 +176,13 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_1481____closed__8; uint8_t l_USize_decLt(size_t, size_t); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__14; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields_match__2___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___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_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__5; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax___closed__1; lean_object* l_Lean_Elab_Term_StructInst_instInhabitedStruct___closed__1; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getStructSource___closed__4; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkCtorHeaderAux_match__3(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_List_foldl___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___spec__1___boxed(lean_object*, lean_object*); @@ -5688,7 +5688,7 @@ x_3 = lean_ctor_get(x_2, 1); lean_inc(x_3); x_4 = l_Lean_Elab_Term_StructInst_formatField___closed__2; x_5 = l_Std_Format_joinSep___at_Lean_Elab_Term_StructInst_formatField___spec__1(x_3, x_4); -x_6 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_6 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_7 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_7, 0, x_5); lean_ctor_set(x_7, 1, x_6); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 754c02dc5f..324d325216 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -17,6 +17,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instInhabitedStructFieldInfo; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__4___rarg(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_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__3___lambda__3___closed__2; @@ -237,7 +238,6 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_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*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; extern lean_object* l_Lean_Elab_mkDeclName___rarg___closed__2; uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType(lean_object*); lean_object* l_Lean_throwErrorAt___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*); @@ -289,13 +289,13 @@ lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabStructure___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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_Structure_0__Lean_Elab_Command_elabStructureView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___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___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___boxed__const__1; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_elabStructure___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*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -398,6 +398,7 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(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_expandFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabDoubleQuotedName___spec__5(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_collectLevelParamsInStructure___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_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -587,7 +588,7 @@ extern lean_object* l_Lean_Parser_Command_private___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); +lean_object* lean_name_append_before(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__3___lambda__4(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_Structure_0__Lean_Elab_Command_updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -629,7 +630,6 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean lean_object* l_Lean_Elab_Command_checkValidFieldModifier(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDocString___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___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_Term_withAutoBoundImplicit___rarg(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_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(lean_object*, size_t, size_t, lean_object*); @@ -874,7 +874,7 @@ static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_d _start: { lean_object* x_1; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__3; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; return x_1; } } @@ -13522,7 +13522,7 @@ default: lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; x_36 = l_Lean_LocalDecl_userName(x_19); x_37 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; -x_38 = l_Lean_Name_appendBefore(x_36, x_37); +x_38 = lean_name_append_before(x_36, x_37); x_39 = l_Lean_LocalDecl_binderInfo(x_19); x_40 = l_Lean_LocalDecl_type(x_19); lean_dec(x_19); @@ -15571,7 +15571,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1247____closed__1; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -19401,7 +19401,7 @@ lean_dec(x_6); x_8 = lean_unsigned_to_nat(0u); x_9 = l_Lean_Syntax_getArg(x_2, x_8); x_10 = l_Lean_Syntax_getKind(x_9); -x_11 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_11 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_12 = lean_name_eq(x_10, x_11); lean_dec(x_10); x_13 = lean_unsigned_to_nat(1u); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index 090b1fc30a..3fce3dffb1 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -14,7 +14,6 @@ extern "C" { #endif lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__7___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_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2; lean_object* l_List_reverse___rarg(lean_object*); uint8_t l_Lean_Syntax_isQuot(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -22,7 +21,6 @@ lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__17; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_checkRuleKind___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Attribute_Builtin_getId___closed__2; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; lean_object* l_Lean_Elab_Term_toParserDescr_processUnary(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_Name_toString___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__13; @@ -34,6 +32,7 @@ lean_object* l_Lean_Elab_Command_expandNotation___lambda__1(lean_object*, lean_o lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__6; lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__9; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__4; lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__2; lean_object* l_Lean_Elab_expandOptNamedName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -52,7 +51,6 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_toParserDescr_ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_expandElab___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_checkLeftRec___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_Lean_Elab_Term_toParserDescr_resolveParserName___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_Syntax_0__Lean_Elab_Command_expandNotationAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,12 +67,11 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__22; lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__7; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__18; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___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___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___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_checkLeftRec___lambda__2___closed__3; lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__15; lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__2; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__1___closed__6; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___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_Command_expandMixfix___lambda__7___closed__6; @@ -169,6 +166,7 @@ extern lean_object* l_Lean_Parser_precedence___elambda__1___closed__2; uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMacro___boxed__const__1; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__11; +extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabSyntax___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_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__6; @@ -242,7 +240,6 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____close lean_object* l_Lean_Elab_Command_expandMacro___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__50; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst(lean_object*); -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824____closed__1; lean_object* l_Lean_Elab_Command_expandMixfix___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_resolveGlobalName___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5; @@ -256,7 +253,9 @@ lean_object* l_Lean_Elab_Command_elabElab___closed__1; lean_object* l_Lean_Elab_Command_strLitToPattern(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__1; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; +extern lean_object* l_instReprBool___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___lambda__13(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_Command_mixfix___elambda__1___closed__2; @@ -422,7 +421,7 @@ lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQ lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__23; lean_object* l_String_capitalize(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_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073_(lean_object*); lean_object* l_List_map___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__3(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_expandElab___spec__8(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax_match__2___rarg(lean_object*, lean_object*); @@ -448,6 +447,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab extern lean_object* l_Lean_PrettyPrinter_runForNodeKind___rarg___closed__3; lean_object* l_Lean_Elab_Command_strLitToPattern___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandElab___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_23565____closed__1; lean_object* l_Lean_Elab_Command_mkSimpleDelab___closed__15; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; extern lean_object* l_Lean_Parser_sepByElemParser___closed__1; @@ -570,6 +570,7 @@ lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__12; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__33; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; lean_object* l_Lean_Elab_Term_toParserDescr_processAtom_match__1(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__6; @@ -600,10 +601,12 @@ lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__6; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___closed__2; lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy___lambda__1___closed__4; +uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isLocalAttrKind(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___lambda__7(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_Syntax_0__Lean_Elab_Command_antiquote___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__1; lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__3; extern lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__22; @@ -643,6 +646,7 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_toParserDescr_ lean_object* l_Lean_Parser_registerParserCategory(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_toParserDescr_resolveParserName___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* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__5; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; lean_object* l_Lean_Syntax_getQuotContent(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); @@ -665,11 +669,13 @@ uint8_t l_Lean_Name_isStr(lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_toParserDescr_process___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_forInUnsafe_loop___at_Lean_Elab_Command_elabMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabDeclareSyntaxCat___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); +lean_object* lean_name_append_after(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_end___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__6___closed__2; extern lean_object* l_Lean_Parser_Command_namedName___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___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_Command_expandNotation___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_toParserDescr_processUnary___closed__3; lean_object* l_Lean_Elab_Command_expandElab___lambda__2___closed__3; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -691,8 +697,11 @@ extern lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__5; extern lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___rarg___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isLocalAttrKind___boxed(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(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_Command_elabNoKindMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_end___elambda__1___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__3; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___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_Lean_Elab_Term_checkLeftRec___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* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax___boxed(lean_object*); @@ -744,7 +753,10 @@ lean_object* l_Lean_Elab_Term_checkLeftRec(lean_object*, lean_object*, lean_obje lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___lambda__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_toParserDescr_processUnary___closed__7; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2(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*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_36____closed__5; lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__9; lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -774,6 +786,7 @@ lean_object* l_Lean_Elab_Command_expandMixfix___lambda__16(lean_object*, lean_ob lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___rarg(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy___lambda__1___closed__6; lean_object* l_Lean_Elab_Term_toParserDescr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073____closed__1; lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_appendCatName___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__17; lean_object* l_Lean_Elab_Command_expandMixfix___lambda__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -790,7 +803,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_checkLeftRec lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___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_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_process_match__1(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__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*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___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_Command_expandElab___lambda__2___closed__43; lean_object* l_Lean_Elab_Command_elabSyntax(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_resolveParserName_match__3___rarg(lean_object*, lean_object*, lean_object*); @@ -812,6 +825,7 @@ lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_1640____closed__1; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__21; lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__8(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_Term_local___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_trim(lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__4; @@ -919,6 +933,7 @@ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__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*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__8; +extern lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__1; lean_object* l_Lean_Elab_Command_mkSimpleDelab___closed__11; extern lean_object* l_stx___x2a___closed__3; @@ -998,6 +1013,7 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____close lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_4146____closed__4; lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat(lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__17; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__4; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; @@ -12485,7 +12501,7 @@ x_33 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); -x_35 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_35 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_36 = lean_array_push(x_35, x_34); x_37 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_38 = lean_alloc_ctor(1, 2, 0); @@ -12964,7 +12980,7 @@ x_7 = l_Lean_Syntax_getId(x_6); lean_dec(x_6); x_8 = l_Lean_Parser_Syntax_addPrec___closed__3; lean_inc(x_7); -x_9 = l_Lean_Name_appendAfter(x_7, x_8); +x_9 = lean_name_append_after(x_7, x_8); x_10 = lean_st_ref_get(x_3, x_4); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); @@ -14501,7 +14517,7 @@ x_21 = l_Lean_Name_append(x_20, x_11); lean_dec(x_20); x_22 = l_Lean_Parser_Syntax_addPrec___closed__3; lean_inc(x_1); -x_23 = l_Lean_Name_appendAfter(x_1, x_22); +x_23 = lean_name_append_after(x_1, x_22); x_24 = l_Lean_mkIdentFrom(x_2, x_23); x_25 = lean_box(0); x_26 = l_Lean_Elab_Command_getScope___rarg(x_13, x_19); @@ -17028,7 +17044,7 @@ x_85 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__20; x_86 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_86, 0, x_85); lean_ctor_set(x_86, 1, x_84); -x_87 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; +x_87 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__9; x_88 = lean_array_push(x_87, x_86); x_89 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__5; x_90 = lean_alloc_ctor(1, 2, 0); @@ -29827,6 +29843,58 @@ lean_dec(x_2); return x_7; } } +uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isLocalAttrKind(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__1; +lean_inc(x_1); +x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); +if (x_3 == 0) +{ +uint8_t x_4; +lean_dec(x_1); +x_4 = 0; +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +lean_dec(x_1); +x_7 = l_Lean_nullKind; +x_8 = lean_unsigned_to_nat(1u); +lean_inc(x_6); +x_9 = l_Lean_Syntax_isNodeOf(x_6, x_7, x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_6); +x_10 = 0; +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = l_Lean_Syntax_getArg(x_6, x_5); +lean_dec(x_6); +x_12 = l_Lean_Parser_Term_local___elambda__1___closed__1; +x_13 = l_Lean_Syntax_isOfKind(x_11, x_12); +return x_13; +} +} +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isLocalAttrKind___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isLocalAttrKind(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -30024,7 +30092,128 @@ return x_4; } } } -static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__1() { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___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 = l_Lean_Elab_Command_mkSimpleDelab(x_1, x_2, x_3, x_4, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_13 = lean_ctor_get(x_10, 0); +lean_dec(x_13); +x_14 = l_Lean_Syntax_mkApp___closed__1; +x_15 = lean_array_push(x_14, x_5); +x_16 = lean_array_push(x_15, x_6); +x_17 = l_Lean_nullKind; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +lean_ctor_set(x_10, 0, x_18); +return x_10; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_dec(x_10); +x_20 = l_Lean_Syntax_mkApp___closed__1; +x_21 = lean_array_push(x_20, x_5); +x_22 = lean_array_push(x_21, x_6); +x_23 = l_Lean_nullKind; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_19); +return x_25; +} +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_10); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_27 = lean_ctor_get(x_10, 0); +lean_dec(x_27); +x_28 = lean_ctor_get(x_11, 0); +lean_inc(x_28); +lean_dec(x_11); +x_29 = l_Lean_Syntax_mkAntiquotNode___closed__9; +x_30 = lean_array_push(x_29, x_5); +x_31 = lean_array_push(x_30, x_6); +x_32 = lean_array_push(x_31, x_28); +x_33 = l_Lean_nullKind; +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +lean_ctor_set(x_10, 0, x_34); +return x_10; +} +else +{ +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; +x_35 = lean_ctor_get(x_10, 1); +lean_inc(x_35); +lean_dec(x_10); +x_36 = lean_ctor_get(x_11, 0); +lean_inc(x_36); +lean_dec(x_11); +x_37 = l_Lean_Syntax_mkAntiquotNode___closed__9; +x_38 = lean_array_push(x_37, x_5); +x_39 = lean_array_push(x_38, x_6); +x_40 = lean_array_push(x_39, x_36); +x_41 = l_Lean_nullKind; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_35); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_6); +lean_dec(x_5); +x_44 = !lean_is_exclusive(x_10); +if (x_44 == 0) +{ +return x_10; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_10, 0); +x_46 = lean_ctor_get(x_10, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_10); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -30036,17 +30225,48 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__1; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("quotPrecheck.allowSectionVars"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__3; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__3; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__4; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; uint8_t 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; @@ -30063,36 +30283,36 @@ lean_inc(x_14); x_22 = lean_apply_2(x_21, x_14, x_15); if (x_17 == 0) { -lean_object* x_205; -x_205 = l_Array_empty___closed__1; -x_23 = x_205; -goto block_204; -} -else -{ -uint8_t x_206; -x_206 = lean_nat_dec_le(x_1, x_1); -if (x_206 == 0) -{ -lean_object* x_207; -x_207 = l_Array_empty___closed__1; -x_23 = x_207; -goto block_204; -} -else -{ -lean_object* x_208; lean_object* x_209; +lean_object* x_208; x_208 = l_Array_empty___closed__1; -x_209 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4(x_12, x_3, x_2, x_208); -x_23 = x_209; -goto block_204; +x_23 = x_208; +goto block_207; +} +else +{ +uint8_t x_209; +x_209 = lean_nat_dec_le(x_1, x_1); +if (x_209 == 0) +{ +lean_object* x_210; +x_210 = l_Array_empty___closed__1; +x_23 = x_210; +goto block_207; +} +else +{ +lean_object* x_211; lean_object* x_212; +x_211 = l_Array_empty___closed__1; +x_212 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4(x_12, x_3, x_2, x_211); +x_23 = x_212; +goto block_207; } } -block_204: +block_207: { if (lean_obj_tag(x_22) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t 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_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; 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; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; size_t 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_24; lean_object* x_25; lean_object* x_26; size_t 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_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_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; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; size_t 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; x_24 = lean_ctor_get(x_22, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_22, 1); @@ -30110,150 +30330,150 @@ x_32 = l_Lean_Name_append(x_6, x_13); x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_24); -x_124 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_myMacro____x40_Init_Notation___hyg_17039__expandListLit___spec__1(x_14, x_25); -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec(x_124); -x_127 = l_Array_empty___closed__1; +x_127 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_myMacro____x40_Init_Notation___hyg_17039__expandListLit___spec__1(x_14, x_25); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_130 = l_Array_empty___closed__1; lean_inc(x_7); -x_128 = lean_array_push(x_127, x_7); -x_129 = l_Lean_Parser_categoryParserFnImpl___closed__1; -lean_inc(x_125); -x_130 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_130, 0, x_125); -lean_ctor_set(x_130, 1, x_129); -x_131 = lean_array_push(x_128, x_130); -x_132 = l_prec_x28___x29___closed__3; -lean_inc(x_125); +x_131 = lean_array_push(x_130, x_7); +x_132 = l_Lean_Parser_categoryParserFnImpl___closed__1; +lean_inc(x_128); x_133 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_133, 0, x_125); +lean_ctor_set(x_133, 0, x_128); lean_ctor_set(x_133, 1, x_132); -x_134 = lean_array_push(x_127, x_133); -x_135 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_938____closed__15; -lean_inc(x_125); +x_134 = lean_array_push(x_131, x_133); +x_135 = l_prec_x28___x29___closed__3; +lean_inc(x_128); x_136 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_136, 0, x_125); +lean_ctor_set(x_136, 0, x_128); lean_ctor_set(x_136, 1, x_135); -lean_inc(x_134); -x_137 = lean_array_push(x_134, x_136); -x_138 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; -lean_inc(x_125); +x_137 = lean_array_push(x_130, x_136); +x_138 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_938____closed__15; +lean_inc(x_128); x_139 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_139, 0, x_125); +lean_ctor_set(x_139, 0, x_128); lean_ctor_set(x_139, 1, x_138); -lean_inc(x_139); +lean_inc(x_137); x_140 = lean_array_push(x_137, x_139); -x_141 = lean_mk_syntax_ident(x_13); -x_142 = lean_array_push(x_140, x_141); -x_143 = l_prec_x28___x29___closed__7; -lean_inc(x_125); -x_144 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_144, 0, x_125); -lean_ctor_set(x_144, 1, x_143); -lean_inc(x_144); -x_145 = lean_array_push(x_142, x_144); -x_146 = l_Lean_Parser_Command_namedName___elambda__1___closed__2; -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_145); -x_148 = lean_array_push(x_127, x_147); -x_149 = l_Lean_nullKind___closed__2; +x_141 = l_myMacro____x40_Init_Notation___hyg_16821____closed__11; +lean_inc(x_128); +x_142 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_142, 0, x_128); +lean_ctor_set(x_142, 1, x_141); +lean_inc(x_142); +x_143 = lean_array_push(x_140, x_142); +x_144 = lean_mk_syntax_ident(x_13); +x_145 = lean_array_push(x_143, x_144); +x_146 = l_prec_x28___x29___closed__7; +lean_inc(x_128); +x_147 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_147, 0, x_128); +lean_ctor_set(x_147, 1, x_146); +lean_inc(x_147); +x_148 = lean_array_push(x_145, x_147); +x_149 = l_Lean_Parser_Command_namedName___elambda__1___closed__2; x_150 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_150, 0, x_149); lean_ctor_set(x_150, 1, x_148); -x_151 = l_Lean_Parser_Command_namedPrio___elambda__1___closed__5; -lean_inc(x_125); -x_152 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_152, 0, x_125); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_array_push(x_134, x_152); -x_154 = lean_array_push(x_153, x_139); -x_155 = l_Nat_repr(x_8); -x_156 = l_Lean_numLitKind; -x_157 = lean_box(2); -x_158 = l_Lean_Syntax_mkLit(x_156, x_155, x_157); -x_159 = lean_array_push(x_154, x_158); -x_160 = lean_array_push(x_159, x_144); -x_161 = l_Lean_Parser_Command_namedPrio___elambda__1___closed__2; -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_160); -x_163 = lean_array_push(x_127, x_162); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_149); -lean_ctor_set(x_164, 1, x_163); -x_165 = lean_array_get_size(x_9); -x_166 = lean_usize_of_nat(x_165); -lean_dec(x_165); -x_167 = x_9; -x_168 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_166, x_3, x_167); -x_169 = x_168; -x_170 = l_Array_appendCore___rarg(x_127, x_169); -lean_dec(x_169); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_149); -lean_ctor_set(x_171, 1, x_170); -x_172 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; -x_173 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_173, 0, x_125); -lean_ctor_set(x_173, 1, x_172); +x_151 = lean_array_push(x_130, x_150); +x_152 = l_Lean_nullKind___closed__2; +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_151); +x_154 = l_Lean_Parser_Command_namedPrio___elambda__1___closed__5; +lean_inc(x_128); +x_155 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_155, 0, x_128); +lean_ctor_set(x_155, 1, x_154); +x_156 = lean_array_push(x_137, x_155); +x_157 = lean_array_push(x_156, x_142); +x_158 = l_Nat_repr(x_8); +x_159 = l_Lean_numLitKind; +x_160 = lean_box(2); +x_161 = l_Lean_Syntax_mkLit(x_159, x_158, x_160); +x_162 = lean_array_push(x_157, x_161); +x_163 = lean_array_push(x_162, x_147); +x_164 = l_Lean_Parser_Command_namedPrio___elambda__1___closed__2; +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_163); +x_166 = lean_array_push(x_130, x_165); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_152); +lean_ctor_set(x_167, 1, x_166); +x_168 = lean_array_get_size(x_9); +x_169 = lean_usize_of_nat(x_168); +lean_dec(x_168); +x_170 = x_9; +x_171 = l_Array_mapMUnsafe_map___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__3(x_169, x_3, x_170); +x_172 = x_171; +x_173 = l_Array_appendCore___rarg(x_130, x_172); +lean_dec(x_172); +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_152); +lean_ctor_set(x_174, 1, x_173); +x_175 = l_myMacro____x40_Init_Notation___hyg_16268____closed__9; +x_176 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_176, 0, x_128); +lean_ctor_set(x_176, 1, x_175); if (lean_obj_tag(x_10) == 0) { -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_174 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__1___closed__3; -x_175 = lean_array_push(x_131, x_174); -x_176 = lean_array_push(x_175, x_150); -x_177 = lean_array_push(x_176, x_164); -x_178 = lean_array_push(x_177, x_171); -x_179 = lean_array_push(x_178, x_173); -x_180 = lean_array_push(x_179, x_11); -x_181 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_180); -x_34 = x_182; -x_35 = x_126; -goto block_123; +lean_object* 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_177 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__1___closed__3; +x_178 = lean_array_push(x_134, x_177); +x_179 = lean_array_push(x_178, x_153); +x_180 = lean_array_push(x_179, x_167); +x_181 = lean_array_push(x_180, x_174); +x_182 = lean_array_push(x_181, x_176); +x_183 = lean_array_push(x_182, x_11); +x_184 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; +x_185 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_183); +x_34 = x_185; +x_35 = x_129; +goto block_126; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_183 = lean_ctor_get(x_10, 0); -lean_inc(x_183); +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_186 = lean_ctor_get(x_10, 0); +lean_inc(x_186); lean_dec(x_10); -lean_inc(x_173); -x_184 = lean_array_push(x_127, x_173); -x_185 = lean_array_push(x_184, x_183); -x_186 = l_Lean_Parser_precedence___elambda__1___closed__2; -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_185); -x_188 = l_Lean_mkOptionalNode___closed__2; -x_189 = lean_array_push(x_188, x_187); -x_190 = l_Array_appendCore___rarg(x_127, x_189); -lean_dec(x_189); -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_149); -lean_ctor_set(x_191, 1, x_190); -x_192 = lean_array_push(x_131, x_191); -x_193 = lean_array_push(x_192, x_150); -x_194 = lean_array_push(x_193, x_164); -x_195 = lean_array_push(x_194, x_171); -x_196 = lean_array_push(x_195, x_173); -x_197 = lean_array_push(x_196, x_11); -x_198 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_197); -x_34 = x_199; -x_35 = x_126; -goto block_123; +lean_inc(x_176); +x_187 = lean_array_push(x_130, x_176); +x_188 = lean_array_push(x_187, x_186); +x_189 = l_Lean_Parser_precedence___elambda__1___closed__2; +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_188); +x_191 = l_Lean_mkOptionalNode___closed__2; +x_192 = lean_array_push(x_191, x_190); +x_193 = l_Array_appendCore___rarg(x_130, x_192); +lean_dec(x_192); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_152); +lean_ctor_set(x_194, 1, x_193); +x_195 = lean_array_push(x_134, x_194); +x_196 = lean_array_push(x_195, x_153); +x_197 = lean_array_push(x_196, x_167); +x_198 = lean_array_push(x_197, x_174); +x_199 = lean_array_push(x_198, x_176); +x_200 = lean_array_push(x_199, x_11); +x_201 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_200); +x_34 = x_202; +x_35 = x_129; +goto block_126; } -block_123: +block_126: { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_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; 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; 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; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_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; 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; 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; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; x_36 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_myMacro____x40_Init_Notation___hyg_17039__expandListLit___spec__1(x_14, x_35); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); @@ -30265,7 +30485,7 @@ lean_inc(x_37); x_40 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_40, 0, x_37); lean_ctor_set(x_40, 1, x_39); -x_41 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2; +x_41 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2; x_42 = lean_array_push(x_41, x_40); x_43 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_44 = lean_array_push(x_42, x_43); @@ -30343,127 +30563,94 @@ x_83 = l_Lean_Parser_Command_macro__rules___elambda__1___closed__2; x_84 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_84, 0, x_83); lean_ctor_set(x_84, 1, x_82); -x_85 = l_Lean_Elab_Command_mkSimpleDelab(x_7, x_30, x_33, x_31, x_14, x_38); +lean_inc(x_7); +x_85 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isLocalAttrKind(x_7); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_box(0); +x_87 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1(x_7, x_30, x_33, x_31, x_34, x_84, x_86, x_14, x_38); lean_dec(x_30); -if (lean_obj_tag(x_85) == 0) +return x_87; +} +else { -lean_object* x_86; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -if (lean_obj_tag(x_86) == 0) -{ -uint8_t x_87; -x_87 = !lean_is_exclusive(x_85); -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; -x_88 = lean_ctor_get(x_85, 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; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_88 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_myMacro____x40_Init_Notation___hyg_17039__expandListLit___spec__1(x_14, x_38); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); lean_dec(x_88); -x_89 = l_Lean_Syntax_mkApp___closed__1; -x_90 = lean_array_push(x_89, x_34); -x_91 = lean_array_push(x_90, x_84); -x_92 = l_Lean_nullKind; -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_91); -lean_ctor_set(x_85, 0, x_93); -return x_85; -} -else -{ -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_94 = lean_ctor_get(x_85, 1); -lean_inc(x_94); -lean_dec(x_85); -x_95 = l_Lean_Syntax_mkApp___closed__1; -x_96 = lean_array_push(x_95, x_34); -x_97 = lean_array_push(x_96, x_84); -x_98 = l_Lean_nullKind; -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_94); -return x_100; -} -} -else -{ -uint8_t x_101; -x_101 = !lean_is_exclusive(x_85); -if (x_101 == 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; -x_102 = lean_ctor_get(x_85, 0); -lean_dec(x_102); -x_103 = lean_ctor_get(x_86, 0); -lean_inc(x_103); -lean_dec(x_86); -x_104 = l_Lean_Syntax_mkAntiquotNode___closed__9; -x_105 = lean_array_push(x_104, x_34); -x_106 = lean_array_push(x_105, x_84); -x_107 = lean_array_push(x_106, x_103); -x_108 = l_Lean_nullKind; -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -lean_ctor_set(x_85, 0, x_109); -return x_85; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_110 = lean_ctor_get(x_85, 1); -lean_inc(x_110); -lean_dec(x_85); -x_111 = lean_ctor_get(x_86, 0); -lean_inc(x_111); -lean_dec(x_86); -x_112 = l_Lean_Syntax_mkAntiquotNode___closed__9; -x_113 = lean_array_push(x_112, x_34); -x_114 = lean_array_push(x_113, x_84); -x_115 = lean_array_push(x_114, x_111); -x_116 = l_Lean_nullKind; -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_115); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_110); -return x_118; +x_91 = lean_ctor_get(x_14, 2); +lean_inc(x_91); +x_92 = lean_ctor_get(x_14, 1); +lean_inc(x_92); +x_93 = l_Lean_Parser_Command_section___elambda__1___closed__1; +lean_inc(x_89); +x_94 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_94, 0, x_89); +lean_ctor_set(x_94, 1, x_93); +x_95 = lean_array_push(x_47, x_94); +x_96 = lean_array_push(x_95, x_43); +x_97 = l_Lean_Parser_Command_section___elambda__1___closed__2; +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_96); +x_99 = lean_array_push(x_47, x_98); +x_100 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_23565____closed__1; +lean_inc(x_89); +x_101 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_101, 0, x_89); +lean_ctor_set(x_101, 1, x_100); +x_102 = lean_array_push(x_47, x_101); +x_103 = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation_Precheck___hyg_90____closed__2; +x_104 = l_Lean_addMacroScope(x_92, x_103, x_91); +x_105 = lean_box(0); +x_106 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__5; +lean_inc(x_89); +x_107 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_107, 0, x_89); +lean_ctor_set(x_107, 1, x_106); +lean_ctor_set(x_107, 2, x_104); +lean_ctor_set(x_107, 3, x_105); +x_108 = lean_array_push(x_102, x_107); +x_109 = l_instReprBool___closed__2; +lean_inc(x_89); +x_110 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_110, 0, x_89); +lean_ctor_set(x_110, 1, x_109); +x_111 = lean_array_push(x_108, x_110); +x_112 = l_Lean_Parser_Command_set__option___elambda__1___closed__1; +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_array_push(x_99, x_113); +x_115 = lean_array_push(x_114, x_84); +x_116 = l_Lean_Parser_Command_end___elambda__1___closed__1; +x_117 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_117, 0, x_89); +lean_ctor_set(x_117, 1, x_116); +x_118 = lean_array_push(x_47, x_117); +x_119 = lean_array_push(x_118, x_43); +x_120 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_119); +x_122 = lean_array_push(x_115, x_121); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_59); +lean_ctor_set(x_123, 1, x_122); +x_124 = lean_box(0); +x_125 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1(x_7, x_30, x_33, x_31, x_34, x_123, x_124, x_14, x_90); +lean_dec(x_30); +return x_125; } } } else { -uint8_t x_119; -lean_dec(x_84); -lean_dec(x_34); -x_119 = !lean_is_exclusive(x_85); -if (x_119 == 0) -{ -return x_85; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_85, 0); -x_121 = lean_ctor_get(x_85, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_85); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -} -} -else -{ -uint8_t x_200; +uint8_t x_203; lean_dec(x_23); lean_dec(x_14); lean_dec(x_13); @@ -30473,23 +30660,23 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); -x_200 = !lean_is_exclusive(x_22); -if (x_200 == 0) +x_203 = !lean_is_exclusive(x_22); +if (x_203 == 0) { return x_22; } else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_22, 0); -x_202 = lean_ctor_get(x_22, 1); -lean_inc(x_202); -lean_inc(x_201); +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_22, 0); +x_205 = lean_ctor_get(x_22, 1); +lean_inc(x_205); +lean_inc(x_204); lean_dec(x_22); -x_203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_203, 0, x_201); -lean_ctor_set(x_203, 1, x_202); -return x_203; +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_205); +return x_206; } } } @@ -30562,7 +30749,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1(x_14, x_15, x_16, x_17, x_8, x_2, x_3, x_12, x_23, x_4, x_26, x_7, x_30, x_9, x_31); +x_32 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2(x_14, x_15, x_16, x_17, x_8, x_2, x_3, x_12, x_23, x_4, x_26, x_7, x_30, x_9, x_31); lean_dec(x_7); lean_dec(x_14); return x_32; @@ -30605,7 +30792,7 @@ else lean_object* x_37; lean_object* x_38; lean_object* x_39; x_37 = lean_ctor_get(x_5, 0); x_38 = l_Lean_Syntax_getId(x_37); -x_39 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1(x_14, x_15, x_16, x_17, x_8, x_2, x_3, x_12, x_23, x_4, x_26, x_7, x_38, x_9, x_24); +x_39 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2(x_14, x_15, x_16, x_17, x_8, x_2, x_3, x_12, x_23, x_4, x_26, x_7, x_38, x_9, x_24); lean_dec(x_7); lean_dec(x_14); return x_39; @@ -30722,7 +30909,17 @@ lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___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_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +lean_dec(x_2); +return x_10; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { size_t x_16; size_t x_17; lean_object* x_18; @@ -30730,7 +30927,7 @@ x_16 = lean_unbox_usize(x_2); lean_dec(x_2); x_17 = lean_unbox_usize(x_3); lean_dec(x_3); -x_18 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1(x_1, x_16, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2(x_1, x_16, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_12); lean_dec(x_6); lean_dec(x_1); @@ -32953,7 +33150,7 @@ lean_inc(x_41); x_43 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); -x_44 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2; +x_44 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2; x_45 = lean_array_push(x_44, x_43); x_46 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_47 = lean_array_push(x_45, x_46); @@ -33041,7 +33238,7 @@ lean_inc(x_87); x_90 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_90, 0, x_87); lean_ctor_set(x_90, 1, x_89); -x_91 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2; +x_91 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2; x_92 = lean_array_push(x_91, x_90); x_93 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_94 = lean_array_push(x_92, x_93); @@ -33272,7 +33469,7 @@ lean_inc(x_213); x_215 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_215, 0, x_213); lean_ctor_set(x_215, 1, x_214); -x_216 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2; +x_216 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2; x_217 = lean_array_push(x_216, x_215); x_218 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_219 = lean_array_push(x_217, x_218); @@ -33353,7 +33550,7 @@ lean_inc(x_256); x_259 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_259, 0, x_256); lean_ctor_set(x_259, 1, x_258); -x_260 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2; +x_260 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2; x_261 = lean_array_push(x_260, x_259); x_262 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8; x_263 = lean_array_push(x_261, x_262); @@ -33860,7 +34057,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_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -33870,11 +34067,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -35743,7 +35940,7 @@ x_68 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; 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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_70 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_71 = lean_array_push(x_70, x_69); x_72 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_73 = lean_alloc_ctor(1, 2, 0); @@ -36008,7 +36205,7 @@ x_210 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_211 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_211, 0, x_210); lean_ctor_set(x_211, 1, x_209); -x_212 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_212 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_213 = lean_array_push(x_212, x_211); x_214 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_215 = lean_alloc_ctor(1, 2, 0); @@ -36273,7 +36470,7 @@ x_352 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_353 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_353, 0, x_352); lean_ctor_set(x_353, 1, x_351); -x_354 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_354 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_355 = lean_array_push(x_354, x_353); x_356 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_357 = lean_alloc_ctor(1, 2, 0); @@ -36637,7 +36834,7 @@ x_537 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__14; x_538 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_538, 0, x_537); lean_ctor_set(x_538, 1, x_536); -x_539 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; +x_539 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23; x_540 = lean_array_push(x_539, x_538); x_541 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__12; x_542 = lean_alloc_ctor(1, 2, 0); @@ -38976,10 +39173,16 @@ l_Lean_Elab_Command_mkSimpleDelab___closed__14 = _init_l_Lean_Elab_Command_mkSim lean_mark_persistent(l_Lean_Elab_Command_mkSimpleDelab___closed__14); l_Lean_Elab_Command_mkSimpleDelab___closed__15 = _init_l_Lean_Elab_Command_mkSimpleDelab___closed__15(); lean_mark_persistent(l_Lean_Elab_Command_mkSimpleDelab___closed__15); -l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__1); -l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__1___closed__2); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__1); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__2); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__3 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__3); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__4 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__4); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__5 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___lambda__2___closed__5); l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___boxed__const__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___boxed__const__1); l___regBuiltin_Lean_Elab_Command_expandNotation___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandNotation___closed__1(); @@ -38996,9 +39199,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1); res = l___regBuiltin_Lean_Elab_Command_expandMacro(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824____closed__1); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_16824_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073____closed__1); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17073_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Command_withExpectedType___closed__1 = _init_l_Lean_Elab_Command_withExpectedType___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index c4e5cfb2d1..e4bef73ba7 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -131,6 +131,7 @@ lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_E lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, 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_runTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp_match__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___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*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___lambda__1___boxed(lean_object*); @@ -264,7 +265,6 @@ lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_E lean_object* l_ReaderT_pure___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_runTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); lean_object* l_Lean_Meta_getDefaultInstances___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); @@ -9132,7 +9132,7 @@ lean_dec(x_12); x_31 = lean_ctor_get(x_1, 0); lean_inc(x_31); lean_dec(x_1); -x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___boxed), 9, 2); +x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic), 9, 2); lean_closure_set(x_32, 0, x_31); lean_closure_set(x_32, 1, x_29); x_33 = l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__3___closed__1; @@ -9249,7 +9249,7 @@ lean_dec(x_12); x_64 = lean_ctor_get(x_1, 0); lean_inc(x_64); lean_dec(x_1); -x_65 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___boxed), 9, 2); +x_65 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic), 9, 2); lean_closure_set(x_65, 0, x_64); lean_closure_set(x_65, 1, x_62); x_66 = l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___lambda__3___closed__1; @@ -9485,7 +9485,7 @@ lean_dec(x_45); x_48 = !lean_is_exclusive(x_46); if (x_48 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; x_49 = lean_ctor_get(x_46, 0); lean_inc(x_1); x_50 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_49, x_1); @@ -9496,50 +9496,53 @@ lean_inc(x_52); lean_dec(x_51); x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); lean_closure_set(x_53, 0, x_42); -x_54 = l_Lean_Elab_Term_runTactic___closed__1; -x_55 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2); -lean_closure_set(x_55, 0, x_53); -lean_closure_set(x_55, 1, x_54); -x_56 = lean_st_ref_get(x_8, x_52); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_st_ref_get(x_4, x_57); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_59, 5); +x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_54, 0, x_2); +lean_closure_set(x_54, 1, x_53); +x_55 = l_Lean_Elab_Term_runTactic___closed__1; +x_56 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2); +lean_closure_set(x_56, 0, x_54); +lean_closure_set(x_56, 1, x_55); +x_57 = lean_st_ref_get(x_8, x_52); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = lean_st_ref_get(x_4, x_58); +x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); -lean_dec(x_59); -x_61 = lean_ctor_get_uint8(x_60, sizeof(void*)*2); +x_61 = lean_ctor_get(x_60, 5); +lean_inc(x_61); lean_dec(x_60); -if (x_61 == 0) +x_62 = lean_ctor_get_uint8(x_61, sizeof(void*)*2); +lean_dec(x_61); +if (x_62 == 0) { -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_58, 1); -lean_inc(x_62); -lean_dec(x_58); +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_59, 1); +lean_inc(x_63); +lean_dec(x_59); 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_63 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_62); -x_10 = x_63; +x_64 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_63); +x_10 = x_64; goto block_27; } 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_58, 1); -lean_inc(x_64); -lean_dec(x_58); -x_65 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_runTactic___spec__1___rarg(x_4, x_5, x_6, x_7, x_8, x_64); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_65 = lean_ctor_get(x_59, 1); +lean_inc(x_65); +lean_dec(x_59); +x_66 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_runTactic___spec__1___rarg(x_4, x_5, x_6, x_7, x_8, x_65); +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_65); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -9547,645 +9550,645 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_68 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_67); -if (lean_obj_tag(x_68) == 0) +x_69 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_68); +if (lean_obj_tag(x_69) == 0) { -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; uint8_t x_77; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); +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; uint8_t x_78; +x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_st_ref_get(x_8, x_70); -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_73 = lean_st_ref_take(x_4, x_72); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_74, 5); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_st_ref_get(x_8, x_71); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +x_74 = lean_st_ref_take(x_4, x_73); +x_75 = lean_ctor_get(x_74, 0); lean_inc(x_75); -x_76 = lean_ctor_get(x_73, 1); +x_76 = lean_ctor_get(x_75, 5); lean_inc(x_76); -lean_dec(x_73); -x_77 = !lean_is_exclusive(x_74); -if (x_77 == 0) +x_77 = lean_ctor_get(x_74, 1); +lean_inc(x_77); +lean_dec(x_74); +x_78 = !lean_is_exclusive(x_75); +if (x_78 == 0) { -lean_object* x_78; uint8_t x_79; -x_78 = lean_ctor_get(x_74, 5); -lean_dec(x_78); -x_79 = !lean_is_exclusive(x_75); -if (x_79 == 0) +lean_object* x_79; uint8_t x_80; +x_79 = lean_ctor_get(x_75, 5); +lean_dec(x_79); +x_80 = !lean_is_exclusive(x_76); +if (x_80 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_80 = lean_ctor_get(x_75, 0); -x_81 = lean_ctor_get(x_75, 1); -x_82 = lean_ctor_get(x_81, 2); -lean_inc(x_82); -x_83 = lean_unsigned_to_nat(0u); -x_84 = lean_nat_dec_lt(x_83, x_82); -if (x_84 == 0) +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_81 = lean_ctor_get(x_76, 0); +x_82 = lean_ctor_get(x_76, 1); +x_83 = lean_ctor_get(x_82, 2); +lean_inc(x_83); +x_84 = lean_unsigned_to_nat(0u); +x_85 = lean_nat_dec_lt(x_84, x_83); +if (x_85 == 0) { -lean_object* x_85; uint8_t x_86; +lean_object* x_86; uint8_t x_87; +lean_dec(x_83); lean_dec(x_82); -lean_dec(x_81); lean_dec(x_1); -lean_ctor_set(x_75, 1, x_66); -x_85 = lean_st_ref_set(x_4, x_74, x_76); -x_86 = !lean_is_exclusive(x_85); -if (x_86 == 0) +lean_ctor_set(x_76, 1, x_67); +x_86 = lean_st_ref_set(x_4, x_75, x_77); +x_87 = !lean_is_exclusive(x_86); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_85, 0); -lean_dec(x_87); -x_88 = lean_box(0); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_69); -lean_ctor_set(x_89, 1, x_88); -lean_ctor_set(x_85, 0, x_89); -x_28 = x_85; +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_86, 0); +lean_dec(x_88); +x_89 = lean_box(0); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_70); +lean_ctor_set(x_90, 1, x_89); +lean_ctor_set(x_86, 0, x_90); +x_28 = x_86; goto block_40; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_85, 1); -lean_inc(x_90); -lean_dec(x_85); -x_91 = lean_box(0); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_69); -lean_ctor_set(x_92, 1, x_91); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_86, 1); +lean_inc(x_91); +lean_dec(x_86); +x_92 = lean_box(0); x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_90); -x_28 = x_93; +lean_ctor_set(x_93, 0, x_70); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_91); +x_28 = x_94; goto block_40; } } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_94 = lean_nat_sub(x_82, x_41); -lean_dec(x_82); -x_95 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_81, x_94); -lean_dec(x_94); -x_96 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_80, x_1, x_95); -lean_ctor_set(x_75, 1, x_66); -lean_ctor_set(x_75, 0, x_96); -x_97 = lean_st_ref_set(x_4, x_74, x_76); -x_98 = !lean_is_exclusive(x_97); -if (x_98 == 0) +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_95 = lean_nat_sub(x_83, x_41); +lean_dec(x_83); +x_96 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_82, x_95); +lean_dec(x_95); +x_97 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_81, x_1, x_96); +lean_ctor_set(x_76, 1, x_67); +lean_ctor_set(x_76, 0, x_97); +x_98 = lean_st_ref_set(x_4, x_75, x_77); +x_99 = !lean_is_exclusive(x_98); +if (x_99 == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_97, 0); -lean_dec(x_99); -x_100 = lean_box(0); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_69); -lean_ctor_set(x_101, 1, x_100); -lean_ctor_set(x_97, 0, x_101); -x_28 = x_97; +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_98, 0); +lean_dec(x_100); +x_101 = lean_box(0); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_70); +lean_ctor_set(x_102, 1, x_101); +lean_ctor_set(x_98, 0, x_102); +x_28 = x_98; goto block_40; } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_102 = lean_ctor_get(x_97, 1); -lean_inc(x_102); -lean_dec(x_97); -x_103 = lean_box(0); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_69); -lean_ctor_set(x_104, 1, x_103); +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_103 = lean_ctor_get(x_98, 1); +lean_inc(x_103); +lean_dec(x_98); +x_104 = lean_box(0); x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_102); -x_28 = x_105; +lean_ctor_set(x_105, 0, x_70); +lean_ctor_set(x_105, 1, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_103); +x_28 = x_106; goto block_40; } } } else { -uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_106 = lean_ctor_get_uint8(x_75, sizeof(void*)*2); -x_107 = lean_ctor_get(x_75, 0); -x_108 = lean_ctor_get(x_75, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_75); -x_109 = lean_ctor_get(x_108, 2); +uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_107 = lean_ctor_get_uint8(x_76, sizeof(void*)*2); +x_108 = lean_ctor_get(x_76, 0); +x_109 = lean_ctor_get(x_76, 1); lean_inc(x_109); -x_110 = lean_unsigned_to_nat(0u); -x_111 = lean_nat_dec_lt(x_110, x_109); -if (x_111 == 0) +lean_inc(x_108); +lean_dec(x_76); +x_110 = lean_ctor_get(x_109, 2); +lean_inc(x_110); +x_111 = lean_unsigned_to_nat(0u); +x_112 = lean_nat_dec_lt(x_111, x_110); +if (x_112 == 0) { -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_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_dec(x_110); lean_dec(x_109); -lean_dec(x_108); lean_dec(x_1); -x_112 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_112, 0, x_107); -lean_ctor_set(x_112, 1, x_66); -lean_ctor_set_uint8(x_112, sizeof(void*)*2, x_106); -lean_ctor_set(x_74, 5, x_112); -x_113 = lean_st_ref_set(x_4, x_74, x_76); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_115 = x_113; +x_113 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_113, 0, x_108); +lean_ctor_set(x_113, 1, x_67); +lean_ctor_set_uint8(x_113, sizeof(void*)*2, x_107); +lean_ctor_set(x_75, 5, x_113); +x_114 = lean_st_ref_set(x_4, x_75, x_77); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_116 = x_114; } else { - lean_dec_ref(x_113); - x_115 = lean_box(0); + lean_dec_ref(x_114); + x_116 = lean_box(0); } -x_116 = lean_box(0); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_69); -lean_ctor_set(x_117, 1, x_116); -if (lean_is_scalar(x_115)) { - x_118 = lean_alloc_ctor(0, 2, 0); +x_117 = lean_box(0); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_70); +lean_ctor_set(x_118, 1, x_117); +if (lean_is_scalar(x_116)) { + x_119 = lean_alloc_ctor(0, 2, 0); } else { - x_118 = x_115; + x_119 = x_116; } -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_114); -x_28 = x_118; +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_115); +x_28 = x_119; goto block_40; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_119 = lean_nat_sub(x_109, x_41); -lean_dec(x_109); -x_120 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_108, x_119); -lean_dec(x_119); -x_121 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_107, x_1, x_120); -x_122 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_66); -lean_ctor_set_uint8(x_122, sizeof(void*)*2, x_106); -lean_ctor_set(x_74, 5, x_122); -x_123 = lean_st_ref_set(x_4, x_74, x_76); -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_125 = x_123; +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_120 = lean_nat_sub(x_110, x_41); +lean_dec(x_110); +x_121 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_109, x_120); +lean_dec(x_120); +x_122 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_108, x_1, x_121); +x_123 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_67); +lean_ctor_set_uint8(x_123, sizeof(void*)*2, x_107); +lean_ctor_set(x_75, 5, x_123); +x_124 = lean_st_ref_set(x_4, x_75, x_77); +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_123); - x_125 = lean_box(0); + lean_dec_ref(x_124); + x_126 = lean_box(0); } -x_126 = lean_box(0); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_69); -lean_ctor_set(x_127, 1, x_126); -if (lean_is_scalar(x_125)) { - x_128 = 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_70); +lean_ctor_set(x_128, 1, x_127); +if (lean_is_scalar(x_126)) { + x_129 = lean_alloc_ctor(0, 2, 0); } else { - x_128 = x_125; + x_129 = x_126; } -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_124); -x_28 = x_128; +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +x_28 = x_129; goto block_40; } } } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_129 = lean_ctor_get(x_74, 0); -x_130 = lean_ctor_get(x_74, 1); -x_131 = lean_ctor_get(x_74, 2); -x_132 = lean_ctor_get(x_74, 3); -x_133 = lean_ctor_get(x_74, 4); +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_130 = lean_ctor_get(x_75, 0); +x_131 = lean_ctor_get(x_75, 1); +x_132 = lean_ctor_get(x_75, 2); +x_133 = lean_ctor_get(x_75, 3); +x_134 = lean_ctor_get(x_75, 4); +lean_inc(x_134); lean_inc(x_133); lean_inc(x_132); lean_inc(x_131); lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_74); -x_134 = lean_ctor_get_uint8(x_75, sizeof(void*)*2); -x_135 = lean_ctor_get(x_75, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_75, 1); +lean_dec(x_75); +x_135 = lean_ctor_get_uint8(x_76, sizeof(void*)*2); +x_136 = lean_ctor_get(x_76, 0); lean_inc(x_136); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_137 = x_75; +x_137 = lean_ctor_get(x_76, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_138 = x_76; } else { - lean_dec_ref(x_75); - x_137 = lean_box(0); + lean_dec_ref(x_76); + x_138 = lean_box(0); } -x_138 = lean_ctor_get(x_136, 2); -lean_inc(x_138); -x_139 = lean_unsigned_to_nat(0u); -x_140 = lean_nat_dec_lt(x_139, x_138); -if (x_140 == 0) +x_139 = lean_ctor_get(x_137, 2); +lean_inc(x_139); +x_140 = lean_unsigned_to_nat(0u); +x_141 = lean_nat_dec_lt(x_140, x_139); +if (x_141 == 0) { -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_dec(x_138); -lean_dec(x_136); +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_dec(x_139); +lean_dec(x_137); lean_dec(x_1); -if (lean_is_scalar(x_137)) { - x_141 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_138)) { + x_142 = lean_alloc_ctor(0, 2, 1); } else { - x_141 = x_137; + x_142 = x_138; } -lean_ctor_set(x_141, 0, x_135); -lean_ctor_set(x_141, 1, x_66); -lean_ctor_set_uint8(x_141, sizeof(void*)*2, x_134); -x_142 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_142, 0, x_129); -lean_ctor_set(x_142, 1, x_130); -lean_ctor_set(x_142, 2, x_131); -lean_ctor_set(x_142, 3, x_132); -lean_ctor_set(x_142, 4, x_133); -lean_ctor_set(x_142, 5, x_141); -x_143 = lean_st_ref_set(x_4, x_142, x_76); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; +lean_ctor_set(x_142, 0, x_136); +lean_ctor_set(x_142, 1, x_67); +lean_ctor_set_uint8(x_142, sizeof(void*)*2, x_135); +x_143 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_143, 0, x_130); +lean_ctor_set(x_143, 1, x_131); +lean_ctor_set(x_143, 2, x_132); +lean_ctor_set(x_143, 3, x_133); +lean_ctor_set(x_143, 4, x_134); +lean_ctor_set(x_143, 5, x_142); +x_144 = lean_st_ref_set(x_4, x_143, x_77); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; } else { - lean_dec_ref(x_143); - x_145 = lean_box(0); + lean_dec_ref(x_144); + x_146 = lean_box(0); } -x_146 = lean_box(0); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_69); -lean_ctor_set(x_147, 1, x_146); -if (lean_is_scalar(x_145)) { - x_148 = lean_alloc_ctor(0, 2, 0); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_70); +lean_ctor_set(x_148, 1, x_147); +if (lean_is_scalar(x_146)) { + x_149 = lean_alloc_ctor(0, 2, 0); } else { - x_148 = x_145; + x_149 = x_146; } -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_144); -x_28 = x_148; +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_145); +x_28 = x_149; goto block_40; } else { -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; -x_149 = lean_nat_sub(x_138, x_41); -lean_dec(x_138); -x_150 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_136, x_149); -lean_dec(x_149); -x_151 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_135, x_1, x_150); -if (lean_is_scalar(x_137)) { - x_152 = lean_alloc_ctor(0, 2, 1); +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; +x_150 = lean_nat_sub(x_139, x_41); +lean_dec(x_139); +x_151 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_137, x_150); +lean_dec(x_150); +x_152 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_136, x_1, x_151); +if (lean_is_scalar(x_138)) { + x_153 = lean_alloc_ctor(0, 2, 1); } else { - x_152 = x_137; + x_153 = x_138; } -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_66); -lean_ctor_set_uint8(x_152, sizeof(void*)*2, x_134); -x_153 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_153, 0, x_129); -lean_ctor_set(x_153, 1, x_130); -lean_ctor_set(x_153, 2, x_131); -lean_ctor_set(x_153, 3, x_132); -lean_ctor_set(x_153, 4, x_133); -lean_ctor_set(x_153, 5, x_152); -x_154 = lean_st_ref_set(x_4, x_153, x_76); -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; +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_67); +lean_ctor_set_uint8(x_153, sizeof(void*)*2, x_135); +x_154 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_154, 0, x_130); +lean_ctor_set(x_154, 1, x_131); +lean_ctor_set(x_154, 2, x_132); +lean_ctor_set(x_154, 3, x_133); +lean_ctor_set(x_154, 4, x_134); +lean_ctor_set(x_154, 5, x_153); +x_155 = lean_st_ref_set(x_4, x_154, x_77); +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_157 = x_155; } else { - lean_dec_ref(x_154); - x_156 = lean_box(0); + lean_dec_ref(x_155); + x_157 = lean_box(0); } -x_157 = lean_box(0); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_69); -lean_ctor_set(x_158, 1, x_157); -if (lean_is_scalar(x_156)) { - x_159 = lean_alloc_ctor(0, 2, 0); +x_158 = lean_box(0); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_70); +lean_ctor_set(x_159, 1, x_158); +if (lean_is_scalar(x_157)) { + x_160 = lean_alloc_ctor(0, 2, 0); } else { - x_159 = x_156; + x_160 = x_157; } -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_155); -x_28 = x_159; +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_156); +x_28 = x_160; goto block_40; } } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_160 = lean_ctor_get(x_68, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_68, 1); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; +x_161 = lean_ctor_get(x_69, 0); lean_inc(x_161); -lean_dec(x_68); -x_162 = lean_st_ref_get(x_8, x_161); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -lean_dec(x_162); -x_164 = lean_st_ref_take(x_4, x_163); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_165, 5); +x_162 = lean_ctor_get(x_69, 1); +lean_inc(x_162); +lean_dec(x_69); +x_163 = lean_st_ref_get(x_8, x_162); +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +lean_dec(x_163); +x_165 = lean_st_ref_take(x_4, x_164); +x_166 = lean_ctor_get(x_165, 0); lean_inc(x_166); -x_167 = lean_ctor_get(x_164, 1); +x_167 = lean_ctor_get(x_166, 5); lean_inc(x_167); -lean_dec(x_164); -x_168 = !lean_is_exclusive(x_165); -if (x_168 == 0) +x_168 = lean_ctor_get(x_165, 1); +lean_inc(x_168); +lean_dec(x_165); +x_169 = !lean_is_exclusive(x_166); +if (x_169 == 0) { -lean_object* x_169; uint8_t x_170; -x_169 = lean_ctor_get(x_165, 5); -lean_dec(x_169); -x_170 = !lean_is_exclusive(x_166); -if (x_170 == 0) +lean_object* x_170; uint8_t x_171; +x_170 = lean_ctor_get(x_166, 5); +lean_dec(x_170); +x_171 = !lean_is_exclusive(x_167); +if (x_171 == 0) { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; -x_171 = lean_ctor_get(x_166, 0); -x_172 = lean_ctor_get(x_166, 1); -x_173 = lean_ctor_get(x_172, 2); -lean_inc(x_173); -x_174 = lean_unsigned_to_nat(0u); -x_175 = lean_nat_dec_lt(x_174, x_173); -if (x_175 == 0) +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; +x_172 = lean_ctor_get(x_167, 0); +x_173 = lean_ctor_get(x_167, 1); +x_174 = lean_ctor_get(x_173, 2); +lean_inc(x_174); +x_175 = lean_unsigned_to_nat(0u); +x_176 = lean_nat_dec_lt(x_175, x_174); +if (x_176 == 0) { -lean_object* x_176; uint8_t x_177; +lean_object* x_177; uint8_t x_178; +lean_dec(x_174); lean_dec(x_173); -lean_dec(x_172); lean_dec(x_1); -lean_ctor_set(x_166, 1, x_66); -x_176 = lean_st_ref_set(x_4, x_165, x_167); -x_177 = !lean_is_exclusive(x_176); -if (x_177 == 0) +lean_ctor_set(x_167, 1, x_67); +x_177 = lean_st_ref_set(x_4, x_166, x_168); +x_178 = !lean_is_exclusive(x_177); +if (x_178 == 0) { -lean_object* x_178; -x_178 = lean_ctor_get(x_176, 0); -lean_dec(x_178); -lean_ctor_set_tag(x_176, 1); -lean_ctor_set(x_176, 0, x_160); -x_28 = x_176; +lean_object* x_179; +x_179 = lean_ctor_get(x_177, 0); +lean_dec(x_179); +lean_ctor_set_tag(x_177, 1); +lean_ctor_set(x_177, 0, x_161); +x_28 = x_177; goto block_40; } else { -lean_object* x_179; lean_object* x_180; -x_179 = lean_ctor_get(x_176, 1); -lean_inc(x_179); -lean_dec(x_176); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_160); -lean_ctor_set(x_180, 1, x_179); -x_28 = x_180; +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_177, 1); +lean_inc(x_180); +lean_dec(x_177); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_161); +lean_ctor_set(x_181, 1, x_180); +x_28 = x_181; goto block_40; } } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; -x_181 = lean_nat_sub(x_173, x_41); -lean_dec(x_173); -x_182 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_172, x_181); -lean_dec(x_181); -x_183 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_171, x_1, x_182); -lean_ctor_set(x_166, 1, x_66); -lean_ctor_set(x_166, 0, x_183); -x_184 = lean_st_ref_set(x_4, x_165, x_167); -x_185 = !lean_is_exclusive(x_184); -if (x_185 == 0) +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; +x_182 = lean_nat_sub(x_174, x_41); +lean_dec(x_174); +x_183 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_173, x_182); +lean_dec(x_182); +x_184 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_172, x_1, x_183); +lean_ctor_set(x_167, 1, x_67); +lean_ctor_set(x_167, 0, x_184); +x_185 = lean_st_ref_set(x_4, x_166, x_168); +x_186 = !lean_is_exclusive(x_185); +if (x_186 == 0) { -lean_object* x_186; -x_186 = lean_ctor_get(x_184, 0); -lean_dec(x_186); -lean_ctor_set_tag(x_184, 1); -lean_ctor_set(x_184, 0, x_160); -x_28 = x_184; +lean_object* x_187; +x_187 = lean_ctor_get(x_185, 0); +lean_dec(x_187); +lean_ctor_set_tag(x_185, 1); +lean_ctor_set(x_185, 0, x_161); +x_28 = x_185; goto block_40; } else { -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_184, 1); -lean_inc(x_187); -lean_dec(x_184); -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_160); -lean_ctor_set(x_188, 1, x_187); -x_28 = x_188; +lean_object* x_188; lean_object* x_189; +x_188 = lean_ctor_get(x_185, 1); +lean_inc(x_188); +lean_dec(x_185); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_161); +lean_ctor_set(x_189, 1, x_188); +x_28 = x_189; goto block_40; } } } else { -uint8_t x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_189 = lean_ctor_get_uint8(x_166, sizeof(void*)*2); -x_190 = lean_ctor_get(x_166, 0); -x_191 = lean_ctor_get(x_166, 1); -lean_inc(x_191); -lean_inc(x_190); -lean_dec(x_166); -x_192 = lean_ctor_get(x_191, 2); +uint8_t x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; +x_190 = lean_ctor_get_uint8(x_167, sizeof(void*)*2); +x_191 = lean_ctor_get(x_167, 0); +x_192 = lean_ctor_get(x_167, 1); lean_inc(x_192); -x_193 = lean_unsigned_to_nat(0u); -x_194 = lean_nat_dec_lt(x_193, x_192); -if (x_194 == 0) +lean_inc(x_191); +lean_dec(x_167); +x_193 = lean_ctor_get(x_192, 2); +lean_inc(x_193); +x_194 = lean_unsigned_to_nat(0u); +x_195 = lean_nat_dec_lt(x_194, x_193); +if (x_195 == 0) { -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_193); lean_dec(x_192); -lean_dec(x_191); lean_dec(x_1); -x_195 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_195, 0, x_190); -lean_ctor_set(x_195, 1, x_66); -lean_ctor_set_uint8(x_195, sizeof(void*)*2, x_189); -lean_ctor_set(x_165, 5, x_195); -x_196 = lean_st_ref_set(x_4, x_165, x_167); -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -if (lean_is_exclusive(x_196)) { - lean_ctor_release(x_196, 0); - lean_ctor_release(x_196, 1); - x_198 = x_196; +x_196 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_196, 0, x_191); +lean_ctor_set(x_196, 1, x_67); +lean_ctor_set_uint8(x_196, sizeof(void*)*2, x_190); +lean_ctor_set(x_166, 5, x_196); +x_197 = lean_st_ref_set(x_4, x_166, x_168); +x_198 = lean_ctor_get(x_197, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_199 = x_197; } else { - lean_dec_ref(x_196); - x_198 = lean_box(0); + lean_dec_ref(x_197); + x_199 = lean_box(0); } -if (lean_is_scalar(x_198)) { - x_199 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(1, 2, 0); } else { - x_199 = x_198; - lean_ctor_set_tag(x_199, 1); + x_200 = x_199; + lean_ctor_set_tag(x_200, 1); } -lean_ctor_set(x_199, 0, x_160); -lean_ctor_set(x_199, 1, x_197); -x_28 = x_199; +lean_ctor_set(x_200, 0, x_161); +lean_ctor_set(x_200, 1, x_198); +x_28 = x_200; goto block_40; } else { -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_200 = lean_nat_sub(x_192, x_41); -lean_dec(x_192); -x_201 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_191, x_200); -lean_dec(x_200); -x_202 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_190, x_1, x_201); -x_203 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_66); -lean_ctor_set_uint8(x_203, sizeof(void*)*2, x_189); -lean_ctor_set(x_165, 5, x_203); -x_204 = lean_st_ref_set(x_4, x_165, x_167); -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; +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; +x_201 = lean_nat_sub(x_193, x_41); +lean_dec(x_193); +x_202 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_192, x_201); +lean_dec(x_201); +x_203 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_191, x_1, x_202); +x_204 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_67); +lean_ctor_set_uint8(x_204, sizeof(void*)*2, x_190); +lean_ctor_set(x_166, 5, x_204); +x_205 = lean_st_ref_set(x_4, x_166, x_168); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; } else { - lean_dec_ref(x_204); - x_206 = lean_box(0); + lean_dec_ref(x_205); + x_207 = lean_box(0); } -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(1, 2, 0); } else { - x_207 = x_206; - lean_ctor_set_tag(x_207, 1); + x_208 = x_207; + lean_ctor_set_tag(x_208, 1); } -lean_ctor_set(x_207, 0, x_160); -lean_ctor_set(x_207, 1, x_205); -x_28 = x_207; +lean_ctor_set(x_208, 0, x_161); +lean_ctor_set(x_208, 1, x_206); +x_28 = x_208; goto block_40; } } } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; -x_208 = lean_ctor_get(x_165, 0); -x_209 = lean_ctor_get(x_165, 1); -x_210 = lean_ctor_get(x_165, 2); -x_211 = lean_ctor_get(x_165, 3); -x_212 = lean_ctor_get(x_165, 4); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; +x_209 = lean_ctor_get(x_166, 0); +x_210 = lean_ctor_get(x_166, 1); +x_211 = lean_ctor_get(x_166, 2); +x_212 = lean_ctor_get(x_166, 3); +x_213 = lean_ctor_get(x_166, 4); +lean_inc(x_213); lean_inc(x_212); lean_inc(x_211); lean_inc(x_210); lean_inc(x_209); -lean_inc(x_208); -lean_dec(x_165); -x_213 = lean_ctor_get_uint8(x_166, sizeof(void*)*2); -x_214 = lean_ctor_get(x_166, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_166, 1); +lean_dec(x_166); +x_214 = lean_ctor_get_uint8(x_167, sizeof(void*)*2); +x_215 = lean_ctor_get(x_167, 0); lean_inc(x_215); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_216 = x_166; +x_216 = lean_ctor_get(x_167, 1); +lean_inc(x_216); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_217 = x_167; } else { - lean_dec_ref(x_166); - x_216 = lean_box(0); + lean_dec_ref(x_167); + x_217 = lean_box(0); } -x_217 = lean_ctor_get(x_215, 2); -lean_inc(x_217); -x_218 = lean_unsigned_to_nat(0u); -x_219 = lean_nat_dec_lt(x_218, x_217); -if (x_219 == 0) +x_218 = lean_ctor_get(x_216, 2); +lean_inc(x_218); +x_219 = lean_unsigned_to_nat(0u); +x_220 = lean_nat_dec_lt(x_219, x_218); +if (x_220 == 0) { -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_dec(x_217); -lean_dec(x_215); +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_dec(x_218); +lean_dec(x_216); lean_dec(x_1); -if (lean_is_scalar(x_216)) { - x_220 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_217)) { + x_221 = lean_alloc_ctor(0, 2, 1); } else { - x_220 = x_216; + x_221 = x_217; } -lean_ctor_set(x_220, 0, x_214); -lean_ctor_set(x_220, 1, x_66); -lean_ctor_set_uint8(x_220, sizeof(void*)*2, x_213); -x_221 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_221, 0, x_208); -lean_ctor_set(x_221, 1, x_209); -lean_ctor_set(x_221, 2, x_210); -lean_ctor_set(x_221, 3, x_211); -lean_ctor_set(x_221, 4, x_212); -lean_ctor_set(x_221, 5, x_220); -x_222 = lean_st_ref_set(x_4, x_221, x_167); -x_223 = lean_ctor_get(x_222, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_224 = x_222; +lean_ctor_set(x_221, 0, x_215); +lean_ctor_set(x_221, 1, x_67); +lean_ctor_set_uint8(x_221, sizeof(void*)*2, x_214); +x_222 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_222, 0, x_209); +lean_ctor_set(x_222, 1, x_210); +lean_ctor_set(x_222, 2, x_211); +lean_ctor_set(x_222, 3, x_212); +lean_ctor_set(x_222, 4, x_213); +lean_ctor_set(x_222, 5, x_221); +x_223 = lean_st_ref_set(x_4, x_222, x_168); +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_225 = x_223; } else { - lean_dec_ref(x_222); - x_224 = lean_box(0); + lean_dec_ref(x_223); + x_225 = lean_box(0); } -if (lean_is_scalar(x_224)) { - x_225 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_225)) { + x_226 = lean_alloc_ctor(1, 2, 0); } else { - x_225 = x_224; - lean_ctor_set_tag(x_225, 1); + x_226 = x_225; + lean_ctor_set_tag(x_226, 1); } -lean_ctor_set(x_225, 0, x_160); -lean_ctor_set(x_225, 1, x_223); -x_28 = x_225; +lean_ctor_set(x_226, 0, x_161); +lean_ctor_set(x_226, 1, x_224); +x_28 = x_226; goto block_40; } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_226 = lean_nat_sub(x_217, x_41); -lean_dec(x_217); -x_227 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_215, x_226); -lean_dec(x_226); -x_228 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_214, x_1, x_227); -if (lean_is_scalar(x_216)) { - x_229 = lean_alloc_ctor(0, 2, 1); +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_227 = lean_nat_sub(x_218, x_41); +lean_dec(x_218); +x_228 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_216, x_227); +lean_dec(x_227); +x_229 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_215, x_1, x_228); +if (lean_is_scalar(x_217)) { + x_230 = lean_alloc_ctor(0, 2, 1); } else { - x_229 = x_216; + x_230 = x_217; } -lean_ctor_set(x_229, 0, x_228); -lean_ctor_set(x_229, 1, x_66); -lean_ctor_set_uint8(x_229, sizeof(void*)*2, x_213); -x_230 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_230, 0, x_208); -lean_ctor_set(x_230, 1, x_209); -lean_ctor_set(x_230, 2, x_210); -lean_ctor_set(x_230, 3, x_211); -lean_ctor_set(x_230, 4, x_212); -lean_ctor_set(x_230, 5, x_229); -x_231 = lean_st_ref_set(x_4, x_230, x_167); -x_232 = lean_ctor_get(x_231, 1); -lean_inc(x_232); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - x_233 = x_231; +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_67); +lean_ctor_set_uint8(x_230, sizeof(void*)*2, x_214); +x_231 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_231, 0, x_209); +lean_ctor_set(x_231, 1, x_210); +lean_ctor_set(x_231, 2, x_211); +lean_ctor_set(x_231, 3, x_212); +lean_ctor_set(x_231, 4, x_213); +lean_ctor_set(x_231, 5, x_230); +x_232 = lean_st_ref_set(x_4, x_231, x_168); +x_233 = lean_ctor_get(x_232, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_234 = x_232; } else { - lean_dec_ref(x_231); - x_233 = lean_box(0); + lean_dec_ref(x_232); + x_234 = lean_box(0); } -if (lean_is_scalar(x_233)) { - x_234 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_234)) { + x_235 = lean_alloc_ctor(1, 2, 0); } else { - x_234 = x_233; - lean_ctor_set_tag(x_234, 1); + x_235 = x_234; + lean_ctor_set_tag(x_235, 1); } -lean_ctor_set(x_234, 0, x_160); -lean_ctor_set(x_234, 1, x_232); -x_28 = x_234; +lean_ctor_set(x_235, 0, x_161); +lean_ctor_set(x_235, 1, x_233); +x_28 = x_235; goto block_40; } } @@ -10194,73 +10197,76 @@ goto block_40; } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_235 = lean_ctor_get(x_46, 0); -x_236 = lean_ctor_get(x_46, 1); -x_237 = lean_ctor_get(x_46, 2); -x_238 = lean_ctor_get(x_46, 3); +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; +x_236 = lean_ctor_get(x_46, 0); +x_237 = lean_ctor_get(x_46, 1); +x_238 = lean_ctor_get(x_46, 2); +x_239 = lean_ctor_get(x_46, 3); +lean_inc(x_239); lean_inc(x_238); lean_inc(x_237); lean_inc(x_236); -lean_inc(x_235); lean_dec(x_46); lean_inc(x_1); -x_239 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_235, x_1); -x_240 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_236); -lean_ctor_set(x_240, 2, x_237); -lean_ctor_set(x_240, 3, x_238); -x_241 = lean_st_ref_set(x_6, x_240, x_47); -x_242 = lean_ctor_get(x_241, 1); -lean_inc(x_242); -lean_dec(x_241); -x_243 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); -lean_closure_set(x_243, 0, x_42); -x_244 = l_Lean_Elab_Term_runTactic___closed__1; -x_245 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2); -lean_closure_set(x_245, 0, x_243); +x_240 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_236, x_1); +x_241 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_237); +lean_ctor_set(x_241, 2, x_238); +lean_ctor_set(x_241, 3, x_239); +x_242 = lean_st_ref_set(x_6, x_241, x_47); +x_243 = lean_ctor_get(x_242, 1); +lean_inc(x_243); +lean_dec(x_242); +x_244 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); +lean_closure_set(x_244, 0, x_42); +x_245 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_245, 0, x_2); lean_closure_set(x_245, 1, x_244); -x_246 = lean_st_ref_get(x_8, x_242); -x_247 = lean_ctor_get(x_246, 1); -lean_inc(x_247); -lean_dec(x_246); -x_248 = lean_st_ref_get(x_4, x_247); -x_249 = lean_ctor_get(x_248, 0); +x_246 = l_Lean_Elab_Term_runTactic___closed__1; +x_247 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2); +lean_closure_set(x_247, 0, x_245); +lean_closure_set(x_247, 1, x_246); +x_248 = lean_st_ref_get(x_8, x_243); +x_249 = lean_ctor_get(x_248, 1); lean_inc(x_249); -x_250 = lean_ctor_get(x_249, 5); -lean_inc(x_250); -lean_dec(x_249); -x_251 = lean_ctor_get_uint8(x_250, sizeof(void*)*2); -lean_dec(x_250); -if (x_251 == 0) -{ -lean_object* x_252; lean_object* x_253; -x_252 = lean_ctor_get(x_248, 1); -lean_inc(x_252); lean_dec(x_248); +x_250 = lean_st_ref_get(x_4, x_249); +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_251, 5); +lean_inc(x_252); +lean_dec(x_251); +x_253 = lean_ctor_get_uint8(x_252, sizeof(void*)*2); +lean_dec(x_252); +if (x_253 == 0) +{ +lean_object* x_254; lean_object* x_255; +x_254 = lean_ctor_get(x_250, 1); +lean_inc(x_254); +lean_dec(x_250); 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_253 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_245, x_3, x_4, x_5, x_6, x_7, x_8, x_252); -x_10 = x_253; +x_255 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_254); +x_10 = x_255; goto block_27; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_254 = lean_ctor_get(x_248, 1); -lean_inc(x_254); -lean_dec(x_248); -x_255 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_runTactic___spec__1___rarg(x_4, x_5, x_6, x_7, x_8, x_254); -x_256 = lean_ctor_get(x_255, 0); +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_256 = lean_ctor_get(x_250, 1); lean_inc(x_256); -x_257 = lean_ctor_get(x_255, 1); -lean_inc(x_257); -lean_dec(x_255); +lean_dec(x_250); +x_257 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_runTactic___spec__1___rarg(x_4, x_5, x_6, x_7, x_8, x_256); +x_258 = lean_ctor_get(x_257, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_257, 1); +lean_inc(x_259); +lean_dec(x_257); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -10268,322 +10274,322 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_258 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_245, x_3, x_4, x_5, x_6, x_7, x_8, x_257); -if (lean_obj_tag(x_258) == 0) +x_260 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_259); +if (lean_obj_tag(x_260) == 0) { -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; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -lean_dec(x_258); -x_261 = lean_st_ref_get(x_8, x_260); -x_262 = lean_ctor_get(x_261, 1); +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; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; +x_261 = lean_ctor_get(x_260, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_260, 1); lean_inc(x_262); -lean_dec(x_261); -x_263 = lean_st_ref_take(x_4, x_262); -x_264 = lean_ctor_get(x_263, 0); +lean_dec(x_260); +x_263 = lean_st_ref_get(x_8, x_262); +x_264 = lean_ctor_get(x_263, 1); lean_inc(x_264); -x_265 = lean_ctor_get(x_264, 5); -lean_inc(x_265); -x_266 = lean_ctor_get(x_263, 1); -lean_inc(x_266); lean_dec(x_263); -x_267 = lean_ctor_get(x_264, 0); +x_265 = lean_st_ref_take(x_4, x_264); +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_266, 5); lean_inc(x_267); -x_268 = lean_ctor_get(x_264, 1); +x_268 = lean_ctor_get(x_265, 1); lean_inc(x_268); -x_269 = lean_ctor_get(x_264, 2); +lean_dec(x_265); +x_269 = lean_ctor_get(x_266, 0); lean_inc(x_269); -x_270 = lean_ctor_get(x_264, 3); +x_270 = lean_ctor_get(x_266, 1); lean_inc(x_270); -x_271 = lean_ctor_get(x_264, 4); +x_271 = lean_ctor_get(x_266, 2); lean_inc(x_271); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - lean_ctor_release(x_264, 2); - lean_ctor_release(x_264, 3); - lean_ctor_release(x_264, 4); - lean_ctor_release(x_264, 5); - x_272 = x_264; +x_272 = lean_ctor_get(x_266, 3); +lean_inc(x_272); +x_273 = lean_ctor_get(x_266, 4); +lean_inc(x_273); +if (lean_is_exclusive(x_266)) { + lean_ctor_release(x_266, 0); + lean_ctor_release(x_266, 1); + lean_ctor_release(x_266, 2); + lean_ctor_release(x_266, 3); + lean_ctor_release(x_266, 4); + lean_ctor_release(x_266, 5); + x_274 = x_266; } else { - lean_dec_ref(x_264); - x_272 = lean_box(0); + lean_dec_ref(x_266); + x_274 = lean_box(0); } -x_273 = lean_ctor_get_uint8(x_265, sizeof(void*)*2); -x_274 = lean_ctor_get(x_265, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_265, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_276 = x_265; -} else { - lean_dec_ref(x_265); - x_276 = lean_box(0); -} -x_277 = lean_ctor_get(x_275, 2); +x_275 = lean_ctor_get_uint8(x_267, sizeof(void*)*2); +x_276 = lean_ctor_get(x_267, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_267, 1); lean_inc(x_277); -x_278 = lean_unsigned_to_nat(0u); -x_279 = lean_nat_dec_lt(x_278, x_277); -if (x_279 == 0) +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_278 = x_267; +} else { + lean_dec_ref(x_267); + x_278 = lean_box(0); +} +x_279 = lean_ctor_get(x_277, 2); +lean_inc(x_279); +x_280 = lean_unsigned_to_nat(0u); +x_281 = lean_nat_dec_lt(x_280, x_279); +if (x_281 == 0) { -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_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; lean_object* x_289; +lean_dec(x_279); lean_dec(x_277); -lean_dec(x_275); lean_dec(x_1); -if (lean_is_scalar(x_276)) { - x_280 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_278)) { + x_282 = lean_alloc_ctor(0, 2, 1); } else { - x_280 = x_276; + x_282 = x_278; } -lean_ctor_set(x_280, 0, x_274); -lean_ctor_set(x_280, 1, x_256); -lean_ctor_set_uint8(x_280, sizeof(void*)*2, x_273); -if (lean_is_scalar(x_272)) { - x_281 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_282, 0, x_276); +lean_ctor_set(x_282, 1, x_258); +lean_ctor_set_uint8(x_282, sizeof(void*)*2, x_275); +if (lean_is_scalar(x_274)) { + x_283 = lean_alloc_ctor(0, 6, 0); } else { - x_281 = x_272; + x_283 = x_274; } -lean_ctor_set(x_281, 0, x_267); -lean_ctor_set(x_281, 1, x_268); -lean_ctor_set(x_281, 2, x_269); -lean_ctor_set(x_281, 3, x_270); -lean_ctor_set(x_281, 4, x_271); -lean_ctor_set(x_281, 5, x_280); -x_282 = lean_st_ref_set(x_4, x_281, x_266); -x_283 = lean_ctor_get(x_282, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_284 = x_282; +lean_ctor_set(x_283, 0, x_269); +lean_ctor_set(x_283, 1, x_270); +lean_ctor_set(x_283, 2, x_271); +lean_ctor_set(x_283, 3, x_272); +lean_ctor_set(x_283, 4, x_273); +lean_ctor_set(x_283, 5, x_282); +x_284 = lean_st_ref_set(x_4, x_283, x_268); +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_286 = x_284; } else { - lean_dec_ref(x_282); - x_284 = lean_box(0); + lean_dec_ref(x_284); + x_286 = lean_box(0); } -x_285 = lean_box(0); -x_286 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_286, 0, x_259); -lean_ctor_set(x_286, 1, x_285); -if (lean_is_scalar(x_284)) { - x_287 = lean_alloc_ctor(0, 2, 0); +x_287 = lean_box(0); +x_288 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_288, 0, x_261); +lean_ctor_set(x_288, 1, x_287); +if (lean_is_scalar(x_286)) { + x_289 = lean_alloc_ctor(0, 2, 0); } else { - x_287 = x_284; + x_289 = x_286; } -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_283); -x_28 = x_287; +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_285); +x_28 = x_289; goto block_40; } else { -lean_object* x_288; lean_object* x_289; lean_object* x_290; 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; -x_288 = lean_nat_sub(x_277, x_41); -lean_dec(x_277); -x_289 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_275, x_288); -lean_dec(x_288); -x_290 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_274, x_1, x_289); -if (lean_is_scalar(x_276)) { - x_291 = lean_alloc_ctor(0, 2, 1); +lean_object* x_290; 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_299; lean_object* x_300; +x_290 = lean_nat_sub(x_279, x_41); +lean_dec(x_279); +x_291 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_277, x_290); +lean_dec(x_290); +x_292 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_276, x_1, x_291); +if (lean_is_scalar(x_278)) { + x_293 = lean_alloc_ctor(0, 2, 1); } else { - x_291 = x_276; + x_293 = x_278; } -lean_ctor_set(x_291, 0, x_290); -lean_ctor_set(x_291, 1, x_256); -lean_ctor_set_uint8(x_291, sizeof(void*)*2, x_273); -if (lean_is_scalar(x_272)) { - x_292 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_258); +lean_ctor_set_uint8(x_293, sizeof(void*)*2, x_275); +if (lean_is_scalar(x_274)) { + x_294 = lean_alloc_ctor(0, 6, 0); } else { - x_292 = x_272; + x_294 = x_274; } -lean_ctor_set(x_292, 0, x_267); -lean_ctor_set(x_292, 1, x_268); -lean_ctor_set(x_292, 2, x_269); -lean_ctor_set(x_292, 3, x_270); -lean_ctor_set(x_292, 4, x_271); -lean_ctor_set(x_292, 5, x_291); -x_293 = lean_st_ref_set(x_4, x_292, x_266); -x_294 = lean_ctor_get(x_293, 1); -lean_inc(x_294); -if (lean_is_exclusive(x_293)) { - lean_ctor_release(x_293, 0); - lean_ctor_release(x_293, 1); - x_295 = x_293; +lean_ctor_set(x_294, 0, x_269); +lean_ctor_set(x_294, 1, x_270); +lean_ctor_set(x_294, 2, x_271); +lean_ctor_set(x_294, 3, x_272); +lean_ctor_set(x_294, 4, x_273); +lean_ctor_set(x_294, 5, x_293); +x_295 = lean_st_ref_set(x_4, x_294, x_268); +x_296 = lean_ctor_get(x_295, 1); +lean_inc(x_296); +if (lean_is_exclusive(x_295)) { + lean_ctor_release(x_295, 0); + lean_ctor_release(x_295, 1); + x_297 = x_295; } else { - lean_dec_ref(x_293); - x_295 = lean_box(0); + lean_dec_ref(x_295); + x_297 = lean_box(0); } -x_296 = lean_box(0); -x_297 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_297, 0, x_259); -lean_ctor_set(x_297, 1, x_296); -if (lean_is_scalar(x_295)) { - x_298 = lean_alloc_ctor(0, 2, 0); +x_298 = lean_box(0); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_261); +lean_ctor_set(x_299, 1, x_298); +if (lean_is_scalar(x_297)) { + x_300 = lean_alloc_ctor(0, 2, 0); } else { - x_298 = x_295; + x_300 = x_297; } -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_294); -x_28 = x_298; +lean_ctor_set(x_300, 0, x_299); +lean_ctor_set(x_300, 1, x_296); +x_28 = x_300; goto block_40; } } else { -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; -x_299 = lean_ctor_get(x_258, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_258, 1); -lean_inc(x_300); -lean_dec(x_258); -x_301 = lean_st_ref_get(x_8, x_300); -x_302 = lean_ctor_get(x_301, 1); +lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; uint8_t x_321; +x_301 = lean_ctor_get(x_260, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_260, 1); lean_inc(x_302); -lean_dec(x_301); -x_303 = lean_st_ref_take(x_4, x_302); -x_304 = lean_ctor_get(x_303, 0); +lean_dec(x_260); +x_303 = lean_st_ref_get(x_8, x_302); +x_304 = lean_ctor_get(x_303, 1); lean_inc(x_304); -x_305 = lean_ctor_get(x_304, 5); -lean_inc(x_305); -x_306 = lean_ctor_get(x_303, 1); -lean_inc(x_306); lean_dec(x_303); -x_307 = lean_ctor_get(x_304, 0); +x_305 = lean_st_ref_take(x_4, x_304); +x_306 = lean_ctor_get(x_305, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_306, 5); lean_inc(x_307); -x_308 = lean_ctor_get(x_304, 1); +x_308 = lean_ctor_get(x_305, 1); lean_inc(x_308); -x_309 = lean_ctor_get(x_304, 2); +lean_dec(x_305); +x_309 = lean_ctor_get(x_306, 0); lean_inc(x_309); -x_310 = lean_ctor_get(x_304, 3); +x_310 = lean_ctor_get(x_306, 1); lean_inc(x_310); -x_311 = lean_ctor_get(x_304, 4); +x_311 = lean_ctor_get(x_306, 2); lean_inc(x_311); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - lean_ctor_release(x_304, 2); - lean_ctor_release(x_304, 3); - lean_ctor_release(x_304, 4); - lean_ctor_release(x_304, 5); - x_312 = x_304; +x_312 = lean_ctor_get(x_306, 3); +lean_inc(x_312); +x_313 = lean_ctor_get(x_306, 4); +lean_inc(x_313); +if (lean_is_exclusive(x_306)) { + lean_ctor_release(x_306, 0); + lean_ctor_release(x_306, 1); + lean_ctor_release(x_306, 2); + lean_ctor_release(x_306, 3); + lean_ctor_release(x_306, 4); + lean_ctor_release(x_306, 5); + x_314 = x_306; } else { - lean_dec_ref(x_304); - x_312 = lean_box(0); + lean_dec_ref(x_306); + x_314 = lean_box(0); } -x_313 = lean_ctor_get_uint8(x_305, sizeof(void*)*2); -x_314 = lean_ctor_get(x_305, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_305, 1); -lean_inc(x_315); -if (lean_is_exclusive(x_305)) { - lean_ctor_release(x_305, 0); - lean_ctor_release(x_305, 1); - x_316 = x_305; -} else { - lean_dec_ref(x_305); - x_316 = lean_box(0); -} -x_317 = lean_ctor_get(x_315, 2); +x_315 = lean_ctor_get_uint8(x_307, sizeof(void*)*2); +x_316 = lean_ctor_get(x_307, 0); +lean_inc(x_316); +x_317 = lean_ctor_get(x_307, 1); lean_inc(x_317); -x_318 = lean_unsigned_to_nat(0u); -x_319 = lean_nat_dec_lt(x_318, x_317); -if (x_319 == 0) +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + lean_ctor_release(x_307, 1); + x_318 = x_307; +} else { + lean_dec_ref(x_307); + x_318 = lean_box(0); +} +x_319 = lean_ctor_get(x_317, 2); +lean_inc(x_319); +x_320 = lean_unsigned_to_nat(0u); +x_321 = lean_nat_dec_lt(x_320, x_319); +if (x_321 == 0) { -lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; +lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_319); lean_dec(x_317); -lean_dec(x_315); lean_dec(x_1); -if (lean_is_scalar(x_316)) { - x_320 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_318)) { + x_322 = lean_alloc_ctor(0, 2, 1); } else { - x_320 = x_316; + x_322 = x_318; } -lean_ctor_set(x_320, 0, x_314); -lean_ctor_set(x_320, 1, x_256); -lean_ctor_set_uint8(x_320, sizeof(void*)*2, x_313); -if (lean_is_scalar(x_312)) { - x_321 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_322, 0, x_316); +lean_ctor_set(x_322, 1, x_258); +lean_ctor_set_uint8(x_322, sizeof(void*)*2, x_315); +if (lean_is_scalar(x_314)) { + x_323 = lean_alloc_ctor(0, 6, 0); } else { - x_321 = x_312; + x_323 = x_314; } -lean_ctor_set(x_321, 0, x_307); -lean_ctor_set(x_321, 1, x_308); -lean_ctor_set(x_321, 2, x_309); -lean_ctor_set(x_321, 3, x_310); -lean_ctor_set(x_321, 4, x_311); -lean_ctor_set(x_321, 5, x_320); -x_322 = lean_st_ref_set(x_4, x_321, x_306); -x_323 = lean_ctor_get(x_322, 1); -lean_inc(x_323); -if (lean_is_exclusive(x_322)) { - lean_ctor_release(x_322, 0); - lean_ctor_release(x_322, 1); - x_324 = x_322; +lean_ctor_set(x_323, 0, x_309); +lean_ctor_set(x_323, 1, x_310); +lean_ctor_set(x_323, 2, x_311); +lean_ctor_set(x_323, 3, x_312); +lean_ctor_set(x_323, 4, x_313); +lean_ctor_set(x_323, 5, x_322); +x_324 = lean_st_ref_set(x_4, x_323, x_308); +x_325 = lean_ctor_get(x_324, 1); +lean_inc(x_325); +if (lean_is_exclusive(x_324)) { + lean_ctor_release(x_324, 0); + lean_ctor_release(x_324, 1); + x_326 = x_324; } else { - lean_dec_ref(x_322); - x_324 = lean_box(0); + lean_dec_ref(x_324); + x_326 = lean_box(0); } -if (lean_is_scalar(x_324)) { - x_325 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(1, 2, 0); } else { - x_325 = x_324; - lean_ctor_set_tag(x_325, 1); + x_327 = x_326; + lean_ctor_set_tag(x_327, 1); } -lean_ctor_set(x_325, 0, x_299); -lean_ctor_set(x_325, 1, x_323); -x_28 = x_325; +lean_ctor_set(x_327, 0, x_301); +lean_ctor_set(x_327, 1, x_325); +x_28 = x_327; goto block_40; } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_326 = lean_nat_sub(x_317, x_41); -lean_dec(x_317); -x_327 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_315, x_326); -lean_dec(x_326); -x_328 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_314, x_1, x_327); -if (lean_is_scalar(x_316)) { - x_329 = lean_alloc_ctor(0, 2, 1); +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +x_328 = lean_nat_sub(x_319, x_41); +lean_dec(x_319); +x_329 = l_Std_PersistentArray_get_x21___at_Lean_Elab_withInfoHole___spec__1(x_317, x_328); +lean_dec(x_328); +x_330 = l_Std_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(x_316, x_1, x_329); +if (lean_is_scalar(x_318)) { + x_331 = lean_alloc_ctor(0, 2, 1); } else { - x_329 = x_316; + x_331 = x_318; } -lean_ctor_set(x_329, 0, x_328); -lean_ctor_set(x_329, 1, x_256); -lean_ctor_set_uint8(x_329, sizeof(void*)*2, x_313); -if (lean_is_scalar(x_312)) { - x_330 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_331, 0, x_330); +lean_ctor_set(x_331, 1, x_258); +lean_ctor_set_uint8(x_331, sizeof(void*)*2, x_315); +if (lean_is_scalar(x_314)) { + x_332 = lean_alloc_ctor(0, 6, 0); } else { - x_330 = x_312; + x_332 = x_314; } -lean_ctor_set(x_330, 0, x_307); -lean_ctor_set(x_330, 1, x_308); -lean_ctor_set(x_330, 2, x_309); -lean_ctor_set(x_330, 3, x_310); -lean_ctor_set(x_330, 4, x_311); -lean_ctor_set(x_330, 5, x_329); -x_331 = lean_st_ref_set(x_4, x_330, x_306); -x_332 = lean_ctor_get(x_331, 1); -lean_inc(x_332); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - x_333 = x_331; +lean_ctor_set(x_332, 0, x_309); +lean_ctor_set(x_332, 1, x_310); +lean_ctor_set(x_332, 2, x_311); +lean_ctor_set(x_332, 3, x_312); +lean_ctor_set(x_332, 4, x_313); +lean_ctor_set(x_332, 5, x_331); +x_333 = lean_st_ref_set(x_4, x_332, x_308); +x_334 = lean_ctor_get(x_333, 1); +lean_inc(x_334); +if (lean_is_exclusive(x_333)) { + lean_ctor_release(x_333, 0); + lean_ctor_release(x_333, 1); + x_335 = x_333; } else { - lean_dec_ref(x_331); - x_333 = lean_box(0); + lean_dec_ref(x_333); + x_335 = lean_box(0); } -if (lean_is_scalar(x_333)) { - x_334 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_335)) { + x_336 = lean_alloc_ctor(1, 2, 0); } else { - x_334 = x_333; - lean_ctor_set_tag(x_334, 1); + x_336 = x_335; + lean_ctor_set_tag(x_336, 1); } -lean_ctor_set(x_334, 0, x_299); -lean_ctor_set(x_334, 1, x_332); -x_28 = x_334; +lean_ctor_set(x_336, 0, x_301); +lean_ctor_set(x_336, 1, x_334); +x_28 = x_336; goto block_40; } } @@ -11457,15 +11463,6 @@ lean_dec(x_1); return x_11; } } -lean_object* l_Lean_Elab_Term_runTactic___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_runTactic(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_Term_liftTacticElabM___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) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index a882520406..585f10dd1f 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -49,6 +49,7 @@ lean_object* l_Lean_Elab_Tactic_replaceMainGoal_match__1___rarg(lean_object*, le extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Lean_Elab_Tactic_evalIntros___closed__1; lean_object* l_Lean_LocalDecl_userName(lean_object*); +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__6; 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*); @@ -72,7 +73,6 @@ lean_object* l_Lean_Elab_Tactic_evalChoiceAux___boxed(lean_object*, lean_object* extern lean_object* l_Lean_Parser_Tactic_first___closed__2; 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_throwNoGoalsToBeSolved___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); @@ -105,6 +105,7 @@ lean_object* l_Lean_Elab_Tactic_focusAndDone(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing(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_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14(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_liftMacroM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1; 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; @@ -141,7 +142,6 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__9___b lean_object* l_Lean_Elab_Tactic_getFVarId_match__1(lean_object*); extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___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*); -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*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__4; 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*); @@ -307,13 +307,13 @@ lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f_ lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM; lean_object* l_Lean_Elab_Tactic_evalFirst___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_Syntax_isStrLit_x3f(lean_object*); +lean_object* l_Lean_Elab_Tactic_withTacticInfoContext(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSetOption___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* l_List_findM_x3f___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_findTag_x3f___spec__2(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_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_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5373____closed__1; lean_object* l_Lean_Elab_Tactic_TacticM_run(lean_object*); lean_object* l_List_foldl___at_Array_appendList___spec__1___rarg(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*); @@ -325,6 +325,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus___closed__1; lean_object* l_Lean_Elab_Tactic_mkTacticInfo___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_orElse___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_evalIntro_introStep_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___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_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9(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* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_intros___closed__2; @@ -339,6 +340,7 @@ lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___ 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_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_throwError___at_Lean_Elab_Tactic_evalOpen___spec__6___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_instOrElseTacticM___closed__1; @@ -352,7 +354,7 @@ lean_object* l_Lean_Elab_Tactic_getGoals___rarg___boxed(lean_object*, lean_objec lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14___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_evalDone(lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(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*); lean_object* l_Lean_Elab_Tactic_getMainTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); @@ -386,7 +388,7 @@ lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Tactic_saveTacticInfoForToken(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_15342____closed__14; lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux_match__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalCase___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_evalCase___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_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoice___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_closeMainGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -397,6 +399,7 @@ lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_expandTacticMacroFns_loop lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__1; lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27(lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalParen___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_assumption___closed__2; @@ -539,14 +542,13 @@ lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds_ lean_object* lean_environment_main_module(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__1; extern lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___rarg___lambda__1___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTacticAux___spec__8___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_Tactic_getMainGoal_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_1247____closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___closed__2; lean_object* l_List_rotateRight___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalCase___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* l_Lean_Elab_Tactic_evalCase___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_Tactic_liftMetaTactic___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_Term_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); @@ -581,6 +583,7 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__6___rarg(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_match___elambda__1___closed__1; +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___closed__2; 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*); @@ -632,7 +635,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21_ lean_object* l_Lean_Elab_Tactic_closeMainGoal(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_liftMacroM___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tryTactic___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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5373_(lean_object*); +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369_(lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withPPInaccessibleNames___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_throwNoGoalsToBeSolved___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -755,7 +758,6 @@ lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_ extern lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1___closed__1; lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSetOption___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_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_ScopedEnvExtension_getState___at_Lean_Elab_getMacros___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Elab_Tactic_evalTacticAux___spec__4___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*); @@ -2079,6 +2081,732 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_Tactic_mkTacticInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +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_9, x_14); +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_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_Elab_Tactic_getGoals___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_2); +lean_ctor_set(x_22, 2, x_3); +lean_ctor_set(x_22, 3, x_18); +lean_ctor_set(x_22, 4, x_21); +x_23 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_19, 0, x_23); +return x_19; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_19, 0); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_19); +x_26 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_26, 0, x_1); +lean_ctor_set(x_26, 1, x_2); +lean_ctor_set(x_26, 2, x_3); +lean_ctor_set(x_26, 3, x_18); +lean_ctor_set(x_26, 4, x_24); +x_27 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +} +lean_object* l_Lean_Elab_Tactic_mkTacticInfo___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_Tactic_mkTacticInfo(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___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___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; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_st_ref_get(x_1, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 5); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_get(x_5, x_11); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_st_ref_take(x_1, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 5); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_17, 5); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_18, 1); +lean_dec(x_23); +x_24 = l_Std_PersistentArray_empty___closed__1; +lean_ctor_set(x_18, 1, x_24); +x_25 = lean_st_ref_set(x_1, x_17, x_19); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_13); +return x_25; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_13); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +uint8_t 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; +x_30 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_31 = lean_ctor_get(x_18, 0); +lean_inc(x_31); +lean_dec(x_18); +x_32 = l_Std_PersistentArray_empty___closed__1; +x_33 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set_uint8(x_33, sizeof(void*)*2, x_30); +lean_ctor_set(x_17, 5, x_33); +x_34 = lean_st_ref_set(x_1, x_17, x_19); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +if (lean_is_scalar(x_36)) { + x_37 = lean_alloc_ctor(0, 2, 0); +} else { + x_37 = x_36; +} +lean_ctor_set(x_37, 0, x_13); +lean_ctor_set(x_37, 1, x_35); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t 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_50; lean_object* x_51; lean_object* x_52; +x_38 = lean_ctor_get(x_17, 0); +x_39 = lean_ctor_get(x_17, 1); +x_40 = lean_ctor_get(x_17, 2); +x_41 = lean_ctor_get(x_17, 3); +x_42 = lean_ctor_get(x_17, 4); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_17); +x_43 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_44 = lean_ctor_get(x_18, 0); +lean_inc(x_44); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_45 = x_18; +} else { + lean_dec_ref(x_18); + x_45 = lean_box(0); +} +x_46 = l_Std_PersistentArray_empty___closed__1; +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(0, 2, 1); +} else { + x_47 = x_45; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set_uint8(x_47, sizeof(void*)*2, x_43); +x_48 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_48, 0, x_38); +lean_ctor_set(x_48, 1, x_39); +lean_ctor_set(x_48, 2, x_40); +lean_ctor_set(x_48, 3, x_41); +lean_ctor_set(x_48, 4, x_42); +lean_ctor_set(x_48, 5, x_47); +x_49 = lean_st_ref_set(x_1, x_48, x_19); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_51 = x_49; +} else { + lean_dec_ref(x_49); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_13); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___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_withTacticInfoContext___spec__1___rarg___boxed), 6, 0); +return x_4; +} +} +lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___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; 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; uint8_t x_26; +x_12 = lean_st_ref_get(x_10, x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_get(x_8, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_Tactic_getGoals___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_st_ref_get(x_10, x_20); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_st_ref_get(x_6, x_22); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_24, 5); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_ctor_get_uint8(x_25, sizeof(void*)*2); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_1); +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); +lean_dec(x_23); +x_30 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1___rarg(x_6, x_7, x_8, x_9, x_10, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +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_33 = lean_apply_9(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); +if (lean_obj_tag(x_33) == 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; 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_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_st_ref_get(x_10, x_35); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_st_ref_get(x_6, x_37); +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_ctor_get(x_39, 5); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); +x_43 = l_Lean_Elab_Tactic_mkTacticInfo(x_17, x_19, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_42); +x_47 = lean_st_ref_get(x_10, x_45); +lean_dec(x_10); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_st_ref_take(x_6, x_48); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_50, 5); +lean_inc(x_51); +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_dec(x_49); +x_53 = !lean_is_exclusive(x_50); +if (x_53 == 0) +{ +lean_object* x_54; uint8_t x_55; +x_54 = lean_ctor_get(x_50, 5); +lean_dec(x_54); +x_55 = !lean_is_exclusive(x_51); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_56 = lean_ctor_get(x_51, 1); +lean_dec(x_56); +x_57 = l_Std_PersistentArray_push___rarg(x_31, x_46); +lean_ctor_set(x_51, 1, x_57); +x_58 = lean_st_ref_set(x_6, x_50, x_52); +lean_dec(x_6); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +lean_ctor_set(x_58, 0, x_34); +return x_58; +} +else +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_34); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +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; +x_63 = lean_ctor_get_uint8(x_51, sizeof(void*)*2); +x_64 = lean_ctor_get(x_51, 0); +lean_inc(x_64); +lean_dec(x_51); +x_65 = l_Std_PersistentArray_push___rarg(x_31, x_46); +x_66 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +lean_ctor_set_uint8(x_66, sizeof(void*)*2, x_63); +lean_ctor_set(x_50, 5, x_66); +x_67 = lean_st_ref_set(x_6, x_50, x_52); +lean_dec(x_6); +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); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 2, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_34); +lean_ctor_set(x_70, 1, x_68); +return x_70; +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t 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; +x_71 = lean_ctor_get(x_50, 0); +x_72 = lean_ctor_get(x_50, 1); +x_73 = lean_ctor_get(x_50, 2); +x_74 = lean_ctor_get(x_50, 3); +x_75 = lean_ctor_get(x_50, 4); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_50); +x_76 = lean_ctor_get_uint8(x_51, sizeof(void*)*2); +x_77 = lean_ctor_get(x_51, 0); +lean_inc(x_77); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_78 = x_51; +} else { + lean_dec_ref(x_51); + x_78 = lean_box(0); +} +x_79 = l_Std_PersistentArray_push___rarg(x_31, x_46); +if (lean_is_scalar(x_78)) { + x_80 = lean_alloc_ctor(0, 2, 1); +} else { + x_80 = x_78; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_79); +lean_ctor_set_uint8(x_80, sizeof(void*)*2, x_76); +x_81 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_81, 0, x_71); +lean_ctor_set(x_81, 1, x_72); +lean_ctor_set(x_81, 2, x_73); +lean_ctor_set(x_81, 3, x_74); +lean_ctor_set(x_81, 4, x_75); +lean_ctor_set(x_81, 5, x_80); +x_82 = lean_st_ref_set(x_6, x_81, x_52); +lean_dec(x_6); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_84 = x_82; +} else { + lean_dec_ref(x_82); + x_84 = lean_box(0); +} +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_84; +} +lean_ctor_set(x_85, 0, x_34); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_86 = lean_ctor_get(x_33, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_33, 1); +lean_inc(x_87); +lean_dec(x_33); +x_88 = lean_st_ref_get(x_10, x_87); +x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_89); +lean_dec(x_88); +x_90 = lean_st_ref_get(x_6, x_89); +x_91 = lean_ctor_get(x_90, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_93 = lean_ctor_get(x_91, 5); +lean_inc(x_93); +lean_dec(x_91); +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +lean_dec(x_93); +x_95 = l_Lean_Elab_Tactic_mkTacticInfo(x_17, x_19, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_92); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_94); +x_99 = lean_st_ref_get(x_10, x_97); +lean_dec(x_10); +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = lean_st_ref_take(x_6, x_100); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_102, 5); +lean_inc(x_103); +x_104 = lean_ctor_get(x_101, 1); +lean_inc(x_104); +lean_dec(x_101); +x_105 = !lean_is_exclusive(x_102); +if (x_105 == 0) +{ +lean_object* x_106; uint8_t x_107; +x_106 = lean_ctor_get(x_102, 5); +lean_dec(x_106); +x_107 = !lean_is_exclusive(x_103); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_108 = lean_ctor_get(x_103, 1); +lean_dec(x_108); +x_109 = l_Std_PersistentArray_push___rarg(x_31, x_98); +lean_ctor_set(x_103, 1, x_109); +x_110 = lean_st_ref_set(x_6, x_102, x_104); +lean_dec(x_6); +x_111 = !lean_is_exclusive(x_110); +if (x_111 == 0) +{ +lean_object* x_112; +x_112 = lean_ctor_get(x_110, 0); +lean_dec(x_112); +lean_ctor_set_tag(x_110, 1); +lean_ctor_set(x_110, 0, x_86); +return x_110; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_110, 1); +lean_inc(x_113); +lean_dec(x_110); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_86); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} +} +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; +x_115 = lean_ctor_get_uint8(x_103, sizeof(void*)*2); +x_116 = lean_ctor_get(x_103, 0); +lean_inc(x_116); +lean_dec(x_103); +x_117 = l_Std_PersistentArray_push___rarg(x_31, x_98); +x_118 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set_uint8(x_118, sizeof(void*)*2, x_115); +lean_ctor_set(x_102, 5, x_118); +x_119 = lean_st_ref_set(x_6, x_102, x_104); +lean_dec(x_6); +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); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; + lean_ctor_set_tag(x_122, 1); +} +lean_ctor_set(x_122, 0, x_86); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_123 = lean_ctor_get(x_102, 0); +x_124 = lean_ctor_get(x_102, 1); +x_125 = lean_ctor_get(x_102, 2); +x_126 = lean_ctor_get(x_102, 3); +x_127 = lean_ctor_get(x_102, 4); +lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); +lean_inc(x_124); +lean_inc(x_123); +lean_dec(x_102); +x_128 = lean_ctor_get_uint8(x_103, sizeof(void*)*2); +x_129 = lean_ctor_get(x_103, 0); +lean_inc(x_129); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_130 = x_103; +} else { + lean_dec_ref(x_103); + x_130 = lean_box(0); +} +x_131 = l_Std_PersistentArray_push___rarg(x_31, x_98); +if (lean_is_scalar(x_130)) { + x_132 = lean_alloc_ctor(0, 2, 1); +} else { + x_132 = x_130; +} +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_131); +lean_ctor_set_uint8(x_132, sizeof(void*)*2, x_128); +x_133 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_133, 0, x_123); +lean_ctor_set(x_133, 1, x_124); +lean_ctor_set(x_133, 2, x_125); +lean_ctor_set(x_133, 3, x_126); +lean_ctor_set(x_133, 4, x_127); +lean_ctor_set(x_133, 5, x_132); +x_134 = lean_st_ref_set(x_6, x_133, x_104); +lean_dec(x_6); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_136 = x_134; +} else { + lean_dec_ref(x_134); + x_136 = lean_box(0); +} +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(1, 2, 0); +} else { + x_137 = x_136; + lean_ctor_set_tag(x_137, 1); +} +lean_ctor_set(x_137, 0, x_86); +lean_ctor_set(x_137, 1, x_135); +return x_137; +} +} +} +} +} +lean_object* l_Lean_Elab_Tactic_withTacticInfoContext(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___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_withTacticInfoContext___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); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___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_withTacticInfoContext___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_Tactic_expandTacticMacroFns_loop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2175,79 +2903,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTacticAux_match__2___rar return x_2; } } -lean_object* l_Lean_Elab_Tactic_mkTacticInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -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_9, x_14); -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_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Lean_Elab_Tactic_getGoals___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_22, 0, x_1); -lean_ctor_set(x_22, 1, x_2); -lean_ctor_set(x_22, 2, x_3); -lean_ctor_set(x_22, 3, x_18); -lean_ctor_set(x_22, 4, x_21); -x_23 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_19, 0, x_23); -return x_19; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_19, 0); -x_25 = lean_ctor_get(x_19, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_19); -x_26 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_26, 0, x_1); -lean_ctor_set(x_26, 1, x_2); -lean_ctor_set(x_26, 2, x_3); -lean_ctor_set(x_26, 3, x_18); -lean_ctor_set(x_26, 4, x_24); -x_27 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_25); -return x_28; -} -} -} -lean_object* l_Lean_Elab_Tactic_mkTacticInfo___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_Tactic_mkTacticInfo(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___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -3107,179 +3762,6 @@ return x_53; } } } -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; -x_7 = lean_st_ref_get(x_5, x_6); -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_st_ref_get(x_1, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 5); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_st_ref_get(x_5, x_11); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_st_ref_take(x_1, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 5); -lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_17, 5); -lean_dec(x_21); -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_23 = lean_ctor_get(x_18, 1); -lean_dec(x_23); -x_24 = l_Std_PersistentArray_empty___closed__1; -lean_ctor_set(x_18, 1, x_24); -x_25 = lean_st_ref_set(x_1, x_17, x_19); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_13); -return x_25; -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_13); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -else -{ -uint8_t 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; -x_30 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); -x_31 = lean_ctor_get(x_18, 0); -lean_inc(x_31); -lean_dec(x_18); -x_32 = l_Std_PersistentArray_empty___closed__1; -x_33 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set_uint8(x_33, sizeof(void*)*2, x_30); -lean_ctor_set(x_17, 5, x_33); -x_34 = lean_st_ref_set(x_1, x_17, x_19); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_36 = x_34; -} else { - lean_dec_ref(x_34); - x_36 = lean_box(0); -} -if (lean_is_scalar(x_36)) { - x_37 = lean_alloc_ctor(0, 2, 0); -} else { - x_37 = x_36; -} -lean_ctor_set(x_37, 0, x_13); -lean_ctor_set(x_37, 1, x_35); -return x_37; -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t 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_50; lean_object* x_51; lean_object* x_52; -x_38 = lean_ctor_get(x_17, 0); -x_39 = lean_ctor_get(x_17, 1); -x_40 = lean_ctor_get(x_17, 2); -x_41 = lean_ctor_get(x_17, 3); -x_42 = lean_ctor_get(x_17, 4); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_17); -x_43 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); -x_44 = lean_ctor_get(x_18, 0); -lean_inc(x_44); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - x_45 = x_18; -} else { - lean_dec_ref(x_18); - x_45 = lean_box(0); -} -x_46 = l_Std_PersistentArray_empty___closed__1; -if (lean_is_scalar(x_45)) { - x_47 = lean_alloc_ctor(0, 2, 1); -} else { - x_47 = x_45; -} -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_46); -lean_ctor_set_uint8(x_47, sizeof(void*)*2, x_43); -x_48 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_48, 0, x_38); -lean_ctor_set(x_48, 1, x_39); -lean_ctor_set(x_48, 2, x_40); -lean_ctor_set(x_48, 3, x_41); -lean_ctor_set(x_48, 4, x_42); -lean_ctor_set(x_48, 5, x_47); -x_49 = lean_st_ref_set(x_1, x_48, x_19); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_51 = x_49; -} else { - lean_dec_ref(x_49); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(0, 2, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_13); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -} -} -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__1___rarg___boxed), 6, 0); -return x_4; -} -} 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: { @@ -3332,7 +3814,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean 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_29 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___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); @@ -5799,30 +6281,6 @@ lean_dec(x_3); return x_13; } } -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__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); -lean_dec(x_2); -lean_dec(x_1); -return x_7; -} -} -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__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_ScopedEnvExtension_getState___at_Lean_Elab_Tactic_evalTacticAux___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -6018,7 +6476,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean x_36 = lean_ctor_get(x_26, 1); lean_inc(x_36); lean_dec(x_26); -x_37 = 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_36); +x_37 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1___rarg(x_5, x_6, x_7, x_8, x_9, x_36); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); @@ -6249,7 +6707,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean 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_22 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___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); @@ -6763,7 +7221,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean 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_22 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___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); @@ -10907,7 +11365,7 @@ return x_14; } else { -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_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_15 = lean_ctor_get(x_11, 1); lean_inc(x_15); lean_dec(x_11); @@ -10916,14 +11374,12 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_12, 1); lean_inc(x_17); lean_dec(x_12); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); -lean_closure_set(x_18, 0, x_1); -x_19 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); -x_20 = lean_ctor_get(x_19, 0); +x_18 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); +lean_dec(x_18); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -10932,10 +11388,10 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_22 = l_Lean_Elab_Tactic_focusAndDone___rarg(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21); -if (lean_obj_tag(x_22) == 0) +x_21 = l_Lean_Elab_Tactic_focusAndDone___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_dec(x_20); +lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_dec(x_9); @@ -10946,39 +11402,39 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_22; +return x_21; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_22, 0); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_Elab_Tactic_SavedState_restore(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_24); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); -if (lean_obj_tag(x_27) == 0) +lean_dec(x_21); +x_24 = l_Lean_Elab_Tactic_SavedState_restore(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_29 = l_Lean_Elab_Tactic_admitGoal(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_28); -if (lean_obj_tag(x_29) == 0) +x_28 = l_Lean_Elab_Tactic_admitGoal(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = l_Lean_Elab_Tactic_setGoals(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l_Lean_Elab_Tactic_setGoals(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10987,11 +11443,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_31; +return x_30; } else { -uint8_t x_32; +uint8_t x_31; lean_dec(x_17); lean_dec(x_9); lean_dec(x_8); @@ -11001,29 +11457,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_32 = !lean_is_exclusive(x_29); -if (x_32 == 0) +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) { -return x_29; +return x_28; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_29, 0); -x_34 = lean_ctor_get(x_29, 1); -lean_inc(x_34); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); lean_inc(x_33); -lean_dec(x_29); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; +lean_inc(x_32); +lean_dec(x_28); +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 { -uint8_t x_36; +uint8_t x_35; lean_dec(x_17); lean_dec(x_16); lean_dec(x_9); @@ -11034,23 +11490,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_36 = !lean_is_exclusive(x_27); -if (x_36 == 0) +x_35 = !lean_is_exclusive(x_26); +if (x_35 == 0) { -return x_27; +return x_26; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_27, 0); -x_38 = lean_ctor_get(x_27, 1); -lean_inc(x_38); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_26, 0); +x_37 = lean_ctor_get(x_26, 1); lean_inc(x_37); -lean_dec(x_27); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; +lean_inc(x_36); +lean_dec(x_26); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } @@ -11422,7 +11878,7 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_inc(x_10); lean_inc(x_2); -x_16 = l_Lean_Name_appendIndexAfter(x_2, x_10); +x_16 = lean_name_append_index_after(x_2, x_10); x_17 = l_Lean_Name_append(x_1, x_16); x_18 = l_Lean_MetavarContext_renameMVar(x_9, x_6, x_17); x_19 = lean_box(0); @@ -11512,7 +11968,7 @@ if (x_37 == 0) lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_inc(x_31); lean_inc(x_2); -x_38 = l_Lean_Name_appendIndexAfter(x_2, x_31); +x_38 = lean_name_append_index_after(x_2, x_31); x_39 = l_Lean_Name_append(x_1, x_38); x_40 = l_Lean_MetavarContext_renameMVar(x_30, x_6, x_39); x_41 = lean_box(0); @@ -24212,38 +24668,44 @@ return x_133; } } } -lean_object* l_Lean_Elab_Tactic_evalCase___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Elab_Tactic_evalCase___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = lean_box(0); -lean_inc(x_4); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_4); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Elab_Tactic_setGoals(x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -lean_inc(x_4); -x_19 = l_Lean_Meta_getMVarTag(x_4, x_10, x_11, x_12, x_13, x_18); -if (lean_obj_tag(x_19) == 0) +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_box(0); +lean_inc(x_5); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_5); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_Elab_Tactic_setGoals(x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +lean_inc(x_5); +x_20 = l_Lean_Meta_getMVarTag(x_5, x_11, x_12, x_13, x_14, x_19); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +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; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_box(0); -lean_inc(x_4); -x_23 = l_Lean_Meta_setMVarTag(x_4, x_22, x_10, x_11, x_12, x_13, x_21); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_box(0); +lean_inc(x_5); +x_24 = l_Lean_Meta_setMVarTag(x_5, x_23, x_11, x_12, x_13, x_14, x_22); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); lean_inc(x_1); -x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); -lean_closure_set(x_25, 0, x_1); +x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); +lean_closure_set(x_26, 0, x_1); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_27, 0, x_2); +lean_closure_set(x_27, 1, x_26); +x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_closeUsingOrAdmit), 10, 1); +lean_closure_set(x_28, 0, x_27); +lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -24251,116 +24713,116 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); -x_26 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__2(x_2, x_1, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_24); -if (lean_obj_tag(x_26) == 0) +x_29 = l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__2(x_3, x_1, x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_25); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = l_Lean_Meta_setMVarTag(x_4, x_20, x_10, x_11, x_12, x_13, x_27); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = l_Lean_Meta_setMVarTag(x_5, x_21, x_11, x_12, x_13, x_14, x_30); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_10); -x_30 = l_Lean_Elab_Tactic_done(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_29); -if (lean_obj_tag(x_30) == 0) +x_33 = l_Lean_Elab_Tactic_done(x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_32); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = l_Lean_Elab_Tactic_setGoals(x_3, x_6, x_7, 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); -lean_dec(x_7); -lean_dec(x_6); -return x_32; -} -else -{ -uint8_t x_33; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -x_33 = !lean_is_exclusive(x_30); -if (x_33 == 0) -{ -return x_30; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_30, 0); -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); -lean_dec(x_30); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -x_37 = lean_ctor_get(x_26, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_26, 1); -lean_inc(x_38); -lean_dec(x_26); -x_39 = l_Lean_Meta_setMVarTag(x_4, x_20, x_10, x_11, x_12, x_13, x_38); +lean_dec(x_33); +x_35 = l_Lean_Elab_Tactic_setGoals(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_34); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_35; +} +else { -lean_object* x_41; -x_41 = lean_ctor_get(x_39, 0); -lean_dec(x_41); -lean_ctor_set_tag(x_39, 1); +uint8_t x_36; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +x_36 = !lean_is_exclusive(x_33); +if (x_36 == 0) +{ +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_33, 0); +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_33); +x_39 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); return x_39; } +} +} else { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_37); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +x_40 = lean_ctor_get(x_29, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_29, 1); +lean_inc(x_41); +lean_dec(x_29); +x_42 = l_Lean_Meta_setMVarTag(x_5, x_21, x_11, x_12, x_13, x_14, x_41); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +lean_ctor_set_tag(x_42, 1); +lean_ctor_set(x_42, 0, x_40); +return x_42; +} +else +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_dec(x_42); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_40); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } else { -uint8_t x_44; +uint8_t x_47; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -24368,28 +24830,28 @@ 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); lean_dec(x_1); -x_44 = !lean_is_exclusive(x_19); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_20); +if (x_47 == 0) { -return x_19; +return x_20; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_19, 0); -x_46 = lean_ctor_get(x_19, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_19); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_20, 0); +x_49 = lean_ctor_get(x_20, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_20); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } @@ -24492,7 +24954,6 @@ x_18 = lean_unsigned_to_nat(3u); x_19 = l_Lean_Syntax_getArg(x_1, x_18); x_20 = lean_unsigned_to_nat(4u); x_21 = l_Lean_Syntax_getArg(x_1, x_20); -lean_dec(x_1); x_22 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18113____closed__3; lean_inc(x_21); x_23 = l_Lean_Syntax_isOfKind(x_21, x_22); @@ -24511,6 +24972,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_24 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1___rarg(x_10); return x_24; } @@ -24542,6 +25004,7 @@ lean_dec(x_28); lean_dec(x_25); lean_dec(x_21); lean_dec(x_19); +lean_dec(x_1); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); @@ -24569,11 +25032,13 @@ lean_dec(x_31); x_37 = l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(x_28, x_36); lean_inc(x_37); lean_inc(x_19); +lean_inc(x_1); lean_inc(x_21); -x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCase___lambda__1___boxed), 14, 3); +x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCase___lambda__1___boxed), 15, 4); lean_closure_set(x_38, 0, x_21); -lean_closure_set(x_38, 1, x_19); -lean_closure_set(x_38, 2, x_37); +lean_closure_set(x_38, 1, x_1); +lean_closure_set(x_38, 2, x_19); +lean_closure_set(x_38, 3, x_37); x_39 = l_Array_isEmpty___rarg(x_25); if (x_39 == 0) { @@ -24581,6 +25046,7 @@ lean_object* x_40; lean_dec(x_37); lean_dec(x_21); lean_dec(x_19); +lean_dec(x_1); lean_inc(x_36); x_40 = l_Lean_Meta_getMVarDecl(x_36, x_6, x_7, x_8, x_9, x_35); if (lean_obj_tag(x_40) == 0) @@ -24728,7 +25194,7 @@ lean_object* x_70; lean_object* x_71; lean_dec(x_38); lean_dec(x_25); x_70 = lean_box(0); -x_71 = l_Lean_Elab_Tactic_evalCase___lambda__1(x_21, x_19, x_37, x_36, x_70, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +x_71 = l_Lean_Elab_Tactic_evalCase___lambda__1(x_21, x_1, x_19, x_37, x_36, x_70, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_35); return x_71; } } @@ -24748,6 +25214,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_72 = !lean_is_exclusive(x_30); if (x_72 == 0) { @@ -24807,13 +25274,13 @@ lean_dec(x_1); return x_15; } } -lean_object* l_Lean_Elab_Tactic_evalCase___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Elab_Tactic_evalCase___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_15; -x_15 = l_Lean_Elab_Tactic_evalCase___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_5); -return x_15; +lean_object* x_16; +x_16 = l_Lean_Elab_Tactic_evalCase___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_6); +return x_16; } } lean_object* l_Lean_Elab_Tactic_evalCase___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { @@ -25058,7 +25525,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_5373____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -25068,11 +25535,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_5373_(lean_object* x_1) { +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369_(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_5373____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -25559,9 +26026,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_5373____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5373____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5373____closed__1); -res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5373_(lean_io_mk_world()); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1); +res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369_(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/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index 0dd554bd51..f390229262 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -28,7 +28,7 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_ lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__1; -lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152_(lean_object*); +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157_(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,8 +61,8 @@ lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__1(lean_object*, lean_obj lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__2(size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152____closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1(lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157____closed__1; extern lean_object* l_Lean_Parser_Tactic_induction___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfOptInductionAlts(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getBindingName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -91,6 +91,7 @@ extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; lean_object* l_List_forM___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__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_name_eq(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___spec__1___lambda__2___closed__4; +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_Tactic_ElimApp_evalAlts_match__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__2___closed__8; lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -166,7 +167,6 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTagg lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltRHS___boxed(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_checkAltNames___spec__3___lambda__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, 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_ElimApp_getArgExpectedType___boxed(lean_object*); -lean_object* l_List_foldlM___at_Lean_Elab_Tactic_ElimApp_evalAlts___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* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__1; @@ -200,9 +200,10 @@ lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean 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*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___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_throwError___at_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___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_evalAlt___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_evalAlt___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* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__1___boxed(lean_object**); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___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_withTacticInfoContext___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_Lean_Elab_Tactic_ElimApp_evalAlts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(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_getAltDArrow___boxed(lean_object*); @@ -359,7 +360,6 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generali lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfInductionAlts___boxed(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l_Lean_Elab_Tactic_evalAlt___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_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Tactic_Intro_0__Lean_Meta_introNImp_loop___rarg___closed__3; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalCases___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*); @@ -459,7 +459,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_ lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSetOption___spec__7(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_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*, lean_object*, 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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); lean_object* l_Lean_Elab_Tactic_elabTargets___boxed__const__1; lean_object* l_Lean_Elab_Tactic_evalCases___lambda__3___boxed__const__1; @@ -781,56 +781,61 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withMVarContext___at_Lean_Elab_Tact return x_2; } } -lean_object* l_Lean_Elab_Tactic_evalAlt___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_Lean_Elab_Tactic_evalAlt___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; -x_13 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_1, 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; +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 10, 1); +lean_closure_set(x_14, 0, x_1); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withTacticInfoContext___rarg), 11, 2); +lean_closure_set(x_15, 0, x_2); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Elab_Tactic_closeUsingOrAdmit(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_16) == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_15; -x_15 = lean_ctor_get(x_13, 0); -lean_dec(x_15); -lean_ctor_set(x_13, 0, x_2); -return x_13; +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_3); +return x_16; } else { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -lean_dec(x_2); -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) -{ -return x_13; -} -else -{ -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_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); -lean_dec(x_13); -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_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_3); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +lean_dec(x_3); +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) +{ +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } } @@ -1279,9 +1284,10 @@ lean_ctor_set(x_19, 1, x_18); x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_setGoals___boxed), 10, 1); lean_closure_set(x_20, 0, x_19); lean_inc(x_14); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__1___boxed), 12, 2); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__1___boxed), 13, 3); lean_closure_set(x_21, 0, x_14); -lean_closure_set(x_21, 1, x_3); +lean_closure_set(x_21, 1, x_2); +lean_closure_set(x_21, 2, x_3); x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2); lean_closure_set(x_22, 0, x_20); lean_closure_set(x_22, 1, x_21); @@ -1291,6 +1297,7 @@ return x_23; else { 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_dec(x_2); lean_inc(x_1); lean_inc(x_14); x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAlt___lambda__3___boxed), 12, 2); @@ -1313,13 +1320,13 @@ return x_30; } } } -lean_object* l_Lean_Elab_Tactic_evalAlt___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_Lean_Elab_Tactic_evalAlt___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; -x_13 = l_Lean_Elab_Tactic_evalAlt___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_3); -return x_13; +lean_object* x_14; +x_14 = l_Lean_Elab_Tactic_evalAlt___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); +lean_dec(x_4); +return x_14; } } lean_object* l_Lean_Elab_Tactic_evalAlt___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) { @@ -1366,15 +1373,6 @@ lean_dec(x_2); return x_12; } } -lean_object* l_Lean_Elab_Tactic_evalAlt___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_Tactic_evalAlt(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_2); -return x_13; -} -} static lean_object* _init_l_Lean_Elab_Tactic_ElimApp_State_argPos___default() { _start: { @@ -4476,6 +4474,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_3); @@ -4500,6 +4499,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); +lean_inc(x_2); x_17 = l_Lean_Elab_Tactic_evalAlt(x_15, x_2, x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_17) == 0) { @@ -4526,6 +4526,7 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); x_21 = !lean_is_exclusive(x_17); if (x_21 == 0) @@ -4638,6 +4639,7 @@ lean_inc(x_31); if (lean_obj_tag(x_31) == 0) { 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_dec(x_10); lean_dec(x_9); lean_dec(x_6); x_32 = lean_ctor_get(x_30, 1); @@ -4741,6 +4743,7 @@ 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_dec(x_55); +lean_dec(x_10); lean_dec(x_9); x_59 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_59, 0, x_5); @@ -4775,6 +4778,7 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); x_65 = !lean_is_exclusive(x_54); @@ -4808,6 +4812,7 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); x_69 = !lean_is_exclusive(x_51); @@ -4841,6 +4846,7 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); x_73 = !lean_is_exclusive(x_44); @@ -4875,6 +4881,7 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); @@ -4909,6 +4916,7 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); @@ -5665,6 +5673,8 @@ else { lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; uint8_t x_167; x_163 = lean_ctor_get(x_12, 0); +lean_inc(x_163); +lean_dec(x_12); x_164 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltVarNames(x_163); x_165 = lean_array_get_size(x_164); x_166 = lean_nat_dec_lt(x_2, x_165); @@ -6295,7 +6305,6 @@ lean_inc(x_11); lean_inc(x_5); lean_inc(x_4); x_62 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__2(x_24, x_30, x_4, x_5, x_6, x_2, x_3, x_23, x_25, x_27, x_61, x_37, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_31); -lean_dec(x_37); if (lean_obj_tag(x_62) == 0) { lean_object* x_63; @@ -6414,7 +6423,6 @@ lean_inc(x_11); lean_inc(x_5); lean_inc(x_4); x_84 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__2(x_24, x_30, x_4, x_5, x_6, x_2, x_3, x_23, x_25, x_27, x_83, x_82, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_31); -lean_dec(x_82); if (lean_obj_tag(x_84) == 0) { lean_object* x_85; @@ -6536,7 +6544,6 @@ lean_inc(x_11); lean_inc(x_5); lean_inc(x_4); x_105 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__2(x_24, x_30, x_4, x_5, x_6, x_2, x_3, x_23, x_25, x_103, x_104, x_35, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_31); -lean_dec(x_35); if (lean_obj_tag(x_105) == 0) { lean_object* x_106; @@ -6657,7 +6664,6 @@ lean_inc(x_11); lean_inc(x_5); lean_inc(x_4); x_128 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__2(x_24, x_30, x_4, x_5, x_6, x_2, x_3, x_23, x_25, x_125, x_127, x_126, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_31); -lean_dec(x_126); if (lean_obj_tag(x_128) == 0) { lean_object* x_129; @@ -7168,15 +7174,6 @@ lean_dec(x_2); return x_11; } } -lean_object* l_List_foldlM___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_List_foldlM___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__4(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_2); -return x_14; -} -} lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; @@ -7203,7 +7200,6 @@ _start: lean_object* x_21; x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); lean_dec(x_11); -lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); return x_21; @@ -7237,7 +7233,6 @@ uint8_t x_22; lean_object* x_23; x_22 = lean_unbox(x_11); lean_dec(x_11); x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); -lean_dec(x_12); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -12533,7 +12528,7 @@ x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabTargets___spec__1(x_13, return x_15; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -12543,11 +12538,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_Induction___hyg_4152_(lean_object* x_1) { +lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -13519,9 +13514,9 @@ l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTaggedTerm___lamb lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTaggedTerm___lambda__1___closed__2); l_Lean_Elab_Tactic_elabTargets___boxed__const__1 = _init_l_Lean_Elab_Tactic_elabTargets___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabTargets___boxed__const__1); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152____closed__1); -res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4152_(lean_io_mk_world()); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157____closed__1); +res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_4157_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Tactic_evalCases___lambda__3___boxed__const__1 = _init_l_Lean_Elab_Tactic_evalCases___lambda__3___boxed__const__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Match.c b/stage0/stdlib/Lean/Elab/Tactic/Match.c index 8045b482c9..72b9521fe5 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Match.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Match.c @@ -90,7 +90,7 @@ lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lea lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Match_0__Lean_Elab_Tactic_mkAuxiliaryMatchTermAux___spec__2___closed__3; lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalEraseAuxDiscrs___spec__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_object* l_Lean_Syntax_setKind(lean_object*, lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalEraseAuxDiscrs___closed__1; extern lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_Tactic_evalEraseAuxDiscrs___spec__4(lean_object*, lean_object*); @@ -1597,7 +1597,7 @@ x_319 = lean_ctor_get(x_6, 0); lean_inc(x_319); lean_dec(x_6); x_320 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_9329____closed__1; -x_321 = l_Lean_Name_appendIndexAfter(x_320, x_319); +x_321 = lean_name_append_index_after(x_320, x_319); x_322 = l_Lean_Name_append(x_1, x_321); x_323 = l_Lean_mkIdentFrom(x_30, x_322); lean_dec(x_30); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c index ba0bba9f72..174b0e46db 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c @@ -18,13 +18,14 @@ size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Elab_Tactic_rewriteAll___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_expandRewriteTactic___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_rewriteAll___spec__1(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewrite(lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Tactic_rewriteTarget___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__1; -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1(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_Rewrite_0__Lean_Elab_Tactic_expand___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_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___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(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_Array_empty___closed__1; @@ -43,10 +44,10 @@ lean_object* l_Lean_Elab_Tactic_rewriteTarget___boxed(lean_object*, lean_object* lean_object* l_Lean_Meta_replaceLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteTarget(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetEq(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_Rewrite_0__Lean_Elab_Tactic_expand___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___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_Tactic_rewriteAll___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*); @@ -56,16 +57,17 @@ extern lean_object* l_Lean_Parser_Tactic_erewrite___closed__2; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___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_Tactic_getMainTarget(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_Rewrite_0__Lean_Elab_Tactic_expand___spec__1___boxed(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_Rewrite_0__Lean_Elab_Tactic_expand___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_evalRewrite___closed__1; lean_object* l_Lean_Elab_Tactic_rewriteAll___lambda__1___closed__3; 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*); extern lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_sortFVarIds___closed__1; -lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(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*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDeclFVarId___lambda__1(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* 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_Lean_Syntax_copyHeadTailInfoFrom(lean_object*, lean_object*); lean_object* l_Lean_Meta_rewrite(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -80,28 +82,26 @@ lean_object* l_Lean_Elab_Tactic_expandERewriteTactic(lean_object*, lean_object*, extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalRewriteCore___spec__1(uint8_t, lean_object*, uint8_t, 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_LocalDecl_fvarId(lean_object*); -lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_expandRewriteTactic___closed__1; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(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(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_getSepArgs(lean_object*); +extern lean_object* l_Lean_Syntax_mkApp___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandERewriteTactic___closed__1; extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, 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_Lean_Syntax_getArgs(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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_getFVarIds(lean_object*); lean_object* l_Lean_Meta_getLocalDeclFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___boxed(lean_object*, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewrite___closed__1; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Tactic_tryTactic___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Tactic_rewrite___closed__3; -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalERewrite(lean_object*); lean_object* l_Lean_Elab_Tactic_replaceMainGoal(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*); @@ -115,174 +115,216 @@ lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__2___boxed(lean_object extern lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__2; lean_object* l_Lean_Elab_Tactic_expandRewriteTactic(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___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* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___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_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; -x_7 = l_Lean_mkAtomFrom(x_6, x_1); -x_8 = l_Lean_Syntax_mkAntiquotNode___closed__9; -x_9 = lean_array_push(x_8, x_7); -x_10 = lean_array_push(x_9, x_2); -x_11 = lean_array_push(x_10, x_3); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_4); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_array_push(x_5, x_12); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; -} -} -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_6, 1); -x_11 = lean_nat_dec_le(x_10, x_8); -if (x_11 == 0) -{ lean_object* x_12; uint8_t x_13; -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_nat_dec_eq(x_7, x_12); +x_12 = lean_ctor_get(x_8, 1); +x_13 = lean_nat_dec_le(x_12, x_10); if (x_13 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_14 = lean_unsigned_to_nat(1u); -x_15 = lean_nat_sub(x_7, x_14); -lean_dec(x_7); -x_16 = l_Lean_instInhabitedSyntax; -x_17 = lean_array_get(x_16, x_4, x_8); -x_18 = lean_nat_dec_eq(x_8, x_12); -if (x_18 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_9, x_14); +if (x_15 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -lean_inc(x_1); -lean_inc(x_5); -lean_inc(x_17); -lean_inc(x_2); -x_19 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1___lambda__1(x_2, x_17, x_5, x_1, x_9, x_17); -lean_dec(x_17); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); +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; uint8_t x_23; lean_object* 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; +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_9, x_16); +lean_dec(x_9); +x_18 = lean_unsigned_to_nat(2u); +x_19 = lean_nat_mul(x_10, x_18); +x_20 = l_Lean_instInhabitedSyntax; +x_21 = lean_array_get(x_20, x_4, x_19); +x_22 = lean_nat_add(x_19, x_16); lean_dec(x_19); -x_21 = lean_ctor_get(x_6, 2); -x_22 = lean_nat_add(x_8, x_21); -lean_dec(x_8); -x_7 = x_15; -x_8 = x_22; -x_9 = x_20; -goto _start; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_inc(x_1); -lean_inc(x_5); -lean_inc(x_2); -x_24 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1___lambda__1(x_2, x_17, x_5, x_1, x_9, x_3); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); +x_23 = lean_nat_dec_lt(x_22, x_6); +x_24 = lean_nat_sub(x_7, x_16); +x_25 = lean_nat_dec_eq(x_10, x_24); lean_dec(x_24); -x_26 = lean_ctor_get(x_6, 2); -x_27 = lean_nat_add(x_8, x_26); -lean_dec(x_8); -x_7 = x_15; -x_8 = x_27; -x_9 = x_25; +x_26 = l_Lean_Syntax_mkAntiquotNode___closed__9; +lean_inc(x_3); +x_27 = lean_array_push(x_26, x_3); +lean_inc(x_21); +x_28 = lean_array_push(x_27, x_21); +lean_inc(x_5); +x_29 = lean_array_push(x_28, x_5); +lean_inc(x_1); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_29); +if (x_23 == 0) +{ +lean_dec(x_22); +if (x_25 == 0) +{ +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; lean_object* x_39; lean_object* x_40; +x_31 = l_Lean_Syntax_mkApp___closed__1; +x_32 = lean_array_push(x_31, x_21); +x_33 = lean_box(0); +x_34 = lean_array_push(x_32, x_33); +x_35 = l_Lean_nullKind; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l_Lean_Syntax_copyHeadTailInfoFrom(x_30, x_36); +lean_dec(x_36); +x_38 = lean_array_push(x_11, x_37); +x_39 = lean_ctor_get(x_8, 2); +x_40 = lean_nat_add(x_10, x_39); +lean_dec(x_10); +x_9 = x_17; +x_10 = x_40; +x_11 = x_38; +goto _start; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_21); +x_42 = l_Lean_Syntax_copyHeadTailInfoFrom(x_30, x_2); +x_43 = lean_array_push(x_11, x_42); +x_44 = lean_ctor_get(x_8, 2); +x_45 = lean_nat_add(x_10, x_44); +lean_dec(x_10); +x_9 = x_17; +x_10 = x_45; +x_11 = x_43; goto _start; } } else { -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_9; +if (x_25 == 0) +{ +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; lean_object* x_56; +x_47 = lean_array_fget(x_4, x_22); +lean_dec(x_22); +x_48 = l_Lean_Syntax_mkApp___closed__1; +x_49 = lean_array_push(x_48, x_21); +x_50 = lean_array_push(x_49, x_47); +x_51 = l_Lean_nullKind; +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_Lean_Syntax_copyHeadTailInfoFrom(x_30, x_52); +lean_dec(x_52); +x_54 = lean_array_push(x_11, x_53); +x_55 = lean_ctor_get(x_8, 2); +x_56 = lean_nat_add(x_10, x_55); +lean_dec(x_10); +x_9 = x_17; +x_10 = x_56; +x_11 = x_54; +goto _start; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_22); +lean_dec(x_21); +x_58 = l_Lean_Syntax_copyHeadTailInfoFrom(x_30, x_2); +x_59 = lean_array_push(x_11, x_58); +x_60 = lean_ctor_get(x_8, 2); +x_61 = lean_nat_add(x_10, x_60); +lean_dec(x_10); +x_9 = x_17; +x_10 = x_61; +x_11 = x_59; +goto _start; +} } } else { +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_11; +} +} +else +{ +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_11; +} +} +} +lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 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; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Lean_Syntax_getArg(x_2, x_3); +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_2, x_5); +x_7 = l_Lean_Syntax_getArg(x_6, x_5); +lean_dec(x_6); +x_8 = l_Lean_Syntax_getArgs(x_7); +lean_dec(x_7); +x_9 = lean_unsigned_to_nat(2u); +x_10 = l_Lean_Syntax_getArg(x_2, x_9); +x_11 = lean_array_get_size(x_8); +x_12 = lean_nat_add(x_11, x_5); +x_13 = lean_nat_div(x_12, x_9); +lean_dec(x_12); +lean_inc(x_13); +x_14 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_14, 0, x_3); +lean_ctor_set(x_14, 1, x_13); +lean_ctor_set(x_14, 2, x_5); +x_15 = l_Array_empty___closed__1; +lean_inc(x_13); +x_16 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1(x_1, x_2, x_4, x_8, x_10, x_11, x_13, x_14, x_13, x_3, x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_8); +x_17 = l_Lean_nullKind; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -} -lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_4 = lean_unsigned_to_nat(1u); -x_5 = l_Lean_Syntax_getArg(x_3, x_4); -x_6 = l_Lean_Syntax_getArg(x_5, x_4); -lean_dec(x_5); -x_7 = l_Lean_Syntax_getSepArgs(x_6); -lean_dec(x_6); -x_8 = lean_unsigned_to_nat(2u); -x_9 = l_Lean_Syntax_getArg(x_3, x_8); -x_10 = lean_array_get_size(x_7); -x_11 = lean_unsigned_to_nat(0u); -lean_inc(x_10); -x_12 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -lean_ctor_set(x_12, 2, x_4); -x_13 = l_Array_empty___closed__1; -x_14 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1(x_1, x_2, x_3, x_7, x_9, x_12, x_10, x_11, x_13); -lean_dec(x_12); -lean_dec(x_7); -x_15 = l_Lean_nullKind; -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_6); -return x_7; -} -} -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___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_Std_Range_forIn_loop___at___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_6); lean_dec(x_4); -lean_dec(x_3); -return x_10; +lean_dec(x_2); +return x_12; } } -lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_4; -x_4 = l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(x_1, x_2, x_3); -lean_dec(x_3); -return x_4; +lean_object* x_3; +x_3 = l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(x_1, x_2); +lean_dec(x_2); +return x_3; } } lean_object* l_Lean_Elab_Tactic_expandRewriteTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = l_Lean_Parser_Tactic_rewrite___closed__2; -x_5 = l_Lean_Parser_Tactic_rewrite___closed__3; -x_6 = l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(x_4, x_5, x_1); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_3); -return x_7; +x_5 = l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(x_4, x_1); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_3); +return x_6; } } lean_object* l_Lean_Elab_Tactic_expandRewriteTactic___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -317,14 +359,13 @@ return x_5; lean_object* l_Lean_Elab_Tactic_expandERewriteTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = l_Lean_Parser_Tactic_erewrite___closed__2; -x_5 = l_Lean_Parser_Tactic_erewrite___closed__3; -x_6 = l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(x_4, x_5, x_1); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_3); -return x_7; +x_5 = l___private_Lean_Elab_Tactic_Rewrite_0__Lean_Elab_Tactic_expand(x_4, x_1); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_3); +return x_6; } } lean_object* l_Lean_Elab_Tactic_expandERewriteTactic___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 60463f5a0e..94d267969f 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -668,7 +668,6 @@ lean_object* l_Lean_Elab_Term_mkTermInfo_match__1(lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_run_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyResult_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabCharLit_match__1___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageLog_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -912,6 +911,7 @@ lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDelayedRoot(lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___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* l_Lean_Elab_Term_LVal_getRef(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__19___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*); @@ -23969,7 +23969,7 @@ uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit(lean_object* x_1 _start: { lean_object* x_2; uint8_t x_3; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Elab/Util.c b/stage0/stdlib/Lean/Elab/Util.c index 1fcd72e62d..7e06cba8ae 100644 --- a/stage0/stdlib/Lean/Elab/Util.c +++ b/stage0/stdlib/Lean/Elab/Util.c @@ -107,7 +107,7 @@ lean_object* l_Lean_Syntax_prettyPrint_match__1(lean_object*); lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__2___boxed(lean_object**); extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__5; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_36____closed__8; -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_getMacros___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespacesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_instMonadMacroAdapter(lean_object*, lean_object*); @@ -3324,7 +3324,7 @@ _start: lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_inc(x_3); lean_inc(x_1); -x_6 = l_Lean_Name_appendIndexAfter(x_1, x_3); +x_6 = lean_name_append_index_after(x_1, x_3); lean_inc(x_6); x_7 = l_Lean_Name_append(x_2, x_6); lean_inc(x_4); diff --git a/stage0/stdlib/Lean/Expr.c b/stage0/stdlib/Lean/Expr.c index a2833e9171..d57872fd12 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -177,6 +177,7 @@ size_t l_List_foldl___at_Lean_mkConst___spec__1(size_t, lean_object*); lean_object* l_Lean_Expr_bindingName_x21_match__1(lean_object*); lean_object* l_Lean_Expr_getAppArgs___closed__1; uint8_t l_Lean_Level_hasParam(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; lean_object* l_Lean_Expr_updateApp_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mkAppRevRange(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isHeadBetaTargetFn_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -408,7 +409,6 @@ lean_object* l_Lean_mkFreshFVarId___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMData(lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__25; uint64_t l_UInt64_land(uint64_t, uint64_t); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; lean_object* l_Lean_Expr_isMData_match__1(lean_object*); lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21___closed__2; @@ -427,7 +427,6 @@ size_t lean_usize_of_nat(lean_object*); extern uint64_t l_instInhabitedUInt64___closed__1; lean_object* l_Lean_mkSimpleThunkType(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux_match__1(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; size_t l_Lean_ExprStructEq_hash(lean_object*); uint8_t l_Lean_Expr_isAutoParam(lean_object*); lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__2; @@ -452,6 +451,7 @@ lean_object* l_Lean_Expr_setAppPPExplicit(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ctorName___closed__9; lean_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; lean_object* l_Lean_Expr_hasLooseBVarInExplicitDomain_match__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_instInhabitedBinderInfo; lean_object* l_Lean_Expr_updateLambda_x21___closed__1; @@ -3017,7 +3017,7 @@ return x_12; default: { lean_object* x_13; -x_13 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; +x_13 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; return x_13; } } @@ -14817,7 +14817,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_getSanitizeNames___closed__2; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Hygiene.c b/stage0/stdlib/Lean/Hygiene.c index cd2201ec9b..0b28800865 100644 --- a/stage0/stdlib/Lean/Hygiene.c +++ b/stage0/stdlib/Lean/Hygiene.c @@ -77,7 +77,7 @@ lean_object* l___private_Lean_Hygiene_0__Lean_mkInaccessibleUserName___closed__1 lean_object* l___private_Lean_Hygiene_0__Lean_mkInaccessibleUserName___boxed(lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_instMonadQuotationUnhygienic___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Hygiene_0__Lean_sanitizeSyntaxAux_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); +lean_object* lean_name_append_after(lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_Hygiene___hyg_314____closed__3; lean_object* l_Lean_getSanitizeNames___boxed(lean_object*); lean_object* l_Lean_Unhygienic_instMonadQuotationUnhygienic___closed__5; @@ -494,7 +494,7 @@ x_9 = l_Nat_toSuperscriptString(x_3); x_10 = l___private_Lean_Hygiene_0__Lean_mkInaccessibleUserNameAux___closed__3; x_11 = lean_string_append(x_10, x_9); lean_dec(x_9); -x_12 = l_Lean_Name_appendAfter(x_2, x_11); +x_12 = lean_name_append_after(x_2, x_11); return x_12; } else @@ -502,7 +502,7 @@ else lean_object* x_13; lean_object* x_14; lean_dec(x_3); x_13 = l___private_Lean_Hygiene_0__Lean_mkInaccessibleUserNameAux___closed__3; -x_14 = l_Lean_Name_appendAfter(x_2, x_13); +x_14 = lean_name_append_after(x_2, x_13); return x_14; } } @@ -653,7 +653,7 @@ x_14 = l_Nat_toSuperscriptString(x_12); x_15 = l___private_Lean_Hygiene_0__Lean_mkInaccessibleUserName___closed__1; x_16 = lean_string_append(x_15, x_14); lean_dec(x_14); -x_17 = l_Lean_Name_appendAfter(x_13, x_16); +x_17 = lean_name_append_after(x_13, x_16); return x_17; } } diff --git a/stage0/stdlib/Lean/LocalContext.c b/stage0/stdlib/Lean/LocalContext.c index ae68bc202f..25d8e5856b 100644 --- a/stage0/stdlib/Lean/LocalContext.c +++ b/stage0/stdlib/Lean/LocalContext.c @@ -209,7 +209,7 @@ lean_object* l_Lean_LocalContext_findDeclM_x3f___rarg___lambda__1(lean_object*, lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__14___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_LocalContext_allM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); uint8_t l_Array_anyMUnsafe_any___at_Lean_LocalContext_any___spec__4(lean_object*, lean_object*, size_t, size_t); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRev_x3f___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setBinderInfo___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*); @@ -4777,7 +4777,7 @@ _start: lean_object* x_4; uint8_t x_5; lean_inc(x_3); lean_inc(x_2); -x_4 = l_Lean_Name_appendIndexAfter(x_2, x_3); +x_4 = lean_name_append_index_after(x_2, x_3); lean_inc(x_4); lean_inc(x_1); x_5 = lean_local_ctx_uses_user_name(x_1, x_4); diff --git a/stage0/stdlib/Lean/Meta/AbstractMVars.c b/stage0/stdlib/Lean/Meta/AbstractMVars.c index 5ec0e89d1f..fe5be9d7ae 100644 --- a/stage0/stdlib/Lean/Meta/AbstractMVars.c +++ b/stage0/stdlib/Lean/Meta/AbstractMVars.c @@ -61,7 +61,7 @@ extern lean_object* l_Lean_Meta_mkArrow___closed__2; lean_object* l_Lean_Meta_instBEqAbstractMVarsResult___closed__1; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_AbstractMVars_0__Lean_Meta_AbstractMVars_abstractLevelMVars___spec__1(lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l___private_Lean_Meta_AbstractMVars_0__Lean_Meta_beqAbstractMVarsResult____x40_Lean_Meta_AbstractMVars___hyg_19__match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -2377,7 +2377,7 @@ lean_dec(x_3); x_34 = lean_array_get_size(x_33); lean_dec(x_33); x_35 = l_Lean_Meta_mkArrow___closed__2; -x_36 = l_Lean_Name_appendIndexAfter(x_35, x_34); +x_36 = lean_name_append_index_after(x_35, x_34); x_37 = 0; x_38 = lean_local_ctx_mk_local_decl(x_26, x_20, x_36, x_16, x_37); lean_inc(x_22); @@ -2439,7 +2439,7 @@ lean_dec(x_3); x_53 = lean_array_get_size(x_52); lean_dec(x_52); x_54 = l_Lean_Meta_mkArrow___closed__2; -x_55 = l_Lean_Name_appendIndexAfter(x_54, x_53); +x_55 = lean_name_append_index_after(x_54, x_53); x_56 = 0; x_57 = lean_local_ctx_mk_local_decl(x_41, x_20, x_55, x_16, x_56); lean_inc(x_22); @@ -2536,7 +2536,7 @@ lean_dec(x_3); x_80 = lean_array_get_size(x_79); lean_dec(x_79); x_81 = l_Lean_Meta_mkArrow___closed__2; -x_82 = l_Lean_Name_appendIndexAfter(x_81, x_80); +x_82 = lean_name_append_index_after(x_81, x_80); x_83 = 0; x_84 = lean_local_ctx_mk_local_decl(x_66, x_60, x_82, x_16, x_83); lean_inc(x_62); diff --git a/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c index 22e84d8cac..9a49c14687 100644 --- a/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c +++ b/stage0/stdlib/Lean/Meta/AbstractNestedProofs.c @@ -41,6 +41,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_AbstractNestedProofs_visit___ lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_AbstractNestedProofs_visit___spec__4(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_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Meta_AbstractNestedProofs_visit___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* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_mkAuxName___at___private_Lean_Meta_AbstractNestedProofs_0__Lean_Meta_AbstractNestedProofs_mkAuxLemma___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_Expr_withAppAux___at_Lean_Meta_AbstractNestedProofs_isNonTrivialProof___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,7 +70,6 @@ lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Meta_AbstractNestedProofs_visit___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_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_AbstractNestedProofs_visit___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_object*); -lean_object* l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaLetTelescope___at_Lean_Meta_AbstractNestedProofs_visit___spec__6___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_Meta_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,9 +94,9 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_AbstractNestedProofs_visit_ lean_object* l_Lean_Meta_AbstractNestedProofs_visit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_setType(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_AbstractNestedProofs_visit___spec__7(lean_object*); +lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_AbstractNestedProofs_visit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1655,7 +1655,7 @@ if (x_28 == 0) lean_object* x_29; lean_object* x_30; lean_object* x_31; x_29 = lean_ctor_get(x_27, 0); x_30 = lean_ctor_get(x_27, 1); -x_31 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_29, x_1); +x_31 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_29, x_1); lean_dec(x_29); if (lean_obj_tag(x_31) == 0) { @@ -2129,7 +2129,7 @@ x_118 = lean_ctor_get(x_27, 1); lean_inc(x_118); lean_inc(x_117); lean_dec(x_27); -x_119 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_117, x_1); +x_119 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_117, x_1); lean_dec(x_117); if (lean_obj_tag(x_119) == 0) { @@ -2643,7 +2643,7 @@ x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); lean_inc(x_10); -x_17 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_15, x_1, x_10); +x_17 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_15, x_1, x_10); x_18 = lean_st_ref_set(x_3, x_17, x_16); lean_dec(x_3); x_19 = !lean_is_exclusive(x_18); diff --git a/stage0/stdlib/Lean/Meta/AppBuilder.c b/stage0/stdlib/Lean/Meta/AppBuilder.c index 7a7b41140d..55bf6c649c 100644 --- a/stage0/stdlib/Lean/Meta/AppBuilder.c +++ b/stage0/stdlib/Lean/Meta/AppBuilder.c @@ -301,7 +301,6 @@ lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object lean_object* l_Lean_Meta_isMonad_x3f___closed__1; lean_object* l_Lean_Meta_mkIdRhs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM___closed__1; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_orelse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -320,6 +319,7 @@ lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppOptMAux_match__1 lean_object* l_Lean_Meta_mkEqFalse_x27(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___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal___closed__3; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHEqTrans_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSyntheticSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -11390,7 +11390,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkDecIsTrue___closed__2; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Meta/Closure.c b/stage0/stdlib/Lean/Meta/Closure.c index d361132f74..8726dec1b6 100644 --- a/stage0/stdlib/Lean/Meta/Closure.c +++ b/stage0/stdlib/Lean/Meta/Closure.c @@ -21,7 +21,6 @@ lean_object* l_Lean_compileDecl___at_Lean_Meta_mkAuxDefinition___spec__4(lean_ob size_t l_USize_add(size_t, size_t); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(lean_object*, lean_object*); lean_object* l_Nat_foldRev_loop___at_Lean_Meta_Closure_mkBinding___spec__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Closure_visitLevel___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_pushFVarArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -54,7 +53,6 @@ lean_object* l_Lean_Meta_Closure_State_exprFVarArgs___default; lean_object* l_Lean_Meta_Closure_State_nextLevelIdx___default; lean_object* l_Lean_Meta_Closure_State_nextExprIdx___default; uint8_t l_Lean_Level_hasParam(lean_object*); -lean_object* l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_levelArgs___default; lean_object* l_Std_AssocList_contains___at_Lean_Meta_Closure_visitLevel___spec__4___boxed(lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); @@ -71,7 +69,6 @@ uint8_t l_Lean_Environment_hasUnsafe(lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_lower_loose_bvars(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Meta_mkAuxDefinition___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_mkHashMap___at_Lean_Meta_Closure_State_visitedExpr___default___spec__1(lean_object*); lean_object* l_Lean_Meta_Closure_visitExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Meta_mkAuxDefinition___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkNextUserName___rarg___closed__2; @@ -103,17 +100,14 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f_match__1(lean_object*); lean_object* l_Lean_Meta_Closure_pickNextToProcess_x3f___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitLevel___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_visitedLevel___default; lean_object* l_Array_back___at_Lean_Meta_Closure_pickNextToProcess_x3f___spec__1(lean_object*); lean_object* l_Lean_Meta_Closure_collectExprAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_updateSucc_x21___closed__3; lean_object* l_Lean_Meta_Closure_process___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -uint8_t l_Std_AssocList_contains___at_Lean_Meta_Closure_visitExpr___spec__4(lean_object*, lean_object*); -size_t l_Lean_Expr_hash(lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Closure_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -121,9 +115,7 @@ extern lean_object* l_Lean_Level_updateMax_x21___closed__3; lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_preprocess___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_collectExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Closure_visitExpr___spec__7(lean_object*, lean_object*); extern lean_object* l_termIfLet___x3a_x3d__Then__Else_____closed__7; -lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Closure_visitExpr___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkNextUserName(lean_object*); extern lean_object* l_Lean_instInhabitedExpr; extern lean_object* l_Lean_Expr_updateProj_x21___closed__3; @@ -153,7 +145,6 @@ lean_object* l_Lean_throwError___at_Lean_Meta_mkAuxDefinition___spec__3___boxed( size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_replaceFVarIdAtLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkNewLevelParam___closed__2; -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_pushLocalDecl(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_expr_update_proj(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -169,16 +160,14 @@ lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_updateIMax_x21___closed__3; lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_Lean_Meta_Closure_process_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__2(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_mkAuxDefinition___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_mkValueTypeClosureAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_toProcess___default; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_State_visitedExpr___default; lean_object* l_Lean_Meta_Closure_State_visitedLevel___default___closed__1; -uint8_t lean_expr_equal(lean_object*, lean_object*); lean_object* lean_expr_update_sort(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Closure_visitExpr___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_collectLevelAux(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_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitLevel___spec__2___boxed(lean_object*, lean_object*); @@ -225,7 +214,6 @@ lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, l lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_pop(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_Std_AssocList_replace___at_Lean_Meta_Closure_visitExpr___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwKernelException___at_Lean_Meta_mkAuxDefinition___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_pickNextToProcessAux(lean_object*, lean_object*, lean_object*, lean_object*); @@ -242,10 +230,9 @@ lean_object* l_Lean_mkFreshId___at_Lean_Meta_Closure_collectExprAux___spec__1___ lean_object* l_Nat_foldRev_loop___at_Lean_Meta_Closure_mkForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Meta_mkAuxDefinition___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_contains___at_Lean_Meta_Closure_visitExpr___spec__4___boxed(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_collectExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Closure_State_visitedExpr___default___closed__1; +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_collectLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Closure_collectExprAux_match__1(lean_object*); lean_object* l_Lean_mkLevelParam(lean_object*); @@ -319,28 +306,11 @@ x_1 = l_Lean_Meta_Closure_State_visitedLevel___default___closed__1; return x_1; } } -lean_object* l_Std_mkHashMap___at_Lean_Meta_Closure_State_visitedExpr___default___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Closure_State_visitedExpr___default___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(8u); -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Meta_Closure_State_visitedExpr___default() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_Closure_State_visitedExpr___default___closed__1; +x_1 = l_Std_HashMap_instInhabitedHashMap___closed__1; return x_1; } } @@ -1113,365 +1083,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Closure_visitExpr_match__1___rarg), return x_2; } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 2); -x_7 = lean_expr_equal(x_4, x_1); -if (x_7 == 0) -{ -x_2 = x_6; -goto _start; -} -else -{ -lean_object* x_9; -lean_inc(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_5); -return x_9; -} -} -} -} -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; -x_3 = lean_ctor_get(x_1, 1); -x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Expr_hash(x_2); -x_6 = lean_usize_modn(x_5, x_4); -lean_dec(x_4); -x_7 = lean_array_uget(x_3, x_6); -x_8 = l_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__2(x_2, x_7); -lean_dec(x_7); -return x_8; -} -} -uint8_t l_Std_AssocList_contains___at_Lean_Meta_Closure_visitExpr___spec__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_expr_equal(x_4, x_1); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -} -lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Closure_visitExpr___spec__7(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_array_get_size(x_1); -x_7 = l_Lean_Expr_hash(x_4); -x_8 = lean_usize_modn(x_7, x_6); -lean_dec(x_6); -x_9 = lean_array_uget(x_1, x_8); -lean_ctor_set(x_2, 2, x_9); -x_10 = lean_array_uset(x_1, x_8, x_2); -x_1 = x_10; -x_2 = x_5; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_12 = lean_ctor_get(x_2, 0); -x_13 = lean_ctor_get(x_2, 1); -x_14 = lean_ctor_get(x_2, 2); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_2); -x_15 = lean_array_get_size(x_1); -x_16 = l_Lean_Expr_hash(x_12); -x_17 = lean_usize_modn(x_16, x_15); -lean_dec(x_15); -x_18 = lean_array_uget(x_1, x_17); -x_19 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_13); -lean_ctor_set(x_19, 2, x_18); -x_20 = lean_array_uset(x_1, x_17, x_19); -x_1 = x_20; -x_2 = x_14; -goto _start; -} -} -} -} -lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Closure_visitExpr___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_box(0); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_Std_AssocList_foldlM___at_Lean_Meta_Closure_visitExpr___spec__7(x_3, x_6); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -lean_dec(x_1); -x_1 = x_11; -x_2 = x_8; -x_3 = x_9; -goto _start; -} -} -} -lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Closure_visitExpr___spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_3 = lean_array_get_size(x_2); -x_4 = lean_unsigned_to_nat(2u); -x_5 = lean_nat_mul(x_3, x_4); -lean_dec(x_3); -x_6 = lean_box(0); -x_7 = lean_mk_array(x_5, x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Std_HashMapImp_moveEntries___at_Lean_Meta_Closure_visitExpr___spec__6(x_8, x_2, x_7); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -} -lean_object* l_Std_AssocList_replace___at_Lean_Meta_Closure_visitExpr___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_3, 0); -x_7 = lean_ctor_get(x_3, 1); -x_8 = lean_ctor_get(x_3, 2); -x_9 = lean_expr_equal(x_6, x_1); -if (x_9 == 0) -{ -lean_object* x_10; -x_10 = l_Std_AssocList_replace___at_Lean_Meta_Closure_visitExpr___spec__8(x_1, x_2, x_8); -lean_ctor_set(x_3, 2, x_10); -return x_3; -} -else -{ -lean_dec(x_7); -lean_dec(x_6); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 0, x_1); -return x_3; -} -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); -x_13 = lean_ctor_get(x_3, 2); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_3); -x_14 = lean_expr_equal(x_11, x_1); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = l_Std_AssocList_replace___at_Lean_Meta_Closure_visitExpr___spec__8(x_1, x_2, x_13); -x_16 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_16, 0, x_11); -lean_ctor_set(x_16, 1, x_12); -lean_ctor_set(x_16, 2, x_15); -return x_16; -} -else -{ -lean_object* x_17; -lean_dec(x_12); -lean_dec(x_11); -x_17 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_2); -lean_ctor_set(x_17, 2, x_13); -return x_17; -} -} -} -} -} -lean_object* l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_array_get_size(x_6); -x_8 = l_Lean_Expr_hash(x_2); -x_9 = lean_usize_modn(x_8, x_7); -x_10 = lean_array_uget(x_6, x_9); -x_11 = l_Std_AssocList_contains___at_Lean_Meta_Closure_visitExpr___spec__4(x_2, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_5, x_12); -lean_dec(x_5); -x_14 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_14, 0, x_2); -lean_ctor_set(x_14, 1, x_3); -lean_ctor_set(x_14, 2, x_10); -x_15 = lean_array_uset(x_6, x_9, x_14); -x_16 = lean_nat_dec_le(x_13, x_7); -lean_dec(x_7); -if (x_16 == 0) -{ -lean_object* x_17; -lean_free_object(x_1); -x_17 = l_Std_HashMapImp_expand___at_Lean_Meta_Closure_visitExpr___spec__5(x_13, x_15); -return x_17; -} -else -{ -lean_ctor_set(x_1, 1, x_15); -lean_ctor_set(x_1, 0, x_13); -return x_1; -} -} -else -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_7); -x_18 = l_Std_AssocList_replace___at_Lean_Meta_Closure_visitExpr___spec__8(x_2, x_3, x_10); -x_19 = lean_array_uset(x_6, x_9, x_18); -lean_ctor_set(x_1, 1, x_19); -return x_1; -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; uint8_t x_26; -x_20 = lean_ctor_get(x_1, 0); -x_21 = lean_ctor_get(x_1, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_1); -x_22 = lean_array_get_size(x_21); -x_23 = l_Lean_Expr_hash(x_2); -x_24 = lean_usize_modn(x_23, x_22); -x_25 = lean_array_uget(x_21, x_24); -x_26 = l_Std_AssocList_contains___at_Lean_Meta_Closure_visitExpr___spec__4(x_2, x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_20, x_27); -lean_dec(x_20); -x_29 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_29, 0, x_2); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 2, x_25); -x_30 = lean_array_uset(x_21, x_24, x_29); -x_31 = lean_nat_dec_le(x_28, x_22); -lean_dec(x_22); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = l_Std_HashMapImp_expand___at_Lean_Meta_Closure_visitExpr___spec__5(x_28, x_30); -return x_32; -} -else -{ -lean_object* x_33; -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_28); -lean_ctor_set(x_33, 1, x_30); -return x_33; -} -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_22); -x_34 = l_Std_AssocList_replace___at_Lean_Meta_Closure_visitExpr___spec__8(x_2, x_3, x_25); -x_35 = lean_array_uset(x_21, x_24, x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_20); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -} lean_object* l_Lean_Meta_Closure_visitExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -1559,7 +1170,7 @@ lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_12, x_2); +x_13 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_12, x_2); lean_dec(x_12); if (lean_obj_tag(x_13) == 0) { @@ -1593,7 +1204,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; x_23 = lean_ctor_get(x_20, 1); lean_inc(x_15); -x_24 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_23, x_2, x_15); +x_24 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_23, x_2, x_15); lean_ctor_set(x_20, 1, x_24); x_25 = lean_st_ref_set(x_4, x_20, x_21); lean_dec(x_4); @@ -1647,7 +1258,7 @@ lean_inc(x_31); lean_inc(x_30); lean_dec(x_20); lean_inc(x_15); -x_42 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_31, x_2, x_15); +x_42 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_31, x_2, x_15); x_43 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_43, 0, x_30); lean_ctor_set(x_43, 1, x_42); @@ -1731,37 +1342,6 @@ return x_53; } } } -lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Std_AssocList_contains___at_Lean_Meta_Closure_visitExpr___spec__4___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_AssocList_contains___at_Lean_Meta_Closure_visitExpr___spec__4(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} static lean_object* _init_l_Lean_Meta_Closure_mkNewLevelParam___closed__1() { _start: { @@ -1798,7 +1378,7 @@ x_14 = lean_ctor_get(x_12, 3); lean_inc(x_14); lean_dec(x_12); x_15 = l_Lean_Meta_Closure_mkNewLevelParam___closed__2; -x_16 = l_Lean_Name_appendIndexAfter(x_15, x_14); +x_16 = lean_name_append_index_after(x_15, x_14); x_17 = lean_st_ref_get(x_7, x_13); x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); @@ -3792,7 +3372,7 @@ x_12 = lean_ctor_get(x_10, 8); lean_inc(x_12); lean_dec(x_10); x_13 = l_Lean_Meta_Closure_mkNextUserName___rarg___closed__2; -x_14 = l_Lean_Name_appendIndexAfter(x_13, x_12); +x_14 = lean_name_append_index_after(x_13, x_12); x_15 = lean_st_ref_get(x_5, x_11); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); @@ -4866,7 +4446,7 @@ lean_object* x_118; lean_object* x_119; x_118 = lean_ctor_get(x_116, 1); lean_inc(x_118); lean_dec(x_116); -x_119 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_118, x_113); +x_119 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_118, x_113); lean_dec(x_118); if (lean_obj_tag(x_119) == 0) { @@ -4900,7 +4480,7 @@ if (x_128 == 0) lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; x_129 = lean_ctor_get(x_126, 1); lean_inc(x_121); -x_130 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_129, x_113, x_121); +x_130 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_129, x_113, x_121); lean_ctor_set(x_126, 1, x_130); x_131 = lean_st_ref_set(x_3, x_126, x_127); x_132 = !lean_is_exclusive(x_131); @@ -4953,7 +4533,7 @@ lean_inc(x_137); lean_inc(x_136); lean_dec(x_126); lean_inc(x_121); -x_148 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_137, x_113, x_121); +x_148 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_137, x_113, x_121); x_149 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_149, 0, x_136); lean_ctor_set(x_149, 1, x_148); @@ -5220,7 +4800,7 @@ lean_object* x_202; lean_object* x_203; x_202 = lean_ctor_get(x_200, 1); lean_inc(x_202); lean_dec(x_200); -x_203 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_202, x_197); +x_203 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_202, x_197); lean_dec(x_202); if (lean_obj_tag(x_203) == 0) { @@ -5291,7 +4871,7 @@ if (lean_is_exclusive(x_210)) { x_224 = lean_box(0); } lean_inc(x_205); -x_225 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_213, x_197, x_205); +x_225 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_213, x_197, x_205); if (lean_is_scalar(x_224)) { x_226 = lean_alloc_ctor(0, 12, 0); } else { @@ -5555,7 +5135,7 @@ lean_object* x_334; lean_object* x_335; x_334 = lean_ctor_get(x_332, 1); lean_inc(x_334); lean_dec(x_332); -x_335 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_334, x_329); +x_335 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_334, x_329); lean_dec(x_334); if (lean_obj_tag(x_335) == 0) { @@ -5591,7 +5171,7 @@ if (x_344 == 0) lean_object* x_345; lean_object* x_346; lean_object* x_347; uint8_t x_348; x_345 = lean_ctor_get(x_342, 1); lean_inc(x_337); -x_346 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_345, x_329, x_337); +x_346 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_345, x_329, x_337); lean_ctor_set(x_342, 1, x_346); x_347 = lean_st_ref_set(x_3, x_342, x_343); x_348 = !lean_is_exclusive(x_347); @@ -5646,7 +5226,7 @@ lean_inc(x_353); lean_inc(x_352); lean_dec(x_342); lean_inc(x_337); -x_364 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_353, x_329, x_337); +x_364 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_353, x_329, x_337); x_365 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_365, 0, x_352); lean_ctor_set(x_365, 1, x_364); @@ -6046,7 +5626,7 @@ lean_object* x_451; lean_object* x_452; x_451 = lean_ctor_get(x_449, 1); lean_inc(x_451); lean_dec(x_449); -x_452 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_451, x_446); +x_452 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_451, x_446); lean_dec(x_451); if (lean_obj_tag(x_452) == 0) { @@ -6119,7 +5699,7 @@ if (lean_is_exclusive(x_459)) { x_473 = lean_box(0); } lean_inc(x_454); -x_474 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_462, x_446, x_454); +x_474 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_462, x_446, x_454); if (lean_is_scalar(x_473)) { x_475 = lean_alloc_ctor(0, 12, 0); } else { @@ -6887,7 +6467,7 @@ lean_object* x_596; lean_object* x_597; x_596 = lean_ctor_get(x_594, 1); lean_inc(x_596); lean_dec(x_594); -x_597 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_596, x_554); +x_597 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_596, x_554); lean_dec(x_596); if (lean_obj_tag(x_597) == 0) { @@ -6921,7 +6501,7 @@ if (x_606 == 0) lean_object* x_607; lean_object* x_608; lean_object* x_609; uint8_t x_610; x_607 = lean_ctor_get(x_604, 1); lean_inc(x_599); -x_608 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_607, x_554, x_599); +x_608 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_607, x_554, x_599); lean_ctor_set(x_604, 1, x_608); x_609 = lean_st_ref_set(x_3, x_604, x_605); x_610 = !lean_is_exclusive(x_609); @@ -6976,7 +6556,7 @@ lean_inc(x_615); lean_inc(x_614); lean_dec(x_604); lean_inc(x_599); -x_626 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_615, x_554, x_599); +x_626 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_615, x_554, x_599); x_627 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_627, 0, x_614); lean_ctor_set(x_627, 1, x_626); @@ -7097,7 +6677,7 @@ lean_object* x_665; lean_object* x_666; x_665 = lean_ctor_get(x_663, 1); lean_inc(x_665); lean_dec(x_663); -x_666 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_665, x_553); +x_666 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_665, x_553); lean_dec(x_665); if (lean_obj_tag(x_666) == 0) { @@ -7132,7 +6712,7 @@ if (x_675 == 0) lean_object* x_676; lean_object* x_677; lean_object* x_678; uint8_t x_679; x_676 = lean_ctor_get(x_673, 1); lean_inc(x_668); -x_677 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_676, x_553, x_668); +x_677 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_676, x_553, x_668); lean_ctor_set(x_673, 1, x_677); x_678 = lean_st_ref_set(x_3, x_673, x_674); x_679 = !lean_is_exclusive(x_678); @@ -7187,7 +6767,7 @@ lean_inc(x_684); lean_inc(x_683); lean_dec(x_673); lean_inc(x_668); -x_695 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_684, x_553, x_668); +x_695 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_684, x_553, x_668); x_696 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_696, 0, x_683); lean_ctor_set(x_696, 1, x_695); @@ -7585,7 +7165,7 @@ lean_object* x_776; lean_object* x_777; x_776 = lean_ctor_get(x_774, 1); lean_inc(x_776); lean_dec(x_774); -x_777 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_776, x_728); +x_777 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_776, x_728); lean_dec(x_776); if (lean_obj_tag(x_777) == 0) { @@ -7619,7 +7199,7 @@ if (x_786 == 0) lean_object* x_787; lean_object* x_788; lean_object* x_789; uint8_t x_790; x_787 = lean_ctor_get(x_784, 1); lean_inc(x_779); -x_788 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_787, x_728, x_779); +x_788 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_787, x_728, x_779); lean_ctor_set(x_784, 1, x_788); x_789 = lean_st_ref_set(x_3, x_784, x_785); x_790 = !lean_is_exclusive(x_789); @@ -7674,7 +7254,7 @@ lean_inc(x_795); lean_inc(x_794); lean_dec(x_784); lean_inc(x_779); -x_806 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_795, x_728, x_779); +x_806 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_795, x_728, x_779); x_807 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_807, 0, x_794); lean_ctor_set(x_807, 1, x_806); @@ -7795,7 +7375,7 @@ lean_object* x_845; lean_object* x_846; x_845 = lean_ctor_get(x_843, 1); lean_inc(x_845); lean_dec(x_843); -x_846 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_845, x_727); +x_846 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_845, x_727); lean_dec(x_845); if (lean_obj_tag(x_846) == 0) { @@ -7830,7 +7410,7 @@ if (x_855 == 0) lean_object* x_856; lean_object* x_857; lean_object* x_858; uint8_t x_859; x_856 = lean_ctor_get(x_853, 1); lean_inc(x_848); -x_857 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_856, x_727, x_848); +x_857 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_856, x_727, x_848); lean_ctor_set(x_853, 1, x_857); x_858 = lean_st_ref_set(x_3, x_853, x_854); x_859 = !lean_is_exclusive(x_858); @@ -7885,7 +7465,7 @@ lean_inc(x_864); lean_inc(x_863); lean_dec(x_853); lean_inc(x_848); -x_875 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_864, x_727, x_848); +x_875 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_864, x_727, x_848); x_876 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_876, 0, x_863); lean_ctor_set(x_876, 1, x_875); @@ -8283,7 +7863,7 @@ lean_object* x_956; lean_object* x_957; x_956 = lean_ctor_get(x_954, 1); lean_inc(x_956); lean_dec(x_954); -x_957 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_956, x_908); +x_957 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_956, x_908); lean_dec(x_956); if (lean_obj_tag(x_957) == 0) { @@ -8317,7 +7897,7 @@ if (x_966 == 0) lean_object* x_967; lean_object* x_968; lean_object* x_969; uint8_t x_970; x_967 = lean_ctor_get(x_964, 1); lean_inc(x_959); -x_968 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_967, x_908, x_959); +x_968 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_967, x_908, x_959); lean_ctor_set(x_964, 1, x_968); x_969 = lean_st_ref_set(x_3, x_964, x_965); x_970 = !lean_is_exclusive(x_969); @@ -8372,7 +7952,7 @@ lean_inc(x_975); lean_inc(x_974); lean_dec(x_964); lean_inc(x_959); -x_986 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_975, x_908, x_959); +x_986 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_975, x_908, x_959); x_987 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_987, 0, x_974); lean_ctor_set(x_987, 1, x_986); @@ -8493,7 +8073,7 @@ lean_object* x_1025; lean_object* x_1026; x_1025 = lean_ctor_get(x_1023, 1); lean_inc(x_1025); lean_dec(x_1023); -x_1026 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_1025, x_907); +x_1026 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_1025, x_907); lean_dec(x_1025); if (lean_obj_tag(x_1026) == 0) { @@ -8528,7 +8108,7 @@ if (x_1035 == 0) lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; uint8_t x_1039; x_1036 = lean_ctor_get(x_1033, 1); lean_inc(x_1028); -x_1037 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1036, x_907, x_1028); +x_1037 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1036, x_907, x_1028); lean_ctor_set(x_1033, 1, x_1037); x_1038 = lean_st_ref_set(x_3, x_1033, x_1034); x_1039 = !lean_is_exclusive(x_1038); @@ -8583,7 +8163,7 @@ lean_inc(x_1044); lean_inc(x_1043); lean_dec(x_1033); lean_inc(x_1028); -x_1055 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1044, x_907, x_1028); +x_1055 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1044, x_907, x_1028); x_1056 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_1056, 0, x_1043); lean_ctor_set(x_1056, 1, x_1055); @@ -9083,7 +8663,7 @@ lean_object* x_1139; lean_object* x_1140; x_1139 = lean_ctor_get(x_1137, 1); lean_inc(x_1139); lean_dec(x_1137); -x_1140 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_1139, x_1089); +x_1140 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_1139, x_1089); lean_dec(x_1139); if (lean_obj_tag(x_1140) == 0) { @@ -9117,7 +8697,7 @@ if (x_1149 == 0) lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; uint8_t x_1153; x_1150 = lean_ctor_get(x_1147, 1); lean_inc(x_1142); -x_1151 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1150, x_1089, x_1142); +x_1151 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1150, x_1089, x_1142); lean_ctor_set(x_1147, 1, x_1151); x_1152 = lean_st_ref_set(x_3, x_1147, x_1148); x_1153 = !lean_is_exclusive(x_1152); @@ -9172,7 +8752,7 @@ lean_inc(x_1158); lean_inc(x_1157); lean_dec(x_1147); lean_inc(x_1142); -x_1169 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1158, x_1089, x_1142); +x_1169 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1158, x_1089, x_1142); x_1170 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_1170, 0, x_1157); lean_ctor_set(x_1170, 1, x_1169); @@ -9295,7 +8875,7 @@ lean_object* x_1208; lean_object* x_1209; x_1208 = lean_ctor_get(x_1206, 1); lean_inc(x_1208); lean_dec(x_1206); -x_1209 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_1208, x_1088); +x_1209 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_1208, x_1088); lean_dec(x_1208); if (lean_obj_tag(x_1209) == 0) { @@ -9330,7 +8910,7 @@ if (x_1218 == 0) lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; uint8_t x_1222; x_1219 = lean_ctor_get(x_1216, 1); lean_inc(x_1211); -x_1220 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1219, x_1088, x_1211); +x_1220 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1219, x_1088, x_1211); lean_ctor_set(x_1216, 1, x_1220); x_1221 = lean_st_ref_set(x_3, x_1216, x_1217); x_1222 = !lean_is_exclusive(x_1221); @@ -9385,7 +8965,7 @@ lean_inc(x_1227); lean_inc(x_1226); lean_dec(x_1216); lean_inc(x_1211); -x_1238 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1227, x_1088, x_1211); +x_1238 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1227, x_1088, x_1211); x_1239 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_1239, 0, x_1226); lean_ctor_set(x_1239, 1, x_1238); @@ -9498,7 +9078,7 @@ lean_object* x_1277; lean_object* x_1278; x_1277 = lean_ctor_get(x_1275, 1); lean_inc(x_1277); lean_dec(x_1275); -x_1278 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_1277, x_1087); +x_1278 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_1277, x_1087); lean_dec(x_1277); if (lean_obj_tag(x_1278) == 0) { @@ -9533,7 +9113,7 @@ if (x_1287 == 0) lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; uint8_t x_1291; x_1288 = lean_ctor_get(x_1285, 1); lean_inc(x_1280); -x_1289 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1288, x_1087, x_1280); +x_1289 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1288, x_1087, x_1280); lean_ctor_set(x_1285, 1, x_1289); x_1290 = lean_st_ref_set(x_3, x_1285, x_1286); x_1291 = !lean_is_exclusive(x_1290); @@ -9588,7 +9168,7 @@ lean_inc(x_1296); lean_inc(x_1295); lean_dec(x_1285); lean_inc(x_1280); -x_1307 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1296, x_1087, x_1280); +x_1307 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1296, x_1087, x_1280); x_1308 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_1308, 0, x_1295); lean_ctor_set(x_1308, 1, x_1307); @@ -9751,7 +9331,7 @@ lean_object* x_1342; lean_object* x_1343; x_1342 = lean_ctor_get(x_1340, 1); lean_inc(x_1342); lean_dec(x_1340); -x_1343 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_1342, x_1339); +x_1343 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_1342, x_1339); lean_dec(x_1342); if (lean_obj_tag(x_1343) == 0) { @@ -9784,7 +9364,7 @@ if (x_1352 == 0) lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; uint8_t x_1356; x_1353 = lean_ctor_get(x_1350, 1); lean_inc(x_1345); -x_1354 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1353, x_1339, x_1345); +x_1354 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1353, x_1339, x_1345); lean_ctor_set(x_1350, 1, x_1354); x_1355 = lean_st_ref_set(x_3, x_1350, x_1351); x_1356 = !lean_is_exclusive(x_1355); @@ -9839,7 +9419,7 @@ lean_inc(x_1361); lean_inc(x_1360); lean_dec(x_1350); lean_inc(x_1345); -x_1372 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1361, x_1339, x_1345); +x_1372 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1361, x_1339, x_1345); x_1373 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_1373, 0, x_1360); lean_ctor_set(x_1373, 1, x_1372); @@ -10007,7 +9587,7 @@ lean_object* x_1407; lean_object* x_1408; x_1407 = lean_ctor_get(x_1405, 1); lean_inc(x_1407); lean_dec(x_1405); -x_1408 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_1407, x_1404); +x_1408 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_1407, x_1404); lean_dec(x_1407); if (lean_obj_tag(x_1408) == 0) { @@ -10040,7 +9620,7 @@ if (x_1417 == 0) lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; uint8_t x_1421; x_1418 = lean_ctor_get(x_1415, 1); lean_inc(x_1410); -x_1419 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1418, x_1404, x_1410); +x_1419 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1418, x_1404, x_1410); lean_ctor_set(x_1415, 1, x_1419); x_1420 = lean_st_ref_set(x_3, x_1415, x_1416); x_1421 = !lean_is_exclusive(x_1420); @@ -10095,7 +9675,7 @@ lean_inc(x_1426); lean_inc(x_1425); lean_dec(x_1415); lean_inc(x_1410); -x_1437 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_1426, x_1404, x_1410); +x_1437 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_1426, x_1404, x_1410); x_1438 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_1438, 0, x_1425); lean_ctor_set(x_1438, 1, x_1437); @@ -10612,7 +10192,7 @@ lean_object* x_15; lean_object* x_16; x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Closure_visitExpr___spec__1(x_15, x_10); +x_16 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_15, x_10); lean_dec(x_15); if (lean_obj_tag(x_16) == 0) { @@ -10646,7 +10226,7 @@ if (x_25 == 0) lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; x_26 = lean_ctor_get(x_23, 1); lean_inc(x_18); -x_27 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_26, x_10, x_18); +x_27 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_26, x_10, x_18); lean_ctor_set(x_23, 1, x_27); x_28 = lean_st_ref_set(x_3, x_23, x_24); x_29 = !lean_is_exclusive(x_28); @@ -10699,7 +10279,7 @@ lean_inc(x_34); lean_inc(x_33); lean_dec(x_23); lean_inc(x_18); -x_45 = l_Std_HashMapImp_insert___at_Lean_Meta_Closure_visitExpr___spec__3(x_34, x_10, x_18); +x_45 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_34, x_10, x_18); x_46 = lean_alloc_ctor(0, 12, 0); lean_ctor_set(x_46, 0, x_33); lean_ctor_set(x_46, 1, x_45); @@ -15502,8 +15082,6 @@ l_Lean_Meta_Closure_State_visitedLevel___default___closed__1 = _init_l_Lean_Meta lean_mark_persistent(l_Lean_Meta_Closure_State_visitedLevel___default___closed__1); l_Lean_Meta_Closure_State_visitedLevel___default = _init_l_Lean_Meta_Closure_State_visitedLevel___default(); lean_mark_persistent(l_Lean_Meta_Closure_State_visitedLevel___default); -l_Lean_Meta_Closure_State_visitedExpr___default___closed__1 = _init_l_Lean_Meta_Closure_State_visitedExpr___default___closed__1(); -lean_mark_persistent(l_Lean_Meta_Closure_State_visitedExpr___default___closed__1); l_Lean_Meta_Closure_State_visitedExpr___default = _init_l_Lean_Meta_Closure_State_visitedExpr___default(); lean_mark_persistent(l_Lean_Meta_Closure_State_visitedExpr___default); l_Lean_Meta_Closure_State_levelParams___default = _init_l_Lean_Meta_Closure_State_levelParams___default(); diff --git a/stage0/stdlib/Lean/Meta/Coe.c b/stage0/stdlib/Lean/Meta/Coe.c index 430fe1cf17..d337bda0e1 100644 --- a/stage0/stdlib/Lean/Meta/Coe.c +++ b/stage0/stdlib/Lean/Meta/Coe.c @@ -36,6 +36,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Meta_isCoeDecl___closed__25; +lean_object* l_Lean_Core_transform_visit___rarg___lambda__12(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_expandCoe___spec__11(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_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,6 +70,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_isCoeDecl___closed__27; lean_object* l_Lean_Meta_isCoeDecl___closed__4; lean_object* l_ReaderT_bind___at_Lean_Meta_expandCoe___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_expandCoe___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_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isCoeDecl___closed__26; @@ -90,7 +92,6 @@ lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_expandCoe___spe lean_object* l_Lean_Meta_isCoeDecl___closed__23; lean_object* l_Lean_Meta_isCoeDecl___closed__41; lean_object* l_Lean_Meta_isCoeDecl___closed__24; -lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); lean_object* l_Lean_Meta_isCoeDecl___closed__20; lean_object* l_Lean_Meta_isCoeDecl___closed__10; @@ -137,7 +138,6 @@ lean_object* l_Lean_Meta_isCoeDecl___closed__6; lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_expandCoe___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_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_expandCoe___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*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_expandCoe___spec__13___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2739,7 +2739,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_15, x_5); +x_17 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_15, x_5); lean_dec(x_15); if (lean_obj_tag(x_17) == 0) { @@ -2774,7 +2774,7 @@ x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); lean_inc(x_23); -x_25 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_25 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_25, 0, x_5); lean_closure_set(x_25, 1, x_23); x_26 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); @@ -2887,7 +2887,7 @@ x_42 = lean_ctor_get(x_13, 1); lean_inc(x_42); lean_inc(x_41); lean_dec(x_13); -x_43 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_41, x_5); +x_43 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_41, x_5); lean_dec(x_41); if (lean_obj_tag(x_43) == 0) { @@ -2921,7 +2921,7 @@ x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); lean_inc(x_49); -x_51 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_51 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_51, 0, x_5); lean_closure_set(x_51, 1, x_49); x_52 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index f096854f12..f0c72918b1 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -76,7 +76,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___at___pri lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_moveEntries___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__12; extern lean_object* l_Lean_Meta_isExprDefEq___closed__2; @@ -241,7 +240,6 @@ lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__L lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqBindingDomain_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_insert___at_Lean_Meta_ForEachExpr_visit___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_trySynthPending(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_checkAssignment___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -271,7 +269,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft(lean_objec lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2; extern lean_object* l_Lean_Meta_isTypeCorrect___closed__1; extern lean_object* l_Lean_Meta_toCtorIfLit___closed__3; @@ -288,7 +285,6 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__ lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__4; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApprox_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqNative_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__6; lean_object* l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at_Lean_Meta_isExprDefEqAuxImpl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___closed__1; @@ -310,17 +306,14 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar_ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqProofIrrel_match__1(lean_object*); lean_object* l_Lean_Meta_throwIsDefEqStuck___rarg(lean_object*); lean_object* l_ReaderT_instMonadFunctorReaderT___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__6; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isListLevelDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_AssocList_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_run___closed__2; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_tryUnificationHints_tryCandidate___closed__2; -lean_object* l_Std_mkHashMap___at_Lean_Meta_CheckAssignment_State_cache___default___spec__1(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqOnFailure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_hasLetDeclsInBetween_match__1(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,10 +335,8 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApp extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_911____closed__1; lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_Meta_CheckAssignment_checkMVar___spec__38(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_run___closed__1; -lean_object* l_Lean_Meta_CheckAssignment_State_cache___default___closed__1; uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__43(lean_object*, lean_object*, size_t, size_t); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldReducibeDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t l_Lean_Expr_hash(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__3; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__54(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__3; @@ -382,7 +373,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar_ lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__5; extern lean_object* l_Lean_Expr_updateProj_x21___closed__3; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__40___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); @@ -461,7 +451,6 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkFVar___spec__ lean_object* l_Std_PersistentArray_foldlM___at_Lean_Meta_CheckAssignment_checkMVar___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___spec__1___lambda__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___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_Std_HashMapImp_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqRight(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__50(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -486,6 +475,7 @@ lean_object* l_Lean_LocalDecl_index(lean_object*); uint8_t l_Lean_MetavarKind_isSyntheticOpaque(uint8_t); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_CheckAssignment_checkFVar___spec__3(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*); +lean_object* l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___closed__3; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -503,7 +493,6 @@ lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__7; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDeltaCandidate_x3f_match__1(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__4; uint8_t l_Lean_Expr_isMVar(lean_object*); -uint8_t lean_expr_equal(lean_object*, lean_object*); lean_object* l_Lean_instMonadTrace___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDeltaCandidate_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -561,7 +550,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___cl lean_object* l_Lean_Meta_whenUndefDo_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq_match__1(lean_object*); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApprox_loop___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__33___boxed(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__11; @@ -581,7 +569,6 @@ lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMe lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssigned_match__1(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521_(lean_object*); lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9530_(lean_object*); -lean_object* l_Std_HashMapImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_checkAssignment___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -589,7 +576,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar(lean_objec lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwUnknownMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__59(lean_object*, size_t, size_t, lean_object*); -lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*); uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t, uint8_t); lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqApp___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -627,7 +613,6 @@ uint8_t l_Lean_MapDeclarationExtension_contains___at_Lean_Environment_isProjecti lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqNative_match__1(lean_object*); uint8_t l_Array_contains___at_Lean_Meta_CheckAssignment_checkFVar___spec__1(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__3(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLet_x21___closed__2; @@ -654,6 +639,7 @@ lean_object* l_Lean_addTrace___at_Lean_Meta_CheckAssignment_checkFVar___spec__4_ lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_checkAssignment___spec__1___closed__2; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeftRight___closed__2; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_consumeLet_match__1(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqBindingAux_match__1(lean_object*); @@ -663,7 +649,6 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___s lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs_match__1(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApproxAux_match__1(lean_object*); -lean_object* l_Std_AssocList_foldlM___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__5(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkApp___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -728,7 +713,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqProj_match__1(l extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_addLetDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeftRight___closed__1; lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -11923,28 +11907,11 @@ x_3 = l_Lean_registerInternalExceptionId(x_2, x_1); return x_3; } } -lean_object* l_Std_mkHashMap___at_Lean_Meta_CheckAssignment_State_cache___default___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_CheckAssignment_State_cache___default___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(8u); -x_2 = l_Std_mkHashMapImp___rarg(x_1); -return x_2; -} -} static lean_object* _init_l_Lean_Meta_CheckAssignment_State_cache___default() { _start: { lean_object* x_1; -x_1 = l_Lean_Meta_CheckAssignment_State_cache___default___closed__1; +x_1 = l_Std_HashMap_instInhabitedHashMap___closed__1; return x_1; } } @@ -12038,53 +12005,6 @@ lean_dec(x_2); return x_8; } } -lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_ctor_get(x_2, 2); -x_7 = lean_expr_equal(x_4, x_1); -if (x_7 == 0) -{ -x_2 = x_6; -goto _start; -} -else -{ -lean_object* x_9; -lean_inc(x_5); -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_5); -return x_9; -} -} -} -} -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; -x_3 = lean_ctor_get(x_1, 1); -x_4 = lean_array_get_size(x_3); -x_5 = l_Lean_Expr_hash(x_2); -x_6 = lean_usize_modn(x_5, x_4); -lean_dec(x_4); -x_7 = lean_array_uget(x_3, x_6); -x_8 = l_Std_AssocList_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__2(x_2, x_7); -lean_dec(x_7); -return x_8; -} -} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -12099,7 +12019,7 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_11, 0); -x_14 = l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__1(x_13, x_1); +x_14 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_13, x_1); lean_dec(x_13); lean_ctor_set(x_11, 0, x_14); return x_11; @@ -12112,7 +12032,7 @@ x_16 = lean_ctor_get(x_11, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_11); -x_17 = l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__1(x_15, x_1); +x_17 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_15, x_1); lean_dec(x_15); x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_17); @@ -12121,26 +12041,6 @@ return x_18; } } } -lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_AssocList_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_HashMapImp_find_x3f___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -12156,318 +12056,6 @@ lean_dec(x_1); return x_9; } } -uint8_t l_Std_AssocList_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_expr_equal(x_4, x_1); -if (x_6 == 0) -{ -x_2 = x_5; -goto _start; -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -} -lean_object* l_Std_AssocList_foldlM___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_2, 0); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_array_get_size(x_1); -x_7 = l_Lean_Expr_hash(x_4); -x_8 = lean_usize_modn(x_7, x_6); -lean_dec(x_6); -x_9 = lean_array_uget(x_1, x_8); -lean_ctor_set(x_2, 2, x_9); -x_10 = lean_array_uset(x_1, x_8, x_2); -x_1 = x_10; -x_2 = x_5; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_12 = lean_ctor_get(x_2, 0); -x_13 = lean_ctor_get(x_2, 1); -x_14 = lean_ctor_get(x_2, 2); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_2); -x_15 = lean_array_get_size(x_1); -x_16 = l_Lean_Expr_hash(x_12); -x_17 = lean_usize_modn(x_16, x_15); -lean_dec(x_15); -x_18 = lean_array_uget(x_1, x_17); -x_19 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_13); -lean_ctor_set(x_19, 2, x_18); -x_20 = lean_array_uset(x_1, x_17, x_19); -x_1 = x_20; -x_2 = x_14; -goto _start; -} -} -} -} -lean_object* l_Std_HashMapImp_moveEntries___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_1, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_array_fget(x_2, x_1); -x_7 = lean_box(0); -x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_Std_AssocList_foldlM___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__5(x_3, x_6); -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -lean_dec(x_1); -x_1 = x_11; -x_2 = x_8; -x_3 = x_9; -goto _start; -} -} -} -lean_object* l_Std_HashMapImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_3 = lean_array_get_size(x_2); -x_4 = lean_unsigned_to_nat(2u); -x_5 = lean_nat_mul(x_3, x_4); -lean_dec(x_3); -x_6 = lean_box(0); -x_7 = lean_mk_array(x_5, x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Std_HashMapImp_moveEntries___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__4(x_8, x_2, x_7); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_1); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -} -lean_object* l_Std_AssocList_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_3, 0); -x_7 = lean_ctor_get(x_3, 1); -x_8 = lean_ctor_get(x_3, 2); -x_9 = lean_expr_equal(x_6, x_1); -if (x_9 == 0) -{ -lean_object* x_10; -x_10 = l_Std_AssocList_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__6(x_1, x_2, x_8); -lean_ctor_set(x_3, 2, x_10); -return x_3; -} -else -{ -lean_dec(x_7); -lean_dec(x_6); -lean_ctor_set(x_3, 1, x_2); -lean_ctor_set(x_3, 0, x_1); -return x_3; -} -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_3, 0); -x_12 = lean_ctor_get(x_3, 1); -x_13 = lean_ctor_get(x_3, 2); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_3); -x_14 = lean_expr_equal(x_11, x_1); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = l_Std_AssocList_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__6(x_1, x_2, x_13); -x_16 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_16, 0, x_11); -lean_ctor_set(x_16, 1, x_12); -lean_ctor_set(x_16, 2, x_15); -return x_16; -} -else -{ -lean_object* x_17; -lean_dec(x_12); -lean_dec(x_11); -x_17 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_2); -lean_ctor_set(x_17, 2, x_13); -return x_17; -} -} -} -} -} -lean_object* l_Std_HashMapImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_array_get_size(x_6); -x_8 = l_Lean_Expr_hash(x_2); -x_9 = lean_usize_modn(x_8, x_7); -x_10 = lean_array_uget(x_6, x_9); -x_11 = l_Std_AssocList_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__2(x_2, x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_5, x_12); -lean_dec(x_5); -x_14 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_14, 0, x_2); -lean_ctor_set(x_14, 1, x_3); -lean_ctor_set(x_14, 2, x_10); -x_15 = lean_array_uset(x_6, x_9, x_14); -x_16 = lean_nat_dec_le(x_13, x_7); -lean_dec(x_7); -if (x_16 == 0) -{ -lean_object* x_17; -lean_free_object(x_1); -x_17 = l_Std_HashMapImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__3(x_13, x_15); -return x_17; -} -else -{ -lean_ctor_set(x_1, 1, x_15); -lean_ctor_set(x_1, 0, x_13); -return x_1; -} -} -else -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_7); -x_18 = l_Std_AssocList_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__6(x_2, x_3, x_10); -x_19 = lean_array_uset(x_6, x_9, x_18); -lean_ctor_set(x_1, 1, x_19); -return x_1; -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; uint8_t x_26; -x_20 = lean_ctor_get(x_1, 0); -x_21 = lean_ctor_get(x_1, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_1); -x_22 = lean_array_get_size(x_21); -x_23 = l_Lean_Expr_hash(x_2); -x_24 = lean_usize_modn(x_23, x_22); -x_25 = lean_array_uget(x_21, x_24); -x_26 = l_Std_AssocList_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__2(x_2, x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_20, x_27); -lean_dec(x_20); -x_29 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_29, 0, x_2); -lean_ctor_set(x_29, 1, x_3); -lean_ctor_set(x_29, 2, x_25); -x_30 = lean_array_uset(x_21, x_24, x_29); -x_31 = lean_nat_dec_le(x_28, x_22); -lean_dec(x_22); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = l_Std_HashMapImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__3(x_28, x_30); -return x_32; -} -else -{ -lean_object* x_33; -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_28); -lean_ctor_set(x_33, 1, x_30); -return x_33; -} -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_22); -x_34 = l_Std_AssocList_replace___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__6(x_2, x_3, x_25); -x_35 = lean_array_uset(x_21, x_24, x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_20); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -12482,7 +12070,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Std_HashMapImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__1(x_13, x_1, x_2); +x_15 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_13, x_1, x_2); x_16 = lean_st_ref_set(x_4, x_15, x_14); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) @@ -12508,17 +12096,6 @@ return x_22; } } } -lean_object* l_Std_AssocList_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_AssocList_contains___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___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: { @@ -65438,8 +65015,6 @@ if (lean_io_result_is_error(res)) return res; l_Lean_Meta_CheckAssignment_outOfScopeExceptionId = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_CheckAssignment_outOfScopeExceptionId); lean_dec_ref(res); -l_Lean_Meta_CheckAssignment_State_cache___default___closed__1 = _init_l_Lean_Meta_CheckAssignment_State_cache___default___closed__1(); -lean_mark_persistent(l_Lean_Meta_CheckAssignment_State_cache___default___closed__1); l_Lean_Meta_CheckAssignment_State_cache___default = _init_l_Lean_Meta_CheckAssignment_State_cache___default(); lean_mark_persistent(l_Lean_Meta_CheckAssignment_State_cache___default); l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1 = _init_l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/IndPredBelow.c b/stage0/stdlib/Lean/Meta/IndPredBelow.c index 5c3ad0a080..242b8850b2 100644 --- a/stage0/stdlib/Lean/Meta/IndPredBelow.c +++ b/stage0/stdlib/Lean/Meta/IndPredBelow.c @@ -60,6 +60,7 @@ lean_object* l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_inducti lean_object* l_ReaderT_bind___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__12(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_mkCongrLemma___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_transform_visit___rarg___lambda__12(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_IndPredBelow_proveBrecOn_applyIH___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkContext_mkHeader___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoCtor___at_Lean_Meta_IndPredBelow_mkConstructor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -177,6 +178,7 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_mkMotiveBinder(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_IndPredBelow_mkCtorType_modifyBinders___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*); lean_object* l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkCtorType_addHeaderVars___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_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_mkBrecOnDecl_mkIH(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_withLocalDecls_loop___rarg___lambda__1___boxed(lean_object*, lean_object*); @@ -240,7 +242,6 @@ lean_object* l_Lean_Meta_IndPredBelow_mkBelowDecl(lean_object*, lean_object*, le lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___lambda__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_isInductivePredicate_visit(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCtorType_addMotives___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___rarg___closed__11; extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l_Lean_LocalDecl_toExpr(lean_object*); @@ -403,7 +404,6 @@ lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors(lean_object*, lean_ lean_object* l_Lean_getConstInfoCtor___at_Lean_Meta_IndPredBelow_mkConstructor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_mkConstWithLevelParams___spec__1(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkContext_mkHeader___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___rarg___closed__7; @@ -4756,7 +4756,7 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = lean_ctor_get(x_14, 1); -x_18 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_16, x_5); +x_18 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_16, x_5); lean_dec(x_16); if (lean_obj_tag(x_18) == 0) { @@ -4792,7 +4792,7 @@ x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); lean_inc(x_24); -x_26 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_26 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_26, 0, x_5); lean_closure_set(x_26, 1, x_24); x_27 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); @@ -4907,7 +4907,7 @@ x_43 = lean_ctor_get(x_14, 1); lean_inc(x_43); lean_inc(x_42); lean_dec(x_14); -x_44 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_42, x_5); +x_44 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_42, x_5); lean_dec(x_42); if (lean_obj_tag(x_44) == 0) { @@ -4942,7 +4942,7 @@ x_51 = lean_ctor_get(x_49, 1); lean_inc(x_51); lean_dec(x_49); lean_inc(x_50); -x_52 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_52 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_52, 0, x_5); lean_closure_set(x_52, 1, x_50); x_53 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); diff --git a/stage0/stdlib/Lean/Meta/InferType.c b/stage0/stdlib/Lean/Meta/InferType.c index 21d7609d53..ffd96e338a 100644 --- a/stage0/stdlib/Lean/Meta/InferType.c +++ b/stage0/stdlib/Lean/Meta/InferType.c @@ -39,6 +39,7 @@ lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferMVarType___boxed( lean_object* l_Lean_throwError___at_Lean_Meta_throwFunctionExpected___spec__1(lean_object*); lean_object* l_Lean_Expr_instantiateBetaRevRange_visit___closed__1; lean_object* l_Std_PersistentHashMap_insertAux_traverse___at___private_Lean_Meta_InferType_0__Lean_Meta_checkInferTypeCache___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_ExprStructEq_instHashableExprStructEq; lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1313____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Expr_instantiateBetaRevRange_visit___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -83,6 +84,7 @@ lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Meta_InferType_0__Lea uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Expr_instantiateBetaRevRange___closed__6; lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_ExprStructEq_instBEqExprStructEq; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Std_AssocList_foldlM___at_Lean_Expr_instantiateBetaRevRange_visit___spec__7(lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__2; @@ -142,7 +144,6 @@ extern lean_object* l_Lean_Meta_getMVarDecl___closed__2; lean_object* l_Lean_Expr_instantiateBetaRevRange_visit___closed__4; extern lean_object* l_Lean_Meta_inferTypeRef; lean_object* l_Std_AssocList_find_x3f___at_Lean_Expr_instantiateBetaRevRange_visit___spec__2___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_instHashableExpr; size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Lean_Expr_instantiateBetaRevRange_visit___closed__9; lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isArrowProposition(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -200,7 +201,6 @@ lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeQuick(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLevelSucc(lean_object*); lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_isAlwaysZero_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t lean_expr_equal(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); @@ -247,7 +247,6 @@ lean_object* l_instHashableNat___boxed(lean_object*); lean_object* l_Std_mkHashMap___at_Lean_Expr_instantiateBetaRevRange___spec__1(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_throwUnknownMVar___spec__1(lean_object*); size_t lean_usize_mix_hash(size_t, size_t); -extern lean_object* l_Lean_Expr_instBEqExpr; lean_object* l_Lean_Meta_isProofQuick___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateBetaRevRange_visit___closed__5; lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1(lean_object*); @@ -629,7 +628,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); x_9 = lean_ctor_get(x_1, 0); x_10 = lean_ctor_get(x_1, 1); -x_11 = lean_expr_eqv(x_7, x_9); +x_11 = lean_expr_equal(x_7, x_9); if (x_11 == 0) { x_2 = x_6; @@ -693,7 +692,7 @@ x_6 = lean_ctor_get(x_4, 0); x_7 = lean_ctor_get(x_4, 1); x_8 = lean_ctor_get(x_1, 0); x_9 = lean_ctor_get(x_1, 1); -x_10 = lean_expr_eqv(x_6, x_8); +x_10 = lean_expr_equal(x_6, x_8); if (x_10 == 0) { x_2 = x_5; @@ -865,7 +864,7 @@ x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_1, 1); lean_inc(x_12); -x_13 = lean_expr_eqv(x_9, x_11); +x_13 = lean_expr_equal(x_9, x_11); lean_dec(x_11); lean_dec(x_9); if (x_13 == 0) @@ -918,7 +917,7 @@ x_22 = lean_ctor_get(x_1, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_1, 1); lean_inc(x_23); -x_24 = lean_expr_eqv(x_20, x_22); +x_24 = lean_expr_equal(x_20, x_22); lean_dec(x_22); lean_dec(x_20); if (x_24 == 0) @@ -1263,7 +1262,7 @@ static lean_object* _init_l_Lean_Expr_instantiateBetaRevRange_visit___closed__2( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Expr_instBEqExpr; +x_1 = l_Lean_ExprStructEq_instBEqExprStructEq; x_2 = l_Lean_Expr_instantiateBetaRevRange_visit___closed__1; x_3 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -1283,7 +1282,7 @@ static lean_object* _init_l_Lean_Expr_instantiateBetaRevRange_visit___closed__4( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Expr_instHashableExpr; +x_1 = l_Lean_ExprStructEq_instHashableExprStructEq; x_2 = l_Lean_Expr_instantiateBetaRevRange_visit___closed__3; x_3 = lean_alloc_closure((void*)(l_instHashableProd___rarg___boxed), 3, 2); lean_closure_set(x_3, 0, x_1); diff --git a/stage0/stdlib/Lean/Meta/Instances.c b/stage0/stdlib/Lean/Meta/Instances.c index 03efc40b6c..73f0c61b15 100644 --- a/stage0/stdlib/Lean/Meta/Instances.c +++ b/stage0/stdlib/Lean/Meta/Instances.c @@ -135,6 +135,7 @@ lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Meta_addInstance___spec__1_ extern lean_object* l_Lean_Meta_DiscrTree_root___default___closed__1; lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_addInstanceEntry___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__3(lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; extern lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__2; lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_430____spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; @@ -219,7 +220,6 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); extern lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_243____closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Meta_addDefaultInstance_match__2(lean_object*); @@ -2772,7 +2772,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c index f6e10bd26a..22f78132b0 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c @@ -65,7 +65,7 @@ extern lean_object* l_Lean_Meta_caseValue___closed__2; lean_object* l_Lean_Meta_getArrayArgType___closed__1; lean_object* l_Lean_Expr_fvarId_x21(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_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_Meta_getArrayArgType___closed__2; lean_object* l_Lean_Meta_mkArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedCaseArraySizesSubgoal; @@ -864,7 +864,7 @@ x_48 = lean_unsigned_to_nat(1u); x_49 = lean_nat_add(x_7, x_48); lean_inc(x_49); lean_inc(x_4); -x_50 = l_Lean_Name_appendIndexAfter(x_4, x_49); +x_50 = lean_name_append_index_after(x_4, x_49); lean_inc(x_6); x_51 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit_loop___lambda__2), 16, 10); lean_closure_set(x_51, 0, x_8); diff --git a/stage0/stdlib/Lean/Meta/Match/CaseValues.c b/stage0/stdlib/Lean/Meta/Match/CaseValues.c index b67cd5e132..7bcf733f4d 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseValues.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseValues.c @@ -63,7 +63,7 @@ lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean lean_object* l_Lean_Meta_caseValueAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValue___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedCaseValuesSubgoal; lean_object* l_Lean_Meta_caseValueAux_match__1___rarg(lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); @@ -1670,7 +1670,7 @@ lean_inc(x_18); lean_dec(x_5); lean_inc(x_3); lean_inc(x_2); -x_19 = l_Lean_Name_appendIndexAfter(x_2, x_3); +x_19 = lean_name_append_index_after(x_2, x_3); x_20 = lean_box(0); lean_inc(x_11); lean_inc(x_10); @@ -1699,7 +1699,7 @@ x_28 = lean_ctor_get(x_23, 2); lean_inc(x_28); x_29 = l_Lean_Meta_caseValues_loop___closed__6; lean_inc(x_3); -x_30 = l_Lean_Name_appendIndexAfter(x_29, x_3); +x_30 = lean_name_append_index_after(x_29, x_3); lean_inc(x_26); x_31 = l_Lean_Meta_appendTagSuffix(x_26, x_30, x_8, x_9, x_10, x_11, x_24); if (lean_obj_tag(x_31) == 0) @@ -1815,7 +1815,7 @@ lean_dec(x_25); x_41 = lean_unsigned_to_nat(1u); x_42 = lean_nat_add(x_3, x_41); lean_dec(x_3); -x_43 = l_Lean_Name_appendIndexAfter(x_29, x_42); +x_43 = lean_name_append_index_after(x_29, x_42); lean_inc(x_39); x_44 = l_Lean_Meta_appendTagSuffix(x_39, x_43, x_8, x_9, x_10, x_11, x_34); lean_dec(x_11); diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index 712a9813c5..7364cde689 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -361,7 +361,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTran lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasValPattern(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__2; -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_Meta_getInductiveUniverseAndParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasRecursiveType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_replace___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__7___boxed(lean_object*, lean_object*, lean_object*); @@ -1400,7 +1400,7 @@ x_35 = l_List_lengthAux___rarg(x_4, x_34); x_36 = lean_unsigned_to_nat(1u); x_37 = lean_nat_add(x_35, x_36); x_38 = l_Lean_Meta_caseValue___closed__2; -x_39 = l_Lean_Name_appendIndexAfter(x_38, x_37); +x_39 = lean_name_append_index_after(x_38, x_37); x_63 = lean_st_ref_get(x_9, x_29); x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); @@ -15912,7 +15912,7 @@ x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_sub(x_5, x_14); x_16 = lean_nat_add(x_15, x_14); lean_inc(x_4); -x_17 = l_Lean_Name_appendIndexAfter(x_4, x_16); +x_17 = lean_name_append_index_after(x_4, x_16); lean_inc(x_3); x_18 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoArrayLit_loop___lambda__1___boxed), 12, 6); lean_closure_set(x_18, 0, x_6); diff --git a/stage0/stdlib/Lean/Meta/Reduce.c b/stage0/stdlib/Lean/Meta/Reduce.c index cd471e2865..4d454bab33 100644 --- a/stage0/stdlib/Lean/Meta/Reduce.c +++ b/stage0/stdlib/Lean/Meta/Reduce.c @@ -35,6 +35,7 @@ lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4(l lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_reduce_visit___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduce_visit___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_st_ref_take(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Meta_reduce_visit_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_reduce_visit___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*); @@ -55,7 +56,6 @@ extern lean_object* l_Lean_Meta_instInhabitedParamInfo; lean_object* l_Lean_Meta_reduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduce_visit___lambda__4(lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Meta_reduce_visit___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Meta_reduce_visit___spec__1(lean_object*); @@ -70,9 +70,9 @@ lean_object* lean_mk_array(lean_object*, lean_object*); extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1; lean_object* l_Lean_Meta_reduce_visit___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_Lean_Meta_reduce_visit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_reduce_visit___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Meta_reduce_visit___spec__6___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_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1291,7 +1291,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); -x_17 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_15, x_4); +x_17 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_15, x_4); lean_dec(x_15); if (lean_obj_tag(x_17) == 0) { @@ -1341,7 +1341,7 @@ x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); lean_inc(x_28); -x_35 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_33, x_4, x_28); +x_35 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_33, x_4, x_28); x_36 = lean_st_ref_set(x_5, x_35, x_34); lean_dec(x_5); x_37 = !lean_is_exclusive(x_36); @@ -1415,7 +1415,7 @@ x_47 = lean_ctor_get(x_13, 1); lean_inc(x_47); lean_inc(x_46); lean_dec(x_13); -x_48 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_46, x_4); +x_48 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_46, x_4); lean_dec(x_46); if (lean_obj_tag(x_48) == 0) { @@ -1464,7 +1464,7 @@ x_65 = lean_ctor_get(x_63, 1); lean_inc(x_65); lean_dec(x_63); lean_inc(x_59); -x_66 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_64, x_4, x_59); +x_66 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_64, x_4, x_59); x_67 = lean_st_ref_set(x_5, x_66, x_65); lean_dec(x_5); x_68 = lean_ctor_get(x_67, 1); diff --git a/stage0/stdlib/Lean/Meta/SizeOf.c b/stage0/stdlib/Lean/Meta/SizeOf.c index 929aa9f36e..900dbee4fe 100644 --- a/stage0/stdlib/Lean/Meta/SizeOf.c +++ b/stage0/stdlib/Lean/Meta/SizeOf.c @@ -199,7 +199,7 @@ lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___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_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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*); @@ -297,7 +297,7 @@ lean_object* l_Lean_setEnv___at___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSp lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2(lean_object*); -lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); +lean_object* lean_name_append_after(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___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_Lean_isInductivePredicate___at_Lean_Meta_mkSizeOfInstances___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5231,7 +5231,7 @@ lean_inc(x_15); lean_dec(x_13); lean_inc(x_12); lean_inc(x_1); -x_16 = l_Lean_Name_appendIndexAfter(x_1, x_12); +x_16 = lean_name_append_index_after(x_1, x_12); x_17 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_21357____closed__3; x_18 = lean_name_mk_string(x_10, x_17); lean_inc(x_7); @@ -5331,10 +5331,10 @@ x_22 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_21357____closed__ lean_inc(x_1); x_23 = lean_name_mk_string(x_1, x_22); x_24 = lean_nat_add(x_5, x_16); -x_25 = l_Lean_Name_appendIndexAfter(x_23, x_24); +x_25 = lean_name_append_index_after(x_23, x_24); lean_inc(x_18); lean_inc(x_2); -x_26 = l_Lean_Name_appendIndexAfter(x_2, x_18); +x_26 = lean_name_append_index_after(x_2, x_18); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -9523,7 +9523,7 @@ x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); x_16 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_SizeOfSpecNested_mkSizeOfAuxLemma___closed__1; -x_17 = l_Lean_Name_appendAfter(x_11, x_16); +x_17 = lean_name_append_after(x_11, x_16); x_18 = lean_st_ref_get(x_7, x_15); x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) diff --git a/stage0/stdlib/Lean/Meta/Tactic/Cases.c b/stage0/stdlib/Lean/Meta/Tactic/Cases.c index edf21f7f85..bbb957d2f5 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Cases.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Cases.c @@ -94,7 +94,6 @@ lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0_ lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__1(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Expr_appFn_x21(lean_object*); -extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__38(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -224,6 +223,7 @@ lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; lean_object* l_Lean_Meta_Cases_unifyEqs_match__2(lean_object*); lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_Cases_hasIndepIndices___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_observing_x3f___at_Lean_Meta_Cases_unifyEqs_substEq___spec__1___at_Lean_Meta_Cases_unifyEqs_substEq___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -13406,7 +13406,7 @@ static lean_object* _init_l_Lean_Meta_Cases_cases___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; x_2 = l_Lean_Parser_Tactic_cases___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c b/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c index d575da6fd5..dd4518a66a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c +++ b/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c @@ -44,7 +44,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_getElimInfo___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_getElimInfo___spec__8(lean_object*, lean_object*, size_t, size_t); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; 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_Array_foldlMUnsafe_fold___at___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___spec__5___closed__1; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; @@ -53,9 +53,9 @@ extern lean_object* l_instReprProd___rarg___closed__1; lean_object* l_Lean_Meta_addImplicitTargets___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_getElimInfo___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; lean_object* l_Lean_Meta_addImplicitTargets(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getElimInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_addImplicitTargets___spec__2___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Meta_getElimInfo___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -157,12 +157,12 @@ lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_objec extern lean_object* l_Array_instReprArray___rarg___closed__2; lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_getElimInfo___spec__6___closed__1; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; 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_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getElimInfo___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; extern lean_object* l_Lean_Name_instReprName___closed__2; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; lean_object* l_Array_contains___at_Lean_Meta_addImplicitTargets_collect___spec__1___boxed(lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_getElimInfo___spec__6___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_getElimInfo___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -217,7 +217,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Tactic_ElimInfo_0__Lean_Meta_reprElimAltInfo____x40_Lean_Meta_Tactic_ElimInfo___hyg_7____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -272,7 +272,7 @@ x_15 = l___private_Lean_Meta_Tactic_ElimInfo_0__Lean_Meta_reprElimAltInfo____x40 x_16 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -285,15 +285,15 @@ lean_ctor_set(x_21, 0, x_20); x_22 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_22, 0, x_18); lean_ctor_set(x_22, 1, x_21); -x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_24 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -x_25 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_25 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_26 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); -x_27 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_27 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_28 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); @@ -540,7 +540,7 @@ x_15 = l___private_Lean_Meta_Tactic_ElimInfo_0__Lean_Meta_reprElimInfo____x40_Le x_16 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -654,15 +654,15 @@ lean_ctor_set_uint8(x_52, sizeof(void*)*1, x_51); x_53 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_53, 0, x_41); lean_ctor_set(x_53, 1, x_52); -x_54 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_54 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_55 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); -x_56 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_56 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_57 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_57, 0, x_55); lean_ctor_set(x_57, 1, x_56); -x_58 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_58 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_59 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); @@ -680,15 +680,15 @@ x_62 = l_Array_instReprArray___rarg___closed__5; x_63 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_63, 0, x_41); lean_ctor_set(x_63, 1, x_62); -x_64 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_64 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_65 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); -x_66 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_66 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_67 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_67, 0, x_65); lean_ctor_set(x_67, 1, x_66); -x_68 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_68 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_69 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Induction.c b/stage0/stdlib/Lean/Meta/Tactic/Induction.c index 1de47e5a7f..8e3de7469f 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Induction.c @@ -56,7 +56,6 @@ lean_object* l_List_foldlM___at_Lean_Meta_induction___spec__6___lambda__1(lean_o lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__7___closed__7; lean_object* l_Lean_Meta_induction___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_Meta_induction___closed__3; -extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; extern lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___closed__4; lean_object* l_Lean_Meta_InductionSubgoal_fields___default; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -144,6 +143,7 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui lean_object* l_Lean_Meta_synthInstance_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__7___boxed(lean_object**); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__7___closed__1; +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; lean_object* l_Lean_Meta_RecursorInfo_firstIndexPos(lean_object*); lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_loop___lambda__3___closed__1; uint8_t l_Lean_Expr_isForall(lean_object*); @@ -5665,7 +5665,7 @@ static lean_object* _init_l_Lean_Meta_induction___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; x_2 = l_Lean_Parser_Tactic_induction___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c index f7f9f5a5b7..40e122a0ed 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/CongrLemmas.c @@ -89,7 +89,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_CongrLemmas_get___spec__6___boxed(lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5___closed__7; extern lean_object* l_Applicative_seqRight___default___rarg___closed__1; @@ -109,8 +109,8 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_mkCongrLemma___s lean_object* l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_21____closed__10; uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Meta_CongrLemmas_get___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; lean_object* l_Lean_SMap_fold___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_119____spec__2___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_ScopedEnvExtension_instInhabitedDescr___rarg___closed__1; lean_object* l_Lean_Meta_congrExtension___closed__2; @@ -313,15 +313,15 @@ lean_object* l_Lean_Meta_getCongrLemmas___rarg___boxed(lean_object*, lean_object lean_object* l_repr___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_119____spec__15(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrLemma___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_CongrLemmas_get___spec__2___boxed(lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; lean_object* l_Lean_ScopedEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; extern lean_object* l_Lean_Name_instReprName___closed__2; extern lean_object* l_Std_Format_sbracket___closed__2; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedCongrLemmas; uint8_t l_Lean_Meta_mkCongrLemma_onlyMVarsAt___lambda__1(lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Meta_CongrLemmas_get___spec__2(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_119____spec__8(lean_object*); @@ -479,7 +479,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_21____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -570,7 +570,7 @@ x_15 = l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma x_16 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_17 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_18 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -651,15 +651,15 @@ lean_ctor_set(x_52, 1, x_17); x_53 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_35); -x_54 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_54 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_55 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); -x_56 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_56 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_57 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_57, 0, x_55); lean_ctor_set(x_57, 1, x_56); -x_58 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_58 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_59 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_57); @@ -693,15 +693,15 @@ lean_ctor_set(x_68, 1, x_17); x_69 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_35); -x_70 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_70 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_71 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_69); -x_72 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_72 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_73 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_73, 0, x_71); lean_ctor_set(x_73, 1, x_72); -x_74 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_74 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_75 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_73); @@ -1635,7 +1635,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_119____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__4; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__4; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -1668,7 +1668,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_2 = l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_119____closed__6; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1681,7 +1681,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_119____closed__7; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -1692,7 +1692,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_2 = l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemmas____x40_Lean_Meta_Tactic_Simp_CongrLemmas___hyg_119____closed__8; x_3 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1754,15 +1754,15 @@ x_19 = l___private_Lean_Meta_Tactic_Simp_CongrLemmas_0__Lean_Meta_reprCongrLemma x_20 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); -x_21 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__28; +x_21 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__28; x_22 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); -x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__29; +x_23 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__29; x_24 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); -x_25 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__27; +x_25 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__27; x_26 = lean_alloc_ctor(3, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c index 69f6ae4be5..80e7875b56 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -64,6 +64,7 @@ lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main lean_object* l_Lean_Meta_Simp_DefaultMethods_post(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_tryCongrLemma_x3f___lambda__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* l_Lean_Core_transform_visit___rarg___lambda__12(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrDefault___spec__1___closed__2; lean_object* l_Lean_Meta_Simp_simp___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_Meta_Simp_simp_simpLet___closed__5; @@ -184,6 +185,7 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Simp_simp_simpForall___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpForall___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_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_simpArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_simp_processCongrHypothesis___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*); @@ -248,7 +250,6 @@ size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_processCongrHypothesis___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* l_Lean_Meta_Simp_simp_simpApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_Result_getProof_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__8(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_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -420,7 +421,6 @@ lean_object* l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tact lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryCongrLemma_x3f___spec__1___closed__2; -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__7___boxed(lean_object*, lean_object*); @@ -6822,7 +6822,7 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; lean_object* x_20; x_18 = lean_ctor_get(x_16, 0); x_19 = lean_ctor_get(x_16, 1); -x_20 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_18, x_5); +x_20 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_18, x_5); lean_dec(x_18); if (lean_obj_tag(x_20) == 0) { @@ -6860,7 +6860,7 @@ x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); lean_inc(x_26); -x_28 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_28 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_28, 0, x_5); lean_closure_set(x_28, 1, x_26); x_29 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); @@ -6979,7 +6979,7 @@ x_45 = lean_ctor_get(x_16, 1); lean_inc(x_45); lean_inc(x_44); lean_dec(x_16); -x_46 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_44, x_5); +x_46 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_44, x_5); lean_dec(x_44); if (lean_obj_tag(x_46) == 0) { @@ -7016,7 +7016,7 @@ x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); lean_dec(x_51); lean_inc(x_52); -x_54 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_54 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_54, 0, x_5); lean_closure_set(x_54, 1, x_52); x_55 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Subst.c b/stage0/stdlib/Lean/Meta/Tactic/Subst.c index ac32657bab..e2d6ec131a 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Subst.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Subst.c @@ -54,7 +54,6 @@ lean_object* l_Lean_Meta_substCore___lambda__16___boxed(lean_object**); lean_object* l_Std_PersistentArray_findSomeMAux___at_Lean_Meta_subst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_subst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_substCore___lambda__16(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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -134,6 +133,7 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui lean_object* l_Lean_Meta_substCore___lambda__11(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*, lean_object*, lean_object*); lean_object* l_Lean_Meta_substCore___lambda__13___boxed(lean_object**); lean_object* l_Lean_Meta_subst_match__3(lean_object*); +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at_Lean_Meta_substCore___spec__6___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_mkFVar(lean_object*); @@ -5041,7 +5041,7 @@ static lean_object* _init_l_Lean_Meta_substCore___lambda__20___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; +x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; x_2 = l_Lean_Parser_Tactic_subst___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Lean/Meta/Tactic/Util.c b/stage0/stdlib/Lean/Meta/Tactic/Util.c index c279b3c6a3..c3a1480f5d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Util.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Util.c @@ -41,7 +41,6 @@ lean_object* l_Lean_Meta_checkNotAssigned___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_setMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -64,6 +63,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__4 extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_740____closed__2; extern lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__3; lean_object* l_Std_HashSetImp_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Name_hasMacroScopes(lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__4; lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__2___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -90,6 +90,7 @@ size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__9(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1(lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; lean_object* l_Std_HashSetImp_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__7(lean_object*, lean_object*); @@ -139,7 +140,7 @@ lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec extern lean_object* l_Lean_Parser_Tactic_intro___closed__1; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getNondepPropHyps_removeDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225_(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -319,42 +320,55 @@ return x_8; lean_object* l_Lean_Meta_appendTag(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; uint8_t x_4; -x_3 = l_Lean_extractMacroScopes(x_1); -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) +uint8_t x_3; +x_3 = l_Lean_Name_hasMacroScopes(x_1); +if (x_3 == 0) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_erase_macro_scopes(x_2); -x_7 = l_Lean_Name_append(x_5, x_6); -lean_dec(x_5); -lean_ctor_set(x_3, 0, x_7); -x_8 = l_Lean_MacroScopesView_review(x_3); -return x_8; +lean_object* x_4; lean_object* x_5; +x_4 = lean_erase_macro_scopes(x_2); +x_5 = l_Lean_Name_append(x_1, x_4); +lean_dec(x_1); +return x_5; } else { -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; -x_9 = lean_ctor_get(x_3, 0); -x_10 = lean_ctor_get(x_3, 1); -x_11 = lean_ctor_get(x_3, 2); -x_12 = lean_ctor_get(x_3, 3); +lean_object* x_6; uint8_t x_7; +x_6 = l_Lean_extractMacroScopes(x_1); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_erase_macro_scopes(x_2); +x_10 = l_Lean_Name_append(x_8, x_9); +lean_dec(x_8); +lean_ctor_set(x_6, 0, x_10); +x_11 = l_Lean_MacroScopesView_review(x_6); +return x_11; +} +else +{ +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; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +x_14 = lean_ctor_get(x_6, 2); +x_15 = lean_ctor_get(x_6, 3); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_3); -x_13 = lean_erase_macro_scopes(x_2); -x_14 = l_Lean_Name_append(x_9, x_13); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_10); -lean_ctor_set(x_15, 2, x_11); -lean_ctor_set(x_15, 3, x_12); -x_16 = l_Lean_MacroScopesView_review(x_15); -return x_16; +lean_dec(x_6); +x_16 = lean_erase_macro_scopes(x_2); +x_17 = l_Lean_Name_append(x_12, x_16); +lean_dec(x_12); +x_18 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_13); +lean_ctor_set(x_18, 2, x_14); +lean_ctor_set(x_18, 3, x_15); +x_19 = l_Lean_MacroScopesView_review(x_18); +return x_19; +} } } } @@ -832,7 +846,7 @@ return x_22; } } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -842,11 +856,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -4245,9 +4259,9 @@ l_Lean_Meta_checkNotAssigned___closed__2 = _init_l_Lean_Meta_checkNotAssigned___ lean_mark_persistent(l_Lean_Meta_checkNotAssigned___closed__2); l_Lean_Meta_checkNotAssigned___closed__3 = _init_l_Lean_Meta_checkNotAssigned___closed__3(); lean_mark_persistent(l_Lean_Meta_checkNotAssigned___closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238____closed__1); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_238_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225____closed__1); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_225_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Meta_admit___closed__1 = _init_l_Lean_Meta_admit___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Transform.c b/stage0/stdlib/Lean/Meta/Transform.c index 5ed211c6f9..db0c339c69 100644 --- a/stage0/stdlib/Lean/Meta/Transform.c +++ b/stage0/stdlib/Lean/Meta/Transform.c @@ -23,10 +23,9 @@ size_t l_USize_add(size_t, size_t); lean_object* l_Array_mapMUnsafe_map___at_Lean_Core_transform_visit___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*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Core_transform_visit___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Core_transform(lean_object*); -lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitPost___rarg(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_Meta_whnf___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Core_transform_visit___rarg___lambda__11(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_transform_visit___rarg___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Lean_Meta_transform_visit_visitLambda(lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLet___rarg___lambda__4(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*); @@ -37,6 +36,7 @@ lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Meta_transform___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_zetaReduce___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_transform_visit___rarg___lambda__12(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Core_betaReduce___spec__7___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLet___rarg___lambda__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*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); @@ -56,6 +56,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Core_betaReduce___spec__4(lean_obj lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLambda___rarg___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_Lean_Meta_transform_visit_visitLambda___rarg___lambda__4(uint64_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_Core_transform_visit___rarg___lambda__14(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_zetaReduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitForall_match__1(lean_object*); lean_object* l_Lean_Core_transform___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -74,11 +75,10 @@ lean_object* l_Lean_Expr_withAppAux___at_Lean_Core_transform_visit___spec__2___r lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___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*); lean_object* l_Lean_Meta_transform___rarg___closed__1; lean_object* l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__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* l_Lean_Core_transform_visit___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_Core_transform_visit___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_Core_withIncRecDepth___at_Lean_Core_transform_visit___spec__4___rarg___lambda__3(lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Core_transform_visit___rarg___lambda__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*); +lean_object* l_Lean_Core_transform_visit___rarg___lambda__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_Meta_transform(lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLambda___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_Core_transform_visit_visitPost_match__1(lean_object*); @@ -98,6 +98,7 @@ lean_object* l_Lean_Meta_transform_visit___rarg___lambda__1(lean_object*, lean_o lean_object* l_Lean_Meta_transform___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___spec__2___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_Expr_withAppAux___at_Lean_Core_transform_visit___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_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Core_transform___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform___rarg___lambda__2(lean_object*, lean_object*, lean_object*); @@ -111,7 +112,7 @@ lean_object* l_Lean_Meta_transform_visit_visitLet___rarg___lambda__1(lean_object lean_object* l_Lean_Core_betaReduce___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform_visit_visitPost(lean_object*); -lean_object* l_Lean_Core_transform_visit___rarg___lambda__3(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_transform_visit___rarg___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_ReaderT_bind___at_Lean_Meta_transform_visit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_betaReduce___closed__2; @@ -133,11 +134,11 @@ lean_object* l_Lean_Expr_withAppAux___at_Lean_Core_betaReduce___spec__5___boxed_ lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_transform_visit___spec__4(lean_object*); extern lean_object* l_Lean_Expr_updateProj_x21___closed__3; lean_object* l_Lean_Core_transform_visit(lean_object*); -lean_object* l_Lean_Core_transform_visit___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* l_Lean_Core_transform_visit___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform_visit_visitPost___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Core_transform_visit___spec__1___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_transform_visit___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_transform_visit___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform___at_Lean_Core_betaReduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -162,6 +163,7 @@ lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_transform_visit___spec__ lean_object* l_Lean_Meta_zetaReduce_match__2(lean_object*); lean_object* l_Lean_Core_transform_visit_match__1(lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Core_transform_visit___spec__2___rarg___lambda__2___boxed__const__1; +lean_object* l_ReaderT_instMonadReaderT___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit_visitLet_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_transform_visit___rarg___lambda__3(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_transform___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -169,6 +171,7 @@ lean_object* l_Lean_Meta_transform_visit_visitForall_match__1___rarg(lean_object lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Lean_Core_transform___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Core_betaReduce___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* l_Lean_Core_transform_visit___rarg___lambda__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateMData_x21___closed__3; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Core_withIncRecDepth___at_Lean_Core_transform_visit___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -199,21 +202,21 @@ lean_object* l_Lean_Meta_transform_visit_visitLet___rarg___lambda__3(lean_object lean_object* l_Lean_Meta_transform_visit_visitForall(lean_object*); lean_object* l_Lean_Meta_zetaReduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_Lean_Core_transform_visit___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Core_transform_visit___rarg___lambda__8(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_Std_HashMap_instInhabitedHashMap___closed__1; lean_object* l_Lean_Meta_transform_visit_visitPost___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_Meta_transform_visit_visitLet___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_Core_transform_visit___at_Lean_Core_betaReduce___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform___rarg___lambda__6(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_zetaReduce_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Core_transform_visit___rarg___lambda__4(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_transform_visit___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_zetaReduce___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLet_x21___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_transform_visit___spec__1(lean_object*); +lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_zetaReduce_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_betaReduce___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_Core_transform_visit___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_transform_visit___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*, lean_object*, lean_object*); @@ -776,7 +779,22 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Core_withIncRecDepth___at_Lean_Core_tran return x_2; } } -lean_object* l_Lean_Core_transform_visit___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* l_Lean_Core_transform_visit___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_3, x_1); +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_apply_2(x_6, lean_box(0), x_4); +return x_7; +} +} +lean_object* l_Lean_Core_transform_visit___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: { if (lean_obj_tag(x_1) == 6) @@ -828,7 +846,7 @@ return x_27; } } } -lean_object* l_Lean_Core_transform_visit___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_Lean_Core_transform_visit___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, 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; @@ -840,7 +858,7 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); x_12 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_13 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__1), 10, 9); +x_13 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__2), 10, 9); lean_closure_set(x_13, 0, x_9); lean_closure_set(x_13, 1, x_1); lean_closure_set(x_13, 2, x_2); @@ -854,7 +872,7 @@ x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_12, x_13); return x_14; } } -lean_object* l_Lean_Core_transform_visit___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Core_transform_visit___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { if (lean_obj_tag(x_1) == 7) @@ -906,7 +924,7 @@ return x_27; } } } -lean_object* l_Lean_Core_transform_visit___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Core_transform_visit___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, 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; @@ -918,7 +936,7 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); x_12 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_13 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__3), 10, 9); +x_13 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__4), 10, 9); lean_closure_set(x_13, 0, x_9); lean_closure_set(x_13, 1, x_1); lean_closure_set(x_13, 2, x_2); @@ -932,7 +950,7 @@ x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_12, x_13); return x_14; } } -lean_object* l_Lean_Core_transform_visit___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Core_transform_visit___rarg___lambda__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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (lean_obj_tag(x_1) == 8) @@ -985,7 +1003,7 @@ return x_26; } } } -lean_object* l_Lean_Core_transform_visit___rarg___lambda__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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Core_transform_visit___rarg___lambda__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, 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; @@ -997,7 +1015,7 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); x_13 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -x_14 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__5), 11, 10); +x_14 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__6), 11, 10); lean_closure_set(x_14, 0, x_9); lean_closure_set(x_14, 1, x_1); lean_closure_set(x_14, 2, x_2); @@ -1012,7 +1030,7 @@ x_15 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_13, x_14); return x_15; } } -lean_object* l_Lean_Core_transform_visit___rarg___lambda__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, 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_Lean_Core_transform_visit___rarg___lambda__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, 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; @@ -1025,7 +1043,7 @@ lean_inc(x_2); lean_inc(x_1); x_13 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_inc(x_11); -x_14 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__6), 12, 11); +x_14 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__7), 12, 11); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_2); lean_closure_set(x_14, 2, x_3); @@ -1041,7 +1059,7 @@ x_15 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_13, x_14); return x_15; } } -lean_object* l_Lean_Core_transform_visit___rarg___lambda__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, lean_object* x_9) { +lean_object* l_Lean_Core_transform_visit___rarg___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { if (lean_obj_tag(x_1) == 10) @@ -1086,7 +1104,7 @@ return x_22; } } } -lean_object* l_Lean_Core_transform_visit___rarg___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Core_transform_visit___rarg___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { if (lean_obj_tag(x_1) == 11) @@ -1134,7 +1152,7 @@ return x_23; } } } -lean_object* l_Lean_Core_transform_visit___rarg___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Core_transform_visit___rarg___lambda__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { if (lean_obj_tag(x_8) == 0) @@ -1196,7 +1214,7 @@ lean_inc(x_2); lean_inc(x_1); x_24 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_9); lean_inc(x_7); -x_25 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__2), 11, 10); +x_25 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__3), 11, 10); lean_closure_set(x_25, 0, x_1); lean_closure_set(x_25, 1, x_2); lean_closure_set(x_25, 2, x_3); @@ -1226,7 +1244,7 @@ lean_inc(x_2); lean_inc(x_1); x_29 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_27, x_9); lean_inc(x_7); -x_30 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__4), 11, 10); +x_30 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__5), 11, 10); lean_closure_set(x_30, 0, x_1); lean_closure_set(x_30, 1, x_2); lean_closure_set(x_30, 2, x_3); @@ -1258,7 +1276,7 @@ lean_inc(x_2); lean_inc(x_1); x_35 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_32, x_9); lean_inc(x_7); -x_36 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__7), 12, 11); +x_36 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__8), 12, 11); lean_closure_set(x_36, 0, x_1); lean_closure_set(x_36, 1, x_2); lean_closure_set(x_36, 2, x_3); @@ -1286,7 +1304,7 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); x_39 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_9); -x_40 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__8), 9, 8); +x_40 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__9), 9, 8); lean_closure_set(x_40, 0, x_14); lean_closure_set(x_40, 1, x_1); lean_closure_set(x_40, 2, x_2); @@ -1311,7 +1329,7 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); x_43 = l_Lean_Core_transform_visit___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_42, x_9); -x_44 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__9), 9, 8); +x_44 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__10), 9, 8); lean_closure_set(x_44, 0, x_14); lean_closure_set(x_44, 1, x_1); lean_closure_set(x_44, 2, x_2); @@ -1334,7 +1352,38 @@ return x_46; } } } -lean_object* l_Lean_Core_transform_visit___rarg___lambda__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Core_transform_visit___rarg___lambda__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_3, x_1, x_2); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +} +lean_object* l_Lean_Core_transform_visit___rarg___lambda__13(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_inc(x_6); +x_7 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_6); +x_8 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_7); +x_9 = lean_apply_2(x_3, lean_box(0), x_8); +x_10 = lean_alloc_closure((void*)(l_ReaderT_instMonadReaderT___rarg___lambda__4___boxed), 3, 2); +lean_closure_set(x_10, 0, x_4); +lean_closure_set(x_10, 1, x_6); +x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_Core_transform_visit___rarg___lambda__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { if (lean_obj_tag(x_10) == 0) @@ -1350,7 +1399,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_4); lean_inc(x_3); -x_13 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__10), 9, 7); +x_13 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__11), 9, 7); lean_closure_set(x_13, 0, x_3); lean_closure_set(x_13, 1, x_4); lean_closure_set(x_13, 2, x_1); @@ -1370,7 +1419,7 @@ lean_inc(x_3); x_15 = l_Lean_Core_withIncRecDepth___at_Lean_Core_transform_visit___spec__4___rarg(x_3, x_4, x_6, x_14, x_9); lean_dec(x_6); lean_inc(x_8); -x_16 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__8), 6, 5); +x_16 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__13), 6, 5); lean_closure_set(x_16, 0, x_2); lean_closure_set(x_16, 1, x_9); lean_closure_set(x_16, 2, x_7); @@ -1419,13 +1468,13 @@ lean_inc(x_6); x_11 = lean_apply_2(x_6, lean_box(0), x_10); lean_inc(x_1); lean_inc(x_7); -x_12 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__1___boxed), 3, 2); +x_12 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__1___boxed), 3, 2); lean_closure_set(x_12, 0, x_7); lean_closure_set(x_12, 1, x_1); lean_inc(x_9); x_13 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_11, x_12); lean_inc(x_9); -x_14 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__11), 10, 9); +x_14 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__14), 10, 9); lean_closure_set(x_14, 0, x_3); lean_closure_set(x_14, 1, x_7); lean_closure_set(x_14, 2, x_1); @@ -1562,6 +1611,16 @@ lean_dec(x_3); return x_6; } } +lean_object* l_Lean_Core_transform_visit___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Core_transform_visit___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_1); +return x_4; +} +} lean_object* l_Lean_Core_transform___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -3500,7 +3559,7 @@ if (x_12 == 0) lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_11, 0); x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_13, x_5); +x_15 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_13, x_5); lean_dec(x_13); if (lean_obj_tag(x_15) == 0) { @@ -3533,7 +3592,7 @@ x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); lean_inc(x_21); -x_23 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_23 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_23, 0, x_5); lean_closure_set(x_23, 1, x_21); x_24 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); @@ -3642,7 +3701,7 @@ x_40 = lean_ctor_get(x_11, 1); lean_inc(x_40); lean_inc(x_39); lean_dec(x_11); -x_41 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_39, x_5); +x_41 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_39, x_5); lean_dec(x_39); if (lean_obj_tag(x_41) == 0) { @@ -3674,7 +3733,7 @@ x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); lean_dec(x_46); lean_inc(x_47); -x_49 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__2), 3, 2); +x_49 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__12), 3, 2); lean_closure_set(x_49, 0, x_5); lean_closure_set(x_49, 1, x_47); x_50 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2); @@ -4775,7 +4834,7 @@ lean_inc(x_3); x_16 = l_Lean_Meta_withIncRecDepth___at_Lean_Meta_transform_visit___spec__4___rarg(x_3, x_5, x_7, lean_box(0), x_15, x_10); lean_dec(x_7); lean_inc(x_9); -x_17 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__8), 6, 5); +x_17 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__13), 6, 5); lean_closure_set(x_17, 0, x_2); lean_closure_set(x_17, 1, x_10); lean_closure_set(x_17, 2, x_8); @@ -4825,7 +4884,7 @@ lean_inc(x_7); x_12 = lean_apply_2(x_7, lean_box(0), x_11); lean_inc(x_1); lean_inc(x_8); -x_13 = lean_alloc_closure((void*)(l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__1___boxed), 3, 2); +x_13 = lean_alloc_closure((void*)(l_Lean_Core_transform_visit___rarg___lambda__1___boxed), 3, 2); lean_closure_set(x_13, 0, x_8); lean_closure_set(x_13, 1, x_1); lean_inc(x_10); diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index 9c91137e44..c81f73ef1a 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -39,6 +39,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___ lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectDeps___spec__19___boxed(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getLevelAssignment_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__29___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__34(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_MetavarContext_MkBinding_instToStringException_match__1___rarg(lean_object*, lean_object*); @@ -141,6 +142,7 @@ lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_MetavarContext lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_metavar_ctx(lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_MetavarContext_MkBinding_collectDeps___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_mkHashMap___at_Lean_MetavarContext_MkBinding_State_cache___default___spec__1(lean_object*); lean_object* l_Std_PersistentHashMap_containsAux___at_Lean_MetavarContext_isLevelAssigned___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instInhabitedMetavarDecl; lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_MetavarContext_assignLevel___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -190,7 +192,6 @@ uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* l_Lean_MetavarContext_getDecl___closed__2; lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_MetavarContext_getExprAssignmentDomain___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__2; lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_MkBinding_collectDeps___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVars___spec__39___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -205,8 +206,10 @@ lean_object* l_Std_mkHashMap___at_Lean_MetavarContext_instantiateMVars___spec__1 uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_MetavarContext_isDelayedAssigned___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectDeps___spec__30(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__3; lean_object* l_Lean_MetavarContext_MkBinding_mkBinding_match__1(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__5(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDelayedAssignment_x3f(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__10(lean_object*, lean_object*); @@ -268,7 +271,6 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instBEqLocalInstance___boxed(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isAnonymousMVar___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssignable___boxed(lean_object*, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); @@ -304,6 +306,7 @@ extern lean_object* l_Lean_LocalContext_mkEmpty___closed__1; lean_object* l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isDelayedAssigned___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_MetavarContext_exprDependsOn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_MetavarContext_isExprAssigned___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__26(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__15___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___spec__1(lean_object*, lean_object*); @@ -323,7 +326,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___ lean_object* l_Lean_MetavarContext_assignDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__9(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_MetavarContext_instantiateExprMVars___spec__34___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__1; uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__17___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -424,6 +426,7 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_exprDependsOn___spe lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateExprMVars___spec__39___rarg___lambda__11___boxed__const__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__9___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__32___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__21(lean_object*, lean_object*, size_t, size_t); @@ -465,6 +468,7 @@ lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateExprMVars_match__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_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__1; lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_findUserName_x3f___spec__3(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_exprDependsOn___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -484,6 +488,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__22___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_MetavarContext_instantiateMVars___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_instBEqLocalInstance(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_LevelMVarToParam_mkParamName(lean_object*, lean_object*); @@ -491,7 +496,7 @@ lean_object* l_Lean_MetavarContext_instInhabitedMetavarContext___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__23(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_MetavarContext_addExprMVarDecl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__23___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_localDeclDependsOn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__16(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__7(lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*); @@ -508,7 +513,6 @@ lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_MetavarContex lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__36___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_LevelMVarToParam_main_visitApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_foldr___at_Lean_MetavarContext_hasAssignableMVar___spec__1(lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssigned___boxed(lean_object*, lean_object*); lean_object* l_Array_indexOfAux___at_Lean_MetavarContext_eraseDelayed___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_MetavarContext_MkBinding_collectDeps___spec__48(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -538,7 +542,6 @@ lean_object* l_Lean_MetavarContext_instantiateLevelMVars(lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_MetavarContext_findUserName_x3f___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__9(lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM; lean_object* l_Lean_MetavarContext_elimMVarDeps(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findDecl_x3f___boxed(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectDeps___spec__12(lean_object*, lean_object*); @@ -566,6 +569,7 @@ size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__14___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___lambda__2(lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isWellFormed_match__1(lean_object*); lean_object* l_Std_HashSetImp_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_shouldVisit___spec__4(lean_object*, lean_object*); @@ -583,6 +587,7 @@ lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__21(lean lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__18___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__26(lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_instToStringException___spec__2(lean_object*); +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__2; lean_object* l_Std_PersistentArray_anyM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_getLocalDeclWithSmallestIdx(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_forM___at_Lean_MetavarContext_findUserName_x3f___spec__1___boxed(lean_object*, lean_object*); @@ -614,6 +619,7 @@ lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_MetavarContext lean_object* l_Lean_LocalInstances_erase(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MetavarContext_MkBinding_collectDeps___spec__59(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_instToStringException_match__1(lean_object*); +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_instMonadEST___closed__1; lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__4; lean_object* l_List_mapM___at_Lean_MetavarContext_LevelMVarToParam_main___spec__1(lean_object*, lean_object*, lean_object*); @@ -712,7 +718,6 @@ uint8_t l_List_elem___at___private_Lean_MetavarContext_0__Lean_MetavarContext_De lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__29___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectDeps___spec__22(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__3; lean_object* l_Lean_MetavarContext_hasAssignedMVar_match__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*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getDelayedAssignment_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignedLevelMVar_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -800,7 +805,6 @@ lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_instToStringException___closed__5; extern uint8_t l_instInhabitedBool; lean_object* l_Lean_MetavarContext_MkBinding_instToStringException(lean_object*); @@ -822,6 +826,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVar uint8_t l_List_foldr___at_Lean_MetavarContext_hasAssignedMVar___spec__1(lean_object*, uint8_t, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_expr_equal(lean_object*, lean_object*); lean_object* lean_expr_update_sort(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectDeps___spec__26(lean_object*, lean_object*); extern lean_object* l_Id_instMonadId; @@ -896,8 +901,10 @@ lean_object* l_Lean_Expr_withAppAux___at_Lean_MetavarContext_instantiateMVars___ lean_object* l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MetavarContext_MkBinding_collectDeps___spec__50(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_revert___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__6(lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*); extern lean_object* l_Lean_instInhabitedExpr___closed__1; +lean_object* l_Std_HashMapImp_moveEntries___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_incDepth(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__23___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -949,6 +956,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVar lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__20___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_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__30___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_LevelMVarToParam_main_match__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_Std_AssocList_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_MetavarContext_isLevelAssigned___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isLevelAssignable(lean_object*, lean_object*); @@ -958,6 +966,7 @@ uint8_t l_Nat_anyAux___at_Lean_MetavarContext_MkBinding_collectDeps___spec__44(l lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___at_Lean_MetavarContext_getLevelAssignment_x3f___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__9(lean_object*, size_t, size_t, lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1; uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectDeps___spec__19(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elim___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__33___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); @@ -987,6 +996,7 @@ lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object* lean_object* l_Lean_MetavarContext_instantiateLevelMVars___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_localDeclDependsOn___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_localDeclDependsOn___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__24___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_findUserName_x3f___spec__3___lambda__1___closed__1; @@ -1072,10 +1082,12 @@ uint8_t l_Std_HashSetImp_contains___at___private_Lean_MetavarContext_0__Lean_Met lean_object* l_Lean_MetavarContext_mkForall(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__32(lean_object*, lean_object*); +lean_object* l_Std_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_instToStringException___closed__4; lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_withFreshCache___rarg(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_MetavarContext_instantiateMVars___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_localDeclDependsOn___spec__4___boxed(lean_object*, lean_object*); +lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__33___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -1108,6 +1120,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__32___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__27(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_MetavarContext_getLevelDepth___boxed(lean_object*, lean_object*); +uint8_t l_Std_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__4(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_exprDependsOn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLevelParam(lean_object*); @@ -1146,8 +1159,8 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVar lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__29___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectDeps___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectDeps___spec__32___boxed(lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elim(lean_object*, lean_object*, uint8_t, lean_object*); +lean_object* l_Std_AssocList_foldlM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__7(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__37___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateForallE_x21___closed__2; lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getExprAssignment_x3f___spec__1(lean_object*, lean_object*); @@ -1182,6 +1195,7 @@ lean_object* l_Lean_MetavarContext_instantiateExprMVars_match__2(lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_exprDependsOn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_MetavarContext_assignExpr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at_Lean_MetavarContext_localDeclDependsOn___spec__23(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM; uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectDeps___spec__20(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_localDeclDependsOn___spec__31___boxed(lean_object*, lean_object*); @@ -10694,7 +10708,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 1); x_6 = lean_ctor_get(x_2, 2); -x_7 = lean_expr_eqv(x_4, x_1); +x_7 = lean_expr_equal(x_4, x_1); if (x_7 == 0) { x_2 = x_6; @@ -10740,7 +10754,7 @@ else lean_object* x_4; lean_object* x_5; uint8_t x_6; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_expr_eqv(x_4, x_1); +x_6 = lean_expr_equal(x_4, x_1); if (x_6 == 0) { x_2 = x_5; @@ -10878,7 +10892,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = lean_ctor_get(x_3, 2); -x_9 = lean_expr_eqv(x_6, x_1); +x_9 = lean_expr_equal(x_6, x_1); if (x_9 == 0) { lean_object* x_10; @@ -10905,7 +10919,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_dec(x_3); -x_14 = lean_expr_eqv(x_11, x_1); +x_14 = lean_expr_equal(x_11, x_1); if (x_14 == 0) { lean_object* x_15; lean_object* x_16; @@ -24044,22 +24058,22 @@ return x_2; lean_object* l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_26; lean_object* x_27; uint8_t x_43; +lean_object* x_5; uint8_t x_6; x_5 = lean_box(0); -x_43 = l_Lean_Expr_hasMVar(x_1); -if (x_43 == 0) +x_6 = l_Lean_Expr_hasMVar(x_1); +if (x_6 == 0) { -lean_object* x_44; +lean_object* x_7; lean_dec(x_3); lean_dec(x_2); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_1); -lean_ctor_set(x_44, 1, x_4); -return x_44; +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_4); +return x_7; } else { -lean_object* x_45; +lean_object* x_8; lean_object* x_9; lean_object* x_28; lean_object* x_29; lean_object* x_45; x_45 = lean_st_ref_get(x_2, x_4); if (lean_obj_tag(x_45) == 0) { @@ -24110,9 +24124,9 @@ if (lean_obj_tag(x_58) == 0) lean_dec(x_50); lean_dec(x_3); lean_inc(x_1); -x_26 = x_1; -x_27 = x_57; -goto block_42; +x_28 = x_1; +x_29 = x_57; +goto block_44; } else { @@ -24150,9 +24164,9 @@ lean_object* x_68; x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); lean_dec(x_67); -x_26 = x_61; -x_27 = x_68; -goto block_42; +x_28 = x_61; +x_29 = x_68; +goto block_44; } else { @@ -24271,9 +24285,9 @@ lean_dec(x_3); x_85 = lean_ctor_get(x_54, 0); lean_inc(x_85); lean_dec(x_54); -x_6 = x_85; -x_7 = x_53; -goto block_25; +x_8 = x_85; +x_9 = x_53; +goto block_27; } } else @@ -25744,9 +25758,9 @@ if (lean_obj_tag(x_386) == 0) lean_dec(x_378); lean_dec(x_3); lean_inc(x_1); -x_26 = x_1; -x_27 = x_385; -goto block_42; +x_28 = x_1; +x_29 = x_385; +goto block_44; } else { @@ -25784,9 +25798,9 @@ lean_object* x_396; x_396 = lean_ctor_get(x_395, 1); lean_inc(x_396); lean_dec(x_395); -x_26 = x_389; -x_27 = x_396; -goto block_42; +x_28 = x_389; +x_29 = x_396; +goto block_44; } else { @@ -25913,9 +25927,9 @@ lean_dec(x_3); x_413 = lean_ctor_get(x_382, 0); lean_inc(x_413); lean_dec(x_382); -x_6 = x_413; -x_7 = x_381; -goto block_25; +x_8 = x_413; +x_9 = x_381; +goto block_27; } } else @@ -27411,172 +27425,172 @@ lean_ctor_set(x_698, 1, x_697); return x_698; } } -} -block_25: +block_27: { -lean_object* x_8; -x_8 = lean_st_ref_take(x_2, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_10; +x_10 = lean_st_ref_take(x_2, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_6); -x_11 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_9, x_1, x_6); -x_12 = lean_st_ref_set(x_2, x_11, x_10); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +lean_inc(x_8); +x_13 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_11, x_1, x_8); +x_14 = lean_st_ref_set(x_2, x_13, x_12); lean_dec(x_2); -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_14) == 0) { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_12, 0); +lean_object* x_16; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_8); +return x_14; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); lean_dec(x_14); -lean_ctor_set(x_12, 0, x_6); -return x_12; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_6); -lean_ctor_set(x_16, 1, x_15); -return x_16; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_8); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } else { -uint8_t x_17; -lean_dec(x_6); -x_17 = !lean_is_exclusive(x_12); -if (x_17 == 0) -{ -return x_12; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_12, 0); -x_19 = lean_ctor_get(x_12, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_12); -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; -} -} -} -else -{ -uint8_t x_21; -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_8); -if (x_21 == 0) -{ -return x_8; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_8, 0); -x_23 = lean_ctor_get(x_8, 1); -lean_inc(x_23); -lean_inc(x_22); +uint8_t x_19; lean_dec(x_8); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -block_42: +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) { -lean_object* x_28; -x_28 = lean_st_ref_take(x_2, x_27); -if (lean_obj_tag(x_28) == 0) +return x_14; +} +else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -lean_inc(x_26); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_14); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +else +{ +uint8_t x_23; +lean_dec(x_8); +lean_dec(x_2); +lean_dec(x_1); +x_23 = !lean_is_exclusive(x_10); +if (x_23 == 0) +{ +return x_10; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_10, 0); +x_25 = lean_ctor_get(x_10, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_10); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +block_44: +{ +lean_object* x_30; +x_30 = lean_st_ref_take(x_2, x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +lean_inc(x_28); lean_inc(x_1); -x_31 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_29, x_1, x_26); -x_32 = lean_st_ref_set(x_2, x_31, x_30); -if (lean_obj_tag(x_32) == 0) +x_33 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_31, x_1, x_28); +x_34 = lean_st_ref_set(x_2, x_33, x_32); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_6 = x_26; -x_7 = x_33; -goto block_25; -} -else -{ -uint8_t x_34; -lean_dec(x_26); -lean_dec(x_2); -lean_dec(x_1); -x_34 = !lean_is_exclusive(x_32); -if (x_34 == 0) -{ -return x_32; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_32, 0); -x_36 = lean_ctor_get(x_32, 1); -lean_inc(x_36); +lean_object* x_35; +x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); -lean_dec(x_32); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} +lean_dec(x_34); +x_8 = x_28; +x_9 = x_35; +goto block_27; } else { -uint8_t x_38; -lean_dec(x_26); +uint8_t x_36; +lean_dec(x_28); lean_dec(x_2); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_28); -if (x_38 == 0) +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) { -return x_28; +return x_34; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_28, 0); -x_40 = lean_ctor_get(x_28, 1); -lean_inc(x_40); -lean_inc(x_39); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_34, 0); +x_38 = lean_ctor_get(x_34, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_34); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +uint8_t x_40; lean_dec(x_28); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_30); +if (x_40 == 0) +{ +return x_30; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_30, 0); +x_42 = lean_ctor_get(x_30, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_30); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} } } } @@ -36651,11 +36665,28 @@ x_4 = l_List_toStringAux___at_Lean_MetavarContext_MkBinding_instToStringExceptio return x_4; } } +lean_object* l_Std_mkHashMap___at_Lean_MetavarContext_MkBinding_State_cache___default___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} static lean_object* _init_l_Lean_MetavarContext_MkBinding_State_cache___default() { _start: { lean_object* x_1; -x_1 = l_Std_HashMap_instInhabitedHashMap___closed__1; +x_1 = l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1; return x_1; } } @@ -50788,6 +50819,365 @@ return x_62; } } } +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 2); +x_7 = lean_expr_eqv(x_4, x_1); +if (x_7 == 0) +{ +x_2 = x_6; +goto _start; +} +else +{ +lean_object* x_9; +lean_inc(x_5); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_5); +return x_9; +} +} +} +} +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_array_get_size(x_3); +x_5 = l_Lean_Expr_hash(x_2); +x_6 = lean_usize_modn(x_5, x_4); +lean_dec(x_4); +x_7 = lean_array_uget(x_3, x_6); +x_8 = l_Std_AssocList_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_2, x_7); +lean_dec(x_7); +return x_8; +} +} +uint8_t l_Std_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_expr_eqv(x_4, x_1); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +lean_object* l_Std_AssocList_foldlM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__7(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_array_get_size(x_1); +x_7 = l_Lean_Expr_hash(x_4); +x_8 = lean_usize_modn(x_7, x_6); +lean_dec(x_6); +x_9 = lean_array_uget(x_1, x_8); +lean_ctor_set(x_2, 2, x_9); +x_10 = lean_array_uset(x_1, x_8, x_2); +x_1 = x_10; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_2, 1); +x_14 = lean_ctor_get(x_2, 2); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_2); +x_15 = lean_array_get_size(x_1); +x_16 = l_Lean_Expr_hash(x_12); +x_17 = lean_usize_modn(x_16, x_15); +lean_dec(x_15); +x_18 = lean_array_uget(x_1, x_17); +x_19 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_19, 0, x_12); +lean_ctor_set(x_19, 1, x_13); +lean_ctor_set(x_19, 2, x_18); +x_20 = lean_array_uset(x_1, x_17, x_19); +x_1 = x_20; +x_2 = x_14; +goto _start; +} +} +} +} +lean_object* l_Std_HashMapImp_moveEntries___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_box(0); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = l_Std_AssocList_foldlM___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__7(x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +lean_dec(x_1); +x_1 = x_11; +x_2 = x_8; +x_3 = x_9; +goto _start; +} +} +} +lean_object* l_Std_HashMapImp_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_3 = lean_array_get_size(x_2); +x_4 = lean_unsigned_to_nat(2u); +x_5 = lean_nat_mul(x_3, x_4); +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_mk_array(x_5, x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Std_HashMapImp_moveEntries___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_8, x_2, x_7); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +lean_object* l_Std_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_ctor_get(x_3, 1); +x_8 = lean_ctor_get(x_3, 2); +x_9 = lean_expr_eqv(x_6, x_1); +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = l_Std_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__8(x_1, x_2, x_8); +lean_ctor_set(x_3, 2, x_10); +return x_3; +} +else +{ +lean_dec(x_7); +lean_dec(x_6); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_1); +return x_3; +} +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_3, 0); +x_12 = lean_ctor_get(x_3, 1); +x_13 = lean_ctor_get(x_3, 2); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_3); +x_14 = lean_expr_eqv(x_11, x_1); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = l_Std_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__8(x_1, x_2, x_13); +x_16 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_12); +lean_ctor_set(x_16, 2, x_15); +return x_16; +} +else +{ +lean_object* x_17; +lean_dec(x_12); +lean_dec(x_11); +x_17 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_2); +lean_ctor_set(x_17, 2, x_13); +return x_17; +} +} +} +} +} +lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_array_get_size(x_6); +x_8 = l_Lean_Expr_hash(x_2); +x_9 = lean_usize_modn(x_8, x_7); +x_10 = lean_array_uget(x_6, x_9); +x_11 = l_Std_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__4(x_2, x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_5, x_12); +lean_dec(x_5); +x_14 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_14, 0, x_2); +lean_ctor_set(x_14, 1, x_3); +lean_ctor_set(x_14, 2, x_10); +x_15 = lean_array_uset(x_6, x_9, x_14); +x_16 = lean_nat_dec_le(x_13, x_7); +lean_dec(x_7); +if (x_16 == 0) +{ +lean_object* x_17; +lean_free_object(x_1); +x_17 = l_Std_HashMapImp_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__5(x_13, x_15); +return x_17; +} +else +{ +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_13); +return x_1; +} +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_7); +x_18 = l_Std_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__8(x_2, x_3, x_10); +x_19 = lean_array_uset(x_6, x_9, x_18); +lean_ctor_set(x_1, 1, x_19); +return x_1; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; uint8_t x_26; +x_20 = lean_ctor_get(x_1, 0); +x_21 = lean_ctor_get(x_1, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_1); +x_22 = lean_array_get_size(x_21); +x_23 = l_Lean_Expr_hash(x_2); +x_24 = lean_usize_modn(x_23, x_22); +x_25 = lean_array_uget(x_21, x_24); +x_26 = l_Std_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__4(x_2, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_20, x_27); +lean_dec(x_20); +x_29 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_29, 0, x_2); +lean_ctor_set(x_29, 1, x_3); +lean_ctor_set(x_29, 2, x_25); +x_30 = lean_array_uset(x_21, x_24, x_29); +x_31 = lean_nat_dec_le(x_28, x_22); +lean_dec(x_22); +if (x_31 == 0) +{ +lean_object* x_32; +x_32 = l_Std_HashMapImp_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__5(x_28, x_30); +return x_32; +} +else +{ +lean_object* x_33; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_30); +return x_33; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_22); +x_34 = l_Std_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__8(x_2, x_3, x_25); +x_35 = lean_array_uset(x_21, x_24, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_20); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +} lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4) { _start: { @@ -50807,7 +51197,7 @@ else lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_4, 2); lean_inc(x_7); -x_8 = l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(x_7, x_2); +x_8 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_7, x_2); lean_dec(x_7); if (lean_obj_tag(x_8) == 0) { @@ -50829,7 +51219,7 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_9, 0); x_14 = lean_ctor_get(x_11, 2); lean_inc(x_13); -x_15 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_14, x_2, x_13); +x_15 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_14, x_2, x_13); lean_ctor_set(x_11, 2, x_15); return x_9; } @@ -50845,7 +51235,7 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_11); lean_inc(x_16); -x_20 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_19, x_2, x_16); +x_20 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_19, x_2, x_16); x_21 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_21, 0, x_17); lean_ctor_set(x_21, 1, x_18); @@ -50878,7 +51268,7 @@ if (lean_is_exclusive(x_22)) { x_27 = lean_box(0); } lean_inc(x_23); -x_28 = l_Std_HashMapImp_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(x_26, x_2, x_23); +x_28 = l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_26, x_2, x_23); if (lean_is_scalar(x_27)) { x_29 = lean_alloc_ctor(0, 3, 0); } else { @@ -51260,6 +51650,37 @@ x_7 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar( return x_7; } } +lean_object* l_Std_AssocList_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_AssocList_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_HashMapImp_find_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Std_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Std_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__4(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -53909,7 +54330,7 @@ x_1 = l_Std_HashMap_instInhabitedHashMap___closed__1; return x_1; } } -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; @@ -53923,7 +54344,7 @@ lean_ctor_set(x_6, 1, x_3); return x_6; } } -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -53966,57 +54387,57 @@ return x_17; } } } -static lean_object* _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__1() { +static lean_object* _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__1___boxed), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__1___boxed), 3, 0); return x_1; } } -static lean_object* _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__2() { +static lean_object* _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__2___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__2___boxed), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__3() { +static lean_object* _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__1; -x_2 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__2; +x_1 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__1; +x_2 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__2; 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_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM() { +static lean_object* _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM() { _start: { lean_object* x_1; -x_1 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__3; +x_1 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__3; return x_1; } } -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__1(x_1, x_2, x_3); +x_4 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___lambda__2(x_1, x_2, x_3, x_4); +x_5 = l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___lambda__2(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -54034,7 +54455,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_obj x_5 = lean_ctor_get(x_2, 1); x_6 = lean_ctor_get(x_2, 2); lean_inc(x_6); -x_7 = l_Lean_Name_appendIndexAfter(x_3, x_6); +x_7 = lean_name_append_index_after(x_3, x_6); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_inc(x_7); @@ -54081,7 +54502,7 @@ lean_inc(x_19); lean_inc(x_18); lean_dec(x_2); lean_inc(x_20); -x_22 = l_Lean_Name_appendIndexAfter(x_3, x_20); +x_22 = lean_name_append_index_after(x_3, x_20); x_23 = lean_ctor_get(x_1, 1); lean_inc(x_23); lean_inc(x_22); @@ -56666,6 +57087,8 @@ l_Lean_MetavarContext_MkBinding_instToStringException___closed__4 = _init_l_Lean lean_mark_persistent(l_Lean_MetavarContext_MkBinding_instToStringException___closed__4); l_Lean_MetavarContext_MkBinding_instToStringException___closed__5 = _init_l_Lean_MetavarContext_MkBinding_instToStringException___closed__5(); lean_mark_persistent(l_Lean_MetavarContext_MkBinding_instToStringException___closed__5); +l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1 = _init_l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1(); +lean_mark_persistent(l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1); l_Lean_MetavarContext_MkBinding_State_cache___default = _init_l_Lean_MetavarContext_MkBinding_State_cache___default(); lean_mark_persistent(l_Lean_MetavarContext_MkBinding_State_cache___default); l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__1 = _init_l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapterExprExprM___closed__1(); @@ -56692,14 +57115,14 @@ l_Lean_MetavarContext_LevelMVarToParam_State_paramNames___default = _init_l_Lean lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_State_paramNames___default); l_Lean_MetavarContext_LevelMVarToParam_State_cache___default = _init_l_Lean_MetavarContext_LevelMVarToParam_State_cache___default(); lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_State_cache___default); -l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__1 = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__1(); -lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__1); -l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__2 = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__2(); -lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__2); -l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__3 = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__3(); -lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM___closed__3); -l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM(); -lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprExprM); +l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__1 = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__1(); +lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__1); +l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__2 = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__2(); +lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__2); +l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__3 = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__3(); +lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__3); +l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM = _init_l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM(); +lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM); l_Lean_MetavarContext_LevelMVarToParam_main_visitApp___boxed__const__1 = _init_l_Lean_MetavarContext_LevelMVarToParam_main_visitApp___boxed__const__1(); lean_mark_persistent(l_Lean_MetavarContext_LevelMVarToParam_main_visitApp___boxed__const__1); l_Std_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___closed__1 = _init_l_Std_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___closed__1(); diff --git a/stage0/stdlib/Lean/MonadEnv.c b/stage0/stdlib/Lean/MonadEnv.c index a0449fd3de..bf5326e26b 100644 --- a/stage0/stdlib/Lean/MonadEnv.c +++ b/stage0/stdlib/Lean/MonadEnv.c @@ -108,7 +108,7 @@ lean_object* l_Lean_matchConstStruct_match__1___rarg(lean_object*, lean_object*, lean_object* l_Lean_getConstInfoInduct(lean_object*); lean_object* l_List_foldlM___at___private_Lean_MonadEnv_0__Lean_checkUnsupported___spec__4___rarg___lambda__2(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_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_List_foldlM___at___private_Lean_MonadEnv_0__Lean_checkUnsupported___spec__4___rarg___boxed__const__1; lean_object* l_Lean_addDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors___closed__16; @@ -1359,7 +1359,7 @@ _start: lean_object* x_4; uint8_t x_5; lean_inc(x_3); lean_inc(x_2); -x_4 = l_Lean_Name_appendIndexAfter(x_2, x_3); +x_4 = lean_name_append_index_after(x_2, x_3); lean_inc(x_1); x_5 = l_Lean_Environment_contains(x_1, x_4); if (x_5 == 0) diff --git a/stage0/stdlib/Lean/Parser/Attr.c b/stage0/stdlib/Lean/Parser/Attr.c index 7912bc8fbe..9828391caa 100644 --- a/stage0/stdlib/Lean/Parser/Attr.c +++ b/stage0/stdlib/Lean/Parser/Attr.c @@ -214,6 +214,7 @@ lean_object* l_Lean_Parser_Attr_instance___elambda__1___closed__3; lean_object* l_Lean_Parser_Attr_export___closed__2; lean_object* l_Lean_Parser_Attr_instance___closed__2; lean_object* l___regBuiltin_Lean_Parser_Attr_class_parenthesizer(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_object* l_Lean_Parser_Attr_instance_parenthesizer___closed__2; lean_object* l_Lean_Parser_Attr_extern_parenthesizer___closed__6; lean_object* l_Lean_Parser_Attr_class___elambda__1___closed__6; @@ -233,8 +234,8 @@ lean_object* l_Lean_Parser_Attr_simple___elambda__1___closed__14; lean_object* l___regBuiltin_Lean_Parser_Priority_numPrio_formatter___closed__1; extern lean_object* l_Lean_Attribute_Builtin_getId___closed__3; lean_object* l_Lean_Parser_Attr_externEntry___elambda__1___closed__2; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; lean_object* l_Lean_Parser_Priority_numPrio___elambda__1(lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; lean_object* l_Lean_Parser_Attr_simple___closed__4; lean_object* l_Lean_Parser_Attr_defaultInstance___closed__1; extern lean_object* l_Lean_Parser_antiquotNestedExpr___closed__7; @@ -365,7 +366,6 @@ lean_object* l___regBuiltin_Lean_Parser_Attr_macro_formatter___closed__1; lean_object* l_Lean_Parser_Attr_export_formatter___closed__3; lean_object* l_Lean_Parser_Attr_instance___elambda__1___closed__6; extern lean_object* l_Lean_Parser_tokenWithAntiquotFn___lambda__2___closed__2; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_object* l_Lean_Parser_Priority_numPrio; lean_object* l___regBuiltin_Lean_Parser_Attr_extern_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Attr_export___elambda__1___closed__6; @@ -3187,7 +3187,7 @@ static lean_object* _init_l_Lean_Parser_Attr_class___elambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; x_2 = l_Lean_Parser_Attr_class___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -3198,7 +3198,7 @@ static lean_object* _init_l_Lean_Parser_Attr_class___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; x_2 = l_String_trim(x_1); return x_2; } @@ -3506,7 +3506,7 @@ static lean_object* _init_l_Lean_Parser_Attr_class_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; x_2 = l_Lean_Parser_Attr_class___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -3521,7 +3521,7 @@ static lean_object* _init_l_Lean_Parser_Attr_class_formatter___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -3631,7 +3631,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Attr_simp___closed__2; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -3650,7 +3650,7 @@ static lean_object* _init_l_Lean_Parser_Attr_instance___elambda__1___closed__3() _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = l_Lean_Parser_Attr_instance___elambda__1___closed__2; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -3670,7 +3670,7 @@ static lean_object* _init_l_Lean_Parser_Attr_instance___elambda__1___closed__5() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = l_String_trim(x_1); return x_2; } @@ -4014,7 +4014,7 @@ static lean_object* _init_l_Lean_Parser_Attr_instance_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = l_Lean_Parser_Attr_instance___elambda__1___closed__2; x_3 = 1; x_4 = lean_box(x_3); @@ -4029,7 +4029,7 @@ static lean_object* _init_l_Lean_Parser_Attr_instance_formatter___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; diff --git a/stage0/stdlib/Lean/Parser/Command.c b/stage0/stdlib/Lean/Parser/Command.c index dd857a7e4e..56328b51fc 100644 --- a/stage0/stdlib/Lean/Parser/Command.c +++ b/stage0/stdlib/Lean/Parser/Command.c @@ -40,6 +40,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_in(lean_object*); lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__20; lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__14; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_structInstBinder___closed__10; lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__1; @@ -194,6 +195,7 @@ lean_object* l_Lean_Parser_Tactic_open___closed__5; lean_object* l_Lean_Parser_Command_optDeriving_parenthesizer___closed__6; lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__17; lean_object* l_Lean_Parser_Command_print___elambda__1___closed__8; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_object* l_Lean_Parser_Command_example___closed__3; lean_object* l_Lean_Parser_Command_ctor___closed__6; lean_object* l_Lean_Parser_Command_theorem_formatter___closed__7; @@ -708,7 +710,6 @@ lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_openSimple; lean_object* l___regBuiltinParser_Lean_Parser_Command_deriving(lean_object*); lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__1; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; lean_object* l_Lean_Parser_Command_declaration___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_quot_formatter___closed__8; lean_object* l_Lean_Parser_Command_classTk_parenthesizer___closed__1; @@ -1305,6 +1306,7 @@ lean_object* l_Lean_Parser_Command_protected___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_structFields___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_whereDecls___closed__7; lean_object* l_Lean_Parser_Command_print___closed__3; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; lean_object* l_Lean_Parser_Command_openSimple_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__16; lean_object* l_Lean_Parser_Term_precheckedQuot___elambda__1___closed__7; @@ -1424,13 +1426,13 @@ lean_object* l_Lean_Parser_Command_attribute_formatter___closed__9; lean_object* l_Lean_Parser_Command_variable_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_optDeriving___elambda__1___closed__11; lean_object* l_Lean_Parser_Command_theorem_formatter___closed__2; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; lean_object* l_Lean_Parser_Command_classInductive_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_inferMod___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_axiom_parenthesizer___closed__4; extern lean_object* l_Lean_Parser_Term_matchAltsWhereDecls_formatter___closed__6; lean_object* l_Lean_Parser_Command_optDeriving___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_check_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; lean_object* l_Lean_Parser_Command_end___closed__3; lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__10; lean_object* l_Lean_Parser_Command_structFields___elambda__1___closed__11; @@ -2214,7 +2216,6 @@ extern lean_object* l_Lean_Parser_mkAntiquotSplice___closed__6; lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__7; lean_object* l_Lean_Parser_Command_extends_formatter___closed__3; lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__11; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; lean_object* l_Lean_Parser_Command_structSimpleBinder_parenthesizer___closed__6; lean_object* l_Lean_Parser_Command_section___elambda__1___closed__14; lean_object* l_Lean_Parser_Command_structImplicitBinder; @@ -2758,7 +2759,6 @@ lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__6; lean_object* l___regBuiltinParser_Lean_Parser_Command_mutual(lean_object*); lean_object* l_Lean_Parser_Command_declModifiers___closed__26; lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__17; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__14; lean_object* l_Lean_Parser_Command_universe___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_set__option___elambda__1___closed__5; @@ -7536,7 +7536,7 @@ static lean_object* _init_l_Lean_Parser_Command_declSig___elambda__1___closed__1 _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -7546,7 +7546,7 @@ static lean_object* _init_l_Lean_Parser_Command_declSig___elambda__1___closed__2 _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; x_2 = l_Lean_Parser_Command_declSig___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -7571,7 +7571,7 @@ static lean_object* _init_l_Lean_Parser_Command_declSig___elambda__1___closed__4 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_2 = l_Lean_Parser_Command_declSig___elambda__1___closed__3; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -7649,7 +7649,7 @@ lean_dec(x_16); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_19 = l_Lean_Parser_ParserState_mkNode(x_15, x_18, x_14); x_20 = lean_ctor_get(x_19, 4); lean_inc(x_20); @@ -7673,7 +7673,7 @@ else lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_inc(x_1); x_23 = l_Lean_Parser_Term_typeSpec___elambda__1(x_1, x_15); -x_24 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_24 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_25 = l_Lean_Parser_ParserState_mkNode(x_23, x_24, x_14); x_26 = lean_ctor_get(x_25, 4); lean_inc(x_26); @@ -7723,7 +7723,7 @@ static lean_object* _init_l_Lean_Parser_Command_declSig___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_2 = l_Lean_Parser_Command_declSig___closed__1; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -10623,7 +10623,7 @@ static lean_object* _init_l_Lean_Parser_Command_instance___elambda__1___closed__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -10633,7 +10633,7 @@ static lean_object* _init_l_Lean_Parser_Command_instance___elambda__1___closed__ _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = l_Lean_Parser_Command_instance___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -10742,7 +10742,7 @@ static lean_object* _init_l_Lean_Parser_Command_instance___elambda__1___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_2 = l_Lean_Parser_Command_instance___elambda__1___closed__11; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -10846,7 +10846,7 @@ if (x_19 == 0) lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_dec(x_6); lean_dec(x_4); -x_27 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_27 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_28 = l_Lean_Parser_ParserState_mkNode(x_17, x_27, x_16); x_29 = lean_ctor_get(x_28, 4); lean_inc(x_29); @@ -10977,7 +10977,7 @@ goto block_26; block_26: { lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_21 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_22 = l_Lean_Parser_ParserState_mkNode(x_20, x_21, x_16); x_23 = lean_ctor_get(x_22, 4); lean_inc(x_23); @@ -11069,7 +11069,7 @@ static lean_object* _init_l_Lean_Parser_Command_instance___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_2 = l_Lean_Parser_Command_instance___closed__5; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -12698,7 +12698,7 @@ static lean_object* _init_l_Lean_Parser_Command_optDeriving___elambda__1___close _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -12708,7 +12708,7 @@ static lean_object* _init_l_Lean_Parser_Command_optDeriving___elambda__1___close _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; x_2 = l_Lean_Parser_Command_optDeriving___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -12720,7 +12720,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Attr_instance___elambda__1___closed__7; -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_notFollowedByFn___boxed), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -12859,7 +12859,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_optDeriving___elambda__1___closed__15; x_2 = lean_ctor_get(x_1, 1); lean_inc(x_2); -x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; 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); @@ -12929,7 +12929,7 @@ x_14 = lean_array_get_size(x_13); lean_dec(x_13); lean_inc(x_1); x_15 = lean_apply_2(x_4, x_1, x_9); -x_16 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_16 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; x_17 = l_Lean_Parser_ParserState_mkNode(x_15, x_16, x_14); x_18 = lean_ctor_get(x_17, 4); lean_inc(x_18); @@ -12967,7 +12967,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_optDeriving___elambda__1___closed__15; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; x_4 = l_Lean_Parser_nodeInfo(x_3, x_2); return x_4; } @@ -17213,7 +17213,7 @@ static lean_object* _init_l_Lean_Parser_Command_classTk___elambda__1___closed__1 _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -17223,7 +17223,7 @@ static lean_object* _init_l_Lean_Parser_Command_classTk___elambda__1___closed__2 _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; x_2 = l_Lean_Parser_Command_classTk___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -17234,7 +17234,7 @@ static lean_object* _init_l_Lean_Parser_Command_classTk___elambda__1___closed__3 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_2 = l_Lean_Parser_Command_classInductive___elambda__1___closed__7; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -17330,7 +17330,7 @@ lean_dec(x_16); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_18 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_19 = l_Lean_Parser_ParserState_mkNode(x_15, x_18, x_12); x_20 = lean_ctor_get(x_19, 4); lean_inc(x_20); @@ -17363,7 +17363,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean x_26 = lean_box(0); lean_inc(x_1); x_27 = l_Lean_Parser_Level_paren___elambda__1___lambda__1(x_15, x_1, x_9, x_26); -x_28 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_28 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_12); x_30 = lean_ctor_get(x_29, 4); lean_inc(x_30); @@ -17385,7 +17385,7 @@ return x_32; else { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_33 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_34 = l_Lean_Parser_ParserState_mkNode(x_15, x_33, x_12); x_35 = lean_ctor_get(x_34, 4); lean_inc(x_35); @@ -17421,7 +17421,7 @@ static lean_object* _init_l_Lean_Parser_Command_classTk___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_2 = l_Lean_Parser_Command_classInductive___closed__1; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -17491,7 +17491,7 @@ static lean_object* _init_l_Lean_Parser_Command_extends___elambda__1___closed__1 _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -17501,7 +17501,7 @@ static lean_object* _init_l_Lean_Parser_Command_extends___elambda__1___closed__2 _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; x_2 = l_Lean_Parser_Command_extends___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -17563,7 +17563,7 @@ static lean_object* _init_l_Lean_Parser_Command_extends___elambda__1___closed__8 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; x_2 = l_Lean_Parser_Command_extends___elambda__1___closed__7; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -17699,7 +17699,7 @@ if (x_22 == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_dec(x_4); -x_23 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; +x_23 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; x_24 = l_Lean_Parser_ParserState_mkNode(x_20, x_23, x_14); x_25 = lean_ctor_get(x_24, 4); lean_inc(x_25); @@ -17723,7 +17723,7 @@ else lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_inc(x_1); x_28 = lean_apply_2(x_4, x_1, x_20); -x_29 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; +x_29 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_14); x_31 = lean_ctor_get(x_30, 4); lean_inc(x_31); @@ -17781,7 +17781,7 @@ static lean_object* _init_l_Lean_Parser_Command_extends___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; x_2 = l_Lean_Parser_Command_extends___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -17851,7 +17851,7 @@ static lean_object* _init_l_Lean_Parser_Command_structure___elambda__1___closed_ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -17861,7 +17861,7 @@ static lean_object* _init_l_Lean_Parser_Command_structure___elambda__1___closed_ _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; x_2 = l_Lean_Parser_Command_structure___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -18122,7 +18122,7 @@ static lean_object* _init_l_Lean_Parser_Command_structure___elambda__1___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_2 = l_Lean_Parser_Command_structure___elambda__1___closed__24; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -18317,7 +18317,7 @@ goto block_33; block_33: { lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_28 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_20); x_30 = lean_ctor_get(x_29, 4); lean_inc(x_30); @@ -18442,7 +18442,7 @@ static lean_object* _init_l_Lean_Parser_Command_structure___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_2 = l_Lean_Parser_Command_structure___closed__7; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -20042,7 +20042,7 @@ static lean_object* _init_l_Lean_Parser_Command_declSig_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; x_2 = l_Lean_Parser_Command_declSig___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -20069,7 +20069,7 @@ static lean_object* _init_l_Lean_Parser_Command_declSig_formatter___closed__3() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_declSig_formatter___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -20408,7 +20408,7 @@ static lean_object* _init_l_Lean_Parser_Command_instance_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = l_Lean_Parser_Command_instance___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -20499,7 +20499,7 @@ static lean_object* _init_l_Lean_Parser_Command_instance_formatter___closed__9() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_instance_formatter___closed__8; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -20832,7 +20832,7 @@ static lean_object* _init_l_Lean_Parser_Command_optDeriving_formatter___closed__ _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; x_2 = l_Lean_Parser_Command_optDeriving___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -20857,7 +20857,7 @@ static lean_object* _init_l_Lean_Parser_Command_optDeriving_formatter___closed__ _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_formatter___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -20911,7 +20911,7 @@ static lean_object* _init_l_Lean_Parser_Command_optDeriving_formatter___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_optDeriving_formatter___closed__7; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -21244,7 +21244,7 @@ static lean_object* _init_l_Lean_Parser_Command_classTk_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; x_2 = l_Lean_Parser_Command_classTk___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -21259,7 +21259,7 @@ static lean_object* _init_l_Lean_Parser_Command_classTk_formatter___closed__2() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_classInductive_formatter___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -21283,7 +21283,7 @@ static lean_object* _init_l_Lean_Parser_Command_extends_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__15; x_2 = l_Lean_Parser_Command_extends___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -21320,7 +21320,7 @@ static lean_object* _init_l_Lean_Parser_Command_extends_formatter___closed__4() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_extends_formatter___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -22036,7 +22036,7 @@ static lean_object* _init_l_Lean_Parser_Command_structure_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__10; x_2 = l_Lean_Parser_Command_structure___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -22261,7 +22261,7 @@ static lean_object* _init_l_Lean_Parser_Command_structure_formatter___closed__22 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_structure_formatter___closed__21; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -23495,7 +23495,7 @@ static lean_object* _init_l_Lean_Parser_Command_declSig_parenthesizer___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_declSig_parenthesizer___closed__2; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -23852,7 +23852,7 @@ static lean_object* _init_l_Lean_Parser_Command_instance_parenthesizer___closed_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_instance_parenthesizer___closed__7; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -24150,7 +24150,7 @@ static lean_object* _init_l_Lean_Parser_Command_optDeriving_parenthesizer___clos _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__20; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_notSymbol_parenthesizer___boxed), 5, 1); lean_closure_set(x_2, 0, x_1); return x_2; @@ -24204,7 +24204,7 @@ static lean_object* _init_l_Lean_Parser_Command_optDeriving_parenthesizer___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__19; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__18; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_optDeriving_parenthesizer___closed__6; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -24480,7 +24480,7 @@ static lean_object* _init_l_Lean_Parser_Command_classTk_parenthesizer___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__14; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13; x_2 = lean_unsigned_to_nat(1024u); 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); @@ -24517,7 +24517,7 @@ static lean_object* _init_l_Lean_Parser_Command_extends_parenthesizer___closed__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__17; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__16; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_tupleTail_parenthesizer___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -25320,7 +25320,7 @@ static lean_object* _init_l_Lean_Parser_Command_structure_parenthesizer___closed _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__12; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__11; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Command_structure_parenthesizer___closed__19; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -43829,7 +43829,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_2 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index fcaefc5170..4f9a0a3681 100644 --- a/stage0/stdlib/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Lean/Parser/Tactic.c @@ -277,7 +277,6 @@ 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_Tactic_decide___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_match_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; lean_object* l_Lean_Parser_Tactic_decide; lean_object* l_Lean_Parser_Tactic_introMatch___elambda__1___closed__12; extern lean_object* l_Lean_Parser_Level_paren___elambda__1___closed__10; @@ -299,6 +298,7 @@ lean_object* l_Lean_Parser_Tactic_introMatch_formatter___closed__4; extern lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__3; lean_object* l_Lean_Parser_Tactic_decide_formatter___closed__3; lean_object* l___regBuiltin_Lean_Parser_Tactic_decide_formatter(lean_object*); +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; 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*); lean_object* l_Lean_Parser_Tactic_decide___elambda__1___closed__1; @@ -3494,7 +3494,7 @@ _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___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -3513,7 +3513,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_decide___elambda__1___closed__3() _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; x_2 = l_Lean_Parser_Tactic_decide___elambda__1___closed__2; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -3524,7 +3524,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_decide___elambda__1___closed__4() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; x_2 = l_String_trim(x_1); return x_2; } @@ -3833,7 +3833,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_decide_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___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; x_2 = l_Lean_Parser_Tactic_decide___elambda__1___closed__2; x_3 = 1; x_4 = lean_box(x_3); @@ -3848,7 +3848,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_decide_formatter___closed__2() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__24; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__24; x_2 = 0; x_3 = lean_box(x_2); x_4 = lean_alloc_closure((void*)(l_Lean_Parser_nonReservedSymbol_formatter___boxed), 7, 2); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index c5f9823f89..76c5c84d64 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -982,6 +982,7 @@ lean_object* l_Lean_Parser_Term_structInstArrayRef_parenthesizer(lean_object*, l lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_hole_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_forall___closed__7; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; lean_object* l_Lean_Parser_Term_prop_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_letEqnsDecl___closed__6; lean_object* l___regBuiltinParser_Lean_Parser_Term_ident(lean_object*); @@ -1931,7 +1932,6 @@ extern lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrin lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__9; -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l_Lean_Parser_Term_show___closed__4; lean_object* l_Lean_Parser_Term_structInstLVal___elambda__1___closed__15; lean_object* l_Lean_Parser_Term_have_parenthesizer___closed__2; @@ -2515,7 +2515,6 @@ lean_object* l_Lean_Parser_Term_letPatDecl_formatter___closed__3; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__25; lean_object* l_Lean_Parser_Term_structInstArrayRef_formatter___closed__3; lean_object* l_Lean_Parser_Term_namedArgument___closed__2; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; lean_object* l___regBuiltin_Lean_Parser_Term_bracketedBinder_quot_formatter___closed__1; lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_bracketedBinder_quot___closed__2; @@ -2853,6 +2852,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_let__delayed_formatter___closed__1; lean_object* l_Lean_Parser_Term_let__fun___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_macroDollarArg_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__1; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; lean_object* l_Lean_Parser_Term_let_formatter___closed__4; lean_object* l_Lean_Parser_Term_funSimpleBinder___closed__3; lean_object* l_Lean_Parser_Term_depArrow_parenthesizer___closed__1; @@ -24693,7 +24693,7 @@ static lean_object* _init_l_Lean_Parser_Term_explicit___elambda__1___closed__1() _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -24703,7 +24703,7 @@ static lean_object* _init_l_Lean_Parser_Term_explicit___elambda__1___closed__2() _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; x_2 = l_Lean_Parser_Term_explicit___elambda__1___closed__1; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -24767,7 +24767,7 @@ static lean_object* _init_l_Lean_Parser_Term_explicit___elambda__1___closed__8() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_2 = l_Lean_Parser_Term_explicit___elambda__1___closed__7; x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); lean_closure_set(x_3, 0, x_1); @@ -24898,7 +24898,7 @@ lean_dec(x_19); if (x_20 == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_21 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_22 = l_Lean_Parser_ParserState_mkNode(x_18, x_21, x_12); x_23 = lean_ctor_get(x_22, 4); lean_inc(x_23); @@ -24924,7 +24924,7 @@ x_26 = l_term___u2218_____closed__6; x_27 = l_Lean_Parser_maxPrec; lean_inc(x_1); x_28 = l_Lean_Parser_categoryParser___elambda__1(x_26, x_27, x_1, x_18); -x_29 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_29 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_30 = l_Lean_Parser_ParserState_mkNode(x_28, x_29, x_12); x_31 = lean_ctor_get(x_30, 4); lean_inc(x_31); @@ -24991,7 +24991,7 @@ static lean_object* _init_l_Lean_Parser_Term_explicit___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_2 = l_Lean_Parser_Term_explicit___closed__3; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -25062,7 +25062,7 @@ _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_term___u2218_____closed__6; -x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_4 = 1; x_5 = l_Lean_Parser_Term_explicit; x_6 = lean_unsigned_to_nat(1000u); @@ -25074,7 +25074,7 @@ static lean_object* _init_l_Lean_Parser_Term_explicit_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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__26; x_2 = l_Lean_Parser_Term_explicit___elambda__1___closed__1; x_3 = 1; x_4 = lean_box(x_3); @@ -25111,7 +25111,7 @@ static lean_object* _init_l_Lean_Parser_Term_explicit_formatter___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_explicit_formatter___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); @@ -25144,7 +25144,7 @@ _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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_4 = l___regBuiltin_Lean_Parser_Term_explicit_formatter___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -25189,7 +25189,7 @@ static lean_object* _init_l_Lean_Parser_Term_explicit_parenthesizer___closed__4( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_1 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_explicit_parenthesizer___closed__3; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); @@ -25222,7 +25222,7 @@ _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_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_3 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_4 = l___regBuiltin_Lean_Parser_Term_explicit_parenthesizer___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -57049,7 +57049,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c index 753461f4d7..08ad756bd3 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Basic.c @@ -201,7 +201,6 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_getUnusedName(lean_object*, lean_o lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_PrettyPrinter_Delaborator_delabFor___spec__3(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_descend___rarg(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_1354____closed__25; -extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; extern lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__6; lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_Basic___hyg_210____closed__3; uint8_t l_Lean_getPPStructureInstances(lean_object*); @@ -233,6 +232,7 @@ lean_object* l_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_Basic___hyg_152 lean_object* l_Lean_PrettyPrinter_Delaborator_mkDelabAttribute___closed__11; lean_object* l_Lean_PrettyPrinter_delab(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ctorName___closed__9; +extern lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; uint8_t l_Lean_getPPNotation(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_getExprKind_match__3(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_delab(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2918,7 +2918,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6463____closed__20; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_6466____closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c index bee01c6e3a..a54e7992b0 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c @@ -352,7 +352,6 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_delabListToArray___lambda__1(lean_ lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns_usingNamesAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_delabTuple___lambda__1___closed__1; lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_shouldGroupWithNext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabIte(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_delabMVar_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppMatch___closed__1; @@ -491,6 +490,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_delabBVar___closed__2; lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_whenNotPPOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_withBindingBody___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; uint8_t l_Lean_Expr_isAutoParam(lean_object*); lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp_match__2(lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); @@ -4402,7 +4402,7 @@ lean_ctor_set(x_26, 1, x_25); x_27 = l_Array_empty___closed__1; x_28 = lean_array_push(x_27, x_26); x_29 = lean_array_push(x_28, x_2); -x_30 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__28; +x_30 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27; x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index 30eceb3e69..9e446ddf16 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -47,6 +47,7 @@ lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__4___closed__2; lean_object* l_Lean_Server_FileWorker_handleRequest_match__2(lean_object*); lean_object* lean_io_prim_handle_get_line(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_fromJsonDidOpenTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_92_(lean_object*); +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Server_FileWorker_publishMessages___spec__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_mkAntiquotNode___closed__12; @@ -271,7 +272,6 @@ lean_object* l_Lean_Server_FileWorker_handleRequest___lambda__5(lean_object*, le lean_object* l_Lean_Server_FileWorker_compileHeader___closed__2; lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath___closed__4; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___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* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__2(lean_object*, lean_object*, lean_object*); @@ -571,7 +571,6 @@ lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath(lean_object*, lean_ lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_server_worker_main(lean_object*); lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; lean_object* l_Lean_Server_FileWorker_handleHover_match__1(lean_object*); lean_object* l_Lean_Server_FileWorker_queueRequest(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader_match__2(lean_object*); @@ -613,6 +612,7 @@ lean_object* l_IO_AsyncList_unfoldAsync_step___at_Lean_Server_FileWorker_unfoldC lean_object* l_Lean_Server_FileWorker_initAndRunWorker___closed__3; lean_object* l_List_mapM___at_Lean_Server_FileWorker_handlePlainGoal___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Server_FileWorker_publishMessages___spec__2___boxed__const__1; +extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_object* l_Lean_Server_FileWorker_workerMain_match__1(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_withWaitFindSnap___rarg___lambda__1___closed__1; @@ -621,7 +621,7 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_addSearchPathFromEnv(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_get_stdout(lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument(lean_object*, lean_object*, lean_object*, lean_object*); @@ -728,7 +728,7 @@ lean_object* l_Lean_Server_FileWorker_handleSemanticTokens(lean_object*, lean_ob lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_updatePendingRequests(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedPosition___closed__1; -lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_FileWorker_handleRequest___spec__17(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__4(lean_object*); lean_object* l_Lean_Server_FileWorker_handleHover_match__3(lean_object*); @@ -760,7 +760,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoa lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handlePlainGoal___spec__8___closed__1; uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); uint8_t l_Lean_Server_FileWorker_handleSemanticTokens___lambda__1(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_workerMain___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__13; lean_object* l_Lean_Server_FileWorker_withWaitFindSnap_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -21517,7 +21517,7 @@ _start: lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_7 = lean_unsigned_to_nat(4u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_9 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__25; +x_9 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__24; lean_inc(x_2); x_10 = lean_name_mk_string(x_2, x_9); lean_inc(x_8); @@ -22812,7 +22812,7 @@ else lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; x_116 = lean_unsigned_to_nat(1u); x_117 = l_Lean_Syntax_getArg(x_4, x_116); -x_118 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_118 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_inc(x_117); x_119 = l_Lean_Syntax_isOfKind(x_117, x_118); if (x_119 == 0) @@ -23926,7 +23926,7 @@ else lean_object* x_371; lean_object* x_372; lean_object* x_373; uint8_t x_374; x_371 = lean_unsigned_to_nat(1u); x_372 = l_Lean_Syntax_getArg(x_4, x_371); -x_373 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__22; +x_373 = l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__21; lean_inc(x_372); x_374 = l_Lean_Syntax_isOfKind(x_372, x_373); if (x_374 == 0) @@ -25515,24 +25515,24 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokens_h return x_2; } } -lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_2) == 1) { -lean_object* x_5; lean_object* x_6; -lean_dec(x_4); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -x_6 = lean_apply_3(x_3, x_1, x_2, x_5); -return x_6; +lean_object* x_6; lean_object* x_7; +lean_dec(x_5); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_apply_4(x_4, x_1, x_2, x_6, x_3); +return x_7; } else { -lean_object* x_7; -lean_dec(x_3); -x_7 = lean_apply_2(x_4, x_1, x_2); -return x_7; +lean_object* x_8; +lean_dec(x_4); +x_8 = lean_apply_3(x_5, x_1, x_2, x_3); +return x_8; } } } @@ -25540,7 +25540,7 @@ lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId_match__2( _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokens_highlightId_match__2___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokens_highlightId_match__2___rarg), 5, 0); return x_2; } } @@ -26231,102 +26231,102 @@ goto _start; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_4) == 1) { -lean_object* x_5; lean_object* x_6; -x_5 = lean_ctor_get(x_4, 0); -x_6 = l_Lean_Elab_Info_pos_x3f(x_4); -if (lean_obj_tag(x_6) == 0) +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = l_Lean_Elab_Info_pos_x3f(x_4); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_7; -x_7 = lean_box(0); +lean_object* x_8; +x_8 = lean_box(0); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_nat_dec_le(x_1, x_10); +if (x_11 == 0) +{ +lean_object* x_12; +lean_free_object(x_7); +lean_dec(x_10); +x_12 = lean_box(0); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = lean_nat_dec_lt(x_10, x_2); +lean_dec(x_10); +if (x_13 == 0) +{ +lean_object* x_14; +lean_free_object(x_7); +x_14 = lean_box(0); +return x_14; +} +else +{ +lean_inc(x_6); +lean_ctor_set(x_7, 0, x_6); return x_7; } -else -{ -uint8_t x_8; -x_8 = !lean_is_exclusive(x_6); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_6, 0); -x_10 = lean_nat_dec_le(x_1, x_9); -if (x_10 == 0) -{ -lean_object* x_11; -lean_free_object(x_6); -lean_dec(x_9); -x_11 = lean_box(0); -return x_11; -} -else -{ -uint8_t x_12; -x_12 = lean_nat_dec_lt(x_9, x_2); -lean_dec(x_9); -if (x_12 == 0) -{ -lean_object* x_13; -lean_free_object(x_6); -x_13 = lean_box(0); -return x_13; -} -else -{ -lean_inc(x_5); -lean_ctor_set(x_6, 0, x_5); -return x_6; -} } } else { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_6, 0); -lean_inc(x_14); -lean_dec(x_6); -x_15 = lean_nat_dec_le(x_1, x_14); -if (x_15 == 0) +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +lean_dec(x_7); +x_16 = lean_nat_dec_le(x_1, x_15); +if (x_16 == 0) { -lean_object* x_16; -lean_dec(x_14); -x_16 = lean_box(0); -return x_16; +lean_object* x_17; +lean_dec(x_15); +x_17 = lean_box(0); +return x_17; } else { -uint8_t x_17; -x_17 = lean_nat_dec_lt(x_14, x_2); -lean_dec(x_14); -if (x_17 == 0) -{ -lean_object* x_18; -x_18 = lean_box(0); -return x_18; -} -else +uint8_t x_18; +x_18 = lean_nat_dec_lt(x_15, x_2); +lean_dec(x_15); +if (x_18 == 0) { lean_object* x_19; -lean_inc(x_5); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_5); +x_19 = lean_box(0); return x_19; } -} -} -} -} else { lean_object* x_20; -x_20 = lean_box(0); +lean_inc(x_6); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_6); return x_20; } } } +} +} +else +{ +lean_object* x_21; +x_21 = lean_box(0); +return x_21; +} +} +} lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -26353,7 +26353,7 @@ lean_dec(x_7); x_14 = lean_array_uget(x_4, x_6); lean_inc(x_2); lean_inc(x_1); -x_15 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___boxed), 4, 2); +x_15 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___boxed), 5, 2); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_2); x_16 = l_Lean_Elab_InfoTree_deepestNodes___rarg(x_15, x_14); @@ -26640,7 +26640,7 @@ lean_dec(x_7); x_14 = lean_array_uget(x_4, x_6); lean_inc(x_2); lean_inc(x_1); -x_15 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___boxed), 4, 2); +x_15 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___boxed), 5, 2); lean_closure_set(x_15, 0, x_1); lean_closure_set(x_15, 1, x_2); x_16 = l_Lean_Elab_InfoTree_deepestNodes___rarg(x_15, x_14); @@ -27019,16 +27019,17 @@ lean_dec(x_3); return x_14; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1___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_5; -x_5 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__5___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_5; +return x_6; } } lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___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, lean_object* x_10) { diff --git a/stage0/stdlib/Lean/Server/InfoUtils.c b/stage0/stdlib/Lean/Server/InfoUtils.c index 80aa2c49b9..d6a52e415f 100644 --- a/stage0/stdlib/Lean/Server/InfoUtils.c +++ b/stage0/stdlib/Lean/Server/InfoUtils.c @@ -13,29 +13,35 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__22___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___at_Lean_findDocString_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__26(lean_object*); size_t l_USize_add(size_t, size_t); extern lean_object* l_Lean_fieldIdxKind; lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__5; +extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18113____closed__3; lean_object* l_Lean_Elab_Info_isCompletion_match__1(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTrailingSize(lean_object*); extern lean_object* l_Lean_Meta_ppGoal_ppVars___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1(lean_object*); lean_object* l_List_map___at_Lean_Elab_InfoTree_deepestNodes_go___spec__1(lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__19___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__18___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__18(lean_object*); lean_object* l_Lean_Elab_Info_occursBefore_x3f(lean_object*, lean_object*); uint8_t l_Lean_Elab_Info_isSmaller(lean_object*, lean_object*); @@ -43,6 +49,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spe lean_object* l_Lean_Elab_Info_occursBefore_x3f___boxed(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__19(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__22(lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_Format_join___closed__1; size_t l_USize_sub(size_t, size_t); @@ -50,10 +57,14 @@ extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__3; lean_object* l_Lean_Meta_ppExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__4(lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__7; lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes_go_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__7(lean_object*, lean_object*, lean_object*); extern lean_object* l_instInhabitedNat; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -67,6 +78,7 @@ lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(l lean_object* l_Lean_Elab_InfoTree_foldInfo_go_match__2(lean_object*); size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__1(lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_pos_x3f___boxed(lean_object*); lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__2(lean_object*); @@ -74,6 +86,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spe lean_object* l_List_join___rarg(lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nameLitKind; +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__20___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -88,16 +101,21 @@ lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___boxed(lean_object*, lea lean_object* l_Lean_Elab_Info_isTerm___boxed(lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes_go___rarg(lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__15___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_Elab_Info_isCompletion(lean_object*); lean_object* l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1___boxed(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__20(lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__6; lean_object* l_List_map___at_Lean_Elab_InfoTree_deepestNodes_go___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_foldInfo_go_match__1(lean_object*); lean_object* l_Lean_Elab_Info_size_x3f___boxed(lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -108,13 +126,16 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spe lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__25(lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__15(lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__5(lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__5; extern lean_object* l_Lean_numLitKind; +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__2(lean_object*); lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__1(lean_object*); extern lean_object* l_Lean_strLitKind; +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__6; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -123,7 +144,7 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__17___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_getCompletionInfos___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__24___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_isCompletion_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__10(lean_object*); @@ -135,22 +156,27 @@ lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_foldInfo_go___ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__20___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_charLitKind; lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__2___rarg(lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__6(lean_object*, lean_object*, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); lean_object* l_Lean_Elab_Info_fmtHover_x3f___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes_go_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2(lean_object*); extern lean_object* l_Lean_docStringExt; +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_isCompletion___boxed(lean_object*); lean_object* l_Lean_Elab_Info_isTerm_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__7(lean_object*); +lean_object* l_List_filterAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_foldInfo_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes_go(lean_object*); lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_stx(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__11(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__17(lean_object*); lean_object* l_Lean_Elab_InfoTree_foldInfo_go_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_myMacro____x40_Init_Notation___hyg_23758____closed__2; size_t lean_usize_of_nat(lean_object*); lean_object* l_Array_getMax_x3f___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__2___boxed(lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__2___closed__4; @@ -165,13 +191,14 @@ lean_object* l_Std_PersistentArray_toList___rarg(lean_object*); lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f(lean_object*, lean_object*); lean_object* l_Std_fmt___at_Lean_Level_PP_Result_format___spec__1(lean_object*); lean_object* l_Lean_Elab_Info_size_x3f(lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); extern lean_object* l_Option_get_x21___rarg___closed__4; lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__8; lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__9(lean_object*); -lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__26___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__26___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -192,6 +219,8 @@ lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___boxed(lean_o lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_foldInfo_go_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__23___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__23___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_CompletionInfo_format___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,11 +232,16 @@ lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object*, lean_object* lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__8(lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_InfoTree_deepestNodes_go___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findDocString_x3f___at_Lean_Elab_Info_fmtHover_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__24(lean_object*); lean_object* l_Lean_Elab_InfoTree_foldInfo_go(lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__8(lean_object*, lean_object*, lean_object*, size_t, size_t); +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__9(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Elab_Info_stx_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x3f(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); @@ -216,9 +250,12 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spe lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__23(lean_object*); +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__12(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Info_stx___boxed(lean_object*); +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__25___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -228,36 +265,49 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spe lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Elab_InfoTree_hoverableInfoAt_x3f___spec__1(lean_object*, lean_object*); uint8_t l_Lean_Elab_Info_isTerm(lean_object*); +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f___lambda__1___closed__4; lean_object* l_Lean_Elab_Info_isTerm_match__1(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_foldInfo_go___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Elab_Info_pos_x3f(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_foldInfo_go___spec__14(lean_object*); +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_711____at_Lean_Elab_InfoTree_goalsAt_x3f___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_stx_match__1(lean_object*); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__2(lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_fmtHover_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__3(lean_object*); +lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_foldInfo_go___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2(lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l_Lean_Elab_Info_fmtHover_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_foldInfo(lean_object*); lean_object* l_Lean_Elab_ContextInfo_runMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__24___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_711____at_Lean_Elab_InfoTree_goalsAt_x3f___spec__6(lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_foldInfo_go___spec__1(lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_InfoTree_foldInfo_go___spec__16(lean_object*); lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_InfoTree_foldInfo_go___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors___closed__14; extern lean_object* l_Lean_interpolatedStrLitKind; lean_object* l_Lean_Elab_CompletionInfo_stx(lean_object*); +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(lean_object*); lean_object* l_Lean_Elab_InfoTree_getCompletionInfos___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_match__1(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentArray_getAux___rarg___closed__1; +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_InfoTree_foldInfo_go___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes_go_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -453,7 +503,6 @@ x_9 = lean_ctor_get(x_3, 1); lean_inc(x_9); lean_dec(x_3); x_10 = l_Std_PersistentArray_toList___rarg(x_9); -lean_dec(x_9); lean_inc(x_2); lean_inc(x_1); x_11 = l_List_map___at_Lean_Elab_InfoTree_deepestNodes_go___spec__1___rarg(x_1, x_2, x_8, x_10); @@ -461,6 +510,7 @@ x_12 = l_List_join___rarg(x_11); x_13 = l_List_isEmpty___rarg(x_12); if (x_13 == 0) { +lean_dec(x_9); lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); @@ -472,6 +522,7 @@ lean_dec(x_12); if (lean_obj_tag(x_2) == 0) { lean_object* x_14; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_1); x_14 = lean_box(0); @@ -483,7 +534,7 @@ lean_object* x_15; lean_object* x_16; x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); -x_16 = lean_apply_2(x_1, x_15, x_8); +x_16 = lean_apply_3(x_1, x_15, x_8, x_9); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; @@ -3587,31 +3638,31 @@ return x_15; } } } -lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_4; uint8_t x_5; +lean_object* x_5; uint8_t x_6; lean_inc(x_3); -x_4 = lean_apply_1(x_1, x_3); -x_5 = lean_unbox(x_4); -lean_dec(x_4); -if (x_5 == 0) +x_5 = lean_apply_1(x_1, x_3); +x_6 = lean_unbox(x_5); +lean_dec(x_5); +if (x_6 == 0) { -lean_object* x_6; +lean_object* x_7; lean_dec(x_3); lean_dec(x_2); -x_6 = lean_box(0); -return x_6; +x_7 = lean_box(0); +return x_7; } else { -lean_object* x_7; lean_object* x_8; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_2); -lean_ctor_set(x_7, 1, x_3); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_7); -return x_8; +lean_object* x_8; lean_object* x_9; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_2); +lean_ctor_set(x_8, 1, x_3); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_8); +return x_9; } } } @@ -3619,7 +3670,7 @@ lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f(lean_object* x_1, lean_object _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1), 3, 1); +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1___boxed), 4, 1); lean_closure_set(x_3, 0, x_1); x_4 = l_Lean_Elab_InfoTree_deepestNodes___rarg(x_3, x_2); x_5 = l_List_map___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(x_4); @@ -3724,6 +3775,15 @@ lean_dec(x_1); return x_2; } } +lean_object* l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_InfoTree_smallestInfo_x3f___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_4); +return x_5; +} +} lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -4779,24 +4839,90 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +switch (lean_obj_tag(x_5)) { +case 0: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_apply_2(x_2, x_7, x_6); +return x_8; +} +case 3: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_4); +lean_dec(x_2); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_ctor_get(x_5, 0); +lean_inc(x_10); +lean_dec(x_5); +x_11 = lean_apply_2(x_3, x_10, x_9); +return x_11; +} +default: +{ +lean_object* x_12; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_apply_1(x_4, x_1); +return x_12; +} +} +} +else +{ +lean_object* x_13; +lean_dec(x_3); +lean_dec(x_2); +x_13 = lean_apply_1(x_4, x_1); +return x_13; +} +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_2) == 0) { -lean_object* x_5; lean_object* x_6; -lean_dec(x_4); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -x_6 = lean_apply_3(x_3, x_1, x_2, x_5); -return x_6; +lean_object* x_6; lean_object* x_7; +lean_dec(x_5); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_apply_4(x_4, x_1, x_2, x_6, x_3); +return x_7; } else { -lean_object* x_7; -lean_dec(x_3); -x_7 = lean_apply_2(x_4, x_1, x_2); -return x_7; +lean_object* x_8; +lean_dec(x_4); +x_8 = lean_apply_3(x_5, x_1, x_2, x_3); +return x_8; } } } @@ -4804,150 +4930,1407 @@ lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f_match__1___rarg), 5, 0); return x_2; } } -lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2___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_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +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; +} +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f_match__2___rarg), 3, 0); +return x_2; +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__2(x_1, x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) { -lean_object* x_4; lean_object* x_5; +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_4 = lean_ctor_get(x_3, 0); -x_5 = l_Lean_Elab_Info_pos_x3f(x_3); -if (lean_obj_tag(x_5) == 0) +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) { -lean_object* x_6; -lean_dec(x_2); -x_6 = lean_box(0); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); +uint8_t x_8; lean_dec(x_5); -x_8 = l_Lean_Elab_Info_tailPos_x3f(x_3); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; -lean_dec(x_7); -lean_dec(x_2); -x_9 = lean_box(0); -return x_9; +x_8 = 0; +return x_8; } else { +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ uint8_t x_10; -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_8, 0); -x_12 = l_Lean_Elab_Info_stx(x_3); -x_13 = l_Lean_Syntax_getTrailingSize(x_12); -lean_dec(x_12); -x_14 = lean_nat_dec_le(x_7, x_1); -if (x_14 == 0) -{ -lean_object* x_15; -lean_dec(x_13); -lean_free_object(x_8); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_2); -x_15 = lean_box(0); -return x_15; +lean_dec(x_5); +x_10 = 0; +return x_10; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_unsigned_to_nat(1u); -x_17 = l_Nat_max(x_16, x_13); -lean_dec(x_13); -x_18 = lean_nat_add(x_11, x_17); -lean_dec(x_17); -lean_dec(x_11); -x_19 = lean_nat_dec_lt(x_1, x_18); -lean_dec(x_18); +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__3(x_1, x_2, x_4, x_11, x_12); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); if (x_19 == 0) { -lean_object* x_20; -lean_free_object(x_8); -lean_dec(x_7); -lean_dec(x_2); -x_20 = lean_box(0); +uint8_t x_20; +lean_dec(x_15); +x_20 = 0; return x_20; } else { -uint8_t x_21; lean_object* x_22; -x_21 = lean_nat_dec_lt(x_7, x_1); +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__4(x_1, x_2, x_14, x_21, x_22); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__2(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; lean_dec(x_7); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__5(x_1, x_2, x_6, x_13, x_14); +return x_15; +} +} +} +else +{ +return x_5; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__7(x_1, x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__8(x_1, x_2, x_4, x_11, x_12); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__9(x_1, x_2, x_14, x_21, x_22); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__7(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__10(x_1, x_2, x_6, x_13, x_14); +return x_15; +} +} +} +else +{ +return x_5; +} +} +} +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1(x_1, x_2, x_3); +return x_5; +} +} +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__2(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; uint8_t x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_4, 2); +x_7 = 0; +x_8 = l_Lean_Syntax_getPos_x3f(x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1(x_1, x_2, x_3); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Syntax_getTailPos_x3f(x_6, x_7); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +lean_dec(x_10); +x_12 = l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1(x_1, x_2, x_3); +return x_12; +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_nat_dec_eq(x_10, x_1); +lean_dec(x_10); +if (x_14 == 0) +{ +uint8_t x_15; +lean_dec(x_13); +x_15 = 1; +return x_15; +} +else +{ +uint8_t x_16; +x_16 = lean_nat_dec_eq(x_13, x_2); +lean_dec(x_13); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = 1; +return x_17; +} +else +{ +uint8_t x_18; +x_18 = l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1(x_1, x_2, x_3); +return x_18; +} +} +} +} +} +} +uint8_t l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 1) +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); -x_22 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_22, 0, x_2); -lean_ctor_set(x_22, 1, x_4); -lean_ctor_set_uint8(x_22, sizeof(void*)*2, x_21); -lean_ctor_set(x_8, 0, x_22); +switch (lean_obj_tag(x_4)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_ctor_get(x_6, 2); +lean_inc(x_7); +x_8 = l_myMacro____x40_Init_Notation___hyg_23758____closed__2; +lean_inc(x_7); +x_9 = l_Lean_Syntax_isOfKind(x_7, x_8); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +lean_dec(x_7); +x_10 = lean_box(0); +x_11 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__2(x_1, x_2, x_5, x_6, x_10); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_unsigned_to_nat(1u); +x_13 = l_Lean_Syntax_getArg(x_7, x_12); +lean_dec(x_7); +x_14 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_18113____closed__3; +x_15 = l_Lean_Syntax_isOfKind(x_13, x_14); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_box(0); +x_17 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__2(x_1, x_2, x_5, x_6, x_16); +lean_dec(x_6); +lean_dec(x_5); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_6); +lean_dec(x_5); +x_18 = 0; +return x_18; +} +} +} +case 3: +{ +lean_object* x_19; uint8_t x_20; +lean_dec(x_4); +x_19 = lean_ctor_get(x_3, 1); +lean_inc(x_19); +lean_dec(x_3); +x_20 = l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__6(x_1, x_2, x_19); +lean_dec(x_19); +return x_20; +} +default: +{ +uint8_t x_21; +lean_dec(x_4); +lean_dec(x_3); +x_21 = 0; +return x_21; +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_3); +x_22 = 0; +return x_22; +} +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__3(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__4(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__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_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__5(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1___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_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__8(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__9(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__7___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_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__7(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__10(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__6___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_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___spec__6(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___lambda__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic___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_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__2(x_1, x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_3, 0); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_5); +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = lean_nat_dec_le(x_5, x_5); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_5); +x_10 = 0; +return x_10; +} +else +{ +size_t x_11; size_t x_12; uint8_t x_13; +x_11 = 0; +x_12 = lean_usize_of_nat(x_5); +lean_dec(x_5); +x_13 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__3(x_1, x_2, x_4, x_11, x_12); +return x_13; +} +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_15); +x_18 = 0; +return x_18; +} +else +{ +uint8_t x_19; +x_19 = lean_nat_dec_le(x_15, x_15); +if (x_19 == 0) +{ +uint8_t x_20; +lean_dec(x_15); +x_20 = 0; +return x_20; +} +else +{ +size_t x_21; size_t x_22; uint8_t x_23; +x_21 = 0; +x_22 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__4(x_1, x_2, x_14, x_21, x_22); +return x_23; +} +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5) { +_start: +{ +uint8_t x_6; +x_6 = x_4 == x_5; +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_uget(x_3, x_4); +x_8 = l_Lean_Elab_InfoTree_goalsAt_x3f_hasNestedTactic(x_1, x_2, x_7); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = x_4 + x_9; +x_4 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +uint8_t l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +x_5 = l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__2(x_1, x_2, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 1); +x_7 = lean_array_get_size(x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_lt(x_8, x_7); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_7, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +x_12 = 0; +return x_12; +} +else +{ +size_t x_13; size_t x_14; uint8_t x_15; +x_13 = 0; +x_14 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_15 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__5(x_1, x_2, x_6, x_13, x_14); +return x_15; +} +} +} +else +{ +return x_5; +} +} +} +uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_711____at_Lean_Elab_InfoTree_goalsAt_x3f___spec__6(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_nat_dec_eq(x_6, x_7); return x_8; } } } +} +lean_object* l_List_filterAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_4; +x_4 = l_List_reverse___rarg(x_3); +return x_4; +} else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_23 = lean_ctor_get(x_8, 0); -lean_inc(x_23); +uint8_t x_5; +x_5 = !lean_is_exclusive(x_2); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 2); +lean_inc(x_9); lean_dec(x_8); -x_24 = l_Lean_Elab_Info_stx(x_3); -x_25 = l_Lean_Syntax_getTrailingSize(x_24); -lean_dec(x_24); -x_26 = lean_nat_dec_le(x_7, x_1); -if (x_26 == 0) +x_10 = 0; +x_11 = l_Lean_Syntax_getPos_x3f(x_9, x_10); +lean_dec(x_9); +x_12 = lean_ctor_get(x_1, 1); +x_13 = lean_ctor_get(x_12, 2); +x_14 = l_Lean_Syntax_getPos_x3f(x_13, x_10); +x_15 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_711____at_Lean_Elab_InfoTree_goalsAt_x3f___spec__6(x_11, x_14); +lean_dec(x_14); +lean_dec(x_11); +if (x_15 == 0) { -lean_object* x_27; -lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_7); -lean_dec(x_2); -x_27 = lean_box(0); -return x_27; +lean_free_object(x_2); +lean_dec(x_6); +x_2 = x_7; +goto _start; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_unsigned_to_nat(1u); -x_29 = l_Nat_max(x_28, x_25); -lean_dec(x_25); -x_30 = lean_nat_add(x_23, x_29); -lean_dec(x_29); +lean_ctor_set(x_2, 1, x_3); +{ +lean_object* _tmp_1 = x_7; +lean_object* _tmp_2 = x_2; +x_2 = _tmp_1; +x_3 = _tmp_2; +} +goto _start; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_18 = lean_ctor_get(x_2, 0); +x_19 = lean_ctor_get(x_2, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_2); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +x_21 = lean_ctor_get(x_20, 2); +lean_inc(x_21); +lean_dec(x_20); +x_22 = 0; +x_23 = l_Lean_Syntax_getPos_x3f(x_21, x_22); +lean_dec(x_21); +x_24 = lean_ctor_get(x_1, 1); +x_25 = lean_ctor_get(x_24, 2); +x_26 = l_Lean_Syntax_getPos_x3f(x_25, x_22); +x_27 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_711____at_Lean_Elab_InfoTree_goalsAt_x3f___spec__6(x_23, x_26); +lean_dec(x_26); lean_dec(x_23); -x_31 = lean_nat_dec_lt(x_1, x_30); +if (x_27 == 0) +{ +lean_dec(x_18); +x_2 = x_19; +goto _start; +} +else +{ +lean_object* x_29; +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_18); +lean_ctor_set(x_29, 1, x_3); +x_2 = x_19; +x_3 = x_29; +goto _start; +} +} +} +} +} +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 0); +x_6 = l_Lean_Elab_Info_pos_x3f(x_3); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_box(0); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Elab_Info_tailPos_x3f(x_3); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +lean_dec(x_8); +lean_dec(x_2); +x_10 = lean_box(0); +return x_10; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_9, 0); +x_13 = l_Lean_Elab_Info_stx(x_3); +x_14 = l_Lean_Syntax_getTrailingSize(x_13); +lean_dec(x_13); +x_15 = lean_nat_dec_le(x_8, x_1); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_14); +lean_free_object(x_9); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_2); +x_16 = lean_box(0); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_unsigned_to_nat(1u); +x_18 = l_Nat_max(x_17, x_14); +lean_dec(x_14); +x_19 = lean_nat_add(x_12, x_18); +lean_dec(x_18); +x_20 = lean_nat_dec_lt(x_1, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; +lean_free_object(x_9); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_2); +x_21 = lean_box(0); +return x_21; +} +else +{ +uint8_t x_22; +x_22 = lean_nat_dec_lt(x_8, x_1); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; +lean_dec(x_12); +lean_dec(x_8); +x_23 = 0; +lean_inc(x_5); +x_24 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_24, 0, x_2); +lean_ctor_set(x_24, 1, x_5); +lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_23); +lean_ctor_set(x_9, 0, x_24); +return x_9; +} +else +{ +uint8_t x_25; +x_25 = l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_8, x_12, x_4); +lean_dec(x_12); +lean_dec(x_8); +if (x_25 == 0) +{ +uint8_t x_26; lean_object* x_27; +x_26 = 1; +lean_inc(x_5); +x_27 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_27, 0, x_2); +lean_ctor_set(x_27, 1, x_5); +lean_ctor_set_uint8(x_27, sizeof(void*)*2, x_26); +lean_ctor_set(x_9, 0, x_27); +return x_9; +} +else +{ +uint8_t x_28; lean_object* x_29; +x_28 = 0; +lean_inc(x_5); +x_29 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_29, 0, x_2); +lean_ctor_set(x_29, 1, x_5); +lean_ctor_set_uint8(x_29, sizeof(void*)*2, x_28); +lean_ctor_set(x_9, 0, x_29); +return x_9; +} +} +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_9, 0); +lean_inc(x_30); +lean_dec(x_9); +x_31 = l_Lean_Elab_Info_stx(x_3); +x_32 = l_Lean_Syntax_getTrailingSize(x_31); +lean_dec(x_31); +x_33 = lean_nat_dec_le(x_8, x_1); +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_32); lean_dec(x_30); -if (x_31 == 0) -{ -lean_object* x_32; -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_2); -x_32 = lean_box(0); -return x_32; +x_34 = lean_box(0); +return x_34; } else { -uint8_t x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_nat_dec_lt(x_7, x_1); -lean_dec(x_7); -lean_inc(x_4); -x_34 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_34, 0, x_2); -lean_ctor_set(x_34, 1, x_4); -lean_ctor_set_uint8(x_34, sizeof(void*)*2, x_33); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_34); -return x_35; +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_35 = lean_unsigned_to_nat(1u); +x_36 = l_Nat_max(x_35, x_32); +lean_dec(x_32); +x_37 = lean_nat_add(x_30, x_36); +lean_dec(x_36); +x_38 = lean_nat_dec_lt(x_1, x_37); +lean_dec(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_30); +lean_dec(x_8); +lean_dec(x_2); +x_39 = lean_box(0); +return x_39; +} +else +{ +uint8_t x_40; +x_40 = lean_nat_dec_lt(x_8, x_1); +if (x_40 == 0) +{ +uint8_t x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_30); +lean_dec(x_8); +x_41 = 0; +lean_inc(x_5); +x_42 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_42, 0, x_2); +lean_ctor_set(x_42, 1, x_5); +lean_ctor_set_uint8(x_42, sizeof(void*)*2, x_41); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_42); +return x_43; +} +else +{ +uint8_t x_44; +x_44 = l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_8, x_30, x_4); +lean_dec(x_30); +lean_dec(x_8); +if (x_44 == 0) +{ +uint8_t x_45; lean_object* x_46; lean_object* x_47; +x_45 = 1; +lean_inc(x_5); +x_46 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_46, 0, x_2); +lean_ctor_set(x_46, 1, x_5); +lean_ctor_set_uint8(x_46, sizeof(void*)*2, x_45); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_46); +return x_47; +} +else +{ +uint8_t x_48; lean_object* x_49; lean_object* x_50; +x_48 = 0; +lean_inc(x_5); +x_49 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_49, 0, x_2); +lean_ctor_set(x_49, 1, x_5); +lean_ctor_set_uint8(x_49, sizeof(void*)*2, x_48); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_49); +return x_50; +} +} } } } @@ -4956,10 +6339,10 @@ return x_35; } else { -lean_object* x_36; +lean_object* x_51; lean_dec(x_2); -x_36 = lean_box(0); -return x_36; +x_51 = lean_box(0); +return x_51; } } } @@ -4967,22 +6350,128 @@ lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object* x_1, lean_object* x_2 _start: { lean_object* x_3; lean_object* x_4; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed), 3, 1); +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed), 4, 1); lean_closure_set(x_3, 0, x_2); x_4 = l_Lean_Elab_InfoTree_deepestNodes___rarg(x_3, x_1); +if (lean_obj_tag(x_4) == 0) +{ +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_box(0); +x_7 = l_List_filterAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__7(x_5, x_4, x_6); +lean_dec(x_5); +return x_7; +} +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__3(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__4(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__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_Std_PersistentArray_anyMAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__2(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_8 = l_Array_anyMUnsafe_any___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__5(x_1, x_2, x_3, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_box(x_8); +return x_9; +} +} +lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1___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_Std_PersistentArray_anyM___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_711____at_Lean_Elab_InfoTree_goalsAt_x3f___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_711____at_Lean_Elab_InfoTree_goalsAt_x3f___spec__6(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(x_1, x_2, x_3); -lean_dec(x_3); +x_4 = l_List_filterAux___at_Lean_Elab_InfoTree_goalsAt_x3f___spec__7(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } +lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_InfoTree_goalsAt_x3f___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_DocString(lean_object*); lean_object* initialize_Lean_Elab_InfoTree(lean_object*); diff --git a/stage0/stdlib/Lean/Structure.c b/stage0/stdlib/Lean/Structure.c index 9171b3748a..d3502b6bf2 100644 --- a/stage0/stdlib/Lean/Structure.c +++ b/stage0/stdlib/Lean/Structure.c @@ -99,7 +99,7 @@ lean_object* l_Lean_getPathToBaseStructureAux___boxed(lean_object*, lean_object* lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MapDeclarationExtension_contains___at_Lean_Environment_isProjectionFn___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsAux(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); +lean_object* lean_name_append_before(lean_object*, lean_object*); lean_object* l_Lean_getAllParentStructures_visit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_getPathToBaseStructureAux_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -323,7 +323,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; -x_3 = l_Lean_Name_appendBefore(x_1, x_2); +x_3 = lean_name_append_before(x_1, x_2); return x_3; } } @@ -1015,7 +1015,7 @@ x_4 = l_Lean_getStructureCtor(x_1, x_2); x_5 = lean_ctor_get(x_4, 3); lean_inc(x_5); x_6 = l_myMacro____x40_Init_Notation___hyg_15342____closed__14; -x_7 = l_Lean_Name_appendBefore(x_3, x_6); +x_7 = lean_name_append_before(x_3, x_6); x_8 = lean_ctor_get(x_4, 0); lean_inc(x_8); lean_dec(x_4); diff --git a/stage0/stdlib/Lean/Util/CollectLevelParams.c b/stage0/stdlib/Lean/Util/CollectLevelParams.c index 3105e87a1b..cbca9b3f1a 100644 --- a/stage0/stdlib/Lean/Util/CollectLevelParams.c +++ b/stage0/stdlib/Lean/Util/CollectLevelParams.c @@ -45,7 +45,7 @@ lean_object* l_Lean_CollectLevelParams_instInhabitedState; lean_object* l_List_replace___at_Lean_CollectLevelParams_visitExpr___spec__7___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___at_Lean_CollectLevelParams_visitLevel___spec__2(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_List_replace___at_Lean_CollectLevelParams_visitLevel___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at_Lean_CollectLevelParams_visitLevel___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Std_mkHashSet___at_Lean_CollectLevelParams_State_visitedExpr___default___spec__1(lean_object*); @@ -2764,7 +2764,7 @@ _start: lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_inc(x_3); lean_inc(x_2); -x_4 = l_Lean_Name_appendIndexAfter(x_2, x_3); +x_4 = lean_name_append_index_after(x_2, x_3); x_5 = l_Lean_mkLevelParam(x_4); x_6 = lean_ctor_get(x_1, 0); x_7 = l_Std_HashSetImp_contains___at_Lean_CollectLevelParams_visitLevel___spec__1(x_6, x_5);