diff --git a/stage0/src/Lean/Elab.lean b/stage0/src/Lean/Elab.lean index db19a5dea2..7b518d0b23 100644 --- a/stage0/src/Lean/Elab.lean +++ b/stage0/src/Lean/Elab.lean @@ -37,3 +37,4 @@ import Lean.Elab.Macro import Lean.Elab.Notation import Lean.Elab.Mixfix import Lean.Elab.MacroRules +import Lean.Elab.BuiltinCommand diff --git a/stage0/src/Lean/Elab/BuiltinCommand.lean b/stage0/src/Lean/Elab/BuiltinCommand.lean new file mode 100644 index 0000000000..935537d041 --- /dev/null +++ b/stage0/src/Lean/Elab/BuiltinCommand.lean @@ -0,0 +1,260 @@ +/- +Copyright (c) 2021 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +import Lean.Elab.Command + +namespace Lean.Elab.Command + +private def addScope (isNewNamespace : Bool) (header : String) (newNamespace : Name) : CommandElabM Unit := do + modify fun s => { s with + env := s.env.registerNamespace newNamespace, + scopes := { s.scopes.head! with header := header, currNamespace := newNamespace } :: s.scopes + } + pushScope + if isNewNamespace then + activateScoped newNamespace + +private def addScopes (isNewNamespace : Bool) : Name → CommandElabM Unit + | Name.anonymous => pure () + | Name.str p header _ => do + addScopes isNewNamespace p + let currNamespace ← getCurrNamespace + addScope isNewNamespace header (if isNewNamespace then Name.mkStr currNamespace header else currNamespace) + | _ => throwError "invalid scope" + +private def addNamespace (header : Name) : CommandElabM Unit := + addScopes (isNewNamespace := true) header + +def withNamespace {α} (ns : Name) (elabFn : CommandElabM α) : CommandElabM α := do + addNamespace ns + let a ← elabFn + modify fun s => { s with scopes := s.scopes.drop ns.getNumParts } + pure a + +private def popScopes (numScopes : Nat) : CommandElabM Unit := + for i in [0:numScopes] do + popScope + +private def checkAnonymousScope : List Scope → Bool + | { header := "", .. } :: _ => true + | _ => false + +private def checkEndHeader : Name → List Scope → Bool + | Name.anonymous, _ => true + | Name.str p s _, { header := h, .. } :: scopes => h == s && checkEndHeader p scopes + | _, _ => false + +@[builtinCommandElab «namespace»] def elabNamespace : CommandElab := fun stx => + match stx with + | `(namespace $n) => addNamespace n.getId + | _ => throwUnsupportedSyntax + +@[builtinCommandElab «section»] def elabSection : CommandElab := fun stx => + match stx with + | `(section $header:ident) => addScopes (isNewNamespace := false) header.getId + | `(section) => do let currNamespace ← getCurrNamespace; addScope (isNewNamespace := false) "" currNamespace + | _ => throwUnsupportedSyntax + +@[builtinCommandElab «end»] def elabEnd : CommandElab := fun stx => do + let header? := (stx.getArg 1).getOptionalIdent?; + let endSize := match header? with + | none => 1 + | some n => n.getNumParts + let scopes ← getScopes + if endSize < scopes.length then + modify fun s => { s with scopes := s.scopes.drop endSize } + popScopes endSize + else -- we keep "root" scope + let n := (← get).scopes.length - 1 + modify fun s => { s with scopes := s.scopes.drop n } + popScopes n + throwError "invalid 'end', insufficient scopes" + match header? with + | none => + unless checkAnonymousScope scopes do + throwError "invalid 'end', name is missing" + | some header => + unless checkEndHeader header scopes do + addCompletionInfo <| CompletionInfo.endSection stx (scopes.map fun scope => scope.header) + throwError "invalid 'end', name mismatch" + +private partial def elabChoiceAux (cmds : Array Syntax) (i : Nat) : CommandElabM Unit := + if h : i < cmds.size then + let cmd := cmds.get ⟨i, h⟩; + catchInternalId unsupportedSyntaxExceptionId + (elabCommand cmd) + (fun ex => elabChoiceAux cmds (i+1)) + else + throwUnsupportedSyntax + +@[builtinCommandElab choice] def elbChoice : CommandElab := fun stx => + elabChoiceAux stx.getArgs 0 + +@[builtinCommandElab «universe»] def elabUniverse : CommandElab := fun n => do + n[1].forArgsM addUnivLevel + +@[builtinCommandElab «init_quot»] def elabInitQuot : CommandElab := fun stx => do + match (← getEnv).addDecl Declaration.quotDecl with + | Except.ok env => setEnv env + | Except.error ex => throwError (ex.toMessageData (← getOptions)) + +@[builtinCommandElab «export»] def elabExport : CommandElab := fun stx => do + -- `stx` is of the form (Command.export "export" "(" (null *) ")") + let id := stx[1].getId + let ns ← resolveNamespace id + let currNamespace ← getCurrNamespace + if ns == currNamespace then throwError "invalid 'export', self export" + let env ← getEnv + let ids := stx[3].getArgs + let aliases ← ids.foldlM (init := []) fun (aliases : List (Name × Name)) (idStx : Syntax) => do + let id := idStx.getId + let declName := ns ++ id + if env.contains declName then + pure <| (currNamespace ++ id, declName) :: aliases + else + withRef idStx <| logUnknownDecl declName + pure aliases + modify fun s => { s with env := aliases.foldl (init := s.env) fun env p => addAlias env p.1 p.2 } + +@[builtinCommandElab «open»] def elabOpen : CommandElab := fun n => do + let openDecls ← elabOpenDecl n[1] + modifyScope fun scope => { scope with openDecls := openDecls } + +@[builtinCommandElab «variable»] def elabVariable : CommandElab + | `(variable $binders*) => do + -- Try to elaborate `binders` for sanity checking + runTermElabM none fun _ => Term.withAutoBoundImplicit <| + Term.elabBinders binders fun _ => pure () + let varUIds ← binders.concatMap getBracketedBinderIds |>.mapM (withFreshMacroScope ∘ MonadQuotation.addMacroScope) + modifyScope fun scope => { scope with varDecls := scope.varDecls ++ binders, varUIds := scope.varUIds ++ varUIds } + | _ => throwUnsupportedSyntax + +open Meta + +@[builtinCommandElab Lean.Parser.Command.check] def elabCheck : CommandElab + | `(#check%$tk $term) => withoutModifyingEnv $ runTermElabM (some `_check) fun _ => do + let e ← Term.elabTerm term none + Term.synthesizeSyntheticMVarsNoPostponing + let (e, _) ← Term.levelMVarToParam (← instantiateMVars e) + let type ← inferType e + unless e.isSyntheticSorry do + logInfoAt tk m!"{e} : {type}" + | _ => throwUnsupportedSyntax + +@[builtinCommandElab Lean.Parser.Command.reduce] def elabReduce : CommandElab + | `(#reduce%$tk $term) => withoutModifyingEnv <| runTermElabM (some `_check) fun _ => do + let e ← Term.elabTerm term none + Term.synthesizeSyntheticMVarsNoPostponing + let (e, _) ← Term.levelMVarToParam (← instantiateMVars e) + -- TODO: add options or notation for setting the following parameters + withTheReader Core.Context (fun ctx => { ctx with options := ctx.options.setBool `smartUnfolding false }) do + let e ← withTransparency (mode := TransparencyMode.all) <| reduce e (skipProofs := false) (skipTypes := false) + logInfoAt tk e + | _ => throwUnsupportedSyntax + +def hasNoErrorMessages : CommandElabM Bool := do + return !(← get).messages.hasErrors + +def failIfSucceeds (x : CommandElabM Unit) : CommandElabM Unit := do + let resetMessages : CommandElabM MessageLog := do + let s ← get + let messages := s.messages; + modify fun s => { s with messages := {} }; + pure messages + let restoreMessages (prevMessages : MessageLog) : CommandElabM Unit := do + modify fun s => { s with messages := prevMessages ++ s.messages.errorsToWarnings } + let prevMessages ← resetMessages + let succeeded ← + try + x + hasNoErrorMessages + catch + | ex@(Exception.error _ _) => do logException ex; pure false + | Exception.internal id _ => do logError (← id.getName); pure false + finally + restoreMessages prevMessages + if succeeded then + throwError "unexpected success" + +@[builtinCommandElab «check_failure»] def elabCheckFailure : CommandElab + | `(#check_failure $term) => do + failIfSucceeds <| elabCheck (← `(#check $term)) + | _ => throwUnsupportedSyntax + +unsafe def elabEvalUnsafe : CommandElab + | `(#eval%$tk $term) => do + let n := `_eval + let ctx ← read + let addAndCompile (value : Expr) : TermElabM Unit := do + let type ← inferType value + let decl := Declaration.defnDecl { + name := n + levelParams := [] + type := type + value := value + hints := ReducibilityHints.opaque + safety := DefinitionSafety.unsafe + } + Term.ensureNoUnassignedMVars decl + addAndCompile decl + let elabMetaEval : CommandElabM Unit := runTermElabM (some n) fun _ => do + let e ← Term.elabTerm term none + Term.synthesizeSyntheticMVarsNoPostponing + let e ← withLocalDeclD `env (mkConst ``Lean.Environment) fun env => + withLocalDeclD `opts (mkConst ``Lean.Options) fun opts => do + let e ← mkAppM ``Lean.runMetaEval #[env, opts, e]; + mkLambdaFVars #[env, opts] e + let env ← getEnv + let opts ← getOptions + let act ← try addAndCompile e; evalConst (Environment → Options → IO (String × Except IO.Error Environment)) n finally setEnv env + let (out, res) ← act env opts -- we execute `act` using the environment + logInfoAt tk out + match res with + | Except.error e => throwError e.toString + | Except.ok env => do setEnv env; pure () + let elabEval : CommandElabM Unit := runTermElabM (some n) fun _ => do + -- fall back to non-meta eval if MetaEval hasn't been defined yet + -- modify e to `runEval e` + let e ← Term.elabTerm term none + let e := mkSimpleThunk e + Term.synthesizeSyntheticMVarsNoPostponing + let e ← mkAppM ``Lean.runEval #[e] + let env ← getEnv + let act ← try addAndCompile e; evalConst (IO (String × Except IO.Error Unit)) n finally setEnv env + let (out, res) ← liftM (m := IO) act + logInfoAt tk out + match res with + | Except.error e => throwError e.toString + | Except.ok _ => pure () + if (← getEnv).contains ``Lean.MetaEval then do + elabMetaEval + else + elabEval + | _ => throwUnsupportedSyntax + +@[builtinCommandElab «eval», implementedBy elabEvalUnsafe] +constant elabEval : CommandElab + +@[builtinCommandElab «synth»] def elabSynth : CommandElab := fun stx => do + let term := stx[1] + withoutModifyingEnv <| runTermElabM `_synth_cmd fun _ => do + let inst ← Term.elabTerm term none + Term.synthesizeSyntheticMVarsNoPostponing + let inst ← instantiateMVars inst + let val ← synthInstance inst + logInfo val + pure () + +@[builtinCommandElab «set_option»] def elabSetOption : CommandElab := fun stx => do + let options ← Elab.elabSetOption stx[1] stx[2] + modify fun s => { s with maxRecDepth := maxRecDepth.get options } + modifyScope fun scope => { scope with opts := options } + +@[builtinMacro Lean.Parser.Command.«in»] def expandInCmd : Macro := fun stx => do + let cmd₁ := stx[0] + let cmd₂ := stx[2] + `(section $cmd₁:command $cmd₂:command end) + +end Lean.Elab.Command diff --git a/stage0/src/Lean/Elab/Command.lean b/stage0/src/Lean/Elab/Command.lean index 3033d83f45..c5847e00c6 100644 --- a/stage0/src/Lean/Elab/Command.lean +++ b/stage0/src/Lean/Elab/Command.lean @@ -396,82 +396,9 @@ def liftTermElabM {α} (declName? : Option Name) (x : TermElabM α) : CommandEla private def liftAttrM {α} (x : AttrM α) : CommandElabM α := do liftCoreM x -private def addScope (isNewNamespace : Bool) (header : String) (newNamespace : Name) : CommandElabM Unit := do - modify fun s => { s with - env := s.env.registerNamespace newNamespace, - scopes := { s.scopes.head! with header := header, currNamespace := newNamespace } :: s.scopes - } - pushScope - if isNewNamespace then - activateScoped newNamespace - -private def addScopes (isNewNamespace : Bool) : Name → CommandElabM Unit - | Name.anonymous => pure () - | Name.str p header _ => do - addScopes isNewNamespace p - let currNamespace ← getCurrNamespace - addScope isNewNamespace header (if isNewNamespace then Name.mkStr currNamespace header else currNamespace) - | _ => throwError "invalid scope" - -private def addNamespace (header : Name) : CommandElabM Unit := - addScopes (isNewNamespace := true) header - -@[builtinCommandElab «namespace»] def elabNamespace : CommandElab := fun stx => - match stx with - | `(namespace $n) => addNamespace n.getId - | _ => throwUnsupportedSyntax - -@[builtinCommandElab «section»] def elabSection : CommandElab := fun stx => - match stx with - | `(section $header:ident) => addScopes (isNewNamespace := false) header.getId - | `(section) => do let currNamespace ← getCurrNamespace; addScope (isNewNamespace := false) "" currNamespace - | _ => throwUnsupportedSyntax - def getScopes : CommandElabM (List Scope) := do pure (← get).scopes -private def checkAnonymousScope : List Scope → Bool - | { header := "", .. } :: _ => true - | _ => false - -private def checkEndHeader : Name → List Scope → Bool - | Name.anonymous, _ => true - | Name.str p s _, { header := h, .. } :: scopes => h == s && checkEndHeader p scopes - | _, _ => false - -private def popScopes (numScopes : Nat) : CommandElabM Unit := - for i in [0:numScopes] do - popScope - -@[builtinCommandElab «end»] def elabEnd : CommandElab := fun stx => do - let header? := (stx.getArg 1).getOptionalIdent?; - let endSize := match header? with - | none => 1 - | some n => n.getNumParts - let scopes ← getScopes - if endSize < scopes.length then - modify fun s => { s with scopes := s.scopes.drop endSize } - popScopes endSize - else -- we keep "root" scope - let n := (← get).scopes.length - 1 - modify fun s => { s with scopes := s.scopes.drop n } - popScopes n - throwError "invalid 'end', insufficient scopes" - match header? with - | none => - unless checkAnonymousScope scopes do - throwError "invalid 'end', name is missing" - | some header => - unless checkEndHeader header scopes do - addCompletionInfo <| CompletionInfo.endSection stx (scopes.map fun scope => scope.header) - throwError "invalid 'end', name mismatch" - -def withNamespace {α} (ns : Name) (elabFn : CommandElabM α) : CommandElabM α := do - addNamespace ns - let a ← elabFn - modify fun s => { s with scopes := s.scopes.drop ns.getNumParts } - pure a - def modifyScope (f : Scope → Scope) : CommandElabM Unit := modify fun s => { s with scopes := match s.scopes with @@ -490,186 +417,6 @@ def addUnivLevel (idStx : Syntax) : CommandElabM Unit := withRef idStx do else modifyScope fun scope => { scope with levelNames := id :: scope.levelNames } -partial def elabChoiceAux (cmds : Array Syntax) (i : Nat) : CommandElabM Unit := - if h : i < cmds.size then - let cmd := cmds.get ⟨i, h⟩; - catchInternalId unsupportedSyntaxExceptionId - (elabCommand cmd) - (fun ex => elabChoiceAux cmds (i+1)) - else - throwUnsupportedSyntax - -@[builtinCommandElab choice] def elbChoice : CommandElab := fun stx => - elabChoiceAux stx.getArgs 0 - -@[builtinCommandElab «universe»] def elabUniverse : CommandElab := fun n => do - addUnivLevel n[1] - -@[builtinCommandElab «universes»] def elabUniverses : CommandElab := fun n => do - n[1].forArgsM addUnivLevel - -@[builtinCommandElab «init_quot»] def elabInitQuot : CommandElab := fun stx => do - match (← getEnv).addDecl Declaration.quotDecl with - | Except.ok env => setEnv env - | Except.error ex => throwError (ex.toMessageData (← getOptions)) - -@[builtinCommandElab «export»] def elabExport : CommandElab := fun stx => do - -- `stx` is of the form (Command.export "export" "(" (null *) ")") - let id := stx[1].getId - let ns ← resolveNamespace id - let currNamespace ← getCurrNamespace - if ns == currNamespace then throwError "invalid 'export', self export" - let env ← getEnv - let ids := stx[3].getArgs - let aliases ← ids.foldlM (init := []) fun (aliases : List (Name × Name)) (idStx : Syntax) => do - let id := idStx.getId - let declName := ns ++ id - if env.contains declName then - pure <| (currNamespace ++ id, declName) :: aliases - else - withRef idStx <| logUnknownDecl declName - pure aliases - modify fun s => { s with env := aliases.foldl (init := s.env) fun env p => addAlias env p.1 p.2 } - -@[builtinCommandElab «open»] def elabOpen : CommandElab := fun n => do - let openDecls ← elabOpenDecl n[1] - modifyScope fun scope => { scope with openDecls := openDecls } - -@[builtinCommandElab «variable»] def elabVariable : CommandElab - | `(variable $binders*) => do - -- Try to elaborate `binders` for sanity checking - runTermElabM none fun _ => Term.withAutoBoundImplicit <| - Term.elabBinders binders fun _ => pure () - let varUIds ← binders.concatMap getBracketedBinderIds |>.mapM (withFreshMacroScope ∘ MonadQuotation.addMacroScope) - modifyScope fun scope => { scope with varDecls := scope.varDecls ++ binders, varUIds := scope.varUIds ++ varUIds } - | _ => throwUnsupportedSyntax - -open Meta - -@[builtinCommandElab Lean.Parser.Command.check] def elabCheck : CommandElab - | `(#check%$tk $term) => withoutModifyingEnv $ runTermElabM (some `_check) fun _ => do - let e ← Term.elabTerm term none - Term.synthesizeSyntheticMVarsNoPostponing - let (e, _) ← Term.levelMVarToParam (← instantiateMVars e) - let type ← inferType e - unless e.isSyntheticSorry do - logInfoAt tk m!"{e} : {type}" - | _ => throwUnsupportedSyntax - -@[builtinCommandElab Lean.Parser.Command.reduce] def elabReduce : CommandElab - | `(#reduce%$tk $term) => withoutModifyingEnv <| runTermElabM (some `_check) fun _ => do - let e ← Term.elabTerm term none - Term.synthesizeSyntheticMVarsNoPostponing - let (e, _) ← Term.levelMVarToParam (← instantiateMVars e) - -- TODO: add options or notation for setting the following parameters - withTheReader Core.Context (fun ctx => { ctx with options := ctx.options.setBool `smartUnfolding false }) do - let e ← withTransparency (mode := TransparencyMode.all) <| reduce e (skipProofs := false) (skipTypes := false) - logInfoAt tk e - | _ => throwUnsupportedSyntax - -def hasNoErrorMessages : CommandElabM Bool := do - return !(← get).messages.hasErrors - -def failIfSucceeds (x : CommandElabM Unit) : CommandElabM Unit := do - let resetMessages : CommandElabM MessageLog := do - let s ← get - let messages := s.messages; - modify fun s => { s with messages := {} }; - pure messages - let restoreMessages (prevMessages : MessageLog) : CommandElabM Unit := do - modify fun s => { s with messages := prevMessages ++ s.messages.errorsToWarnings } - let prevMessages ← resetMessages - let succeeded ← - try - x - hasNoErrorMessages - catch - | ex@(Exception.error _ _) => do logException ex; pure false - | Exception.internal id _ => do logError (← id.getName); pure false - finally - restoreMessages prevMessages - if succeeded then - throwError "unexpected success" - -@[builtinCommandElab «check_failure»] def elabCheckFailure : CommandElab - | `(#check_failure $term) => do - failIfSucceeds <| elabCheck (← `(#check $term)) - | _ => throwUnsupportedSyntax - -unsafe def elabEvalUnsafe : CommandElab - | `(#eval%$tk $term) => do - let n := `_eval - let ctx ← read - let addAndCompile (value : Expr) : TermElabM Unit := do - let type ← inferType value - let decl := Declaration.defnDecl { - name := n - levelParams := [] - type := type - value := value - hints := ReducibilityHints.opaque - safety := DefinitionSafety.unsafe - } - Term.ensureNoUnassignedMVars decl - addAndCompile decl - let elabMetaEval : CommandElabM Unit := runTermElabM (some n) fun _ => do - let e ← Term.elabTerm term none - Term.synthesizeSyntheticMVarsNoPostponing - let e ← withLocalDeclD `env (mkConst ``Lean.Environment) fun env => - withLocalDeclD `opts (mkConst ``Lean.Options) fun opts => do - let e ← mkAppM ``Lean.runMetaEval #[env, opts, e]; - mkLambdaFVars #[env, opts] e - let env ← getEnv - let opts ← getOptions - let act ← try addAndCompile e; evalConst (Environment → Options → IO (String × Except IO.Error Environment)) n finally setEnv env - let (out, res) ← act env opts -- we execute `act` using the environment - logInfoAt tk out - match res with - | Except.error e => throwError e.toString - | Except.ok env => do setEnv env; pure () - let elabEval : CommandElabM Unit := runTermElabM (some n) fun _ => do - -- fall back to non-meta eval if MetaEval hasn't been defined yet - -- modify e to `runEval e` - let e ← Term.elabTerm term none - let e := mkSimpleThunk e - Term.synthesizeSyntheticMVarsNoPostponing - let e ← mkAppM ``Lean.runEval #[e] - let env ← getEnv - let act ← try addAndCompile e; evalConst (IO (String × Except IO.Error Unit)) n finally setEnv env - let (out, res) ← liftM (m := IO) act - logInfoAt tk out - match res with - | Except.error e => throwError e.toString - | Except.ok _ => pure () - if (← getEnv).contains ``Lean.MetaEval then do - elabMetaEval - else - elabEval - | _ => throwUnsupportedSyntax - -@[builtinCommandElab «eval», implementedBy elabEvalUnsafe] -constant elabEval : CommandElab - -@[builtinCommandElab «synth»] def elabSynth : CommandElab := fun stx => do - let term := stx[1] - withoutModifyingEnv <| runTermElabM `_synth_cmd fun _ => do - let inst ← Term.elabTerm term none - Term.synthesizeSyntheticMVarsNoPostponing - let inst ← instantiateMVars inst - let val ← synthInstance inst - logInfo val - pure () - -@[builtinCommandElab «set_option»] def elabSetOption : CommandElab := fun stx => do - let options ← Elab.elabSetOption stx[1] stx[2] - modify fun s => { s with maxRecDepth := maxRecDepth.get options } - modifyScope fun scope => { scope with opts := options } - -@[builtinMacro Lean.Parser.Command.«in»] def expandInCmd : Macro := fun stx => do - let cmd₁ := stx[0] - let cmd₂ := stx[2] - `(section $cmd₁:command $cmd₂:command end) - def expandDeclId (declId : Syntax) (modifiers : Modifiers) : CommandElabM ExpandDeclIdResult := do let currNamespace ← getCurrNamespace let currLevelNames ← getLevelNames diff --git a/stage0/src/Lean/Parser/Command.lean b/stage0/src/Lean/Parser/Command.lean index 90bee9c1d6..8284902f6e 100644 --- a/stage0/src/Lean/Parser/Command.lean +++ b/stage0/src/Lean/Parser/Command.lean @@ -68,8 +68,7 @@ declModifiers false >> («abbrev» <|> «def» <|> «theorem» <|> «constant» @[builtinCommandParser] def «namespace» := leading_parser "namespace " >> ident @[builtinCommandParser] def «end» := leading_parser "end " >> optional ident @[builtinCommandParser] def «variable» := leading_parser "variable" >> many1 Term.bracketedBinder -@[builtinCommandParser] def «universe» := leading_parser "universe " >> ident -@[builtinCommandParser] def «universes» := leading_parser "universes " >> many1 ident +@[builtinCommandParser] def «universe» := leading_parser "universe " >> many1 ident @[builtinCommandParser] def check := leading_parser "#check " >> termParser @[builtinCommandParser] def check_failure := leading_parser "#check_failure " >> termParser -- Like `#check`, but succeeds only if term does not type check @[builtinCommandParser] def reduce := leading_parser "#reduce " >> termParser diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 8f5a58894c..a449f7f449 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -4,5 +4,5 @@ add_library (Init STATIC Init.c Init/Classical.c Init/Coe.c Init/Control.c Init/ set_target_properties(Init PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/lean") add_library (Std STATIC Std.c Std/Control.c Std/Control/Nondet.c Std/Data.c Std/Data/AssocList.c Std/Data/BinomialHeap.c Std/Data/DList.c Std/Data/HashMap.c Std/Data/HashSet.c Std/Data/PersistentArray.c Std/Data/PersistentHashMap.c Std/Data/PersistentHashSet.c Std/Data/Queue.c Std/Data/RBMap.c Std/Data/RBTree.c Std/Data/Stack.c Std/ShareCommon.c ) set_target_properties(Std PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/lean") -add_library (Lean STATIC Lean.c Lean/Attributes.c Lean/AuxRecursor.c Lean/Class.c Lean/Compiler.c Lean/Compiler/BorrowedAnnotation.c Lean/Compiler/ClosedTermCache.c Lean/Compiler/ConstFolding.c Lean/Compiler/ExportAttr.c Lean/Compiler/ExternAttr.c Lean/Compiler/IR.c Lean/Compiler/IR/Basic.c Lean/Compiler/IR/Borrow.c Lean/Compiler/IR/Boxing.c Lean/Compiler/IR/Checker.c Lean/Compiler/IR/CompilerM.c Lean/Compiler/IR/CtorLayout.c Lean/Compiler/IR/ElimDeadBranches.c Lean/Compiler/IR/ElimDeadVars.c Lean/Compiler/IR/EmitC.c Lean/Compiler/IR/EmitUtil.c Lean/Compiler/IR/ExpandResetReuse.c Lean/Compiler/IR/Format.c Lean/Compiler/IR/FreeVars.c Lean/Compiler/IR/LiveVars.c Lean/Compiler/IR/NormIds.c Lean/Compiler/IR/PushProj.c Lean/Compiler/IR/RC.c Lean/Compiler/IR/ResetReuse.c Lean/Compiler/IR/SimpCase.c Lean/Compiler/IR/Sorry.c Lean/Compiler/IR/UnboxResult.c Lean/Compiler/ImplementedByAttr.c Lean/Compiler/InitAttr.c Lean/Compiler/InlineAttrs.c Lean/Compiler/NameMangling.c Lean/Compiler/NeverExtractAttr.c Lean/Compiler/Specialize.c Lean/Compiler/Util.c Lean/CoreM.c Lean/Data.c Lean/Data/Format.c Lean/Data/Json.c Lean/Data/Json/Basic.c Lean/Data/Json/FromToJson.c Lean/Data/Json/Parser.c Lean/Data/Json/Printer.c Lean/Data/Json/Stream.c Lean/Data/JsonRpc.c Lean/Data/KVMap.c Lean/Data/LBool.c Lean/Data/LOption.c Lean/Data/Lsp.c Lean/Data/Lsp/Basic.c Lean/Data/Lsp/Capabilities.c Lean/Data/Lsp/Communication.c Lean/Data/Lsp/Diagnostics.c Lean/Data/Lsp/Extra.c Lean/Data/Lsp/InitShutdown.c Lean/Data/Lsp/Ipc.c Lean/Data/Lsp/LanguageFeatures.c Lean/Data/Lsp/TextSync.c Lean/Data/Lsp/Utf16.c Lean/Data/Lsp/Workspace.c Lean/Data/Name.c Lean/Data/NameTrie.c Lean/Data/Occurrences.c Lean/Data/OpenDecl.c Lean/Data/Options.c Lean/Data/Position.c Lean/Data/PrefixTree.c Lean/Data/SMap.c Lean/Data/Trie.c Lean/Declaration.c Lean/DeclarationRange.c Lean/DocString.c Lean/Elab.c Lean/Elab/App.c Lean/Elab/Arg.c Lean/Elab/Attributes.c Lean/Elab/AutoBound.c Lean/Elab/Binders.c Lean/Elab/BindersUtil.c Lean/Elab/BuiltinNotation.c Lean/Elab/BuiltinTerm.c Lean/Elab/Command.c Lean/Elab/DeclModifiers.c Lean/Elab/DeclUtil.c Lean/Elab/Declaration.c Lean/Elab/DeclarationRange.c Lean/Elab/DefView.c Lean/Elab/Deriving.c Lean/Elab/Deriving/BEq.c Lean/Elab/Deriving/Basic.c Lean/Elab/Deriving/DecEq.c Lean/Elab/Deriving/FromToJson.c Lean/Elab/Deriving/Hashable.c Lean/Elab/Deriving/Inhabited.c Lean/Elab/Deriving/Ord.c Lean/Elab/Deriving/Repr.c Lean/Elab/Deriving/SizeOf.c Lean/Elab/Deriving/Util.c Lean/Elab/Do.c Lean/Elab/ElabRules.c Lean/Elab/Exception.c Lean/Elab/Extra.c Lean/Elab/Frontend.c Lean/Elab/GenInjective.c Lean/Elab/Import.c Lean/Elab/Inductive.c Lean/Elab/InfoTree.c Lean/Elab/LetRec.c Lean/Elab/Level.c Lean/Elab/Log.c Lean/Elab/Macro.c Lean/Elab/MacroArgUtil.c Lean/Elab/MacroRules.c Lean/Elab/Match.c Lean/Elab/MatchAltView.c Lean/Elab/Mixfix.c Lean/Elab/MutualDef.c Lean/Elab/Notation.c Lean/Elab/Open.c Lean/Elab/PatternVar.c Lean/Elab/PreDefinition.c Lean/Elab/PreDefinition/Basic.c Lean/Elab/PreDefinition/Main.c Lean/Elab/PreDefinition/MkInhabitant.c Lean/Elab/PreDefinition/Structural.c Lean/Elab/PreDefinition/WF.c Lean/Elab/Print.c Lean/Elab/Quotation.c Lean/Elab/Quotation/Precheck.c Lean/Elab/Quotation/Util.c Lean/Elab/SetOption.c Lean/Elab/StructInst.c Lean/Elab/Structure.c Lean/Elab/Syntax.c Lean/Elab/SyntheticMVars.c Lean/Elab/Tactic.c Lean/Elab/Tactic/Basic.c Lean/Elab/Tactic/BuiltinTactic.c Lean/Elab/Tactic/ElabTerm.c Lean/Elab/Tactic/Generalize.c Lean/Elab/Tactic/Induction.c Lean/Elab/Tactic/Injection.c Lean/Elab/Tactic/Location.c Lean/Elab/Tactic/Match.c Lean/Elab/Tactic/Rewrite.c Lean/Elab/Tactic/Simp.c Lean/Elab/Term.c Lean/Elab/Util.c Lean/Environment.c Lean/Eval.c Lean/Exception.c Lean/Expr.c Lean/HeadIndex.c Lean/Hygiene.c Lean/InternalExceptionId.c Lean/KeyedDeclsAttribute.c Lean/Level.c Lean/LocalContext.c Lean/Message.c Lean/Meta.c Lean/Meta/AbstractMVars.c Lean/Meta/AbstractNestedProofs.c Lean/Meta/AppBuilder.c Lean/Meta/Basic.c Lean/Meta/Check.c Lean/Meta/Closure.c Lean/Meta/Coe.c Lean/Meta/CollectFVars.c Lean/Meta/CollectMVars.c Lean/Meta/DiscrTree.c Lean/Meta/DiscrTreeTypes.c Lean/Meta/ExprDefEq.c Lean/Meta/ForEachExpr.c Lean/Meta/FunInfo.c Lean/Meta/GeneralizeTelescope.c Lean/Meta/GeneralizeVars.c Lean/Meta/GetConst.c Lean/Meta/IndPredBelow.c Lean/Meta/Inductive.c Lean/Meta/InferType.c Lean/Meta/Injective.c Lean/Meta/Instances.c Lean/Meta/KAbstract.c Lean/Meta/LevelDefEq.c Lean/Meta/Match.c Lean/Meta/Match/Basic.c Lean/Meta/Match/CaseArraySizes.c Lean/Meta/Match/CaseValues.c Lean/Meta/Match/MVarRenaming.c Lean/Meta/Match/Match.c Lean/Meta/Match/MatchPatternAttr.c Lean/Meta/Match/MatcherInfo.c Lean/Meta/MatchUtil.c Lean/Meta/Offset.c Lean/Meta/PPGoal.c Lean/Meta/RecursorInfo.c Lean/Meta/Reduce.c Lean/Meta/ReduceEval.c Lean/Meta/SizeOf.c Lean/Meta/SortLocalDecls.c Lean/Meta/SynthInstance.c Lean/Meta/Tactic.c Lean/Meta/Tactic/Apply.c Lean/Meta/Tactic/Assert.c Lean/Meta/Tactic/Assumption.c Lean/Meta/Tactic/AuxLemma.c Lean/Meta/Tactic/Cases.c Lean/Meta/Tactic/Clear.c Lean/Meta/Tactic/Constructor.c Lean/Meta/Tactic/Contradiction.c Lean/Meta/Tactic/Delta.c Lean/Meta/Tactic/ElimInfo.c Lean/Meta/Tactic/FVarSubst.c Lean/Meta/Tactic/Generalize.c Lean/Meta/Tactic/Induction.c Lean/Meta/Tactic/Injection.c Lean/Meta/Tactic/Intro.c Lean/Meta/Tactic/Replace.c Lean/Meta/Tactic/Revert.c Lean/Meta/Tactic/Rewrite.c Lean/Meta/Tactic/Simp.c Lean/Meta/Tactic/Simp/CongrLemmas.c Lean/Meta/Tactic/Simp/Main.c Lean/Meta/Tactic/Simp/Rewrite.c Lean/Meta/Tactic/Simp/SimpAll.c Lean/Meta/Tactic/Simp/SimpLemmas.c Lean/Meta/Tactic/Simp/Types.c Lean/Meta/Tactic/Subst.c Lean/Meta/Tactic/Util.c Lean/Meta/Transform.c Lean/Meta/TransparencyMode.c Lean/Meta/UnificationHint.c Lean/Meta/WHNF.c Lean/MetavarContext.c Lean/Modifiers.c Lean/MonadEnv.c Lean/Parser.c Lean/Parser/Attr.c Lean/Parser/Basic.c Lean/Parser/Command.c Lean/Parser/Do.c Lean/Parser/Extension.c Lean/Parser/Extra.c Lean/Parser/Level.c Lean/Parser/Module.c Lean/Parser/StrInterpolation.c Lean/Parser/Syntax.c Lean/Parser/Tactic.c Lean/Parser/Term.c Lean/ParserCompiler.c Lean/ParserCompiler/Attribute.c Lean/PrettyPrinter.c Lean/PrettyPrinter/Basic.c Lean/PrettyPrinter/Delaborator.c Lean/PrettyPrinter/Delaborator/Basic.c Lean/PrettyPrinter/Delaborator/Builtins.c Lean/PrettyPrinter/Formatter.c Lean/PrettyPrinter/Parenthesizer.c Lean/ProjFns.c Lean/ReducibilityAttrs.c Lean/ResolveName.c Lean/Runtime.c Lean/ScopedEnvExtension.c Lean/Server.c Lean/Server/AsyncList.c Lean/Server/Completion.c Lean/Server/FileSource.c Lean/Server/FileWorker.c Lean/Server/FileWorker/RequestHandling.c Lean/Server/FileWorker/Utils.c Lean/Server/InfoUtils.c Lean/Server/Requests.c Lean/Server/Snapshots.c Lean/Server/Utils.c Lean/Server/Watchdog.c Lean/Structure.c Lean/Syntax.c Lean/ToExpr.c Lean/Util.c Lean/Util/CollectFVars.c Lean/Util/CollectLevelParams.c Lean/Util/CollectMVars.c Lean/Util/Constructions.c Lean/Util/FindExpr.c Lean/Util/FindMVar.c Lean/Util/FoldConsts.c Lean/Util/ForEachExpr.c Lean/Util/MonadBacktrack.c Lean/Util/MonadCache.c Lean/Util/OccursCheck.c Lean/Util/PPExt.c Lean/Util/Path.c Lean/Util/Profile.c Lean/Util/RecDepth.c Lean/Util/Recognizers.c Lean/Util/ReplaceExpr.c Lean/Util/ReplaceLevel.c Lean/Util/SCC.c Lean/Util/Sorry.c Lean/Util/Trace.c ) +add_library (Lean STATIC Lean.c Lean/Attributes.c Lean/AuxRecursor.c Lean/Class.c Lean/Compiler.c Lean/Compiler/BorrowedAnnotation.c Lean/Compiler/ClosedTermCache.c Lean/Compiler/ConstFolding.c Lean/Compiler/ExportAttr.c Lean/Compiler/ExternAttr.c Lean/Compiler/IR.c Lean/Compiler/IR/Basic.c Lean/Compiler/IR/Borrow.c Lean/Compiler/IR/Boxing.c Lean/Compiler/IR/Checker.c Lean/Compiler/IR/CompilerM.c Lean/Compiler/IR/CtorLayout.c Lean/Compiler/IR/ElimDeadBranches.c Lean/Compiler/IR/ElimDeadVars.c Lean/Compiler/IR/EmitC.c Lean/Compiler/IR/EmitUtil.c Lean/Compiler/IR/ExpandResetReuse.c Lean/Compiler/IR/Format.c Lean/Compiler/IR/FreeVars.c Lean/Compiler/IR/LiveVars.c Lean/Compiler/IR/NormIds.c Lean/Compiler/IR/PushProj.c Lean/Compiler/IR/RC.c Lean/Compiler/IR/ResetReuse.c Lean/Compiler/IR/SimpCase.c Lean/Compiler/IR/Sorry.c Lean/Compiler/IR/UnboxResult.c Lean/Compiler/ImplementedByAttr.c Lean/Compiler/InitAttr.c Lean/Compiler/InlineAttrs.c Lean/Compiler/NameMangling.c Lean/Compiler/NeverExtractAttr.c Lean/Compiler/Specialize.c Lean/Compiler/Util.c Lean/CoreM.c Lean/Data.c Lean/Data/Format.c Lean/Data/Json.c Lean/Data/Json/Basic.c Lean/Data/Json/FromToJson.c Lean/Data/Json/Parser.c Lean/Data/Json/Printer.c Lean/Data/Json/Stream.c Lean/Data/JsonRpc.c Lean/Data/KVMap.c Lean/Data/LBool.c Lean/Data/LOption.c Lean/Data/Lsp.c Lean/Data/Lsp/Basic.c Lean/Data/Lsp/Capabilities.c Lean/Data/Lsp/Communication.c Lean/Data/Lsp/Diagnostics.c Lean/Data/Lsp/Extra.c Lean/Data/Lsp/InitShutdown.c Lean/Data/Lsp/Ipc.c Lean/Data/Lsp/LanguageFeatures.c Lean/Data/Lsp/TextSync.c Lean/Data/Lsp/Utf16.c Lean/Data/Lsp/Workspace.c Lean/Data/Name.c Lean/Data/NameTrie.c Lean/Data/Occurrences.c Lean/Data/OpenDecl.c Lean/Data/Options.c Lean/Data/Position.c Lean/Data/PrefixTree.c Lean/Data/SMap.c Lean/Data/Trie.c Lean/Declaration.c Lean/DeclarationRange.c Lean/DocString.c Lean/Elab.c Lean/Elab/App.c Lean/Elab/Arg.c Lean/Elab/Attributes.c Lean/Elab/AutoBound.c Lean/Elab/Binders.c Lean/Elab/BindersUtil.c Lean/Elab/BuiltinCommand.c Lean/Elab/BuiltinNotation.c Lean/Elab/BuiltinTerm.c Lean/Elab/Command.c Lean/Elab/DeclModifiers.c Lean/Elab/DeclUtil.c Lean/Elab/Declaration.c Lean/Elab/DeclarationRange.c Lean/Elab/DefView.c Lean/Elab/Deriving.c Lean/Elab/Deriving/BEq.c Lean/Elab/Deriving/Basic.c Lean/Elab/Deriving/DecEq.c Lean/Elab/Deriving/FromToJson.c Lean/Elab/Deriving/Hashable.c Lean/Elab/Deriving/Inhabited.c Lean/Elab/Deriving/Ord.c Lean/Elab/Deriving/Repr.c Lean/Elab/Deriving/SizeOf.c Lean/Elab/Deriving/Util.c Lean/Elab/Do.c Lean/Elab/ElabRules.c Lean/Elab/Exception.c Lean/Elab/Extra.c Lean/Elab/Frontend.c Lean/Elab/GenInjective.c Lean/Elab/Import.c Lean/Elab/Inductive.c Lean/Elab/InfoTree.c Lean/Elab/LetRec.c Lean/Elab/Level.c Lean/Elab/Log.c Lean/Elab/Macro.c Lean/Elab/MacroArgUtil.c Lean/Elab/MacroRules.c Lean/Elab/Match.c Lean/Elab/MatchAltView.c Lean/Elab/Mixfix.c Lean/Elab/MutualDef.c Lean/Elab/Notation.c Lean/Elab/Open.c Lean/Elab/PatternVar.c Lean/Elab/PreDefinition.c Lean/Elab/PreDefinition/Basic.c Lean/Elab/PreDefinition/Main.c Lean/Elab/PreDefinition/MkInhabitant.c Lean/Elab/PreDefinition/Structural.c Lean/Elab/PreDefinition/WF.c Lean/Elab/Print.c Lean/Elab/Quotation.c Lean/Elab/Quotation/Precheck.c Lean/Elab/Quotation/Util.c Lean/Elab/SetOption.c Lean/Elab/StructInst.c Lean/Elab/Structure.c Lean/Elab/Syntax.c Lean/Elab/SyntheticMVars.c Lean/Elab/Tactic.c Lean/Elab/Tactic/Basic.c Lean/Elab/Tactic/BuiltinTactic.c Lean/Elab/Tactic/ElabTerm.c Lean/Elab/Tactic/Generalize.c Lean/Elab/Tactic/Induction.c Lean/Elab/Tactic/Injection.c Lean/Elab/Tactic/Location.c Lean/Elab/Tactic/Match.c Lean/Elab/Tactic/Rewrite.c Lean/Elab/Tactic/Simp.c Lean/Elab/Term.c Lean/Elab/Util.c Lean/Environment.c Lean/Eval.c Lean/Exception.c Lean/Expr.c Lean/HeadIndex.c Lean/Hygiene.c Lean/InternalExceptionId.c Lean/KeyedDeclsAttribute.c Lean/Level.c Lean/LocalContext.c Lean/Message.c Lean/Meta.c Lean/Meta/AbstractMVars.c Lean/Meta/AbstractNestedProofs.c Lean/Meta/AppBuilder.c Lean/Meta/Basic.c Lean/Meta/Check.c Lean/Meta/Closure.c Lean/Meta/Coe.c Lean/Meta/CollectFVars.c Lean/Meta/CollectMVars.c Lean/Meta/DiscrTree.c Lean/Meta/DiscrTreeTypes.c Lean/Meta/ExprDefEq.c Lean/Meta/ForEachExpr.c Lean/Meta/FunInfo.c Lean/Meta/GeneralizeTelescope.c Lean/Meta/GeneralizeVars.c Lean/Meta/GetConst.c Lean/Meta/IndPredBelow.c Lean/Meta/Inductive.c Lean/Meta/InferType.c Lean/Meta/Injective.c Lean/Meta/Instances.c Lean/Meta/KAbstract.c Lean/Meta/LevelDefEq.c Lean/Meta/Match.c Lean/Meta/Match/Basic.c Lean/Meta/Match/CaseArraySizes.c Lean/Meta/Match/CaseValues.c Lean/Meta/Match/MVarRenaming.c Lean/Meta/Match/Match.c Lean/Meta/Match/MatchPatternAttr.c Lean/Meta/Match/MatcherInfo.c Lean/Meta/MatchUtil.c Lean/Meta/Offset.c Lean/Meta/PPGoal.c Lean/Meta/RecursorInfo.c Lean/Meta/Reduce.c Lean/Meta/ReduceEval.c Lean/Meta/SizeOf.c Lean/Meta/SortLocalDecls.c Lean/Meta/SynthInstance.c Lean/Meta/Tactic.c Lean/Meta/Tactic/Apply.c Lean/Meta/Tactic/Assert.c Lean/Meta/Tactic/Assumption.c Lean/Meta/Tactic/AuxLemma.c Lean/Meta/Tactic/Cases.c Lean/Meta/Tactic/Clear.c Lean/Meta/Tactic/Constructor.c Lean/Meta/Tactic/Contradiction.c Lean/Meta/Tactic/Delta.c Lean/Meta/Tactic/ElimInfo.c Lean/Meta/Tactic/FVarSubst.c Lean/Meta/Tactic/Generalize.c Lean/Meta/Tactic/Induction.c Lean/Meta/Tactic/Injection.c Lean/Meta/Tactic/Intro.c Lean/Meta/Tactic/Replace.c Lean/Meta/Tactic/Revert.c Lean/Meta/Tactic/Rewrite.c Lean/Meta/Tactic/Simp.c Lean/Meta/Tactic/Simp/CongrLemmas.c Lean/Meta/Tactic/Simp/Main.c Lean/Meta/Tactic/Simp/Rewrite.c Lean/Meta/Tactic/Simp/SimpAll.c Lean/Meta/Tactic/Simp/SimpLemmas.c Lean/Meta/Tactic/Simp/Types.c Lean/Meta/Tactic/Subst.c Lean/Meta/Tactic/Util.c Lean/Meta/Transform.c Lean/Meta/TransparencyMode.c Lean/Meta/UnificationHint.c Lean/Meta/WHNF.c Lean/MetavarContext.c Lean/Modifiers.c Lean/MonadEnv.c Lean/Parser.c Lean/Parser/Attr.c Lean/Parser/Basic.c Lean/Parser/Command.c Lean/Parser/Do.c Lean/Parser/Extension.c Lean/Parser/Extra.c Lean/Parser/Level.c Lean/Parser/Module.c Lean/Parser/StrInterpolation.c Lean/Parser/Syntax.c Lean/Parser/Tactic.c Lean/Parser/Term.c Lean/ParserCompiler.c Lean/ParserCompiler/Attribute.c Lean/PrettyPrinter.c Lean/PrettyPrinter/Basic.c Lean/PrettyPrinter/Delaborator.c Lean/PrettyPrinter/Delaborator/Basic.c Lean/PrettyPrinter/Delaborator/Builtins.c Lean/PrettyPrinter/Formatter.c Lean/PrettyPrinter/Parenthesizer.c Lean/ProjFns.c Lean/ReducibilityAttrs.c Lean/ResolveName.c Lean/Runtime.c Lean/ScopedEnvExtension.c Lean/Server.c Lean/Server/AsyncList.c Lean/Server/Completion.c Lean/Server/FileSource.c Lean/Server/FileWorker.c Lean/Server/FileWorker/RequestHandling.c Lean/Server/FileWorker/Utils.c Lean/Server/InfoUtils.c Lean/Server/Requests.c Lean/Server/Snapshots.c Lean/Server/Utils.c Lean/Server/Watchdog.c Lean/Structure.c Lean/Syntax.c Lean/ToExpr.c Lean/Util.c Lean/Util/CollectFVars.c Lean/Util/CollectLevelParams.c Lean/Util/CollectMVars.c Lean/Util/Constructions.c Lean/Util/FindExpr.c Lean/Util/FindMVar.c Lean/Util/FoldConsts.c Lean/Util/ForEachExpr.c Lean/Util/MonadBacktrack.c Lean/Util/MonadCache.c Lean/Util/OccursCheck.c Lean/Util/PPExt.c Lean/Util/Path.c Lean/Util/Profile.c Lean/Util/RecDepth.c Lean/Util/Recognizers.c Lean/Util/ReplaceExpr.c Lean/Util/ReplaceLevel.c Lean/Util/SCC.c Lean/Util/Sorry.c Lean/Util/Trace.c ) set_target_properties(Lean PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/lean") diff --git a/stage0/stdlib/Lean/Elab.c b/stage0/stdlib/Lean/Elab.c index 3e9b933e2c..7e36b9ae57 100644 --- a/stage0/stdlib/Lean/Elab.c +++ b/stage0/stdlib/Lean/Elab.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab -// Imports: Init Lean.Elab.Import Lean.Elab.Exception Lean.Elab.Command Lean.Elab.Term Lean.Elab.App Lean.Elab.Binders Lean.Elab.LetRec Lean.Elab.Frontend Lean.Elab.BuiltinNotation Lean.Elab.Declaration Lean.Elab.Tactic Lean.Elab.Match Lean.Elab.Quotation Lean.Elab.Syntax Lean.Elab.Do Lean.Elab.StructInst Lean.Elab.Inductive Lean.Elab.Structure Lean.Elab.Print Lean.Elab.MutualDef Lean.Elab.PreDefinition Lean.Elab.Deriving Lean.Elab.DeclarationRange Lean.Elab.Extra Lean.Elab.GenInjective Lean.Elab.BuiltinTerm Lean.Elab.Arg Lean.Elab.PatternVar Lean.Elab.ElabRules Lean.Elab.Macro Lean.Elab.Notation Lean.Elab.Mixfix Lean.Elab.MacroRules +// Imports: Init Lean.Elab.Import Lean.Elab.Exception Lean.Elab.Command Lean.Elab.Term Lean.Elab.App Lean.Elab.Binders Lean.Elab.LetRec Lean.Elab.Frontend Lean.Elab.BuiltinNotation Lean.Elab.Declaration Lean.Elab.Tactic Lean.Elab.Match Lean.Elab.Quotation Lean.Elab.Syntax Lean.Elab.Do Lean.Elab.StructInst Lean.Elab.Inductive Lean.Elab.Structure Lean.Elab.Print Lean.Elab.MutualDef Lean.Elab.PreDefinition Lean.Elab.Deriving Lean.Elab.DeclarationRange Lean.Elab.Extra Lean.Elab.GenInjective Lean.Elab.BuiltinTerm Lean.Elab.Arg Lean.Elab.PatternVar Lean.Elab.ElabRules Lean.Elab.Macro Lean.Elab.Notation Lean.Elab.Mixfix Lean.Elab.MacroRules Lean.Elab.BuiltinCommand #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -47,6 +47,7 @@ lean_object* initialize_Lean_Elab_Macro(lean_object*); lean_object* initialize_Lean_Elab_Notation(lean_object*); lean_object* initialize_Lean_Elab_Mixfix(lean_object*); lean_object* initialize_Lean_Elab_MacroRules(lean_object*); +lean_object* initialize_Lean_Elab_BuiltinCommand(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab(lean_object* w) { lean_object * res; @@ -154,6 +155,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_MacroRules(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_BuiltinCommand(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)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/BuiltinCommand.c b/stage0/stdlib/Lean/Elab/BuiltinCommand.c new file mode 100644 index 0000000000..b4ce5247cf --- /dev/null +++ b/stage0/stdlib/Lean/Elab/BuiltinCommand.c @@ -0,0 +1,15035 @@ +// Lean compiler output +// Module: Lean.Elab.BuiltinCommand +// Imports: Init Lean.Elab.Command +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabVariable(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEnd_match__1(lean_object*); +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_72____spec__1(lean_object*, lean_object*); +lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Elab_Command_elabSection(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabInitQuot_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabSection___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__3; +static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__2; +size_t l_USize_add(size_t, size_t); +static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__4; +lean_object* lean_erase_macro_scopes(lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13___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_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_nullKind; +lean_object* l_Lean_Elab_Command_withNamespace(lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2; +lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__2; +lean_object* l_Lean_Elab_Command_elabReduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +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); +static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_io_error_to_string(lean_object*); +static lean_object* l_Lean_Elab_Command_elabSection___closed__2; +uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); +static lean_object* l_Lean_Elab_Command_elabReduce___closed__1; +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1; +lean_object* l_Array_append___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCheck___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1; +lean_object* l_Lean_Elab_Command_elabEval___rarg(lean_object*); +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__4; +lean_object* l_Lean_SourceInfo_fromRef(lean_object*); +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Command_commandElabAttribute; +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_Elab_Command_elabUniverse(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; +lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2(lean_object*); +lean_object* l_Lean_Elab_Command_elabCheck_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabExport___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__4; +lean_object* l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(lean_object*); +static lean_object* l_Lean_Elab_Command_elabSection___closed__1; +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__7; +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__7; +lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabOpen___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; +lean_object* l_Lean_Elab_Command_elabVariable___lambda__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5; +lean_object* lean_st_ref_get(lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope(lean_object*); +static lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1; +lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3; +lean_object* l_Lean_Elab_Command_elabInitQuot___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable(lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabSection(lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_reduce(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabReduce___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_Elab_Command_elabReduce___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_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; +lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__1; +lean_object* l_Lean_Elab_Command_elabCheck(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; +lean_object* l_Lean_Elab_Command_elabUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabSynth___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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___regBuiltin_Lean_Elab_Command_expandInCmd(lean_object*); +lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_failIfSucceeds(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5; +static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope___boxed(lean_object*); +uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(uint8_t, uint8_t); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__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_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2; +uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Lean_Elab_Command_elabOpen(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3; +static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEval___rarg___closed__1; +static lean_object* l_Lean_Elab_Command_elabSynth___closed__2; +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__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_Command_elabEvalUnsafe___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabReduce___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCheckFailure(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheck___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; +lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(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_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_maxRecDepth; +static lean_object* l_Lean_Elab_Command_elabEval___rarg___closed__2; +static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3; +lean_object* l_Lean_ScopedEnvExtension_popScope___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabSynth(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__1; +lean_object* l_Lean_Elab_Command_elabOpen___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ResolveName_resolveNamespace_x3f(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*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2; +lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4; +lean_object* lean_array_fget(lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheck___closed__1; +lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCheck___boxed(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*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_Command_elabEvalUnsafe_match__4___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheck___closed__5; +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); +extern lean_object* l_Lean_numLitKind; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2; +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__6; +lean_object* l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_225____spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheck___closed__2; +lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1; +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; +lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__4; +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2(lean_object*, size_t, size_t, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2; +static lean_object* l_Lean_Elab_Command_elabVariable___closed__3; +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*); +static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; +lean_object* l_Lean_Elab_Command_elabSection___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEnd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_toString(lean_object*, uint8_t); +static lean_object* l_Lean_Elab_Command_elabSection___closed__4; +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*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5; +lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3; +lean_object* l_Lean_Elab_Command_elabEval___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2; +lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5; +lean_object* l_Lean_Elab_Command_elabSynth___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_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4; +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; +lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2; +lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; +lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabReduce___closed__2; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1; +lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1; +lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice(lean_object*); +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabExport(lean_object*); +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elbChoice(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabExport(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabSynth___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCheck___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_Name_getNumParts(lean_object*); +lean_object* l_Lean_Elab_Command_hasNoErrorMessages(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__1; +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader_match__1(lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__2; +lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +lean_object* l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1; +static lean_object* l_Lean_Elab_Command_elabSynth___closed__1; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +lean_object* l_Lean_Elab_Command_elabSetOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__3; +static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1; +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__4; +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEnd___closed__2; +uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); +lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__1; +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2; +lean_object* l_Lean_Elab_Command_elabCheck___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_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1; +static lean_object* l_Lean_Elab_Command_elabVariable___closed__1; +static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1; +lean_object* l_Lean_Elab_Command_elabEnd(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1(lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; +size_t lean_usize_of_nat(lean_object*); +lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4; +lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1; +lean_object* l_Lean_Elab_Command_elabInitQuot___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabReduce___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_hasNoErrorMessages___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; +lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd(lean_object*); +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__1; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3(lean_object*); +lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4; +lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5; +lean_object* l_Lean_Elab_Command_elabEnd_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11___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_addUnivLevel(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); +lean_object* l_List_drop___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__1; +lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); +static lean_object* l_Lean_Elab_Command_elabCheck___closed__4; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4(lean_object*); +lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__5; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__2; +static lean_object* l_Lean_Elab_Command_elabExport___closed__2; +lean_object* l_Lean_Syntax_getSepArgs(lean_object*); +static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_macroAttribute; +lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabExport___closed__1; +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4; +lean_object* l_Lean_Elab_Command_elabExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3; +static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2; +lean_object* l_Lean_Elab_Command_expandInCmd(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabReduce(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_modifyScope(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4; +lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck(lean_object*); +lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* l_Lean_Name_append(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEval(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getKind(lean_object*); +static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6; +static lean_object* l_Lean_Elab_Command_elabEnd___closed__1; +lean_object* l_Lean_Environment_registerNamespace(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEnd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabVariable___closed__2; +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4; +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__4; +lean_object* l_Lean_Syntax_getOptionalIdent_x3f(lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elbChoice___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabNamespace(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen(lean_object*); +lean_object* l_Lean_Elab_Command_withNamespace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3; +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3; +lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_expandInCmd___closed__3; +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__2; +lean_object* l_Lean_Elab_Command_elabVariable___boxed__const__1; +lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandInCmd___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__8; +static lean_object* l_Lean_Elab_Command_expandInCmd___closed__1; +static lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; +lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1; +static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__3; +lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth(lean_object*); +lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); +lean_object* l_Lean_Elab_Command_elabVariable___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_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_DataValue_sameCtor(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_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_getScopes___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Command_elabEval(lean_object*); +lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5; +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabSynth___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__5; +static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5; +lean_object* l_Lean_Elab_Command_elabVariable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__3; +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__6; +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__6; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3; +uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); +static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__2; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_scopedEnvExtensionsRef; +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCheck_match__1(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; +static lean_object* l_Lean_Elab_Command_expandInCmd___closed__4; +lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__1; +lean_object* l_Lean_Elab_Command_elabVariable___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___regBuiltin_Lean_Elab_Command_elabUniverse(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3; +lean_object* l_Lean_Elab_Command_hasNoErrorMessages___boxed(lean_object*); +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__5; +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabInitQuot_match__1(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*); +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__3; +static lean_object* l_Lean_Elab_Command_elabSynth___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__5; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Lean_mkSimpleThunk(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5; +lean_object* l_Lean_Elab_Command_elabNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_expandInCmd___closed__2; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__3; +static lean_object* l_Lean_Elab_Command_elabNamespace___closed__1; +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes_match__1(lean_object*); +lean_object* l_Lean_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabVariable___lambda__3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2; +lean_object* l_Lean_Elab_Command_elabInitQuot___boxed(lean_object*); +lean_object* l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(lean_object*); +static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7; +lean_object* l_Lean_Elab_Command_elabSetOption___lambda__1(lean_object*, lean_object*); +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addNamespace(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3; +static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; +lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* lean_add_decl(lean_object*, lean_object*); +lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__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) { +_start: +{ +uint8_t x_8; +x_8 = x_3 < x_2; +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +lean_dec(x_4); +x_10 = lean_array_uget(x_1, x_3); +x_11 = lean_st_ref_take(x_6, x_7); +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_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; +x_15 = lean_ctor_get(x_12, 0); +x_16 = l_Lean_ScopedEnvExtension_pushScope___rarg(x_10, x_15); +lean_dec(x_10); +lean_ctor_set(x_12, 0, x_16); +x_17 = lean_st_ref_set(x_6, x_12, x_13); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = 1; +x_20 = x_3 + x_19; +x_21 = lean_box(0); +x_3 = x_20; +x_4 = x_21; +x_7 = x_18; +goto _start; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; +x_23 = lean_ctor_get(x_12, 0); +x_24 = lean_ctor_get(x_12, 1); +x_25 = lean_ctor_get(x_12, 2); +x_26 = lean_ctor_get(x_12, 3); +x_27 = lean_ctor_get(x_12, 4); +x_28 = lean_ctor_get(x_12, 5); +x_29 = lean_ctor_get(x_12, 6); +x_30 = lean_ctor_get(x_12, 7); +x_31 = lean_ctor_get(x_12, 8); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_12); +x_32 = l_Lean_ScopedEnvExtension_pushScope___rarg(x_10, x_23); +lean_dec(x_10); +x_33 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_24); +lean_ctor_set(x_33, 2, x_25); +lean_ctor_set(x_33, 3, x_26); +lean_ctor_set(x_33, 4, x_27); +lean_ctor_set(x_33, 5, x_28); +lean_ctor_set(x_33, 6, x_29); +lean_ctor_set(x_33, 7, x_30); +lean_ctor_set(x_33, 8, x_31); +x_34 = lean_st_ref_set(x_6, x_33, x_13); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = 1; +x_37 = x_3 + x_36; +x_38 = lean_box(0); +x_3 = x_37; +x_4 = x_38; +x_7 = x_35; +goto _start; +} +} +} +} +lean_object* l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__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; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_4 = l_Lean_scopedEnvExtensionsRef; +x_5 = lean_st_ref_get(x_4, x_3); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_array_get_size(x_6); +x_9 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_10 = 0; +x_11 = lean_box(0); +x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__2(x_6, x_9, x_10, x_11, x_1, x_2, x_7); +lean_dec(x_6); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +lean_ctor_set(x_12, 0, x_11); +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_11); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; +x_9 = x_4 < x_3; +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec(x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_5); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_dec(x_5); +x_11 = lean_array_uget(x_2, x_4); +x_12 = lean_st_ref_take(x_7, x_8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_1); +x_17 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_11, x_16, x_1); +lean_ctor_set(x_13, 0, x_17); +x_18 = lean_st_ref_set(x_7, x_13, x_14); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = 1; +x_21 = x_4 + x_20; +x_22 = lean_box(0); +x_4 = x_21; +x_5 = x_22; +x_8 = x_19; +goto _start; +} +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_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +x_26 = lean_ctor_get(x_13, 2); +x_27 = lean_ctor_get(x_13, 3); +x_28 = lean_ctor_get(x_13, 4); +x_29 = lean_ctor_get(x_13, 5); +x_30 = lean_ctor_get(x_13, 6); +x_31 = lean_ctor_get(x_13, 7); +x_32 = lean_ctor_get(x_13, 8); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_13); +lean_inc(x_1); +x_33 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_11, x_24, x_1); +x_34 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_25); +lean_ctor_set(x_34, 2, x_26); +lean_ctor_set(x_34, 3, x_27); +lean_ctor_set(x_34, 4, x_28); +lean_ctor_set(x_34, 5, x_29); +lean_ctor_set(x_34, 6, x_30); +lean_ctor_set(x_34, 7, x_31); +lean_ctor_set(x_34, 8, x_32); +x_35 = lean_st_ref_set(x_7, x_34, x_14); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = 1; +x_38 = x_4 + x_37; +x_39 = lean_box(0); +x_4 = x_38; +x_5 = x_39; +x_8 = x_36; +goto _start; +} +} +} +} +lean_object* l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(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; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_scopedEnvExtensionsRef; +x_6 = lean_st_ref_get(x_5, x_4); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_array_get_size(x_7); +x_10 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_11 = 0; +x_12 = lean_box(0); +x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4(x_1, x_7, x_10, x_11, x_12, x_2, x_3, x_8); +lean_dec(x_7); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +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_12); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope(uint8_t 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; uint8_t x_10; +x_7 = lean_st_ref_take(x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 2); +lean_inc(x_3); +x_13 = l_Lean_Environment_registerNamespace(x_11, x_3); +x_14 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_12); +x_15 = !lean_is_exclusive(x_14); +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_object* x_21; +x_16 = lean_ctor_get(x_14, 2); +lean_dec(x_16); +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +lean_inc(x_3); +lean_ctor_set(x_14, 2, x_3); +lean_ctor_set(x_14, 0, x_2); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_14); +lean_ctor_set(x_18, 1, x_12); +lean_ctor_set(x_8, 2, x_18); +lean_ctor_set(x_8, 0, x_13); +x_19 = lean_st_ref_set(x_5, x_8, x_9); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1(x_4, x_5, x_20); +if (x_1 == 0) +{ +uint8_t x_22; +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +x_24 = lean_box(0); +lean_ctor_set(x_21, 0, x_24); +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_dec(x_21); +x_29 = l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(x_3, x_4, x_5, x_28); +return x_29; +} +} +else +{ +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; +x_30 = lean_ctor_get(x_14, 1); +x_31 = lean_ctor_get(x_14, 3); +x_32 = lean_ctor_get(x_14, 4); +x_33 = lean_ctor_get(x_14, 5); +x_34 = lean_ctor_get(x_14, 6); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_14); +lean_inc(x_3); +x_35 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_35, 0, x_2); +lean_ctor_set(x_35, 1, x_30); +lean_ctor_set(x_35, 2, x_3); +lean_ctor_set(x_35, 3, x_31); +lean_ctor_set(x_35, 4, x_32); +lean_ctor_set(x_35, 5, x_33); +lean_ctor_set(x_35, 6, x_34); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_12); +lean_ctor_set(x_8, 2, x_36); +lean_ctor_set(x_8, 0, x_13); +x_37 = lean_st_ref_set(x_5, x_8, x_9); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1(x_4, x_5, x_38); +if (x_1 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_3); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = lean_box(0); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); +lean_dec(x_39); +x_45 = l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(x_3, x_4, x_5, x_44); +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; 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; +x_46 = lean_ctor_get(x_8, 0); +x_47 = lean_ctor_get(x_8, 1); +x_48 = lean_ctor_get(x_8, 2); +x_49 = lean_ctor_get(x_8, 3); +x_50 = lean_ctor_get(x_8, 4); +x_51 = lean_ctor_get(x_8, 5); +x_52 = lean_ctor_get(x_8, 6); +x_53 = lean_ctor_get(x_8, 7); +x_54 = lean_ctor_get(x_8, 8); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_8); +lean_inc(x_3); +x_55 = l_Lean_Environment_registerNamespace(x_46, x_3); +x_56 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_48); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 3); +lean_inc(x_58); +x_59 = lean_ctor_get(x_56, 4); +lean_inc(x_59); +x_60 = lean_ctor_get(x_56, 5); +lean_inc(x_60); +x_61 = lean_ctor_get(x_56, 6); +lean_inc(x_61); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + lean_ctor_release(x_56, 2); + lean_ctor_release(x_56, 3); + lean_ctor_release(x_56, 4); + lean_ctor_release(x_56, 5); + lean_ctor_release(x_56, 6); + x_62 = x_56; +} else { + lean_dec_ref(x_56); + x_62 = lean_box(0); +} +lean_inc(x_3); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 7, 0); +} else { + x_63 = x_62; +} +lean_ctor_set(x_63, 0, x_2); +lean_ctor_set(x_63, 1, x_57); +lean_ctor_set(x_63, 2, x_3); +lean_ctor_set(x_63, 3, x_58); +lean_ctor_set(x_63, 4, x_59); +lean_ctor_set(x_63, 5, x_60); +lean_ctor_set(x_63, 6, x_61); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_48); +x_65 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_65, 0, x_55); +lean_ctor_set(x_65, 1, x_47); +lean_ctor_set(x_65, 2, x_64); +lean_ctor_set(x_65, 3, x_49); +lean_ctor_set(x_65, 4, x_50); +lean_ctor_set(x_65, 5, x_51); +lean_ctor_set(x_65, 6, x_52); +lean_ctor_set(x_65, 7, x_53); +lean_ctor_set(x_65, 8, x_54); +x_66 = lean_st_ref_set(x_5, x_65, x_9); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1(x_4, x_5, x_67); +if (x_1 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_3); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_70 = x_68; +} else { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +x_71 = lean_box(0); +if (lean_is_scalar(x_70)) { + x_72 = lean_alloc_ctor(0, 2, 0); +} else { + x_72 = x_70; +} +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_69); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_68, 1); +lean_inc(x_73); +lean_dec(x_68); +x_74 = l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(x_3, x_4, x_5, x_73); +return x_74; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__2(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_11 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3___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_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope(x_7, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_8; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes_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; uint64_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_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_10 = lean_box_uint64(x_9); +x_11 = lean_apply_3(x_3, x_7, x_8, x_10); +return x_11; +} +default: +{ +lean_object* x_12; +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_apply_1(x_4, x_1); +return x_12; +} +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes_match__1___rarg), 4, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid scope"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +case 1: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_dec(x_2); +lean_inc(x_3); +x_10 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(x_1, x_8, x_3, x_4, x_5); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l_Lean_Elab_Command_getScope___rarg(x_4, x_11); +if (x_1 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +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, 2); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope(x_1, x_9, x_15, x_3, x_4, x_14); +lean_dec(x_3); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = lean_ctor_get(x_17, 2); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_9); +x_20 = lean_name_mk_string(x_19, x_9); +x_21 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope(x_1, x_9, x_20, x_3, x_4, x_18); +lean_dec(x_3); +return x_21; +} +} +else +{ +uint8_t x_22; +lean_dec(x_9); +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_10); +if (x_22 == 0) +{ +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +x_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; +} +} +} +default: +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_2); +x_26 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2; +x_27 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_26, x_3, x_4, x_5); +return x_27; +} +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___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 = lean_unbox(x_1); +lean_dec(x_1); +x_7 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_4); +return x_7; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addNamespace(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 = 1; +x_6 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(x_5, x_1, x_2, x_3, x_4); +return x_6; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addNamespace___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addNamespace(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_withNamespace___rarg(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 = 1; +lean_inc(x_3); +lean_inc(x_1); +x_7 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(x_6, x_1, x_3, x_4, x_5); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +lean_inc(x_4); +x_9 = lean_apply_3(x_2, x_3, x_4, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_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_st_ref_take(x_4, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = lean_ctor_get(x_13, 2); +x_17 = l_Lean_Name_getNumParts(x_1); +lean_dec(x_1); +x_18 = l_List_drop___rarg(x_17, x_16); +lean_dec(x_16); +lean_ctor_set(x_13, 2, x_18); +x_19 = lean_st_ref_set(x_4, x_13, x_14); +lean_dec(x_4); +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_10); +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_10); +lean_ctor_set(x_23, 1, x_22); +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_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; +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +x_26 = lean_ctor_get(x_13, 2); +x_27 = lean_ctor_get(x_13, 3); +x_28 = lean_ctor_get(x_13, 4); +x_29 = lean_ctor_get(x_13, 5); +x_30 = lean_ctor_get(x_13, 6); +x_31 = lean_ctor_get(x_13, 7); +x_32 = lean_ctor_get(x_13, 8); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_13); +x_33 = l_Lean_Name_getNumParts(x_1); +lean_dec(x_1); +x_34 = l_List_drop___rarg(x_33, x_26); +lean_dec(x_26); +x_35 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_35, 0, x_24); +lean_ctor_set(x_35, 1, x_25); +lean_ctor_set(x_35, 2, x_34); +lean_ctor_set(x_35, 3, x_27); +lean_ctor_set(x_35, 4, x_28); +lean_ctor_set(x_35, 5, x_29); +lean_ctor_set(x_35, 6, x_30); +lean_ctor_set(x_35, 7, x_31); +lean_ctor_set(x_35, 8, x_32); +x_36 = lean_st_ref_set(x_4, x_35, x_14); +lean_dec(x_4); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +if (lean_is_scalar(x_38)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_38; +} +lean_ctor_set(x_39, 0, x_10); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +else +{ +uint8_t x_40; +lean_dec(x_4); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_9); +if (x_40 == 0) +{ +return x_9; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_9, 0); +x_42 = lean_ctor_get(x_9, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_9); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_7); +if (x_44 == 0) +{ +return x_7; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_7, 0); +x_46 = lean_ctor_get(x_7, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_7); +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* l_Lean_Elab_Command_withNamespace(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_withNamespace___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__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) { +_start: +{ +uint8_t x_8; +x_8 = x_3 < x_2; +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +lean_dec(x_4); +x_10 = lean_array_uget(x_1, x_3); +x_11 = lean_st_ref_take(x_6, x_7); +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_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; +x_15 = lean_ctor_get(x_12, 0); +x_16 = l_Lean_ScopedEnvExtension_popScope___rarg(x_10, x_15); +lean_dec(x_10); +lean_ctor_set(x_12, 0, x_16); +x_17 = lean_st_ref_set(x_6, x_12, x_13); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = 1; +x_20 = x_3 + x_19; +x_21 = lean_box(0); +x_3 = x_20; +x_4 = x_21; +x_7 = x_18; +goto _start; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; +x_23 = lean_ctor_get(x_12, 0); +x_24 = lean_ctor_get(x_12, 1); +x_25 = lean_ctor_get(x_12, 2); +x_26 = lean_ctor_get(x_12, 3); +x_27 = lean_ctor_get(x_12, 4); +x_28 = lean_ctor_get(x_12, 5); +x_29 = lean_ctor_get(x_12, 6); +x_30 = lean_ctor_get(x_12, 7); +x_31 = lean_ctor_get(x_12, 8); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_12); +x_32 = l_Lean_ScopedEnvExtension_popScope___rarg(x_10, x_23); +lean_dec(x_10); +x_33 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_24); +lean_ctor_set(x_33, 2, x_25); +lean_ctor_set(x_33, 3, x_26); +lean_ctor_set(x_33, 4, x_27); +lean_ctor_set(x_33, 5, x_28); +lean_ctor_set(x_33, 6, x_29); +lean_ctor_set(x_33, 7, x_30); +lean_ctor_set(x_33, 8, x_31); +x_34 = lean_st_ref_set(x_6, x_33, x_13); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = 1; +x_37 = x_3 + x_36; +x_38 = lean_box(0); +x_3 = x_37; +x_4 = x_38; +x_7 = x_35; +goto _start; +} +} +} +} +lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__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; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_4 = l_Lean_scopedEnvExtensionsRef; +x_5 = lean_st_ref_get(x_4, x_3); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_array_get_size(x_6); +x_9 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_10 = 0; +x_11 = lean_box(0); +x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2(x_6, x_9, x_10, x_11, x_1, x_2, x_7); +lean_dec(x_6); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +lean_ctor_set(x_12, 0, x_11); +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_11); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_1, 1); +x_9 = lean_nat_dec_le(x_8, x_3); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_nat_dec_eq(x_2, x_10); +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; lean_object* x_18; +lean_dec(x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_sub(x_2, x_12); +lean_dec(x_2); +x_14 = l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1(x_5, x_6, x_7); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_ctor_get(x_1, 2); +x_17 = lean_nat_add(x_3, x_16); +lean_dec(x_3); +x_18 = lean_box(0); +x_2 = x_13; +x_3 = x_17; +x_4 = x_18; +x_7 = x_15; +goto _start; +} +else +{ +lean_object* x_20; +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_7); +return x_20; +} +} +else +{ +lean_object* x_21; +lean_dec(x_3); +lean_dec(x_2); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_4); +lean_ctor_set(x_21, 1, x_7); +return x_21; +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes(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; lean_object* x_9; uint8_t x_10; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_unsigned_to_nat(1u); +lean_inc(x_1); +x_7 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_1); +lean_ctor_set(x_7, 2, x_6); +x_8 = lean_box(0); +x_9 = l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3(x_7, x_1, x_5, x_8, x_2, x_3, x_4); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_9, 0); +lean_dec(x_11); +lean_ctor_set(x_9, 0, x_8); +return x_9; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_8); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_8; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_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_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_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; uint8_t x_15; +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(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_5, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_5, 3); +lean_inc(x_10); +x_11 = lean_ctor_get(x_5, 4); +lean_inc(x_11); +x_12 = lean_ctor_get(x_5, 5); +lean_inc(x_12); +x_13 = lean_ctor_get(x_5, 6); +lean_inc(x_13); +lean_dec(x_5); +x_14 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +x_15 = lean_string_dec_eq(x_7, x_14); +lean_dec(x_7); +if (x_15 == 0) +{ +lean_object* x_16; +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_2); +x_16 = lean_apply_1(x_3, x_1); +return x_16; +} +else +{ +lean_object* x_17; +lean_dec(x_3); +lean_dec(x_1); +x_17 = lean_apply_7(x_2, x_6, x_8, x_9, x_10, x_11, x_12, x_13); +return x_17; +} +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg), 3, 0); +return x_2; +} +} +uint8_t l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_3, 0); +x_5 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +x_6 = lean_string_dec_eq(x_4, x_5); +return x_6; +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader_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_dec(x_3); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_7; +lean_dec(x_4); +x_7 = lean_apply_2(x_5, x_1, x_2); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = lean_ctor_get(x_8, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_8, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_8, 2); +lean_inc(x_15); +x_16 = lean_ctor_get(x_8, 3); +lean_inc(x_16); +x_17 = lean_ctor_get(x_8, 4); +lean_inc(x_17); +x_18 = lean_ctor_get(x_8, 5); +lean_inc(x_18); +x_19 = lean_ctor_get(x_8, 6); +lean_inc(x_19); +lean_dec(x_8); +x_20 = lean_box_uint64(x_11); +x_21 = lean_apply_11(x_4, x_9, x_10, x_20, x_13, x_12, x_14, x_15, x_16, x_17, x_18, x_19); +return x_21; +} +} +default: +{ +lean_object* x_22; +lean_dec(x_4); +lean_dec(x_3); +x_22 = lean_apply_2(x_5, x_1, x_2); +return x_22; +} +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader_match__1___rarg), 5, 0); +return x_2; +} +} +uint8_t l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader(lean_object* x_1, lean_object* x_2) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +case 1: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_2, 1); +x_9 = lean_ctor_get(x_5, 0); +x_10 = lean_string_dec_eq(x_9, x_7); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = 0; +return x_11; +} +else +{ +x_1 = x_6; +x_2 = x_8; +goto _start; +} +} +} +default: +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader(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_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg), 1, 0); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabNamespace___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Parser"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_2 = l_Lean_Elab_Command_elabNamespace___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Command"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__4; +x_2 = l_Lean_Elab_Command_elabNamespace___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("namespace"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_Command_elabNamespace___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabNamespace(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; +x_5 = l_Lean_Elab_Command_elabNamespace___closed__8; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +lean_dec(x_1); +x_10 = l_Lean_Syntax_getId(x_9); +lean_dec(x_9); +x_11 = 1; +x_12 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(x_11, x_10, x_2, x_3, x_4); +return x_12; +} +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabNamespace___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_Command_elabNamespace(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Elab"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_2 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2; +x_2 = l_Lean_Elab_Command_elabNamespace___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabNamespace"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabNamespace___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l_Lean_Elab_Command_elabNamespace___closed__8; +x_4 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__5; +x_5 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__6; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("section"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_Command_elabSection___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ident"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabSection___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabSection(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; +x_5 = l_Lean_Elab_Command_elabSection___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +lean_dec(x_1); +x_10 = l_Lean_nullKind; +lean_inc(x_9); +x_11 = l_Lean_Syntax_isNodeOf(x_9, 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 = l_Lean_Syntax_isNodeOf(x_9, x_10, x_12); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_2); +x_14 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_15 = l_Lean_Elab_Command_getScope___rarg(x_3, x_4); +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, 2); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 0; +x_20 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +x_21 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope(x_19, x_20, x_18, x_2, x_3, x_17); +lean_dec(x_2); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_unsigned_to_nat(0u); +x_23 = l_Lean_Syntax_getArg(x_9, x_22); +lean_dec(x_9); +x_24 = l_Lean_Elab_Command_elabSection___closed__4; +lean_inc(x_23); +x_25 = l_Lean_Syntax_isOfKind(x_23, x_24); +if (x_25 == 0) +{ +lean_object* x_26; +lean_dec(x_23); +lean_dec(x_2); +x_26 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_26; +} +else +{ +lean_object* x_27; uint8_t x_28; lean_object* x_29; +x_27 = l_Lean_Syntax_getId(x_23); +lean_dec(x_23); +x_28 = 0; +x_29 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(x_28, x_27, x_2, x_3, x_4); +return x_29; +} +} +} +} +} +lean_object* l_Lean_Elab_Command_elabSection___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_Command_elabSection(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabSection"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabSection___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSection___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabSection(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l_Lean_Elab_Command_elabSection___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabSection___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Command_elabSection___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabEnd_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_elabEnd_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEnd_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +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_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(x_5); +lean_ctor_set(x_1, 1, x_7); +lean_ctor_set(x_1, 0, x_6); +return x_1; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(x_9); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +} +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(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; uint8_t x_8; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 7); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 0); +lean_dec(x_10); +x_11 = lean_box(0); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +else +{ +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_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_dec(x_5); +x_16 = lean_st_ref_take(x_3, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 7); +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, 7); +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); +x_24 = l_Std_PersistentArray_push___rarg(x_23, x_1); +lean_ctor_set(x_18, 1, x_24); +x_25 = lean_st_ref_set(x_3, x_17, x_19); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +uint8_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; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_32 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_33 = lean_ctor_get(x_18, 0); +x_34 = lean_ctor_get(x_18, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_18); +x_35 = l_Std_PersistentArray_push___rarg(x_34, x_1); +x_36 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*2, x_32); +lean_ctor_set(x_17, 7, x_36); +x_37 = lean_st_ref_set(x_3, x_17, x_19); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +x_40 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_38); +return x_41; +} +} +else +{ +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; uint8_t 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; +x_42 = lean_ctor_get(x_17, 0); +x_43 = lean_ctor_get(x_17, 1); +x_44 = lean_ctor_get(x_17, 2); +x_45 = lean_ctor_get(x_17, 3); +x_46 = lean_ctor_get(x_17, 4); +x_47 = lean_ctor_get(x_17, 5); +x_48 = lean_ctor_get(x_17, 6); +x_49 = lean_ctor_get(x_17, 8); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_17); +x_50 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_51 = lean_ctor_get(x_18, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_18, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_53 = x_18; +} else { + lean_dec_ref(x_18); + x_53 = lean_box(0); +} +x_54 = l_Std_PersistentArray_push___rarg(x_52, x_1); +if (lean_is_scalar(x_53)) { + x_55 = lean_alloc_ctor(0, 2, 1); +} else { + x_55 = x_53; +} +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_54); +lean_ctor_set_uint8(x_55, sizeof(void*)*2, x_50); +x_56 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_56, 0, x_42); +lean_ctor_set(x_56, 1, x_43); +lean_ctor_set(x_56, 2, x_44); +lean_ctor_set(x_56, 3, x_45); +lean_ctor_set(x_56, 4, x_46); +lean_ctor_set(x_56, 5, x_47); +lean_ctor_set(x_56, 6, x_48); +lean_ctor_set(x_56, 7, x_55); +lean_ctor_set(x_56, 8, x_49); +x_57 = lean_st_ref_set(x_3, x_56, x_19); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; +} else { + lean_dec_ref(x_57); + x_59 = lean_box(0); +} +x_60 = lean_box(0); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +return x_61; +} +} +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3() { +_start: +{ +size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 5; +x_2 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__2; +x_3 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_4); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_usize(x_5, 4, x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(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; uint8_t x_8; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 7); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 0); +lean_dec(x_10); +x_11 = lean_box(0); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_dec(x_5); +x_16 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(x_17, x_2, x_3, x_15); +return x_18; +} +} +} +lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(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; +x_5 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_5, 0, x_1); +x_6 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(x_5, x_2, x_3, x_4); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid 'end', name is missing"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid 'end', name mismatch"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEnd___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) == 0) +{ +uint8_t x_8; +lean_dec(x_3); +x_8 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope(x_2); +lean_dec(x_2); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__2; +x_10 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_9, x_5, x_6, x_7); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_7); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_1, 0); +x_14 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader(x_13, x_2); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_15 = l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(x_2); +x_16 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_16, 0, x_3); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_16, x_5, x_6, x_7); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__4; +x_20 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_19, x_5, x_6, x_18); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_7); +return x_22; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEnd___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid 'end', insufficient scopes"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEnd___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabEnd___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEnd(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; lean_object* x_9; lean_object* x_10; lean_object* x_87; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Syntax_getOptionalIdent_x3f(x_6); +lean_dec(x_6); +x_87 = l_Lean_Elab_Command_getScopes___rarg(x_3, x_4); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_8 = x_5; +x_9 = x_88; +x_10 = x_89; +goto block_86; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_90 = lean_ctor_get(x_7, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_87, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_87, 1); +lean_inc(x_92); +lean_dec(x_87); +x_93 = l_Lean_Name_getNumParts(x_90); +lean_dec(x_90); +x_8 = x_93; +x_9 = x_91; +x_10 = x_92; +goto block_86; +} +block_86: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_unsigned_to_nat(0u); +x_12 = l_List_lengthAux___rarg(x_9, x_11); +x_13 = lean_nat_dec_lt(x_8, x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +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; uint8_t x_23; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_14 = lean_st_ref_get(x_3, x_10); +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, 2); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_List_lengthAux___rarg(x_17, x_11); +lean_dec(x_17); +x_19 = lean_nat_sub(x_18, x_5); +lean_dec(x_18); +x_20 = lean_st_ref_take(x_3, x_16); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_24 = lean_ctor_get(x_21, 2); +lean_inc(x_19); +x_25 = l_List_drop___rarg(x_19, x_24); +lean_dec(x_24); +lean_ctor_set(x_21, 2, x_25); +x_26 = lean_st_ref_set(x_3, x_21, x_22); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes(x_19, x_2, x_3, x_27); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l_Lean_Elab_Command_elabEnd___closed__2; +x_31 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_30, x_2, x_3, x_29); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +return x_31; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_31); +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_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; +x_36 = lean_ctor_get(x_21, 0); +x_37 = lean_ctor_get(x_21, 1); +x_38 = lean_ctor_get(x_21, 2); +x_39 = lean_ctor_get(x_21, 3); +x_40 = lean_ctor_get(x_21, 4); +x_41 = lean_ctor_get(x_21, 5); +x_42 = lean_ctor_get(x_21, 6); +x_43 = lean_ctor_get(x_21, 7); +x_44 = lean_ctor_get(x_21, 8); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_21); +lean_inc(x_19); +x_45 = l_List_drop___rarg(x_19, x_38); +lean_dec(x_38); +x_46 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_46, 0, x_36); +lean_ctor_set(x_46, 1, x_37); +lean_ctor_set(x_46, 2, x_45); +lean_ctor_set(x_46, 3, x_39); +lean_ctor_set(x_46, 4, x_40); +lean_ctor_set(x_46, 5, x_41); +lean_ctor_set(x_46, 6, x_42); +lean_ctor_set(x_46, 7, x_43); +lean_ctor_set(x_46, 8, x_44); +x_47 = lean_st_ref_set(x_3, x_46, x_22); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes(x_19, x_2, x_3, x_48); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_51 = l_Lean_Elab_Command_elabEnd___closed__2; +x_52 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_51, x_2, x_3, x_50); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_55 = x_52; +} else { + lean_dec_ref(x_52); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_57 = lean_st_ref_take(x_3, x_10); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = !lean_is_exclusive(x_58); +if (x_60 == 0) +{ +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; +x_61 = lean_ctor_get(x_58, 2); +lean_inc(x_8); +x_62 = l_List_drop___rarg(x_8, x_61); +lean_dec(x_61); +lean_ctor_set(x_58, 2, x_62); +x_63 = lean_st_ref_set(x_3, x_58, x_59); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes(x_8, x_2, x_3, x_64); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_Elab_Command_elabEnd___lambda__1(x_7, x_9, x_1, x_66, x_2, x_3, x_67); +lean_dec(x_66); +lean_dec(x_7); +return x_68; +} +else +{ +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; +x_69 = lean_ctor_get(x_58, 0); +x_70 = lean_ctor_get(x_58, 1); +x_71 = lean_ctor_get(x_58, 2); +x_72 = lean_ctor_get(x_58, 3); +x_73 = lean_ctor_get(x_58, 4); +x_74 = lean_ctor_get(x_58, 5); +x_75 = lean_ctor_get(x_58, 6); +x_76 = lean_ctor_get(x_58, 7); +x_77 = lean_ctor_get(x_58, 8); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_58); +lean_inc(x_8); +x_78 = l_List_drop___rarg(x_8, x_71); +lean_dec(x_71); +x_79 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_79, 0, x_69); +lean_ctor_set(x_79, 1, x_70); +lean_ctor_set(x_79, 2, x_78); +lean_ctor_set(x_79, 3, x_72); +lean_ctor_set(x_79, 4, x_73); +lean_ctor_set(x_79, 5, x_74); +lean_ctor_set(x_79, 6, x_75); +lean_ctor_set(x_79, 7, x_76); +lean_ctor_set(x_79, 8, x_77); +x_80 = lean_st_ref_set(x_3, x_79, x_59); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes(x_8, x_2, x_3, x_81); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = l_Lean_Elab_Command_elabEnd___lambda__1(x_7, x_9, x_1, x_83, x_2, x_3, x_84); +lean_dec(x_83); +lean_dec(x_7); +return x_85; +} +} +} +} +} +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___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_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__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_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_Command_elabEnd___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Lean_Elab_Command_elabEnd___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_Command_elabEnd(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("end"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabEnd"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEnd___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux(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; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_2, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_8 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_fget(x_1, x_2); +lean_inc(x_4); +lean_inc(x_3); +x_10 = l_Lean_Elab_Command_elabCommand(x_9, x_3, x_4, x_5); +if (lean_obj_tag(x_10) == 0) +{ +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +else +{ +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; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_10, 0); +lean_dec(x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_10); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_10, 1); +x_18 = lean_ctor_get(x_10, 0); +lean_dec(x_18); +x_19 = lean_ctor_get(x_11, 0); +lean_inc(x_19); +x_20 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_21 = lean_nat_dec_eq(x_20, x_19); +lean_dec(x_19); +if (x_21 == 0) +{ +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_free_object(x_10); +lean_dec(x_11); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_add(x_2, x_22); +lean_dec(x_2); +x_2 = x_23; +x_5 = x_17; +goto _start; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_10, 1); +lean_inc(x_25); +lean_dec(x_10); +x_26 = lean_ctor_get(x_11, 0); +lean_inc(x_26); +x_27 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_28 = lean_nat_dec_eq(x_27, x_26); +lean_dec(x_26); +if (x_28 == 0) +{ +lean_object* x_29; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_11); +lean_ctor_set(x_29, 1, x_25); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_11); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_2, x_30); +lean_dec(x_2); +x_2 = x_31; +x_5 = x_25; +goto _start; +} +} +} +} +} +} +} +lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elbChoice(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; +x_5 = l_Lean_Syntax_getArgs(x_1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux(x_5, x_6, x_2, x_3, x_4); +lean_dec(x_5); +return x_7; +} +} +lean_object* l_Lean_Elab_Command_elbChoice___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_Command_elbChoice(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("choice"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elbChoice"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elbChoice___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__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) { +_start: +{ +uint8_t x_8; +x_8 = x_2 == x_3; +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +x_9 = lean_array_uget(x_1, x_2); +lean_inc(x_5); +x_10 = l_Lean_Elab_Command_addUnivLevel(x_9, x_5, x_6, x_7); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; size_t x_13; size_t 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); +x_13 = 1; +x_14 = x_2 + x_13; +x_2 = x_14; +x_4 = x_11; +x_7 = x_12; +goto _start; +} +else +{ +uint8_t x_16; +lean_dec(x_5); +x_16 = !lean_is_exclusive(x_10); +if (x_16 == 0) +{ +return x_10; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_10, 0); +x_18 = lean_ctor_get(x_10, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_10); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +else +{ +lean_object* x_20; +lean_dec(x_5); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_4); +lean_ctor_set(x_20, 1, x_7); +return x_20; +} +} +} +lean_object* l_Lean_Elab_Command_elabUniverse(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; lean_object* x_9; uint8_t x_10; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Syntax_getArgs(x_6); +lean_dec(x_6); +x_8 = lean_array_get_size(x_7); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_lt(x_9, x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = lean_nat_dec_le(x_8, x_8); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_4); +return x_15; +} +else +{ +size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; +x_16 = 0; +x_17 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_18 = lean_box(0); +x_19 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__1(x_7, x_16, x_17, x_18, x_2, x_3, x_4); +lean_dec(x_7); +return x_19; +} +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__1(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_Command_elabUniverse___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_Command_elabUniverse(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("universe"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabUniverse"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabUniverse___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabInitQuot_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_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +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_Lean_Elab_Command_elabInitQuot_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInitQuot_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabInitQuot___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; lean_object* x_8; lean_object* x_9; +x_4 = lean_st_ref_get(x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_box(4); +x_9 = lean_add_decl(x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +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_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_st_ref_get(x_2, x_6); +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_ctor_get(x_12, 2); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_14); +lean_dec(x_14); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_KernelException_toMessageData(x_10, x_16); +x_18 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_17, x_1, x_2, x_13); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_9, 0); +lean_inc(x_19); +lean_dec(x_9); +x_20 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_19, x_1, x_2, x_6); +lean_dec(x_1); +return x_20; +} +} +} +lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInitQuot___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabInitQuot___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Command_elabInitQuot___rarg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Lean_Elab_Command_elabInitQuot___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Command_elabInitQuot(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("init_quot"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabInitQuot"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInitQuot___boxed), 1, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +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); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +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; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +static lean_object* _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unknown namespace '"); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'"); +return x_1; +} +} +lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Elab_Command_getScope___rarg(x_3, x_7); +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, 2); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_Command_getScope___rarg(x_3, x_11); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_15, 3); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_1); +x_18 = l_Lean_ResolveName_resolveNamespace_x3f(x_8, x_12, x_17, x_1); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_8); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_free_object(x_13); +x_19 = 1; +x_20 = l_Lean_Name_toString(x_1, x_19); +x_21 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; +x_22 = lean_string_append(x_21, x_20); +lean_dec(x_20); +x_23 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; +x_24 = lean_string_append(x_22, x_23); +x_25 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_26, x_2, x_3, x_16); +return x_27; +} +else +{ +lean_object* x_28; +lean_dec(x_2); +lean_dec(x_1); +x_28 = lean_ctor_get(x_18, 0); +lean_inc(x_28); +lean_dec(x_18); +lean_ctor_set(x_13, 0, x_28); +return x_13; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_13, 0); +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_13); +x_31 = lean_ctor_get(x_29, 3); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_1); +x_32 = l_Lean_ResolveName_resolveNamespace_x3f(x_8, x_12, x_31, x_1); +lean_dec(x_31); +lean_dec(x_12); +lean_dec(x_8); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_33 = 1; +x_34 = l_Lean_Name_toString(x_1, x_33); +x_35 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; +x_36 = lean_string_append(x_35, x_34); +lean_dec(x_34); +x_37 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; +x_38 = lean_string_append(x_36, x_37); +x_39 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_40, x_2, x_3, x_30); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_2); +lean_dec(x_1); +x_42 = lean_ctor_get(x_32, 0); +lean_inc(x_42); +lean_dec(x_32); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_30); +return x_43; +} +} +} +} +static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unknown declaration '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(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; lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_5 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_5, 0, x_1); +x_6 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; +x_7 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +x_8 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; +x_9 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +x_10 = 2; +x_11 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_9, x_10, x_2, x_3, x_4); +return x_11; +} +} +lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_add_alias(x_1, x_5, x_6); +x_1 = x_7; +x_2 = x_4; +goto _start; +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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: +{ +uint8_t x_11; +x_11 = x_5 == x_6; +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_array_uget(x_4, x_5); +x_13 = l_Lean_Syntax_getId(x_12); +lean_inc(x_13); +x_14 = l_Lean_Name_append(x_1, x_13); +lean_inc(x_3); +x_15 = l_Lean_Environment_contains(x_3, x_14); +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_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; size_t x_29; size_t x_30; +lean_dec(x_13); +x_16 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +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_replaceRef(x_12, x_17); +lean_dec(x_17); +lean_dec(x_12); +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); +x_22 = lean_ctor_get(x_8, 2); +x_23 = lean_ctor_get(x_8, 3); +x_24 = lean_ctor_get(x_8, 4); +x_25 = lean_ctor_get(x_8, 5); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +x_26 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_26, 0, x_20); +lean_ctor_set(x_26, 1, x_21); +lean_ctor_set(x_26, 2, x_22); +lean_ctor_set(x_26, 3, x_23); +lean_ctor_set(x_26, 4, x_24); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_19); +x_27 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(x_14, x_26, x_9, x_18); +lean_dec(x_26); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = 1; +x_30 = x_5 + x_29; +x_5 = x_30; +x_10 = x_28; +goto _start; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; +lean_dec(x_12); +x_32 = l_Lean_Name_append(x_2, x_13); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_14); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_7); +x_35 = 1; +x_36 = x_5 + x_35; +x_5 = x_36; +x_7 = x_34; +goto _start; +} +} +else +{ +lean_object* x_38; +lean_dec(x_3); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_7); +lean_ctor_set(x_38, 1, x_10); +return x_38; +} +} +} +lean_object* l_Lean_Elab_Command_elabExport___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; 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; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_8 = lean_st_ref_get(x_6, x_7); +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); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_unsigned_to_nat(3u); +x_13 = l_Lean_Syntax_getArg(x_1, x_12); +x_14 = l_Lean_Syntax_getArgs(x_13); +lean_dec(x_13); +x_15 = lean_box(0); +x_16 = lean_array_get_size(x_14); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_lt(x_17, x_16); +if (x_18 == 0) +{ +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_11); +x_19 = x_15; +x_20 = x_10; +goto block_50; +} +else +{ +uint8_t x_51; +x_51 = lean_nat_dec_le(x_16, x_16); +if (x_51 == 0) +{ +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_11); +x_19 = x_15; +x_20 = x_10; +goto block_50; +} +else +{ +size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_52 = 0; +x_53 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_54 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(x_2, x_3, x_11, x_14, x_52, x_53, x_15, x_5, x_6, x_10); +lean_dec(x_14); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_19 = x_55; +x_20 = x_56; +goto block_50; +} +} +block_50: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_st_ref_take(x_6, x_20); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_22, 0); +x_26 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(x_25, x_19); +lean_ctor_set(x_22, 0, x_26); +x_27 = lean_st_ref_set(x_6, x_22, x_23); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +x_30 = lean_box(0); +lean_ctor_set(x_27, 0, x_30); +return x_27; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_27, 1); +lean_inc(x_31); +lean_dec(x_27); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +else +{ +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; +x_34 = lean_ctor_get(x_22, 0); +x_35 = lean_ctor_get(x_22, 1); +x_36 = lean_ctor_get(x_22, 2); +x_37 = lean_ctor_get(x_22, 3); +x_38 = lean_ctor_get(x_22, 4); +x_39 = lean_ctor_get(x_22, 5); +x_40 = lean_ctor_get(x_22, 6); +x_41 = lean_ctor_get(x_22, 7); +x_42 = lean_ctor_get(x_22, 8); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_22); +x_43 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(x_34, x_19); +x_44 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_35); +lean_ctor_set(x_44, 2, x_36); +lean_ctor_set(x_44, 3, x_37); +lean_ctor_set(x_44, 4, x_38); +lean_ctor_set(x_44, 5, x_39); +lean_ctor_set(x_44, 6, x_40); +lean_ctor_set(x_44, 7, x_41); +lean_ctor_set(x_44, 8, x_42); +x_45 = lean_st_ref_set(x_6, x_44, x_23); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_47 = x_45; +} else { + lean_dec_ref(x_45); + x_47 = lean_box(0); +} +x_48 = lean_box(0); +if (lean_is_scalar(x_47)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_47; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); +return x_49; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabExport___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid 'export', self export"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabExport___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabExport___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabExport(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; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Syntax_getId(x_6); +lean_dec(x_6); +lean_inc(x_2); +x_8 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(x_7, x_2, x_3, x_4); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_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); +x_11 = l_Lean_Elab_Command_getScope___rarg(x_3, x_10); +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_ctor_get(x_12, 2); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_name_eq(x_9, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Command_elabExport___lambda__1(x_1, x_9, x_14, x_16, x_2, x_3, x_13); +lean_dec(x_2); +lean_dec(x_14); +lean_dec(x_9); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_dec(x_14); +lean_dec(x_9); +x_18 = l_Lean_Elab_Command_elabExport___closed__2; +x_19 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(x_18, x_2, x_3, x_13); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +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; +} +} +} +else +{ +uint8_t x_24; +lean_dec(x_2); +x_24 = !lean_is_exclusive(x_8); +if (x_24 == 0) +{ +return x_8; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_8, 0); +x_26 = lean_ctor_get(x_8, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_8); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__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_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__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_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___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_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_12 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(x_1, x_2, x_3, x_4, x_11, x_12, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_Command_elabExport___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Lean_Elab_Command_elabExport___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_Command_elabExport(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("export"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabExport"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabExport___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabExport(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_3, x_4, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_7); +lean_ctor_set(x_12, 1, x_11); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_7); +lean_ctor_set(x_15, 1, x_13); +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_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; 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; uint8_t x_15; +x_6 = lean_st_ref_get(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_st_ref_get(x_2, x_8); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_2, x_12); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_1); +x_19 = l_Lean_ResolveName_resolveNamespace_x3f(x_9, x_13, x_18, x_1); +lean_dec(x_18); +lean_dec(x_13); +lean_dec(x_9); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_free_object(x_14); +x_20 = 1; +x_21 = l_Lean_Name_toString(x_1, x_20); +x_22 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; +x_23 = lean_string_append(x_22, x_21); +lean_dec(x_21); +x_24 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; +x_25 = lean_string_append(x_23, x_24); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_27, x_2, x_3, x_4, x_17); +return x_28; +} +else +{ +lean_object* x_29; +lean_dec(x_1); +x_29 = lean_ctor_get(x_19, 0); +lean_inc(x_29); +lean_dec(x_19); +lean_ctor_set(x_14, 0, x_29); +return x_14; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_14, 0); +x_31 = lean_ctor_get(x_14, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_14); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +lean_dec(x_30); +lean_inc(x_1); +x_33 = l_Lean_ResolveName_resolveNamespace_x3f(x_9, x_13, x_32, x_1); +lean_dec(x_32); +lean_dec(x_13); +lean_dec(x_9); +if (lean_obj_tag(x_33) == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_34 = 1; +x_35 = l_Lean_Name_toString(x_1, x_34); +x_36 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; +x_37 = lean_string_append(x_36, x_35); +lean_dec(x_35); +x_38 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; +x_39 = lean_string_append(x_37, x_38); +x_40 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_41, x_2, x_3, x_4, x_31); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_1); +x_43 = lean_ctor_get(x_33, 0); +lean_inc(x_43); +lean_dec(x_33); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_31); +return x_44; +} +} +} +} +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_340; uint8_t x_341; +x_340 = 2; +x_341 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_3, x_340); +if (x_341 == 0) +{ +lean_object* x_342; +x_342 = lean_box(0); +x_8 = x_342; +goto block_339; +} +else +{ +uint8_t x_343; +lean_inc(x_2); +x_343 = l_Lean_MessageData_hasSyntheticSorry(x_2); +if (x_343 == 0) +{ +lean_object* x_344; +x_344 = lean_box(0); +x_8 = x_344; +goto block_339; +} +else +{ +lean_object* x_345; lean_object* x_346; +lean_dec(x_2); +x_345 = lean_box(0); +x_346 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_7); +return x_346; +} +} +block_339: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +x_9 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); +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 = l_Lean_replaceRef(x_1, x_10); +lean_dec(x_10); +x_13 = 0; +x_14 = l_Lean_Syntax_getPos_x3f(x_12, x_13); +x_15 = l_Lean_Syntax_getTailPos_x3f(x_12, x_13); +lean_dec(x_12); +if (lean_obj_tag(x_14) == 0) +{ +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_16 = lean_ctor_get(x_5, 0); +x_17 = lean_ctor_get(x_5, 1); +x_18 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); +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_unsigned_to_nat(0u); +x_22 = l_Lean_FileMap_toPosition(x_17, x_21); +lean_inc(x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = l_Lean_Elab_Command_getScope___rarg(x_6, x_20); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 2); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Elab_Command_getScope___rarg(x_6, x_26); +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_ctor_get(x_29, 3); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_27); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_19); +x_34 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +lean_inc(x_16); +x_35 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_35, 0, x_16); +lean_ctor_set(x_35, 1, x_22); +lean_ctor_set(x_35, 2, x_23); +lean_ctor_set(x_35, 3, x_34); +lean_ctor_set(x_35, 4, x_33); +lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_3); +x_36 = lean_st_ref_take(x_6, x_30); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_37, 1); +x_41 = l_Std_PersistentArray_push___rarg(x_40, x_35); +lean_ctor_set(x_37, 1, x_41); +x_42 = lean_st_ref_set(x_6, x_37, x_38); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +x_45 = lean_box(0); +lean_ctor_set(x_42, 0, x_45); +return x_42; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_42, 1); +lean_inc(x_46); +lean_dec(x_42); +x_47 = lean_box(0); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +else +{ +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; +x_49 = lean_ctor_get(x_37, 0); +x_50 = lean_ctor_get(x_37, 1); +x_51 = lean_ctor_get(x_37, 2); +x_52 = lean_ctor_get(x_37, 3); +x_53 = lean_ctor_get(x_37, 4); +x_54 = lean_ctor_get(x_37, 5); +x_55 = lean_ctor_get(x_37, 6); +x_56 = lean_ctor_get(x_37, 7); +x_57 = lean_ctor_get(x_37, 8); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_37); +x_58 = l_Std_PersistentArray_push___rarg(x_50, x_35); +x_59 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_59, 0, x_49); +lean_ctor_set(x_59, 1, x_58); +lean_ctor_set(x_59, 2, x_51); +lean_ctor_set(x_59, 3, x_52); +lean_ctor_set(x_59, 4, x_53); +lean_ctor_set(x_59, 5, x_54); +lean_ctor_set(x_59, 6, x_55); +lean_ctor_set(x_59, 7, x_56); +lean_ctor_set(x_59, 8, x_57); +x_60 = lean_st_ref_set(x_6, x_59, x_38); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_62 = x_60; +} else { + lean_dec_ref(x_60); + x_62 = lean_box(0); +} +x_63 = lean_box(0); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_62; +} +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_61); +return x_64; +} +} +else +{ +uint8_t x_65; +x_65 = !lean_is_exclusive(x_15); +if (x_65 == 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; 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; uint8_t x_90; +x_66 = lean_ctor_get(x_15, 0); +x_67 = lean_ctor_get(x_5, 0); +x_68 = lean_ctor_get(x_5, 1); +x_69 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_unsigned_to_nat(0u); +x_73 = l_Lean_FileMap_toPosition(x_68, x_72); +x_74 = l_Lean_FileMap_toPosition(x_68, x_66); +lean_dec(x_66); +lean_ctor_set(x_15, 0, x_74); +x_75 = l_Lean_Elab_Command_getScope___rarg(x_6, x_71); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_ctor_get(x_76, 2); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Lean_Elab_Command_getScope___rarg(x_6, x_77); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_82 = lean_ctor_get(x_80, 3); +lean_inc(x_82); +lean_dec(x_80); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_78); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_70); +x_85 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +lean_inc(x_67); +x_86 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_86, 0, x_67); +lean_ctor_set(x_86, 1, x_73); +lean_ctor_set(x_86, 2, x_15); +lean_ctor_set(x_86, 3, x_85); +lean_ctor_set(x_86, 4, x_84); +lean_ctor_set_uint8(x_86, sizeof(void*)*5, x_3); +x_87 = lean_st_ref_take(x_6, x_81); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = !lean_is_exclusive(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_91 = lean_ctor_get(x_88, 1); +x_92 = l_Std_PersistentArray_push___rarg(x_91, x_86); +lean_ctor_set(x_88, 1, x_92); +x_93 = lean_st_ref_set(x_6, x_88, x_89); +x_94 = !lean_is_exclusive(x_93); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; +x_95 = lean_ctor_get(x_93, 0); +lean_dec(x_95); +x_96 = lean_box(0); +lean_ctor_set(x_93, 0, x_96); +return x_93; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_93, 1); +lean_inc(x_97); +lean_dec(x_93); +x_98 = lean_box(0); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +else +{ +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; +x_100 = lean_ctor_get(x_88, 0); +x_101 = lean_ctor_get(x_88, 1); +x_102 = lean_ctor_get(x_88, 2); +x_103 = lean_ctor_get(x_88, 3); +x_104 = lean_ctor_get(x_88, 4); +x_105 = lean_ctor_get(x_88, 5); +x_106 = lean_ctor_get(x_88, 6); +x_107 = lean_ctor_get(x_88, 7); +x_108 = lean_ctor_get(x_88, 8); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_88); +x_109 = l_Std_PersistentArray_push___rarg(x_101, x_86); +x_110 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_110, 0, x_100); +lean_ctor_set(x_110, 1, x_109); +lean_ctor_set(x_110, 2, x_102); +lean_ctor_set(x_110, 3, x_103); +lean_ctor_set(x_110, 4, x_104); +lean_ctor_set(x_110, 5, x_105); +lean_ctor_set(x_110, 6, x_106); +lean_ctor_set(x_110, 7, x_107); +lean_ctor_set(x_110, 8, x_108); +x_111 = lean_st_ref_set(x_6, x_110, x_89); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_113 = x_111; +} else { + lean_dec_ref(x_111); + x_113 = lean_box(0); +} +x_114 = lean_box(0); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_113; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_112); +return x_115; +} +} +else +{ +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; +x_116 = lean_ctor_get(x_15, 0); +lean_inc(x_116); +lean_dec(x_15); +x_117 = lean_ctor_get(x_5, 0); +x_118 = lean_ctor_get(x_5, 1); +x_119 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_122 = lean_unsigned_to_nat(0u); +x_123 = l_Lean_FileMap_toPosition(x_118, x_122); +x_124 = l_Lean_FileMap_toPosition(x_118, x_116); +lean_dec(x_116); +x_125 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_125, 0, x_124); +x_126 = l_Lean_Elab_Command_getScope___rarg(x_6, x_121); +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +x_129 = lean_ctor_get(x_127, 2); +lean_inc(x_129); +lean_dec(x_127); +x_130 = l_Lean_Elab_Command_getScope___rarg(x_6, x_128); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = lean_ctor_get(x_131, 3); +lean_inc(x_133); +lean_dec(x_131); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_129); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_120); +x_136 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +lean_inc(x_117); +x_137 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_137, 0, x_117); +lean_ctor_set(x_137, 1, x_123); +lean_ctor_set(x_137, 2, x_125); +lean_ctor_set(x_137, 3, x_136); +lean_ctor_set(x_137, 4, x_135); +lean_ctor_set_uint8(x_137, sizeof(void*)*5, x_3); +x_138 = lean_st_ref_take(x_6, x_132); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = lean_ctor_get(x_139, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_142); +x_143 = lean_ctor_get(x_139, 2); +lean_inc(x_143); +x_144 = lean_ctor_get(x_139, 3); +lean_inc(x_144); +x_145 = lean_ctor_get(x_139, 4); +lean_inc(x_145); +x_146 = lean_ctor_get(x_139, 5); +lean_inc(x_146); +x_147 = lean_ctor_get(x_139, 6); +lean_inc(x_147); +x_148 = lean_ctor_get(x_139, 7); +lean_inc(x_148); +x_149 = lean_ctor_get(x_139, 8); +lean_inc(x_149); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + lean_ctor_release(x_139, 2); + lean_ctor_release(x_139, 3); + lean_ctor_release(x_139, 4); + lean_ctor_release(x_139, 5); + lean_ctor_release(x_139, 6); + lean_ctor_release(x_139, 7); + lean_ctor_release(x_139, 8); + x_150 = x_139; +} else { + lean_dec_ref(x_139); + x_150 = lean_box(0); +} +x_151 = l_Std_PersistentArray_push___rarg(x_142, x_137); +if (lean_is_scalar(x_150)) { + x_152 = lean_alloc_ctor(0, 9, 0); +} else { + x_152 = x_150; +} +lean_ctor_set(x_152, 0, x_141); +lean_ctor_set(x_152, 1, x_151); +lean_ctor_set(x_152, 2, x_143); +lean_ctor_set(x_152, 3, x_144); +lean_ctor_set(x_152, 4, x_145); +lean_ctor_set(x_152, 5, x_146); +lean_ctor_set(x_152, 6, x_147); +lean_ctor_set(x_152, 7, x_148); +lean_ctor_set(x_152, 8, x_149); +x_153 = lean_st_ref_set(x_6, x_152, x_140); +x_154 = lean_ctor_get(x_153, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_155 = x_153; +} else { + lean_dec_ref(x_153); + x_155 = lean_box(0); +} +x_156 = lean_box(0); +if (lean_is_scalar(x_155)) { + x_157 = lean_alloc_ctor(0, 2, 0); +} else { + x_157 = x_155; +} +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_154); +return x_157; +} +} +} +else +{ +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_158; +x_158 = !lean_is_exclusive(x_14); +if (x_158 == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; +x_159 = lean_ctor_get(x_14, 0); +x_160 = lean_ctor_get(x_5, 0); +x_161 = lean_ctor_get(x_5, 1); +x_162 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +lean_dec(x_162); +x_165 = l_Lean_FileMap_toPosition(x_161, x_159); +lean_dec(x_159); +lean_inc(x_165); +lean_ctor_set(x_14, 0, x_165); +x_166 = l_Lean_Elab_Command_getScope___rarg(x_6, x_164); +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_169 = lean_ctor_get(x_167, 2); +lean_inc(x_169); +lean_dec(x_167); +x_170 = l_Lean_Elab_Command_getScope___rarg(x_6, x_168); +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +x_173 = lean_ctor_get(x_171, 3); +lean_inc(x_173); +lean_dec(x_171); +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_169); +lean_ctor_set(x_174, 1, x_173); +x_175 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_163); +x_176 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +lean_inc(x_160); +x_177 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_177, 0, x_160); +lean_ctor_set(x_177, 1, x_165); +lean_ctor_set(x_177, 2, x_14); +lean_ctor_set(x_177, 3, x_176); +lean_ctor_set(x_177, 4, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*5, x_3); +x_178 = lean_st_ref_take(x_6, x_172); +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +lean_dec(x_178); +x_181 = !lean_is_exclusive(x_179); +if (x_181 == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; +x_182 = lean_ctor_get(x_179, 1); +x_183 = l_Std_PersistentArray_push___rarg(x_182, x_177); +lean_ctor_set(x_179, 1, x_183); +x_184 = lean_st_ref_set(x_6, x_179, x_180); +x_185 = !lean_is_exclusive(x_184); +if (x_185 == 0) +{ +lean_object* x_186; lean_object* x_187; +x_186 = lean_ctor_get(x_184, 0); +lean_dec(x_186); +x_187 = lean_box(0); +lean_ctor_set(x_184, 0, x_187); +return x_184; +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_188 = lean_ctor_get(x_184, 1); +lean_inc(x_188); +lean_dec(x_184); +x_189 = lean_box(0); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_188); +return x_190; +} +} +else +{ +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; +x_191 = lean_ctor_get(x_179, 0); +x_192 = lean_ctor_get(x_179, 1); +x_193 = lean_ctor_get(x_179, 2); +x_194 = lean_ctor_get(x_179, 3); +x_195 = lean_ctor_get(x_179, 4); +x_196 = lean_ctor_get(x_179, 5); +x_197 = lean_ctor_get(x_179, 6); +x_198 = lean_ctor_get(x_179, 7); +x_199 = lean_ctor_get(x_179, 8); +lean_inc(x_199); +lean_inc(x_198); +lean_inc(x_197); +lean_inc(x_196); +lean_inc(x_195); +lean_inc(x_194); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_dec(x_179); +x_200 = l_Std_PersistentArray_push___rarg(x_192, x_177); +x_201 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_201, 0, x_191); +lean_ctor_set(x_201, 1, x_200); +lean_ctor_set(x_201, 2, x_193); +lean_ctor_set(x_201, 3, x_194); +lean_ctor_set(x_201, 4, x_195); +lean_ctor_set(x_201, 5, x_196); +lean_ctor_set(x_201, 6, x_197); +lean_ctor_set(x_201, 7, x_198); +lean_ctor_set(x_201, 8, x_199); +x_202 = lean_st_ref_set(x_6, x_201, x_180); +x_203 = lean_ctor_get(x_202, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_202)) { + lean_ctor_release(x_202, 0); + lean_ctor_release(x_202, 1); + x_204 = x_202; +} else { + lean_dec_ref(x_202); + x_204 = lean_box(0); +} +x_205 = lean_box(0); +if (lean_is_scalar(x_204)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_204; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_203); +return x_206; +} +} +else +{ +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; +x_207 = lean_ctor_get(x_14, 0); +lean_inc(x_207); +lean_dec(x_14); +x_208 = lean_ctor_get(x_5, 0); +x_209 = lean_ctor_get(x_5, 1); +x_210 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec(x_210); +x_213 = l_Lean_FileMap_toPosition(x_209, x_207); +lean_dec(x_207); +lean_inc(x_213); +x_214 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_214, 0, x_213); +x_215 = l_Lean_Elab_Command_getScope___rarg(x_6, x_212); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_ctor_get(x_216, 2); +lean_inc(x_218); +lean_dec(x_216); +x_219 = l_Lean_Elab_Command_getScope___rarg(x_6, x_217); +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_219, 1); +lean_inc(x_221); +lean_dec(x_219); +x_222 = lean_ctor_get(x_220, 3); +lean_inc(x_222); +lean_dec(x_220); +x_223 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_223, 0, x_218); +lean_ctor_set(x_223, 1, x_222); +x_224 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_211); +x_225 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +lean_inc(x_208); +x_226 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_226, 0, x_208); +lean_ctor_set(x_226, 1, x_213); +lean_ctor_set(x_226, 2, x_214); +lean_ctor_set(x_226, 3, x_225); +lean_ctor_set(x_226, 4, x_224); +lean_ctor_set_uint8(x_226, sizeof(void*)*5, x_3); +x_227 = lean_st_ref_take(x_6, x_221); +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); +lean_inc(x_229); +lean_dec(x_227); +x_230 = lean_ctor_get(x_228, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_228, 1); +lean_inc(x_231); +x_232 = lean_ctor_get(x_228, 2); +lean_inc(x_232); +x_233 = lean_ctor_get(x_228, 3); +lean_inc(x_233); +x_234 = lean_ctor_get(x_228, 4); +lean_inc(x_234); +x_235 = lean_ctor_get(x_228, 5); +lean_inc(x_235); +x_236 = lean_ctor_get(x_228, 6); +lean_inc(x_236); +x_237 = lean_ctor_get(x_228, 7); +lean_inc(x_237); +x_238 = lean_ctor_get(x_228, 8); +lean_inc(x_238); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + lean_ctor_release(x_228, 2); + lean_ctor_release(x_228, 3); + lean_ctor_release(x_228, 4); + lean_ctor_release(x_228, 5); + lean_ctor_release(x_228, 6); + lean_ctor_release(x_228, 7); + lean_ctor_release(x_228, 8); + x_239 = x_228; +} else { + lean_dec_ref(x_228); + x_239 = lean_box(0); +} +x_240 = l_Std_PersistentArray_push___rarg(x_231, x_226); +if (lean_is_scalar(x_239)) { + x_241 = lean_alloc_ctor(0, 9, 0); +} else { + x_241 = x_239; +} +lean_ctor_set(x_241, 0, x_230); +lean_ctor_set(x_241, 1, x_240); +lean_ctor_set(x_241, 2, x_232); +lean_ctor_set(x_241, 3, x_233); +lean_ctor_set(x_241, 4, x_234); +lean_ctor_set(x_241, 5, x_235); +lean_ctor_set(x_241, 6, x_236); +lean_ctor_set(x_241, 7, x_237); +lean_ctor_set(x_241, 8, x_238); +x_242 = lean_st_ref_set(x_6, x_241, x_229); +x_243 = lean_ctor_get(x_242, 1); +lean_inc(x_243); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_244 = x_242; +} else { + lean_dec_ref(x_242); + x_244 = lean_box(0); +} +x_245 = lean_box(0); +if (lean_is_scalar(x_244)) { + x_246 = lean_alloc_ctor(0, 2, 0); +} else { + x_246 = x_244; +} +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_243); +return x_246; +} +} +else +{ +lean_object* x_247; uint8_t x_248; +x_247 = lean_ctor_get(x_14, 0); +lean_inc(x_247); +lean_dec(x_14); +x_248 = !lean_is_exclusive(x_15); +if (x_248 == 0) +{ +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; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; +x_249 = lean_ctor_get(x_15, 0); +x_250 = lean_ctor_get(x_5, 0); +x_251 = lean_ctor_get(x_5, 1); +x_252 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); +x_253 = lean_ctor_get(x_252, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_252, 1); +lean_inc(x_254); +lean_dec(x_252); +x_255 = l_Lean_FileMap_toPosition(x_251, x_247); +lean_dec(x_247); +x_256 = l_Lean_FileMap_toPosition(x_251, x_249); +lean_dec(x_249); +lean_ctor_set(x_15, 0, x_256); +x_257 = l_Lean_Elab_Command_getScope___rarg(x_6, x_254); +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); +x_260 = lean_ctor_get(x_258, 2); +lean_inc(x_260); +lean_dec(x_258); +x_261 = l_Lean_Elab_Command_getScope___rarg(x_6, x_259); +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec(x_261); +x_264 = lean_ctor_get(x_262, 3); +lean_inc(x_264); +lean_dec(x_262); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_260); +lean_ctor_set(x_265, 1, x_264); +x_266 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_253); +x_267 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +lean_inc(x_250); +x_268 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_268, 0, x_250); +lean_ctor_set(x_268, 1, x_255); +lean_ctor_set(x_268, 2, x_15); +lean_ctor_set(x_268, 3, x_267); +lean_ctor_set(x_268, 4, x_266); +lean_ctor_set_uint8(x_268, sizeof(void*)*5, x_3); +x_269 = lean_st_ref_take(x_6, x_263); +x_270 = lean_ctor_get(x_269, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_271); +lean_dec(x_269); +x_272 = !lean_is_exclusive(x_270); +if (x_272 == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_273 = lean_ctor_get(x_270, 1); +x_274 = l_Std_PersistentArray_push___rarg(x_273, x_268); +lean_ctor_set(x_270, 1, x_274); +x_275 = lean_st_ref_set(x_6, x_270, x_271); +x_276 = !lean_is_exclusive(x_275); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; +x_277 = lean_ctor_get(x_275, 0); +lean_dec(x_277); +x_278 = lean_box(0); +lean_ctor_set(x_275, 0, x_278); +return x_275; +} +else +{ +lean_object* x_279; lean_object* x_280; lean_object* x_281; +x_279 = lean_ctor_get(x_275, 1); +lean_inc(x_279); +lean_dec(x_275); +x_280 = lean_box(0); +x_281 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_281, 0, x_280); +lean_ctor_set(x_281, 1, x_279); +return x_281; +} +} +else +{ +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; +x_282 = lean_ctor_get(x_270, 0); +x_283 = lean_ctor_get(x_270, 1); +x_284 = lean_ctor_get(x_270, 2); +x_285 = lean_ctor_get(x_270, 3); +x_286 = lean_ctor_get(x_270, 4); +x_287 = lean_ctor_get(x_270, 5); +x_288 = lean_ctor_get(x_270, 6); +x_289 = lean_ctor_get(x_270, 7); +x_290 = lean_ctor_get(x_270, 8); +lean_inc(x_290); +lean_inc(x_289); +lean_inc(x_288); +lean_inc(x_287); +lean_inc(x_286); +lean_inc(x_285); +lean_inc(x_284); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_270); +x_291 = l_Std_PersistentArray_push___rarg(x_283, x_268); +x_292 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_292, 0, x_282); +lean_ctor_set(x_292, 1, x_291); +lean_ctor_set(x_292, 2, x_284); +lean_ctor_set(x_292, 3, x_285); +lean_ctor_set(x_292, 4, x_286); +lean_ctor_set(x_292, 5, x_287); +lean_ctor_set(x_292, 6, x_288); +lean_ctor_set(x_292, 7, x_289); +lean_ctor_set(x_292, 8, x_290); +x_293 = lean_st_ref_set(x_6, x_292, x_271); +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; +} else { + lean_dec_ref(x_293); + x_295 = lean_box(0); +} +x_296 = lean_box(0); +if (lean_is_scalar(x_295)) { + x_297 = lean_alloc_ctor(0, 2, 0); +} else { + x_297 = x_295; +} +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_294); +return x_297; +} +} +else +{ +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; +x_298 = lean_ctor_get(x_15, 0); +lean_inc(x_298); +lean_dec(x_15); +x_299 = lean_ctor_get(x_5, 0); +x_300 = lean_ctor_get(x_5, 1); +x_301 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); +x_302 = lean_ctor_get(x_301, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_301, 1); +lean_inc(x_303); +lean_dec(x_301); +x_304 = l_Lean_FileMap_toPosition(x_300, x_247); +lean_dec(x_247); +x_305 = l_Lean_FileMap_toPosition(x_300, x_298); +lean_dec(x_298); +x_306 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_306, 0, x_305); +x_307 = l_Lean_Elab_Command_getScope___rarg(x_6, x_303); +x_308 = lean_ctor_get(x_307, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_307, 1); +lean_inc(x_309); +lean_dec(x_307); +x_310 = lean_ctor_get(x_308, 2); +lean_inc(x_310); +lean_dec(x_308); +x_311 = l_Lean_Elab_Command_getScope___rarg(x_6, x_309); +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); +lean_inc(x_313); +lean_dec(x_311); +x_314 = lean_ctor_get(x_312, 3); +lean_inc(x_314); +lean_dec(x_312); +x_315 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_315, 0, x_310); +lean_ctor_set(x_315, 1, x_314); +x_316 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_302); +x_317 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +lean_inc(x_299); +x_318 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_318, 0, x_299); +lean_ctor_set(x_318, 1, x_304); +lean_ctor_set(x_318, 2, x_306); +lean_ctor_set(x_318, 3, x_317); +lean_ctor_set(x_318, 4, x_316); +lean_ctor_set_uint8(x_318, sizeof(void*)*5, x_3); +x_319 = lean_st_ref_take(x_6, x_313); +x_320 = lean_ctor_get(x_319, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_319, 1); +lean_inc(x_321); +lean_dec(x_319); +x_322 = lean_ctor_get(x_320, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_320, 1); +lean_inc(x_323); +x_324 = lean_ctor_get(x_320, 2); +lean_inc(x_324); +x_325 = lean_ctor_get(x_320, 3); +lean_inc(x_325); +x_326 = lean_ctor_get(x_320, 4); +lean_inc(x_326); +x_327 = lean_ctor_get(x_320, 5); +lean_inc(x_327); +x_328 = lean_ctor_get(x_320, 6); +lean_inc(x_328); +x_329 = lean_ctor_get(x_320, 7); +lean_inc(x_329); +x_330 = lean_ctor_get(x_320, 8); +lean_inc(x_330); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + lean_ctor_release(x_320, 2); + lean_ctor_release(x_320, 3); + lean_ctor_release(x_320, 4); + lean_ctor_release(x_320, 5); + lean_ctor_release(x_320, 6); + lean_ctor_release(x_320, 7); + lean_ctor_release(x_320, 8); + x_331 = x_320; +} else { + lean_dec_ref(x_320); + x_331 = lean_box(0); +} +x_332 = l_Std_PersistentArray_push___rarg(x_323, x_318); +if (lean_is_scalar(x_331)) { + x_333 = lean_alloc_ctor(0, 9, 0); +} else { + x_333 = x_331; +} +lean_ctor_set(x_333, 0, x_322); +lean_ctor_set(x_333, 1, x_332); +lean_ctor_set(x_333, 2, x_324); +lean_ctor_set(x_333, 3, x_325); +lean_ctor_set(x_333, 4, x_326); +lean_ctor_set(x_333, 5, x_327); +lean_ctor_set(x_333, 6, x_328); +lean_ctor_set(x_333, 7, x_329); +lean_ctor_set(x_333, 8, x_330); +x_334 = lean_st_ref_set(x_6, x_333, x_321); +x_335 = lean_ctor_get(x_334, 1); +lean_inc(x_335); +if (lean_is_exclusive(x_334)) { + lean_ctor_release(x_334, 0); + lean_ctor_release(x_334, 1); + x_336 = x_334; +} else { + lean_dec_ref(x_334); + x_336 = lean_box(0); +} +x_337 = lean_box(0); +if (lean_is_scalar(x_336)) { + x_338 = lean_alloc_ctor(0, 2, 0); +} else { + x_338 = x_336; +} +lean_ctor_set(x_338, 0, x_337); +lean_ctor_set(x_338, 1, x_335); +return x_338; +} +} +} +} +} +} +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(lean_object* x_1, uint8_t 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; +x_7 = l_Lean_Elab_Command_getRef(x_4, x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(x_8, x_1, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_8); +return x_10; +} +} +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_6 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_6, 0, x_1); +x_7 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; +x_8 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +x_9 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; +x_10 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = 2; +x_12 = l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(x_10, x_11, x_2, x_3, x_4, x_5); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_st_ref_take(x_2, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set(x_7, 0, x_11); +x_12 = lean_st_ref_set(x_2, x_7, x_8); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +x_15 = lean_box(0); +lean_ctor_set(x_12, 0, x_15); +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +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; lean_object* x_26; lean_object* x_27; +x_19 = lean_ctor_get(x_7, 0); +x_20 = lean_ctor_get(x_7, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_7); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_19); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = lean_st_ref_set(x_2, x_22, x_8); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_25 = x_23; +} else { + lean_dec_ref(x_23); + x_25 = lean_box(0); +} +x_26 = lean_box(0); +if (lean_is_scalar(x_25)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_25; +} +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +lean_dec(x_5); +x_12 = lean_array_uget(x_2, x_4); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Lean_Syntax_getArg(x_12, x_20); +x_22 = l_Lean_Syntax_getId(x_21); +lean_dec(x_21); +x_23 = lean_unsigned_to_nat(2u); +x_24 = l_Lean_Syntax_getArg(x_12, x_23); +x_25 = l_Lean_Syntax_getId(x_24); +lean_dec(x_24); +x_26 = l_Lean_Name_append(x_1, x_22); +x_27 = lean_st_ref_get(x_8, x_9); +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_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec(x_28); +x_31 = l_Lean_Environment_contains(x_30, x_26); +if (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_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_dec(x_25); +x_32 = l_Lean_Elab_Command_getRef(x_7, x_8, x_29); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_Lean_replaceRef(x_12, x_33); +lean_dec(x_33); +lean_dec(x_12); +x_36 = lean_ctor_get(x_7, 0); +x_37 = lean_ctor_get(x_7, 1); +x_38 = lean_ctor_get(x_7, 2); +x_39 = lean_ctor_get(x_7, 3); +x_40 = lean_ctor_get(x_7, 4); +x_41 = lean_ctor_get(x_7, 5); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +x_42 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_42, 0, x_36); +lean_ctor_set(x_42, 1, x_37); +lean_ctor_set(x_42, 2, x_38); +lean_ctor_set(x_42, 3, x_39); +lean_ctor_set(x_42, 4, x_40); +lean_ctor_set(x_42, 5, x_41); +lean_ctor_set(x_42, 6, x_35); +x_43 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_26, x_6, x_42, x_8, x_34); +lean_dec(x_42); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; +x_13 = x_45; +x_14 = x_44; +goto block_19; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_12); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_25); +lean_ctor_set(x_46, 1, x_26); +x_47 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_46, x_6, x_7, x_8, x_29); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; +x_13 = x_49; +x_14 = x_48; +goto block_19; +} +block_19: +{ +lean_object* x_15; size_t x_16; size_t x_17; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = 1; +x_17 = x_4 + x_16; +x_4 = x_17; +x_5 = x_15; +x_9 = x_14; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__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; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_Syntax_getId(x_7); +lean_dec(x_7); +x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; 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; uint8_t x_20; +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_unsigned_to_nat(2u); +x_13 = l_Lean_Syntax_getArg(x_1, x_12); +x_14 = l_Lean_Syntax_getSepArgs(x_13); +lean_dec(x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +x_18 = lean_box(0); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); +lean_dec(x_14); +lean_dec(x_10); +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_18); +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_18); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +return x_9; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_9); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, 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; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_12 = lean_array_uget(x_2, x_4); +x_13 = l_Lean_Syntax_getId(x_12); +lean_inc(x_13); +x_14 = l_Lean_Name_append(x_1, x_13); +x_15 = lean_st_ref_get(x_8, x_9); +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_Environment_contains(x_18, x_14); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; +lean_dec(x_13); +x_20 = l_Lean_Elab_Command_getRef(x_7, x_8, x_17); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_replaceRef(x_12, x_21); +lean_dec(x_21); +lean_dec(x_12); +x_24 = lean_ctor_get(x_7, 0); +x_25 = lean_ctor_get(x_7, 1); +x_26 = lean_ctor_get(x_7, 2); +x_27 = lean_ctor_get(x_7, 3); +x_28 = lean_ctor_get(x_7, 4); +x_29 = lean_ctor_get(x_7, 5); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +x_30 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set(x_30, 1, x_25); +lean_ctor_set(x_30, 2, x_26); +lean_ctor_set(x_30, 3, x_27); +lean_ctor_set(x_30, 4, x_28); +lean_ctor_set(x_30, 5, x_29); +lean_ctor_set(x_30, 6, x_23); +x_31 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_14, x_6, x_30, x_8, x_22); +lean_dec(x_30); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = 1; +x_34 = x_4 + x_33; +x_4 = x_34; +x_9 = x_32; +goto _start; +} +else +{ +lean_object* x_36; size_t x_37; size_t x_38; +lean_dec(x_14); +lean_dec(x_12); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_13); +lean_ctor_set(x_36, 1, x_5); +x_37 = 1; +x_38 = x_4 + x_37; +x_4 = x_38; +x_5 = x_36; +x_9 = x_17; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_Syntax_getId(x_7); +lean_dec(x_7); +x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_9) == 0) +{ +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; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +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_box(0); +x_13 = lean_unsigned_to_nat(2u); +x_14 = l_Lean_Syntax_getArg(x_1, x_13); +x_15 = l_Lean_Syntax_getArgs(x_14); +lean_dec(x_14); +x_16 = lean_array_get_size(x_15); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(x_10, x_15, x_17, x_18, x_12, x_2, x_3, x_4, x_11); +lean_dec(x_15); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_20); +x_23 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_22, x_2, x_3, x_4, x_21); +return x_23; +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +return x_9; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_9); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; +if (x_10 == 0) +{ +lean_object* x_11; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; 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; +lean_dec(x_5); +x_12 = lean_array_uget(x_2, x_4); +x_20 = l_Lean_Syntax_getId(x_12); +lean_inc(x_20); +x_21 = l_Lean_Name_append(x_1, x_20); +x_22 = lean_st_ref_get(x_8, x_9); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Environment_contains(x_25, x_21); +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; 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_dec(x_20); +x_27 = l_Lean_Elab_Command_getRef(x_7, x_8, x_24); +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 = l_Lean_replaceRef(x_12, x_28); +lean_dec(x_28); +lean_dec(x_12); +x_31 = lean_ctor_get(x_7, 0); +x_32 = lean_ctor_get(x_7, 1); +x_33 = lean_ctor_get(x_7, 2); +x_34 = lean_ctor_get(x_7, 3); +x_35 = lean_ctor_get(x_7, 4); +x_36 = lean_ctor_get(x_7, 5); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +x_37 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_37, 0, x_31); +lean_ctor_set(x_37, 1, x_32); +lean_ctor_set(x_37, 2, x_33); +lean_ctor_set(x_37, 3, x_34); +lean_ctor_set(x_37, 4, x_35); +lean_ctor_set(x_37, 5, x_36); +lean_ctor_set(x_37, 6, x_30); +x_38 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_21, x_6, x_37, x_8, x_29); +lean_dec(x_37); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; +x_13 = x_40; +x_14 = x_39; +goto block_19; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_12); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_20); +lean_ctor_set(x_41, 1, x_21); +x_42 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_41, x_6, x_7, x_8, x_24); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; +x_13 = x_44; +x_14 = x_43; +goto block_19; +} +block_19: +{ +lean_object* x_15; size_t x_16; size_t x_17; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = 1; +x_17 = x_4 + x_16; +x_4 = x_17; +x_5 = x_15; +x_9 = x_14; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_Syntax_getId(x_7); +lean_dec(x_7); +x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; 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; uint8_t x_20; +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_unsigned_to_nat(2u); +x_13 = l_Lean_Syntax_getArg(x_1, x_12); +x_14 = l_Lean_Syntax_getArgs(x_13); +lean_dec(x_13); +x_15 = lean_array_get_size(x_14); +x_16 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_17 = 0; +x_18 = lean_box(0); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); +lean_dec(x_14); +lean_dec(x_10); +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_18); +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_18); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) +{ +return x_9; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_9); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_dec(x_5); +x_12 = lean_array_uget(x_2, x_4); +x_13 = lean_st_ref_take(x_8, x_9); +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_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_1); +x_18 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_12, x_17, x_1); +lean_ctor_set(x_14, 0, x_18); +x_19 = lean_st_ref_set(x_8, x_14, x_15); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = 1; +x_22 = x_4 + x_21; +x_23 = lean_box(0); +x_4 = x_22; +x_5 = x_23; +x_9 = x_20; +goto _start; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; lean_object* x_40; +x_25 = lean_ctor_get(x_14, 0); +x_26 = lean_ctor_get(x_14, 1); +x_27 = lean_ctor_get(x_14, 2); +x_28 = lean_ctor_get(x_14, 3); +x_29 = lean_ctor_get(x_14, 4); +x_30 = lean_ctor_get(x_14, 5); +x_31 = lean_ctor_get(x_14, 6); +x_32 = lean_ctor_get(x_14, 7); +x_33 = lean_ctor_get(x_14, 8); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_14); +lean_inc(x_1); +x_34 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_12, x_25, x_1); +x_35 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_26); +lean_ctor_set(x_35, 2, x_27); +lean_ctor_set(x_35, 3, x_28); +lean_ctor_set(x_35, 4, x_29); +lean_ctor_set(x_35, 5, x_30); +lean_ctor_set(x_35, 6, x_31); +lean_ctor_set(x_35, 7, x_32); +lean_ctor_set(x_35, 8, x_33); +x_36 = lean_st_ref_set(x_8, x_35, x_15); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = 1; +x_39 = x_4 + x_38; +x_40 = lean_box(0); +x_4 = x_39; +x_5 = x_40; +x_9 = x_37; +goto _start; +} +} +} +} +lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_6 = l_Lean_scopedEnvExtensionsRef; +x_7 = lean_st_ref_get(x_6, x_5); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_array_get_size(x_8); +x_11 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_12 = 0; +x_13 = lean_box(0); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(x_1, x_8, x_11, x_12, x_13, x_2, x_3, x_4, x_9); +lean_dec(x_8); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_13); +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); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(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) { +_start: +{ +uint8_t x_9; +x_9 = x_3 < x_2; +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_11 = lean_array_uget(x_1, x_3); +x_12 = l_Lean_Syntax_getId(x_11); +lean_dec(x_11); +x_13 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_12, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_13) == 0) +{ +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; size_t x_22; size_t x_23; lean_object* x_24; +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); +lean_inc(x_14); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +x_18 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_17, x_5, x_6, x_7, x_15); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(x_14, x_5, x_6, x_7, x_19); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = 1; +x_23 = x_3 + x_22; +x_24 = lean_box(0); +x_3 = x_23; +x_4 = x_24; +x_8 = x_21; +goto _start; +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_13); +if (x_26 == 0) +{ +return x_13; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_13, 0); +x_28 = lean_ctor_get(x_13, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_13); +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; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_Syntax_getArgs(x_7); +lean_dec(x_7); +x_9 = lean_array_get_size(x_8); +x_10 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_11 = 0; +x_12 = lean_box(0); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(x_8, x_10, x_11, x_12, x_2, x_3, x_4, x_5); +lean_dec(x_8); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +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_12); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +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_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_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(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; +x_6 = lean_st_ref_get(x_2, x_5); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +lean_ctor_set(x_6, 0, x_9); +return x_6; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_6); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1___boxed), 5, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("openSimple"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("openOnly"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("openHiding"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__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_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; lean_object* x_20; uint8_t x_21; lean_object* x_22; uint8_t x_23; +x_10 = l_Lean_Elab_Command_getScope___rarg(x_3, x_4); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 3); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_Elab_Command_getScope___rarg(x_3, x_12); +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, 2); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1; +lean_inc(x_1); +x_19 = l_Lean_Syntax_getKind(x_1); +x_20 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3; +x_21 = lean_name_eq(x_19, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_13); +lean_ctor_set(x_22, 1, x_17); +if (x_21 == 0) +{ +uint8_t x_106; +x_106 = 0; +x_23 = x_106; +goto block_105; +} +else +{ +uint8_t x_107; +x_107 = 1; +x_23 = x_107; +goto block_105; +} +block_9: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +block_105: +{ +lean_object* x_24; +x_24 = lean_st_mk_ref(x_22, x_16); +if (x_23 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5; +x_28 = lean_name_eq(x_19, x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7; +x_30 = lean_name_eq(x_19, x_29); +lean_dec(x_19); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(x_1, x_25, x_2, x_3, x_26); +lean_dec(x_1); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +lean_inc(x_25); +x_34 = lean_apply_5(x_18, x_32, x_25, x_2, x_3, x_33); +if (lean_obj_tag(x_34) == 0) +{ +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_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 = lean_st_ref_get(x_25, x_36); +lean_dec(x_25); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_35); +lean_ctor_set(x_40, 1, x_38); +x_5 = x_40; +x_6 = x_39; +goto block_9; +} +else +{ +uint8_t x_41; +lean_dec(x_25); +x_41 = !lean_is_exclusive(x_34); +if (x_41 == 0) +{ +return x_34; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_34, 0); +x_43 = lean_ctor_get(x_34, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_34); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_25); +lean_dec(x_3); +lean_dec(x_2); +x_45 = !lean_is_exclusive(x_31); +if (x_45 == 0) +{ +return x_31; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_31, 0); +x_47 = lean_ctor_get(x_31, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_31); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +lean_object* x_49; +x_49 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(x_1, x_25, x_2, x_3, x_26); +lean_dec(x_1); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +lean_inc(x_25); +x_52 = lean_apply_5(x_18, x_50, x_25, x_2, x_3, x_51); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_st_ref_get(x_25, x_54); +lean_dec(x_25); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_53); +lean_ctor_set(x_58, 1, x_56); +x_5 = x_58; +x_6 = x_57; +goto block_9; +} +else +{ +uint8_t x_59; +lean_dec(x_25); +x_59 = !lean_is_exclusive(x_52); +if (x_59 == 0) +{ +return x_52; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_52, 0); +x_61 = lean_ctor_get(x_52, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_52); +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_25); +lean_dec(x_3); +lean_dec(x_2); +x_63 = !lean_is_exclusive(x_49); +if (x_63 == 0) +{ +return x_49; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_49, 0); +x_65 = lean_ctor_get(x_49, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_49); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +} +else +{ +lean_object* x_67; +lean_dec(x_19); +x_67 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(x_1, x_25, x_2, x_3, x_26); +lean_dec(x_1); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_25); +x_70 = lean_apply_5(x_18, x_68, x_25, x_2, x_3, x_69); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_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 = lean_st_ref_get(x_25, x_72); +lean_dec(x_25); +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 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_71); +lean_ctor_set(x_76, 1, x_74); +x_5 = x_76; +x_6 = x_75; +goto block_9; +} +else +{ +uint8_t x_77; +lean_dec(x_25); +x_77 = !lean_is_exclusive(x_70); +if (x_77 == 0) +{ +return x_70; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_70, 0); +x_79 = lean_ctor_get(x_70, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_70); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_25); +lean_dec(x_3); +lean_dec(x_2); +x_81 = !lean_is_exclusive(x_67); +if (x_81 == 0) +{ +return x_67; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_67, 0); +x_83 = lean_ctor_get(x_67, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_67); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_19); +x_85 = lean_ctor_get(x_24, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_24, 1); +lean_inc(x_86); +lean_dec(x_24); +x_87 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(x_1, x_85, x_2, x_3, x_86); +lean_dec(x_1); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +lean_inc(x_85); +x_90 = lean_apply_5(x_18, x_88, x_85, x_2, x_3, x_89); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +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_st_ref_get(x_85, x_92); +lean_dec(x_85); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_91); +lean_ctor_set(x_96, 1, x_94); +x_5 = x_96; +x_6 = x_95; +goto block_9; +} +else +{ +uint8_t x_97; +lean_dec(x_85); +x_97 = !lean_is_exclusive(x_90); +if (x_97 == 0) +{ +return x_90; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_90, 0); +x_99 = lean_ctor_get(x_90, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_90); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; +} +} +} +else +{ +uint8_t x_101; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_2); +x_101 = !lean_is_exclusive(x_87); +if (x_101 == 0) +{ +return x_87; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_87, 0); +x_103 = lean_ctor_get(x_87, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_87); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +} +} +} +lean_object* l_Lean_Elab_Command_elabOpen___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; +x_4 = lean_ctor_get(x_2, 3); +lean_dec(x_4); +lean_ctor_set(x_2, 3, x_1); +return x_2; +} +else +{ +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; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +x_7 = lean_ctor_get(x_2, 2); +x_8 = lean_ctor_get(x_2, 4); +x_9 = lean_ctor_get(x_2, 5); +x_10 = lean_ctor_get(x_2, 6); +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_dec(x_2); +x_11 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_6); +lean_ctor_set(x_11, 2, x_7); +lean_ctor_set(x_11, 3, x_1); +lean_ctor_set(x_11, 4, x_8); +lean_ctor_set(x_11, 5, x_9); +lean_ctor_set(x_11, 6, x_10); +return x_11; +} +} +} +lean_object* l_Lean_Elab_Command_elabOpen(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; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +lean_inc(x_3); +lean_inc(x_2); +x_7 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1(x_6, x_2, x_3, x_4); +if (lean_obj_tag(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_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabOpen___lambda__1), 2, 1); +lean_closure_set(x_10, 0, x_8); +x_11 = l_Lean_Elab_Command_modifyScope(x_10, x_2, x_3, x_9); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_3); +lean_dec(x_2); +x_12 = !lean_is_exclusive(x_7); +if (x_12 == 0) +{ +return x_7; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_7); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_3); +lean_dec(x_3); +x_9 = l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(x_1, x_2, x_8, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_2); +lean_dec(x_2); +x_8 = l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(x_1, x_7, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_8; +} +} +lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___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: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11___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: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13___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: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16___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: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +return x_12; +} +} +lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___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: +{ +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___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) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabOpen___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_Command_elabOpen(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("open"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabOpen"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabOpen___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__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; +x_5 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +x_11 = l_Lean_addMacroScope(x_6, x_1, x_10); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +x_14 = l_Lean_addMacroScope(x_6, x_1, x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = x_2 < x_1; +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +x_8 = x_3; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +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; +x_10 = lean_array_uget(x_3, x_2); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_array_uset(x_3, x_2, x_11); +x_13 = x_10; +x_14 = lean_alloc_closure((void*)(l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1___boxed), 4, 1); +lean_closure_set(x_14, 0, x_13); +lean_inc(x_5); +lean_inc(x_4); +x_15 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_14, x_4, x_5, x_6); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; +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 = 1; +x_19 = x_2 + x_18; +x_20 = x_16; +x_21 = lean_array_uset(x_12, x_2, x_20); +x_2 = x_19; +x_3 = x_21; +x_6 = x_17; +goto _start; +} +else +{ +uint8_t x_23; +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +x_23 = !lean_is_exclusive(x_15); +if (x_23 == 0) +{ +return x_15; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_15, 0); +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_15); +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; +} +} +} +} +} +lean_object* l_Lean_Elab_Command_elabVariable___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_object* x_10; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabVariable___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__1___boxed), 8, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Command_elabVariable___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: +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_11 = 0; +x_12 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_11, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) +{ +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; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_box(0); +x_16 = lean_array_get_size(x_3); +x_17 = lean_unsigned_to_nat(0u); +lean_inc(x_3); +x_18 = l_Array_toSubarray___rarg(x_3, x_17, x_16); +x_19 = lean_ctor_get(x_1, 6); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_15); +x_21 = lean_array_get_size(x_19); +x_22 = lean_usize_of_nat(x_21); +lean_dec(x_21); +x_23 = 0; +x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_19, x_22, x_23, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = !lean_is_exclusive(x_4); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_4, 7); +lean_dec(x_29); +lean_ctor_set(x_4, 7, x_27); +x_30 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_26); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +lean_inc(x_6); +lean_inc(x_4); +x_32 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +lean_dec(x_3); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; +x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_35, 0, x_2); +lean_closure_set(x_35, 1, x_34); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_36, 0, x_35); +x_37 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +return x_37; +} +else +{ +uint8_t x_38; +lean_dec(x_4); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_32); +if (x_38 == 0) +{ +return x_32; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_32, 0); +x_40 = lean_ctor_get(x_32, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_32); +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; +} +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_42 = lean_ctor_get(x_4, 0); +x_43 = lean_ctor_get(x_4, 1); +x_44 = lean_ctor_get(x_4, 2); +x_45 = lean_ctor_get(x_4, 3); +x_46 = lean_ctor_get(x_4, 4); +x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); +x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); +x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +x_50 = lean_ctor_get(x_4, 5); +x_51 = lean_ctor_get(x_4, 6); +x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_4); +x_53 = lean_alloc_ctor(0, 8, 4); +lean_ctor_set(x_53, 0, x_42); +lean_ctor_set(x_53, 1, x_43); +lean_ctor_set(x_53, 2, x_44); +lean_ctor_set(x_53, 3, x_45); +lean_ctor_set(x_53, 4, x_46); +lean_ctor_set(x_53, 5, x_50); +lean_ctor_set(x_53, 6, x_51); +lean_ctor_set(x_53, 7, x_27); +lean_ctor_set_uint8(x_53, sizeof(void*)*8, x_47); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 1, x_48); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 2, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 3, x_52); +x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_5, x_6, x_7, x_8, x_9, x_26); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +lean_inc(x_6); +lean_inc(x_53); +x_56 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_53, x_5, x_6, x_7, x_8, x_9, x_55); +lean_dec(x_3); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; +x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_59, 0, x_2); +lean_closure_set(x_59, 1, x_58); +x_60 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_60, 0, x_59); +x_61 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_60, x_53, x_5, x_6, x_7, x_8, x_9, x_57); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_53); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_62 = lean_ctor_get(x_56, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_56, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_64 = x_56; +} else { + lean_dec_ref(x_56); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; +} +} +} +else +{ +uint8_t x_66; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_66 = !lean_is_exclusive(x_13); +if (x_66 == 0) +{ +return x_13; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_13, 0); +x_68 = lean_ctor_get(x_13, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_13); +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; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabVariable___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_3, 5); +x_6 = lean_ctor_get(x_3, 6); +x_7 = l_Array_append___rarg(x_5, x_1); +x_8 = l_Array_append___rarg(x_6, x_2); +lean_ctor_set(x_3, 6, x_8); +lean_ctor_set(x_3, 5, x_7); +return x_3; +} +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; lean_object* x_17; lean_object* x_18; +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); +x_13 = lean_ctor_get(x_3, 4); +x_14 = lean_ctor_get(x_3, 5); +x_15 = lean_ctor_get(x_3, 6); +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_16 = l_Array_append___rarg(x_14, x_1); +x_17 = l_Array_append___rarg(x_15, x_2); +x_18 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_18, 0, x_9); +lean_ctor_set(x_18, 1, x_10); +lean_ctor_set(x_18, 2, x_11); +lean_ctor_set(x_18, 3, x_12); +lean_ctor_set(x_18, 4, x_13); +lean_ctor_set(x_18, 5, x_16); +lean_ctor_set(x_18, 6, x_17); +return x_18; +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabVariable___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("variable"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabVariable___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_Command_elabVariable___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabVariable___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabVariable___boxed__const__1() { +_start: +{ +size_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_box_usize(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabVariable(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; +x_5 = l_Lean_Elab_Command_elabVariable___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_7; +} +else +{ +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; +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +lean_dec(x_1); +x_10 = l_Lean_Syntax_getArgs(x_9); +lean_dec(x_9); +x_11 = lean_box(0); +x_12 = l_Lean_Elab_Command_getScope___rarg(x_3, x_4); +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, 5); +lean_inc(x_15); +lean_inc(x_10); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__2___boxed), 10, 2); +lean_closure_set(x_16, 0, x_13); +lean_closure_set(x_16, 1, x_10); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_17, 0, x_15); +lean_closure_set(x_17, 1, x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_18, 0, x_17); +lean_inc(x_2); +x_19 = l_Lean_Elab_Command_liftTermElabM___rarg(x_11, x_18, x_2, x_3, x_14); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; size_t x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_array_get_size(x_10); +x_22 = lean_unsigned_to_nat(0u); +x_23 = lean_nat_dec_lt(x_22, x_21); +x_24 = 0; +if (x_23 == 0) +{ +lean_object* x_43; +lean_dec(x_21); +x_43 = l_Lean_Elab_Command_elabVariable___closed__3; +x_25 = x_43; +goto block_42; +} +else +{ +uint8_t x_44; +x_44 = lean_nat_dec_le(x_21, x_21); +if (x_44 == 0) +{ +lean_object* x_45; +lean_dec(x_21); +x_45 = l_Lean_Elab_Command_elabVariable___closed__3; +x_25 = x_45; +goto block_42; +} +else +{ +size_t x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_usize_of_nat(x_21); +lean_dec(x_21); +x_47 = l_Lean_Elab_Command_elabVariable___closed__3; +x_48 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2(x_10, x_24, x_46, x_47); +x_25 = x_48; +goto block_42; +} +} +block_42: +{ +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; +x_26 = lean_array_get_size(x_25); +x_27 = lean_usize_of_nat(x_26); +lean_dec(x_26); +x_28 = x_25; +x_29 = lean_box_usize(x_27); +x_30 = l_Lean_Elab_Command_elabVariable___boxed__const__1; +x_31 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___boxed), 6, 3); +lean_closure_set(x_31, 0, x_29); +lean_closure_set(x_31, 1, x_30); +lean_closure_set(x_31, 2, x_28); +x_32 = x_31; +lean_inc(x_3); +lean_inc(x_2); +x_33 = lean_apply_3(x_32, x_2, x_3, x_20); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__3___boxed), 3, 2); +lean_closure_set(x_36, 0, x_10); +lean_closure_set(x_36, 1, x_34); +x_37 = l_Lean_Elab_Command_modifyScope(x_36, x_2, x_3, x_35); +lean_dec(x_3); +lean_dec(x_2); +return x_37; +} +else +{ +uint8_t x_38; +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +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; +} +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_19); +if (x_49 == 0) +{ +return x_19; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_19, 0); +x_51 = lean_ctor_get(x_19, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_19); +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; +} +} +} +} +} +lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__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_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_8 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(x_7, x_8, x_3, x_4, x_5, x_6); +return x_9; +} +} +lean_object* l_Lean_Elab_Command_elabVariable___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_Lean_Elab_Command_elabVariable___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Command_elabVariable___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Lean_Elab_Command_elabVariable___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Command_elabVariable___lambda__3(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabVariable"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l_Lean_Elab_Command_elabVariable___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabCheck_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +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_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabCheck_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck_match__1___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" : "); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabCheck___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = 1; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_12 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_11, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +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 = 0; +x_16 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_17 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_15, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_19 = l_Lean_Meta_instantiateMVars(x_13, x_6, x_7, x_8, x_9, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_unsigned_to_nat(1u); +x_23 = l_Lean_Elab_Term_levelMVarToParam(x_20, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_26); +x_27 = l_Lean_Meta_inferType(x_26, x_6, x_7, x_8, x_9, x_25); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +x_31 = l_Lean_Expr_isSyntheticSorry(x_26); +if (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_object* x_39; uint8_t x_40; lean_object* x_41; +lean_free_object(x_27); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_26); +x_33 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__3; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_37, 0, x_29); +x_38 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_33); +x_40 = 0; +x_41 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_39, x_40, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +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_41; +} +else +{ +lean_dec(x_29); +lean_dec(x_26); +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_ctor_set(x_27, 0, x_16); +return x_27; +} +} +else +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_27, 0); +x_43 = lean_ctor_get(x_27, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_27); +x_44 = l_Lean_Expr_isSyntheticSorry(x_26); +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; uint8_t x_53; lean_object* x_54; +x_45 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_45, 0, x_26); +x_46 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__3; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_50, 0, x_42); +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_46); +x_53 = 0; +x_54 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_52, x_53, x_4, x_5, x_6, x_7, x_8, x_9, x_43); +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_54; +} +else +{ +lean_object* x_55; +lean_dec(x_42); +lean_dec(x_26); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_16); +lean_ctor_set(x_55, 1, x_43); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_26); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_56 = !lean_is_exclusive(x_27); +if (x_56 == 0) +{ +return x_27; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_27, 0); +x_58 = lean_ctor_get(x_27, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_27); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_60 = !lean_is_exclusive(x_19); +if (x_60 == 0) +{ +return x_19; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_19, 0); +x_62 = lean_ctor_get(x_19, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_19); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_64 = !lean_is_exclusive(x_17); +if (x_64 == 0) +{ +return x_17; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_17, 0); +x_66 = lean_ctor_get(x_17, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_17); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_68 = !lean_is_exclusive(x_12); +if (x_68 == 0) +{ +return x_12; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_12, 0); +x_70 = lean_ctor_get(x_12, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_12); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabCheck___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) { +_start: +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_12 = 0; +x_13 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_12, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_box(0); +x_17 = lean_array_get_size(x_4); +x_18 = lean_unsigned_to_nat(0u); +lean_inc(x_4); +x_19 = l_Array_toSubarray___rarg(x_4, x_18, x_17); +x_20 = lean_ctor_get(x_1, 6); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_16); +x_22 = lean_array_get_size(x_20); +x_23 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_24 = 0; +x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_20, x_23, x_24, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = !lean_is_exclusive(x_5); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_5, 7); +lean_dec(x_30); +lean_ctor_set(x_5, 7, x_28); +x_31 = l_Lean_Elab_Term_resetMessageLog(x_5, x_6, x_7, x_8, x_9, x_10, x_27); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +lean_inc(x_7); +lean_inc(x_5); +x_33 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); +lean_dec(x_4); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_box(0); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___lambda__1___boxed), 10, 3); +lean_closure_set(x_36, 0, x_2); +lean_closure_set(x_36, 1, x_35); +lean_closure_set(x_36, 2, x_3); +x_37 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_34); +return x_37; +} +else +{ +uint8_t x_38; +lean_dec(x_5); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +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; +} +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_42 = lean_ctor_get(x_5, 0); +x_43 = lean_ctor_get(x_5, 1); +x_44 = lean_ctor_get(x_5, 2); +x_45 = lean_ctor_get(x_5, 3); +x_46 = lean_ctor_get(x_5, 4); +x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); +x_48 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); +x_49 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_50 = lean_ctor_get(x_5, 5); +x_51 = lean_ctor_get(x_5, 6); +x_52 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_5); +x_53 = lean_alloc_ctor(0, 8, 4); +lean_ctor_set(x_53, 0, x_42); +lean_ctor_set(x_53, 1, x_43); +lean_ctor_set(x_53, 2, x_44); +lean_ctor_set(x_53, 3, x_45); +lean_ctor_set(x_53, 4, x_46); +lean_ctor_set(x_53, 5, x_50); +lean_ctor_set(x_53, 6, x_51); +lean_ctor_set(x_53, 7, x_28); +lean_ctor_set_uint8(x_53, sizeof(void*)*8, x_47); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 1, x_48); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 2, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 3, x_52); +x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_6, x_7, x_8, x_9, x_10, x_27); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +lean_inc(x_7); +lean_inc(x_53); +x_56 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_53, x_6, x_7, x_8, x_9, x_10, x_55); +lean_dec(x_4); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = lean_box(0); +x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___lambda__1___boxed), 10, 3); +lean_closure_set(x_59, 0, x_2); +lean_closure_set(x_59, 1, x_58); +lean_closure_set(x_59, 2, x_3); +x_60 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_59, x_53, x_6, x_7, x_8, x_9, x_10, x_57); +return x_60; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_53); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_61 = lean_ctor_get(x_56, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; +} else { + lean_dec_ref(x_56); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_65 = !lean_is_exclusive(x_14); +if (x_65 == 0) +{ +return x_14; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_14, 0); +x_67 = lean_ctor_get(x_14, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_14); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("check"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_Command_elabCheck___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_check"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabCheck___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabCheck___closed__4; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabCheck(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; +x_5 = l_Lean_Elab_Command_elabCheck___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_7; +} +else +{ +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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = l_Lean_Syntax_getArg(x_1, x_10); +lean_dec(x_1); +x_12 = lean_st_ref_get(x_3, x_4); +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); +x_16 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); +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 = lean_ctor_get(x_17, 5); +lean_inc(x_19); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___lambda__2___boxed), 11, 3); +lean_closure_set(x_20, 0, x_17); +lean_closure_set(x_20, 1, x_11); +lean_closure_set(x_20, 2, x_9); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_21, 0, x_19); +lean_closure_set(x_21, 1, x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_22, 0, x_21); +x_23 = l_Lean_Elab_Command_elabCheck___closed__5; +lean_inc(x_2); +x_24 = l_Lean_Elab_Command_liftTermElabM___rarg(x_23, x_22, x_2, x_3, x_18); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_15, x_2, x_3, x_26); +lean_dec(x_2); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_25); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_25); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_24, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_24, 1); +lean_inc(x_33); +lean_dec(x_24); +x_34 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_15, x_2, x_3, x_33); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set_tag(x_34, 1); +lean_ctor_set(x_34, 0, x_32); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +} +lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Command_elabCheck___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_3); +return x_11; +} +} +lean_object* l_Lean_Elab_Command_elabCheck___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Command_elabCheck___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_1); +return x_12; +} +} +lean_object* l_Lean_Elab_Command_elabCheck___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_Command_elabCheck(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabCheck"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l_Lean_Elab_Command_elabCheck___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("smartUnfolding"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabReduce___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = 1; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_12 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_11, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +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 = 0; +x_16 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_17 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_15, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_19 = l_Lean_Meta_instantiateMVars(x_13, x_6, x_7, x_8, x_9, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_unsigned_to_nat(1u); +x_23 = l_Lean_Elab_Term_levelMVarToParam(x_20, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +lean_dec(x_24); +x_27 = !lean_is_exclusive(x_8); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_28 = lean_ctor_get(x_8, 0); +x_29 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; +x_30 = l_Lean_KVMap_setBool(x_28, x_29, x_15); +lean_ctor_set(x_8, 0, x_30); +x_31 = lean_ctor_get(x_6, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_6, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_6, 2); +lean_inc(x_33); +x_34 = lean_ctor_get(x_6, 3); +lean_inc(x_34); +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) +{ +uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_36 = 0; +lean_ctor_set_uint8(x_31, 5, x_36); +x_37 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_37, 0, x_31); +lean_ctor_set(x_37, 1, x_32); +lean_ctor_set(x_37, 2, x_33); +lean_ctor_set(x_37, 3, x_34); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_38 = l_Lean_Meta_reduce(x_26, x_11, x_15, x_15, x_37, x_7, x_8, x_9, x_25); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; +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_alloc_ctor(2, 1, 0); +lean_ctor_set(x_41, 0, x_39); +x_42 = 0; +x_43 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_41, x_42, x_4, x_5, x_6, x_7, x_8, x_9, x_40); +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_43; +} +else +{ +uint8_t x_44; +lean_dec(x_8); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_44 = !lean_is_exclusive(x_38); +if (x_44 == 0) +{ +return x_38; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_38, 0); +x_46 = lean_ctor_get(x_38, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_38); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_48 = lean_ctor_get_uint8(x_31, 0); +x_49 = lean_ctor_get_uint8(x_31, 1); +x_50 = lean_ctor_get_uint8(x_31, 2); +x_51 = lean_ctor_get_uint8(x_31, 3); +x_52 = lean_ctor_get_uint8(x_31, 4); +x_53 = lean_ctor_get_uint8(x_31, 6); +x_54 = lean_ctor_get_uint8(x_31, 7); +x_55 = lean_ctor_get_uint8(x_31, 8); +x_56 = lean_ctor_get_uint8(x_31, 9); +lean_dec(x_31); +x_57 = 0; +x_58 = lean_alloc_ctor(0, 0, 10); +lean_ctor_set_uint8(x_58, 0, x_48); +lean_ctor_set_uint8(x_58, 1, x_49); +lean_ctor_set_uint8(x_58, 2, x_50); +lean_ctor_set_uint8(x_58, 3, x_51); +lean_ctor_set_uint8(x_58, 4, x_52); +lean_ctor_set_uint8(x_58, 5, x_57); +lean_ctor_set_uint8(x_58, 6, x_53); +lean_ctor_set_uint8(x_58, 7, x_54); +lean_ctor_set_uint8(x_58, 8, x_55); +lean_ctor_set_uint8(x_58, 9, x_56); +x_59 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_32); +lean_ctor_set(x_59, 2, x_33); +lean_ctor_set(x_59, 3, x_34); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_60 = l_Lean_Meta_reduce(x_26, x_11, x_15, x_15, x_59, x_7, x_8, x_9, x_25); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_63, 0, x_61); +x_64 = 0; +x_65 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_63, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_62); +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_65; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_8); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_66 = lean_ctor_get(x_60, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_60, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_68 = x_60; +} else { + lean_dec_ref(x_60); + x_68 = lean_box(0); +} +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(1, 2, 0); +} else { + x_69 = x_68; +} +lean_ctor_set(x_69, 0, x_66); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +} +} +else +{ +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; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_70 = lean_ctor_get(x_8, 0); +x_71 = lean_ctor_get(x_8, 1); +x_72 = lean_ctor_get(x_8, 2); +x_73 = lean_ctor_get(x_8, 3); +x_74 = lean_ctor_get(x_8, 4); +x_75 = lean_ctor_get(x_8, 5); +x_76 = lean_ctor_get(x_8, 6); +x_77 = lean_ctor_get(x_8, 7); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_8); +x_78 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; +x_79 = l_Lean_KVMap_setBool(x_70, x_78, x_15); +x_80 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_71); +lean_ctor_set(x_80, 2, x_72); +lean_ctor_set(x_80, 3, x_73); +lean_ctor_set(x_80, 4, x_74); +lean_ctor_set(x_80, 5, x_75); +lean_ctor_set(x_80, 6, x_76); +lean_ctor_set(x_80, 7, x_77); +x_81 = lean_ctor_get(x_6, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_6, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_6, 2); +lean_inc(x_83); +x_84 = lean_ctor_get(x_6, 3); +lean_inc(x_84); +x_85 = lean_ctor_get_uint8(x_81, 0); +x_86 = lean_ctor_get_uint8(x_81, 1); +x_87 = lean_ctor_get_uint8(x_81, 2); +x_88 = lean_ctor_get_uint8(x_81, 3); +x_89 = lean_ctor_get_uint8(x_81, 4); +x_90 = lean_ctor_get_uint8(x_81, 6); +x_91 = lean_ctor_get_uint8(x_81, 7); +x_92 = lean_ctor_get_uint8(x_81, 8); +x_93 = lean_ctor_get_uint8(x_81, 9); +if (lean_is_exclusive(x_81)) { + x_94 = x_81; +} else { + lean_dec_ref(x_81); + x_94 = lean_box(0); +} +x_95 = 0; +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 0, 10); +} else { + x_96 = x_94; +} +lean_ctor_set_uint8(x_96, 0, x_85); +lean_ctor_set_uint8(x_96, 1, x_86); +lean_ctor_set_uint8(x_96, 2, x_87); +lean_ctor_set_uint8(x_96, 3, x_88); +lean_ctor_set_uint8(x_96, 4, x_89); +lean_ctor_set_uint8(x_96, 5, x_95); +lean_ctor_set_uint8(x_96, 6, x_90); +lean_ctor_set_uint8(x_96, 7, x_91); +lean_ctor_set_uint8(x_96, 8, x_92); +lean_ctor_set_uint8(x_96, 9, x_93); +x_97 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_82); +lean_ctor_set(x_97, 2, x_83); +lean_ctor_set(x_97, 3, x_84); +lean_inc(x_9); +lean_inc(x_80); +lean_inc(x_7); +x_98 = l_Lean_Meta_reduce(x_26, x_11, x_15, x_15, x_97, x_7, x_80, x_9, x_25); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_101 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_101, 0, x_99); +x_102 = 0; +x_103 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_101, x_102, x_4, x_5, x_6, x_7, x_80, x_9, x_100); +lean_dec(x_9); +lean_dec(x_80); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_80); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_104 = lean_ctor_get(x_98, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_98, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_106 = x_98; +} else { + lean_dec_ref(x_98); + x_106 = lean_box(0); +} +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_106; +} +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_105); +return x_107; +} +} +} +else +{ +uint8_t x_108; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_108 = !lean_is_exclusive(x_19); +if (x_108 == 0) +{ +return x_19; +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_19, 0); +x_110 = lean_ctor_get(x_19, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_19); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; +} +} +} +else +{ +uint8_t x_112; +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_112 = !lean_is_exclusive(x_17); +if (x_112 == 0) +{ +return x_17; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_17, 0); +x_114 = lean_ctor_get(x_17, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_17); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +} +else +{ +uint8_t x_116; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_116 = !lean_is_exclusive(x_12); +if (x_116 == 0) +{ +return x_12; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_12, 0); +x_118 = lean_ctor_get(x_12, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_12); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabReduce___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) { +_start: +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_12 = 0; +x_13 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_14 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_12, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_box(0); +x_17 = lean_array_get_size(x_4); +x_18 = lean_unsigned_to_nat(0u); +lean_inc(x_4); +x_19 = l_Array_toSubarray___rarg(x_4, x_18, x_17); +x_20 = lean_ctor_get(x_1, 6); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_16); +x_22 = lean_array_get_size(x_20); +x_23 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_24 = 0; +x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_20, x_23, x_24, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = !lean_is_exclusive(x_5); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_5, 7); +lean_dec(x_30); +lean_ctor_set(x_5, 7, x_28); +x_31 = l_Lean_Elab_Term_resetMessageLog(x_5, x_6, x_7, x_8, x_9, x_10, x_27); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +lean_inc(x_7); +lean_inc(x_5); +x_33 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); +lean_dec(x_4); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_box(0); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__1___boxed), 10, 3); +lean_closure_set(x_36, 0, x_2); +lean_closure_set(x_36, 1, x_35); +lean_closure_set(x_36, 2, x_3); +x_37 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_34); +return x_37; +} +else +{ +uint8_t x_38; +lean_dec(x_5); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_33); +if (x_38 == 0) +{ +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_33, 0); +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_33); +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; +} +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_42 = lean_ctor_get(x_5, 0); +x_43 = lean_ctor_get(x_5, 1); +x_44 = lean_ctor_get(x_5, 2); +x_45 = lean_ctor_get(x_5, 3); +x_46 = lean_ctor_get(x_5, 4); +x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); +x_48 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); +x_49 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); +x_50 = lean_ctor_get(x_5, 5); +x_51 = lean_ctor_get(x_5, 6); +x_52 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_5); +x_53 = lean_alloc_ctor(0, 8, 4); +lean_ctor_set(x_53, 0, x_42); +lean_ctor_set(x_53, 1, x_43); +lean_ctor_set(x_53, 2, x_44); +lean_ctor_set(x_53, 3, x_45); +lean_ctor_set(x_53, 4, x_46); +lean_ctor_set(x_53, 5, x_50); +lean_ctor_set(x_53, 6, x_51); +lean_ctor_set(x_53, 7, x_28); +lean_ctor_set_uint8(x_53, sizeof(void*)*8, x_47); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 1, x_48); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 2, x_49); +lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 3, x_52); +x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_6, x_7, x_8, x_9, x_10, x_27); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +lean_inc(x_7); +lean_inc(x_53); +x_56 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_53, x_6, x_7, x_8, x_9, x_10, x_55); +lean_dec(x_4); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = lean_box(0); +x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__1___boxed), 10, 3); +lean_closure_set(x_59, 0, x_2); +lean_closure_set(x_59, 1, x_58); +lean_closure_set(x_59, 2, x_3); +x_60 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_59, x_53, x_6, x_7, x_8, x_9, x_10, x_57); +return x_60; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_53); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_61 = lean_ctor_get(x_56, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_63 = x_56; +} else { + lean_dec_ref(x_56); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_65 = !lean_is_exclusive(x_14); +if (x_65 == 0) +{ +return x_14; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_14, 0); +x_67 = lean_ctor_get(x_14, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_14); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabReduce___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("reduce"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabReduce___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_Command_elabReduce___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabReduce(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; +x_5 = l_Lean_Elab_Command_elabReduce___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_7; +} +else +{ +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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = l_Lean_Syntax_getArg(x_1, x_10); +lean_dec(x_1); +x_12 = lean_st_ref_get(x_3, x_4); +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); +x_16 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); +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 = lean_ctor_get(x_17, 5); +lean_inc(x_19); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__2___boxed), 11, 3); +lean_closure_set(x_20, 0, x_17); +lean_closure_set(x_20, 1, x_11); +lean_closure_set(x_20, 2, x_9); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_21, 0, x_19); +lean_closure_set(x_21, 1, x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_22, 0, x_21); +x_23 = l_Lean_Elab_Command_elabCheck___closed__5; +lean_inc(x_2); +x_24 = l_Lean_Elab_Command_liftTermElabM___rarg(x_23, x_22, x_2, x_3, x_18); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_15, x_2, x_3, x_26); +lean_dec(x_2); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 0); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_25); +return x_27; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_25); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_24, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_24, 1); +lean_inc(x_33); +lean_dec(x_24); +x_34 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_15, x_2, x_3, x_33); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set_tag(x_34, 1); +lean_ctor_set(x_34, 0, x_32); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +} +lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Command_elabReduce___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_3); +return x_11; +} +} +lean_object* l_Lean_Elab_Command_elabReduce___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Command_elabReduce___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_1); +return x_12; +} +} +lean_object* l_Lean_Elab_Command_elabReduce___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_Command_elabReduce(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabReduce"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l_Lean_Elab_Command_elabReduce___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_st_ref_get(x_1, x_2); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; lean_object* x_9; +x_8 = 1; +x_9 = lean_box(x_8); +lean_ctor_set(x_3, 0, x_9); +return x_3; +} +else +{ +uint8_t x_10; lean_object* x_11; +x_10 = 0; +x_11 = lean_box(x_10); +lean_ctor_set(x_3, 0, x_11); +return x_3; +} +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_3, 0); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_3); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_13); +return x_18; +} +else +{ +uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_19 = 0; +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_13); +return x_21; +} +} +} +} +lean_object* l_Lean_Elab_Command_hasNoErrorMessages(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_hasNoErrorMessages___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Command_hasNoErrorMessages(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_failIfSucceeds_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_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_apply_3(x_2, x_1, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +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); +lean_dec(x_1); +x_9 = lean_apply_2(x_3, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_failIfSucceeds_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected success"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(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; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2; +x_8 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_7, x_2, x_3, x_4); +return x_8; +} +} +} +static lean_object* _init_l_Lean_Elab_Command_failIfSucceeds___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed), 4, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Command_failIfSucceeds(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_st_ref_take(x_3, x_7); +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_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; uint8_t x_18; lean_object* x_19; lean_object* x_48; lean_object* x_49; lean_object* x_79; +x_13 = lean_ctor_get(x_10, 1); +lean_dec(x_13); +x_14 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3; +lean_ctor_set(x_10, 1, x_14); +x_15 = lean_st_ref_set(x_3, x_10, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Elab_Command_failIfSucceeds___closed__1; +lean_inc(x_3); +lean_inc(x_2); +x_79 = lean_apply_3(x_1, x_2, x_3, x_16); +if (lean_obj_tag(x_79) == 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_79, 1); +lean_inc(x_80); +lean_dec(x_79); +x_81 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_80); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_unbox(x_82); +lean_dec(x_82); +x_18 = x_84; +x_19 = x_83; +goto block_47; +} +else +{ +lean_object* x_85; +x_85 = lean_ctor_get(x_79, 0); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_79, 1); +lean_inc(x_86); +lean_dec(x_79); +x_87 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_85, x_2, x_3, x_86); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; uint8_t x_89; +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = 0; +x_18 = x_89; +x_19 = x_88; +goto block_47; +} +else +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_2); +x_90 = lean_ctor_get(x_87, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_87, 1); +lean_inc(x_91); +lean_dec(x_87); +x_48 = x_90; +x_49 = x_91; +goto block_78; +} +} +else +{ +lean_object* x_92; uint8_t x_93; +x_92 = lean_ctor_get(x_79, 1); +lean_inc(x_92); +lean_dec(x_79); +x_93 = !lean_is_exclusive(x_85); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_85, 0); +x_95 = lean_ctor_get(x_85, 1); +lean_dec(x_95); +x_96 = l_Lean_InternalExceptionId_getName(x_94, x_92); +lean_dec(x_94); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; +lean_free_object(x_85); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_99, 0, x_97); +x_100 = 2; +x_101 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_99, x_100, x_2, x_3, x_98); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec(x_101); +x_103 = 0; +x_18 = x_103; +x_19 = x_102; +goto block_47; +} +else +{ +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_104 = lean_ctor_get(x_96, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_96, 1); +lean_inc(x_105); +lean_dec(x_96); +x_106 = lean_ctor_get(x_2, 6); +lean_inc(x_106); +lean_dec(x_2); +x_107 = lean_io_error_to_string(x_104); +x_108 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_108, 0, x_107); +x_109 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set_tag(x_85, 0); +lean_ctor_set(x_85, 1, x_109); +lean_ctor_set(x_85, 0, x_106); +x_48 = x_85; +x_49 = x_105; +goto block_78; +} +} +else +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_85, 0); +lean_inc(x_110); +lean_dec(x_85); +x_111 = l_Lean_InternalExceptionId_getName(x_110, x_92); +lean_dec(x_110); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_114, 0, x_112); +x_115 = 2; +x_116 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_114, x_115, x_2, x_3, x_113); +x_117 = lean_ctor_get(x_116, 1); +lean_inc(x_117); +lean_dec(x_116); +x_118 = 0; +x_18 = x_118; +x_19 = x_117; +goto block_47; +} +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; +x_119 = lean_ctor_get(x_111, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_111, 1); +lean_inc(x_120); +lean_dec(x_111); +x_121 = lean_ctor_get(x_2, 6); +lean_inc(x_121); +lean_dec(x_2); +x_122 = lean_io_error_to_string(x_119); +x_123 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_123, 0, x_122); +x_124 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_124, 0, x_123); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_121); +lean_ctor_set(x_125, 1, x_124); +x_48 = x_125; +x_49 = x_120; +goto block_78; +} +} +} +} +block_47: +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_st_ref_take(x_3, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_24 = lean_ctor_get(x_21, 1); +x_25 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_24); +x_26 = l_Std_PersistentArray_append___rarg(x_8, x_25); +lean_dec(x_25); +lean_ctor_set(x_21, 1, x_26); +x_27 = lean_st_ref_set(x_3, x_21, x_22); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_box(x_18); +x_30 = lean_apply_4(x_17, x_29, x_2, x_3, x_28); +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; 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; +x_31 = lean_ctor_get(x_21, 0); +x_32 = lean_ctor_get(x_21, 1); +x_33 = lean_ctor_get(x_21, 2); +x_34 = lean_ctor_get(x_21, 3); +x_35 = lean_ctor_get(x_21, 4); +x_36 = lean_ctor_get(x_21, 5); +x_37 = lean_ctor_get(x_21, 6); +x_38 = lean_ctor_get(x_21, 7); +x_39 = lean_ctor_get(x_21, 8); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_21); +x_40 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_32); +x_41 = l_Std_PersistentArray_append___rarg(x_8, x_40); +lean_dec(x_40); +x_42 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_42, 0, x_31); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_42, 2, x_33); +lean_ctor_set(x_42, 3, x_34); +lean_ctor_set(x_42, 4, x_35); +lean_ctor_set(x_42, 5, x_36); +lean_ctor_set(x_42, 6, x_37); +lean_ctor_set(x_42, 7, x_38); +lean_ctor_set(x_42, 8, x_39); +x_43 = lean_st_ref_set(x_3, x_42, x_22); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_box(x_18); +x_46 = lean_apply_4(x_17, x_45, x_2, x_3, x_44); +return x_46; +} +} +block_78: +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_50 = lean_st_ref_take(x_3, x_49); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = !lean_is_exclusive(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_54 = lean_ctor_get(x_51, 1); +x_55 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_54); +x_56 = l_Std_PersistentArray_append___rarg(x_8, x_55); +lean_dec(x_55); +lean_ctor_set(x_51, 1, x_56); +x_57 = lean_st_ref_set(x_3, x_51, x_52); +lean_dec(x_3); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +lean_ctor_set_tag(x_57, 1); +lean_ctor_set(x_57, 0, x_48); +return x_57; +} +else +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_48); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +else +{ +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; +x_62 = lean_ctor_get(x_51, 0); +x_63 = lean_ctor_get(x_51, 1); +x_64 = lean_ctor_get(x_51, 2); +x_65 = lean_ctor_get(x_51, 3); +x_66 = lean_ctor_get(x_51, 4); +x_67 = lean_ctor_get(x_51, 5); +x_68 = lean_ctor_get(x_51, 6); +x_69 = lean_ctor_get(x_51, 7); +x_70 = lean_ctor_get(x_51, 8); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_51); +x_71 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_63); +x_72 = l_Std_PersistentArray_append___rarg(x_8, x_71); +lean_dec(x_71); +x_73 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_73, 0, x_62); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_64); +lean_ctor_set(x_73, 3, x_65); +lean_ctor_set(x_73, 4, x_66); +lean_ctor_set(x_73, 5, x_67); +lean_ctor_set(x_73, 6, x_68); +lean_ctor_set(x_73, 7, x_69); +lean_ctor_set(x_73, 8, x_70); +x_74 = lean_st_ref_set(x_3, x_73, x_52); +lean_dec(x_3); +x_75 = lean_ctor_get(x_74, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_76 = x_74; +} else { + lean_dec_ref(x_74); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; + lean_ctor_set_tag(x_77, 1); +} +lean_ctor_set(x_77, 0, x_48); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +else +{ +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; uint8_t x_139; lean_object* x_140; lean_object* x_162; lean_object* x_163; lean_object* x_185; +x_126 = lean_ctor_get(x_10, 0); +x_127 = lean_ctor_get(x_10, 2); +x_128 = lean_ctor_get(x_10, 3); +x_129 = lean_ctor_get(x_10, 4); +x_130 = lean_ctor_get(x_10, 5); +x_131 = lean_ctor_get(x_10, 6); +x_132 = lean_ctor_get(x_10, 7); +x_133 = lean_ctor_get(x_10, 8); +lean_inc(x_133); +lean_inc(x_132); +lean_inc(x_131); +lean_inc(x_130); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_10); +x_134 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3; +x_135 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_135, 0, x_126); +lean_ctor_set(x_135, 1, x_134); +lean_ctor_set(x_135, 2, x_127); +lean_ctor_set(x_135, 3, x_128); +lean_ctor_set(x_135, 4, x_129); +lean_ctor_set(x_135, 5, x_130); +lean_ctor_set(x_135, 6, x_131); +lean_ctor_set(x_135, 7, x_132); +lean_ctor_set(x_135, 8, x_133); +x_136 = lean_st_ref_set(x_3, x_135, x_11); +x_137 = lean_ctor_get(x_136, 1); +lean_inc(x_137); +lean_dec(x_136); +x_138 = l_Lean_Elab_Command_failIfSucceeds___closed__1; +lean_inc(x_3); +lean_inc(x_2); +x_185 = lean_apply_3(x_1, x_2, x_3, x_137); +if (lean_obj_tag(x_185) == 0) +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; +x_186 = lean_ctor_get(x_185, 1); +lean_inc(x_186); +lean_dec(x_185); +x_187 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_186); +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 = lean_unbox(x_188); +lean_dec(x_188); +x_139 = x_190; +x_140 = x_189; +goto block_161; +} +else +{ +lean_object* x_191; +x_191 = lean_ctor_get(x_185, 0); +lean_inc(x_191); +if (lean_obj_tag(x_191) == 0) +{ +lean_object* x_192; lean_object* x_193; +x_192 = lean_ctor_get(x_185, 1); +lean_inc(x_192); +lean_dec(x_185); +x_193 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_191, x_2, x_3, x_192); +if (lean_obj_tag(x_193) == 0) +{ +lean_object* x_194; uint8_t x_195; +x_194 = lean_ctor_get(x_193, 1); +lean_inc(x_194); +lean_dec(x_193); +x_195 = 0; +x_139 = x_195; +x_140 = x_194; +goto block_161; +} +else +{ +lean_object* x_196; lean_object* x_197; +lean_dec(x_2); +x_196 = lean_ctor_get(x_193, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_193, 1); +lean_inc(x_197); +lean_dec(x_193); +x_162 = x_196; +x_163 = x_197; +goto block_184; +} +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_198 = lean_ctor_get(x_185, 1); +lean_inc(x_198); +lean_dec(x_185); +x_199 = lean_ctor_get(x_191, 0); +lean_inc(x_199); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_200 = x_191; +} else { + lean_dec_ref(x_191); + x_200 = lean_box(0); +} +x_201 = l_Lean_InternalExceptionId_getName(x_199, x_198); +lean_dec(x_199); +if (lean_obj_tag(x_201) == 0) +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; +lean_dec(x_200); +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 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_204, 0, x_202); +x_205 = 2; +x_206 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_204, x_205, x_2, x_3, x_203); +x_207 = lean_ctor_get(x_206, 1); +lean_inc(x_207); +lean_dec(x_206); +x_208 = 0; +x_139 = x_208; +x_140 = x_207; +goto block_161; +} +else +{ +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; +x_209 = lean_ctor_get(x_201, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_201, 1); +lean_inc(x_210); +lean_dec(x_201); +x_211 = lean_ctor_get(x_2, 6); +lean_inc(x_211); +lean_dec(x_2); +x_212 = lean_io_error_to_string(x_209); +x_213 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_213, 0, x_212); +x_214 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_214, 0, x_213); +if (lean_is_scalar(x_200)) { + x_215 = lean_alloc_ctor(0, 2, 0); +} else { + x_215 = x_200; + lean_ctor_set_tag(x_215, 0); +} +lean_ctor_set(x_215, 0, x_211); +lean_ctor_set(x_215, 1, x_214); +x_162 = x_215; +x_163 = x_210; +goto block_184; +} +} +} +block_161: +{ +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; +x_141 = lean_st_ref_take(x_3, x_140); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +x_144 = lean_ctor_get(x_142, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_142, 1); +lean_inc(x_145); +x_146 = lean_ctor_get(x_142, 2); +lean_inc(x_146); +x_147 = lean_ctor_get(x_142, 3); +lean_inc(x_147); +x_148 = lean_ctor_get(x_142, 4); +lean_inc(x_148); +x_149 = lean_ctor_get(x_142, 5); +lean_inc(x_149); +x_150 = lean_ctor_get(x_142, 6); +lean_inc(x_150); +x_151 = lean_ctor_get(x_142, 7); +lean_inc(x_151); +x_152 = lean_ctor_get(x_142, 8); +lean_inc(x_152); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + lean_ctor_release(x_142, 2); + lean_ctor_release(x_142, 3); + lean_ctor_release(x_142, 4); + lean_ctor_release(x_142, 5); + lean_ctor_release(x_142, 6); + lean_ctor_release(x_142, 7); + lean_ctor_release(x_142, 8); + x_153 = x_142; +} else { + lean_dec_ref(x_142); + x_153 = lean_box(0); +} +x_154 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_145); +x_155 = l_Std_PersistentArray_append___rarg(x_8, x_154); +lean_dec(x_154); +if (lean_is_scalar(x_153)) { + x_156 = lean_alloc_ctor(0, 9, 0); +} else { + x_156 = x_153; +} +lean_ctor_set(x_156, 0, x_144); +lean_ctor_set(x_156, 1, x_155); +lean_ctor_set(x_156, 2, x_146); +lean_ctor_set(x_156, 3, x_147); +lean_ctor_set(x_156, 4, x_148); +lean_ctor_set(x_156, 5, x_149); +lean_ctor_set(x_156, 6, x_150); +lean_ctor_set(x_156, 7, x_151); +lean_ctor_set(x_156, 8, x_152); +x_157 = lean_st_ref_set(x_3, x_156, x_143); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec(x_157); +x_159 = lean_box(x_139); +x_160 = lean_apply_4(x_138, x_159, x_2, x_3, x_158); +return x_160; +} +block_184: +{ +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; +x_164 = lean_st_ref_take(x_3, x_163); +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = lean_ctor_get(x_165, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_165, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_165, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_165, 3); +lean_inc(x_170); +x_171 = lean_ctor_get(x_165, 4); +lean_inc(x_171); +x_172 = lean_ctor_get(x_165, 5); +lean_inc(x_172); +x_173 = lean_ctor_get(x_165, 6); +lean_inc(x_173); +x_174 = lean_ctor_get(x_165, 7); +lean_inc(x_174); +x_175 = lean_ctor_get(x_165, 8); +lean_inc(x_175); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + lean_ctor_release(x_165, 2); + lean_ctor_release(x_165, 3); + lean_ctor_release(x_165, 4); + lean_ctor_release(x_165, 5); + lean_ctor_release(x_165, 6); + lean_ctor_release(x_165, 7); + lean_ctor_release(x_165, 8); + x_176 = x_165; +} else { + lean_dec_ref(x_165); + x_176 = lean_box(0); +} +x_177 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_168); +x_178 = l_Std_PersistentArray_append___rarg(x_8, x_177); +lean_dec(x_177); +if (lean_is_scalar(x_176)) { + x_179 = lean_alloc_ctor(0, 9, 0); +} else { + x_179 = x_176; +} +lean_ctor_set(x_179, 0, x_167); +lean_ctor_set(x_179, 1, x_178); +lean_ctor_set(x_179, 2, x_169); +lean_ctor_set(x_179, 3, x_170); +lean_ctor_set(x_179, 4, x_171); +lean_ctor_set(x_179, 5, x_172); +lean_ctor_set(x_179, 6, x_173); +lean_ctor_set(x_179, 7, x_174); +lean_ctor_set(x_179, 8, x_175); +x_180 = lean_st_ref_set(x_3, x_179, x_166); +lean_dec(x_3); +x_181 = lean_ctor_get(x_180, 1); +lean_inc(x_181); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_182 = x_180; +} else { + lean_dec_ref(x_180); + x_182 = lean_box(0); +} +if (lean_is_scalar(x_182)) { + x_183 = lean_alloc_ctor(1, 2, 0); +} else { + x_183 = x_182; + lean_ctor_set_tag(x_183, 1); +} +lean_ctor_set(x_183, 0, x_162); +lean_ctor_set(x_183, 1, x_181); +return x_183; +} +} +} +} +lean_object* l_Lean_Elab_Command_failIfSucceeds___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 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Elab_Command_failIfSucceeds___lambda__1(x_5, x_2, x_3, x_4); +lean_dec(x_3); +return x_6; +} +} +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___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 = l_Lean_Elab_Command_getRef(x_1, x_2, x_3); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = l_Lean_SourceInfo_fromRef(x_6); +lean_dec(x_6); +lean_ctor_set(x_4, 0, x_7); +return x_4; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_4, 0); +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_4); +x_10 = l_Lean_SourceInfo_fromRef(x_8); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("check_failure"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_Command_elabCheckFailure___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("#check"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(2u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabCheckFailure(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; +x_5 = l_Lean_Elab_Command_elabCheckFailure___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_7; +} +else +{ +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; 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_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +lean_dec(x_1); +x_10 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_2, x_3, x_4); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_14); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Elab_Command_elabCheckFailure___closed__3; +x_18 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_Elab_Command_elabCheckFailure___closed__4; +x_20 = lean_array_push(x_19, x_18); +x_21 = lean_array_push(x_20, x_9); +x_22 = l_Lean_Elab_Command_elabCheck___closed__2; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___boxed), 4, 1); +lean_closure_set(x_24, 0, x_23); +x_25 = l_Lean_Elab_Command_failIfSucceeds(x_24, x_2, x_3, x_16); +return x_25; +} +} +} +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabCheckFailure"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheckFailure), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l_Lean_Elab_Command_elabCheckFailure___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +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_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +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_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_7, 3); +x_13 = lean_apply_1(x_2, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +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_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_18, 0, x_16); +x_19 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = 0; +x_21 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_1, x_19, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +if (lean_obj_tag(x_17) == 0) +{ +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_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_17, 0); +lean_inc(x_23); +lean_dec(x_17); +x_24 = lean_io_error_to_string(x_23); +x_25 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +return x_27; +} +else +{ +uint8_t x_28; +lean_dec(x_17); +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_21); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_21, 0); +lean_dec(x_29); +x_30 = lean_box(0); +lean_ctor_set(x_21, 0, x_30); +return x_21; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_21, 1); +lean_inc(x_31); +lean_dec(x_21); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +} +} +else +{ +uint8_t x_34; +lean_dec(x_3); +x_34 = !lean_is_exclusive(x_13); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_13, 0); +x_36 = lean_io_error_to_string(x_35); +x_37 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_38 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_38, 0, x_37); +lean_inc(x_12); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_12); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_13, 0, x_39); +return x_13; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_40 = lean_ctor_get(x_13, 0); +x_41 = lean_ctor_get(x_13, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_13); +x_42 = lean_io_error_to_string(x_40); +x_43 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_44, 0, x_43); +lean_inc(x_12); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_12); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_41); +return x_46; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("runEval"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(1u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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: +{ +uint8_t x_13; lean_object* x_14; +x_13 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_14 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_13, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +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 = l_Lean_mkSimpleThunk(x_15); +x_18 = 0; +x_19 = 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_20 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_18, x_18, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +if (lean_obj_tag(x_20) == 0) +{ +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_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; +x_23 = lean_name_mk_string(x_3, x_22); +x_24 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2; +x_25 = lean_array_push(x_24, x_17); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_26 = l_Lean_Meta_mkAppM(x_23, x_25, x_8, x_9, x_10, x_11, x_21); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_st_ref_get(x_11, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +lean_dec(x_30); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_27); +x_33 = l_Lean_Meta_inferType(x_27, x_8, x_9, x_10, x_11, x_31); +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; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +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_box(0); +lean_inc(x_5); +x_37 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_37, 0, x_5); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_34); +x_38 = lean_box(0); +x_39 = 0; +x_40 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_27); +lean_ctor_set(x_40, 2, x_38); +lean_ctor_set_uint8(x_40, sizeof(void*)*3, x_39); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_41); +x_42 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_35); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +lean_inc(x_10); +lean_inc(x_6); +x_44 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +lean_inc(x_6); +x_46 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +lean_dec(x_5); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +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_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_48); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_51 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(x_4, x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_50); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_51; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_46, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_46, 1); +lean_inc(x_53); +lean_dec(x_46); +x_54 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_54, 0); +lean_dec(x_56); +lean_ctor_set_tag(x_54, 1); +lean_ctor_set(x_54, 0, x_52); +return x_54; +} +else +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_54, 1); +lean_inc(x_57); +lean_dec(x_54); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_dec(x_5); +x_59 = lean_ctor_get(x_44, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_44, 1); +lean_inc(x_60); +lean_dec(x_44); +x_61 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_60); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_61, 0); +lean_dec(x_63); +lean_ctor_set_tag(x_61, 1); +lean_ctor_set(x_61, 0, x_59); +return x_61; +} +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_59); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +lean_dec(x_41); +lean_dec(x_5); +x_66 = lean_ctor_get(x_42, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_42, 1); +lean_inc(x_67); +lean_dec(x_42); +x_68 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_67); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +lean_object* x_70; +x_70 = lean_ctor_get(x_68, 0); +lean_dec(x_70); +lean_ctor_set_tag(x_68, 1); +lean_ctor_set(x_68, 0, x_66); +return x_68; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +lean_dec(x_68); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_66); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +lean_dec(x_27); +lean_dec(x_5); +x_73 = lean_ctor_get(x_33, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_33, 1); +lean_inc(x_74); +lean_dec(x_33); +x_75 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, 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); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) +{ +lean_object* x_77; +x_77 = lean_ctor_get(x_75, 0); +lean_dec(x_77); +lean_ctor_set_tag(x_75, 1); +lean_ctor_set(x_75, 0, x_73); +return x_75; +} +else +{ +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +lean_dec(x_75); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_73); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +else +{ +uint8_t x_80; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_80 = !lean_is_exclusive(x_26); +if (x_80 == 0) +{ +return x_26; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_26, 0); +x_82 = lean_ctor_get(x_26, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_26); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +else +{ +uint8_t x_84; +lean_dec(x_17); +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); +x_84 = !lean_is_exclusive(x_20); +if (x_84 == 0) +{ +return x_20; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_20, 0); +x_86 = lean_ctor_get(x_20, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_20); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +} +else +{ +uint8_t x_88; +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); +x_88 = !lean_is_exclusive(x_14); +if (x_88 == 0) +{ +return x_14; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_14, 0); +x_90 = lean_ctor_get(x_14, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_14); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_14 = 0; +x_15 = 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_16 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_14, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_16) == 0) +{ +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; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_box(0); +x_19 = lean_array_get_size(x_6); +x_20 = lean_unsigned_to_nat(0u); +lean_inc(x_6); +x_21 = l_Array_toSubarray___rarg(x_6, x_20, x_19); +x_22 = lean_ctor_get(x_1, 6); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_18); +x_24 = lean_array_get_size(x_22); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_22, x_25, x_26, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +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_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_7, 7); +lean_dec(x_32); +lean_ctor_set(x_7, 7, x_30); +x_33 = l_Lean_Elab_Term_resetMessageLog(x_7, x_8, x_9, x_10, x_11, x_12, x_29); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +lean_inc(x_9); +lean_inc(x_7); +x_35 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); +lean_dec(x_6); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_box(0); +x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___boxed), 12, 5); +lean_closure_set(x_38, 0, x_2); +lean_closure_set(x_38, 1, x_37); +lean_closure_set(x_38, 2, x_3); +lean_closure_set(x_38, 3, x_4); +lean_closure_set(x_38, 4, x_5); +x_39 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_36); +return x_39; +} +else +{ +uint8_t x_40; +lean_dec(x_7); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = !lean_is_exclusive(x_35); +if (x_40 == 0) +{ +return x_35; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_35, 0); +x_42 = lean_ctor_get(x_35, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_35); +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 +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_44 = lean_ctor_get(x_7, 0); +x_45 = lean_ctor_get(x_7, 1); +x_46 = lean_ctor_get(x_7, 2); +x_47 = lean_ctor_get(x_7, 3); +x_48 = lean_ctor_get(x_7, 4); +x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*8); +x_50 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1); +x_51 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2); +x_52 = lean_ctor_get(x_7, 5); +x_53 = lean_ctor_get(x_7, 6); +x_54 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_7); +x_55 = lean_alloc_ctor(0, 8, 4); +lean_ctor_set(x_55, 0, x_44); +lean_ctor_set(x_55, 1, x_45); +lean_ctor_set(x_55, 2, x_46); +lean_ctor_set(x_55, 3, x_47); +lean_ctor_set(x_55, 4, x_48); +lean_ctor_set(x_55, 5, x_52); +lean_ctor_set(x_55, 6, x_53); +lean_ctor_set(x_55, 7, x_30); +lean_ctor_set_uint8(x_55, sizeof(void*)*8, x_49); +lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 1, x_50); +lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 2, x_51); +lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 3, x_54); +x_56 = l_Lean_Elab_Term_resetMessageLog(x_55, x_8, x_9, x_10, x_11, x_12, x_29); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +lean_inc(x_9); +lean_inc(x_55); +x_58 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_55, x_8, x_9, x_10, x_11, x_12, x_57); +lean_dec(x_6); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_box(0); +x_61 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___boxed), 12, 5); +lean_closure_set(x_61, 0, x_2); +lean_closure_set(x_61, 1, x_60); +lean_closure_set(x_61, 2, x_3); +lean_closure_set(x_61, 3, x_4); +lean_closure_set(x_61, 4, x_5); +x_62 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_61, x_55, x_8, x_9, x_10, x_11, x_12, x_59); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_55); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +uint8_t x_67; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_67 = !lean_is_exclusive(x_16); +if (x_67 == 0) +{ +return x_16; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_16, 0); +x_69 = lean_ctor_get(x_16, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_16); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("runMetaEval"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(3u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1; +x_13 = lean_name_mk_string(x_1, x_12); +x_14 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2; +lean_inc(x_2); +x_15 = lean_array_push(x_14, x_2); +lean_inc(x_4); +x_16 = lean_array_push(x_15, x_4); +x_17 = lean_array_push(x_16, x_3); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_18 = l_Lean_Meta_mkAppM(x_13, x_17, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; +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 = l_Lean_Elab_Command_elabCheckFailure___closed__4; +x_22 = lean_array_push(x_21, x_2); +x_23 = lean_array_push(x_22, x_4); +x_24 = 0; +x_25 = 1; +x_26 = l_Lean_Meta_mkLambdaFVars(x_23, x_19, x_24, x_25, x_7, x_8, x_9, x_10, x_20); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_26; +} +else +{ +uint8_t x_27; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_18); +if (x_27 == 0) +{ +return x_18; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_18, 0); +x_29 = lean_ctor_get(x_18, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_18); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("opts"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Options"); +return x_1; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3; +lean_inc(x_1); +x_13 = lean_name_mk_string(x_1, x_12); +x_14 = l_Lean_mkConst(x_13, x_2); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed), 11, 3); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_4); +lean_closure_set(x_15, 2, x_3); +x_16 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2; +x_17 = 0; +x_18 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_16, x_17, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_18; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +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_ctor_get(x_9, 3); +x_15 = lean_apply_3(x_4, x_1, x_2, x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +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); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_18); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = 0; +x_23 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_21, x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_19, 0); +lean_inc(x_25); +lean_dec(x_19); +x_26 = lean_io_error_to_string(x_25); +x_27 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_24); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +lean_dec(x_23); +x_31 = lean_ctor_get(x_19, 0); +lean_inc(x_31); +lean_dec(x_19); +x_32 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +lean_dec(x_5); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +x_35 = lean_box(0); +lean_ctor_set(x_32, 0, x_35); +return x_32; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_32, 1); +lean_inc(x_36); +lean_dec(x_32); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_5); +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; +x_40 = lean_ctor_get(x_15, 0); +x_41 = lean_io_error_to_string(x_40); +x_42 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_43, 0, x_42); +lean_inc(x_14); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_14); +lean_ctor_set(x_44, 1, x_43); +lean_ctor_set(x_15, 0, x_44); +return x_15; +} +else +{ +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; +x_45 = lean_ctor_get(x_15, 0); +x_46 = lean_ctor_get(x_15, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_15); +x_47 = lean_io_error_to_string(x_45); +x_48 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_49, 0, x_48); +lean_inc(x_14); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_14); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_46); +return x_51; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("env"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Environment"); +return x_1; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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: +{ +uint8_t x_13; lean_object* x_14; +x_13 = 1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_14 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_13, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_19 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_17, x_17, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_16); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3; +lean_inc(x_3); +x_22 = lean_name_mk_string(x_3, x_21); +x_23 = lean_box(0); +x_24 = l_Lean_mkConst(x_22, x_23); +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5), 11, 3); +lean_closure_set(x_25, 0, x_3); +lean_closure_set(x_25, 1, x_23); +lean_closure_set(x_25, 2, x_15); +x_26 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2; +x_27 = 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_28 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_26, x_27, x_24, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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_st_ref_get(x_11, x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_ctor_get(x_10, 0); +lean_inc(x_35); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_29); +x_36 = l_Lean_Meta_inferType(x_29, x_8, x_9, x_10, x_11, x_33); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +lean_inc(x_5); +x_39 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_39, 0, x_5); +lean_ctor_set(x_39, 1, x_23); +lean_ctor_set(x_39, 2, x_37); +x_40 = lean_box(0); +x_41 = 0; +x_42 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_29); +lean_ctor_set(x_42, 2, x_40); +lean_ctor_set_uint8(x_42, sizeof(void*)*3, x_41); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_42); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_43); +x_44 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_43, x_6, x_7, x_8, x_9, x_10, x_11, x_38); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +lean_inc(x_10); +lean_inc(x_6); +x_46 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(x_43, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +lean_inc(x_6); +x_48 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +lean_dec(x_5); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +lean_inc(x_34); +x_51 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_50); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(x_34, x_35, x_4, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_52); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +lean_dec(x_35); +x_54 = lean_ctor_get(x_48, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_48, 1); +lean_inc(x_55); +lean_dec(x_48); +x_56 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_55); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +lean_object* x_58; +x_58 = lean_ctor_get(x_56, 0); +lean_dec(x_58); +lean_ctor_set_tag(x_56, 1); +lean_ctor_set(x_56, 0, x_54); +return x_56; +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_54); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_35); +lean_dec(x_5); +x_61 = lean_ctor_get(x_46, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_46, 1); +lean_inc(x_62); +lean_dec(x_46); +x_63 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, 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); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +lean_ctor_set_tag(x_63, 1); +lean_ctor_set(x_63, 0, x_61); +return x_63; +} +else +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_dec(x_63); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_61); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +lean_dec(x_43); +lean_dec(x_35); +lean_dec(x_5); +x_68 = lean_ctor_get(x_44, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_44, 1); +lean_inc(x_69); +lean_dec(x_44); +x_70 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_69); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +lean_ctor_set_tag(x_70, 1); +lean_ctor_set(x_70, 0, x_68); +return x_70; +} +else +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec(x_70); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +lean_dec(x_35); +lean_dec(x_29); +lean_dec(x_5); +x_75 = lean_ctor_get(x_36, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_36, 1); +lean_inc(x_76); +lean_dec(x_36); +x_77 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_76); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) +{ +lean_object* x_79; +x_79 = lean_ctor_get(x_77, 0); +lean_dec(x_79); +lean_ctor_set_tag(x_77, 1); +lean_ctor_set(x_77, 0, x_75); +return x_77; +} +else +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_80); +lean_dec(x_77); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_75); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +uint8_t x_82; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_82 = !lean_is_exclusive(x_28); +if (x_82 == 0) +{ +return x_28; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_28, 0); +x_84 = lean_ctor_get(x_28, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_28); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_15); +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); +x_86 = !lean_is_exclusive(x_19); +if (x_86 == 0) +{ +return x_19; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_19, 0); +x_88 = lean_ctor_get(x_19, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_19); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +else +{ +uint8_t x_90; +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); +x_90 = !lean_is_exclusive(x_14); +if (x_90 == 0) +{ +return x_14; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_14, 0); +x_92 = lean_ctor_get(x_14, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_14); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_14 = 0; +x_15 = 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_16 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_14, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_16) == 0) +{ +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; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_box(0); +x_19 = lean_array_get_size(x_6); +x_20 = lean_unsigned_to_nat(0u); +lean_inc(x_6); +x_21 = l_Array_toSubarray___rarg(x_6, x_20, x_19); +x_22 = lean_ctor_get(x_1, 6); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_18); +x_24 = lean_array_get_size(x_22); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_22, x_25, x_26, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +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_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = !lean_is_exclusive(x_7); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_7, 7); +lean_dec(x_32); +lean_ctor_set(x_7, 7, x_30); +x_33 = l_Lean_Elab_Term_resetMessageLog(x_7, x_8, x_9, x_10, x_11, x_12, x_29); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +lean_inc(x_9); +lean_inc(x_7); +x_35 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); +lean_dec(x_6); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_box(0); +x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 12, 5); +lean_closure_set(x_38, 0, x_2); +lean_closure_set(x_38, 1, x_37); +lean_closure_set(x_38, 2, x_3); +lean_closure_set(x_38, 3, x_4); +lean_closure_set(x_38, 4, x_5); +x_39 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_36); +return x_39; +} +else +{ +uint8_t x_40; +lean_dec(x_7); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_40 = !lean_is_exclusive(x_35); +if (x_40 == 0) +{ +return x_35; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_35, 0); +x_42 = lean_ctor_get(x_35, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_35); +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 +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_44 = lean_ctor_get(x_7, 0); +x_45 = lean_ctor_get(x_7, 1); +x_46 = lean_ctor_get(x_7, 2); +x_47 = lean_ctor_get(x_7, 3); +x_48 = lean_ctor_get(x_7, 4); +x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*8); +x_50 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1); +x_51 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2); +x_52 = lean_ctor_get(x_7, 5); +x_53 = lean_ctor_get(x_7, 6); +x_54 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_7); +x_55 = lean_alloc_ctor(0, 8, 4); +lean_ctor_set(x_55, 0, x_44); +lean_ctor_set(x_55, 1, x_45); +lean_ctor_set(x_55, 2, x_46); +lean_ctor_set(x_55, 3, x_47); +lean_ctor_set(x_55, 4, x_48); +lean_ctor_set(x_55, 5, x_52); +lean_ctor_set(x_55, 6, x_53); +lean_ctor_set(x_55, 7, x_30); +lean_ctor_set_uint8(x_55, sizeof(void*)*8, x_49); +lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 1, x_50); +lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 2, x_51); +lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 3, x_54); +x_56 = l_Lean_Elab_Term_resetMessageLog(x_55, x_8, x_9, x_10, x_11, x_12, x_29); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +lean_inc(x_9); +lean_inc(x_55); +x_58 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_55, x_8, x_9, x_10, x_11, x_12, x_57); +lean_dec(x_6); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_box(0); +x_61 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 12, 5); +lean_closure_set(x_61, 0, x_2); +lean_closure_set(x_61, 1, x_60); +lean_closure_set(x_61, 2, x_3); +lean_closure_set(x_61, 3, x_4); +lean_closure_set(x_61, 4, x_5); +x_62 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_61, x_55, x_8, x_9, x_10, x_11, x_12, x_59); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_55); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_63 = lean_ctor_get(x_58, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_65 = x_58; +} else { + lean_dec_ref(x_58); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +return x_66; +} +} +} +else +{ +uint8_t x_67; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_67 = !lean_is_exclusive(x_16); +if (x_67 == 0) +{ +return x_16; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_16, 0); +x_69 = lean_ctor_get(x_16, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_16); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("eval"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l_Lean_Elab_Command_elabEvalUnsafe___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_eval"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabEvalUnsafe___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("MetaEval"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_2 = l_Lean_Elab_Command_elabEvalUnsafe___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe(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; +x_5 = l_Lean_Elab_Command_elabEvalUnsafe___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +return x_7; +} +else +{ +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; uint8_t x_17; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = l_Lean_Syntax_getArg(x_1, x_10); +lean_dec(x_1); +x_12 = lean_st_ref_get(x_3, x_4); +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); +x_16 = l_Lean_Elab_Command_elabEvalUnsafe___closed__7; +x_17 = l_Lean_Environment_contains(x_15, x_16); +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; lean_object* x_27; lean_object* x_28; +x_18 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); +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_ctor_get(x_19, 5); +lean_inc(x_21); +x_22 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_23 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 13, 5); +lean_closure_set(x_24, 0, x_19); +lean_closure_set(x_24, 1, x_11); +lean_closure_set(x_24, 2, x_22); +lean_closure_set(x_24, 3, x_9); +lean_closure_set(x_24, 4, x_23); +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_25, 0, x_21); +lean_closure_set(x_25, 1, x_24); +x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_26, 0, x_25); +x_27 = l_Lean_Elab_Command_elabEvalUnsafe___closed__5; +x_28 = l_Lean_Elab_Command_liftTermElabM___rarg(x_27, x_26, x_2, x_3, x_20); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_29 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); +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); +x_32 = lean_ctor_get(x_30, 5); +lean_inc(x_32); +x_33 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_34 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; +x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed), 13, 5); +lean_closure_set(x_35, 0, x_30); +lean_closure_set(x_35, 1, x_11); +lean_closure_set(x_35, 2, x_33); +lean_closure_set(x_35, 3, x_9); +lean_closure_set(x_35, 4, x_34); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_36, 0, x_32); +lean_closure_set(x_36, 1, x_35); +x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_37, 0, x_36); +x_38 = l_Lean_Elab_Command_elabEvalUnsafe___closed__5; +x_39 = l_Lean_Elab_Command_liftTermElabM___rarg(x_38, x_37, x_2, x_3, x_31); +return x_39; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Elab_Command_elabEvalUnsafe___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_Command_elabEvalUnsafe___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_1); +return x_14; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_5); +return x_12; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +return x_12; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Command_elabEvalUnsafe___lambda__7(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_Command_elabEvalUnsafe___lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, 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_Lean_Elab_Command_elabEvalUnsafe___lambda__8(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_1); +return x_14; +} +} +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_Command_elabEvalUnsafe(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEval___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEval___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabEval___rarg___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabEval___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Command_elabEval___rarg___closed__2; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabEval(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEval___rarg), 1, 0); +return x_4; +} +} +lean_object* l_Lean_Elab_Command_elabEval___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Command_elabEval(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabEval"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabEval(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l_Lean_Elab_Command_elabEvalUnsafe___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; +x_5 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__3; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabSynth___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_11 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_10, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 0; +x_15 = lean_box(0); +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_synthesizeSyntheticMVars_loop(x_14, x_14, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_18 = l_Lean_Meta_instantiateMVars(x_12, x_5, x_6, x_7, x_8, x_17); +if (lean_obj_tag(x_18) == 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); +lean_dec(x_18); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_21 = l_Lean_Meta_synthInstance(x_19, x_2, x_5, x_6, x_7, x_8, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_24, 0, x_22); +x_25 = 0; +x_26 = l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_24, x_25, x_3, x_4, x_5, x_6, x_7, x_8, 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_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(x_26, 0, x_15); +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(0, 2, 0); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +uint8_t x_31; +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_31 = !lean_is_exclusive(x_21); +if (x_31 == 0) +{ +return x_21; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_21); +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_35; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_18); +if (x_35 == 0) +{ +return x_18; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_18, 0); +x_37 = lean_ctor_get(x_18, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_18); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_16); +if (x_39 == 0) +{ +return x_16; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_16, 0); +x_41 = lean_ctor_get(x_16, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_16); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_43 = !lean_is_exclusive(x_11); +if (x_43 == 0) +{ +return x_11; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_11, 0); +x_45 = lean_ctor_get(x_11, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_11); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabSynth___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: +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_11 = 0; +x_12 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_11, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_13) == 0) +{ +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; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_box(0); +x_16 = lean_array_get_size(x_3); +x_17 = lean_unsigned_to_nat(0u); +lean_inc(x_3); +x_18 = l_Array_toSubarray___rarg(x_3, x_17, x_16); +x_19 = lean_ctor_get(x_1, 6); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_15); +x_21 = lean_array_get_size(x_19); +x_22 = lean_usize_of_nat(x_21); +lean_dec(x_21); +x_23 = 0; +x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_19, x_22, x_23, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = !lean_is_exclusive(x_4); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_4, 7); +lean_dec(x_29); +lean_ctor_set(x_4, 7, x_27); +x_30 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_26); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +lean_inc(x_6); +lean_inc(x_4); +x_32 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +lean_dec(x_3); +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, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_box(0); +x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__1), 9, 2); +lean_closure_set(x_35, 0, x_2); +lean_closure_set(x_35, 1, x_34); +x_36 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +return x_36; +} +else +{ +uint8_t x_37; +lean_dec(x_4); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_37 = !lean_is_exclusive(x_32); +if (x_37 == 0) +{ +return x_32; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_32, 0); +x_39 = lean_ctor_get(x_32, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_32); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_41 = lean_ctor_get(x_4, 0); +x_42 = lean_ctor_get(x_4, 1); +x_43 = lean_ctor_get(x_4, 2); +x_44 = lean_ctor_get(x_4, 3); +x_45 = lean_ctor_get(x_4, 4); +x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); +x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); +x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); +x_49 = lean_ctor_get(x_4, 5); +x_50 = lean_ctor_get(x_4, 6); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_4); +x_52 = lean_alloc_ctor(0, 8, 4); +lean_ctor_set(x_52, 0, x_41); +lean_ctor_set(x_52, 1, x_42); +lean_ctor_set(x_52, 2, x_43); +lean_ctor_set(x_52, 3, x_44); +lean_ctor_set(x_52, 4, x_45); +lean_ctor_set(x_52, 5, x_49); +lean_ctor_set(x_52, 6, x_50); +lean_ctor_set(x_52, 7, x_27); +lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_46); +lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 1, x_47); +lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 2, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 3, x_51); +x_53 = l_Lean_Elab_Term_resetMessageLog(x_52, x_5, x_6, x_7, x_8, x_9, x_26); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +lean_inc(x_6); +lean_inc(x_52); +x_55 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_52, x_5, x_6, x_7, x_8, x_9, x_54); +lean_dec(x_3); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = lean_box(0); +x_58 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__1), 9, 2); +lean_closure_set(x_58, 0, x_2); +lean_closure_set(x_58, 1, x_57); +x_59 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_58, x_52, x_5, x_6, x_7, x_8, x_9, x_56); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_52); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_60 = lean_ctor_get(x_55, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_62 = x_55; +} else { + lean_dec_ref(x_55); + 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; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_64 = !lean_is_exclusive(x_13); +if (x_64 == 0) +{ +return x_13; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_13, 0); +x_66 = lean_ctor_get(x_13, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_13); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSynth___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_synth_cmd"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSynth___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabSynth___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSynth___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabSynth___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabSynth(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; 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; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = lean_st_ref_get(x_3, x_4); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Elab_Command_getScope___rarg(x_3, x_9); +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_ctor_get(x_12, 5); +lean_inc(x_14); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__2___boxed), 10, 2); +lean_closure_set(x_15, 0, x_12); +lean_closure_set(x_15, 1, x_6); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); +lean_closure_set(x_16, 0, x_14); +lean_closure_set(x_16, 1, x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_17, 0, x_16); +x_18 = l_Lean_Elab_Command_elabSynth___closed__3; +lean_inc(x_2); +x_19 = l_Lean_Elab_Command_liftTermElabM___rarg(x_18, x_17, x_2, x_3, x_13); +if (lean_obj_tag(x_19) == 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_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_10, x_2, x_3, x_21); +lean_dec(x_2); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_20); +return x_22; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_20); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_ctor_get(x_19, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_dec(x_19); +x_29 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_10, x_2, x_3, x_28); +lean_dec(x_2); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set_tag(x_29, 1); +lean_ctor_set(x_29, 0, x_27); +return x_29; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabSynth___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Command_elabSynth___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Lean_Elab_Command_elabSynth___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_Command_elabSynth(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("synth"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabSynth"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +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); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +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; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_9, 2); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_10); +lean_dec(x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_KVMap_insertCore(x_12, x_1, x_2); +lean_ctor_set(x_7, 0, x_13); +return x_7; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_7); +x_16 = lean_ctor_get(x_14, 2); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_16); +lean_dec(x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_KVMap_insertCore(x_18, x_1, x_2); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_15); +return x_20; +} +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("type mismatch at set_option"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +lean_inc(x_1); +x_9 = l_Lean_getOptionDecl(x_1, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_dec(x_7); +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, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_DataValue_sameCtor(x_12, x_2); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_dec(x_2); +lean_dec(x_1); +x_14 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2; +x_15 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(x_14, x_3, x_4, x_11); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +x_21 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1(x_1, x_2, x_20, x_3, x_4, x_11); +lean_dec(x_3); +return x_21; +} +} +else +{ +uint8_t x_22; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_9); +if (x_22 == 0) +{ +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_9, 0); +x_24 = lean_io_error_to_string(x_23); +x_25 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_7); +lean_ctor_set(x_27, 1, x_26); +lean_ctor_set(x_9, 0, x_27); +return x_9; +} +else +{ +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_28 = lean_ctor_get(x_9, 0); +x_29 = lean_ctor_get(x_9, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_9); +x_30 = lean_io_error_to_string(x_28); +x_31 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_7); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_29); +return x_34; +} +} +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected set_option value "); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("true"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("false"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = l_Lean_Syntax_getId(x_1); +x_7 = lean_erase_macro_scopes(x_6); +x_8 = l_Lean_Syntax_isStrLit_x3f(x_2); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = l_Lean_numLitKind; +x_10 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_9, x_2); +if (lean_obj_tag(x_10) == 0) +{ +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +x_12 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3; +x_13 = lean_string_dec_eq(x_11, x_12); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4; +x_15 = lean_string_dec_eq(x_11, x_14); +lean_dec(x_11); +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_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_dec(x_7); +x_16 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +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 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_19, 0, x_17); +x_20 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_19, x_3, x_4, x_18); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_2); +x_23 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2; +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(x_26, x_3, x_4, x_21); +return x_27; +} +else +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_2); +x_28 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5; +x_29 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_28, x_3, x_4, x_5); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_11); +lean_dec(x_2); +x_30 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6; +x_31 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_30, x_3, x_4, x_5); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_7); +x_32 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_35, 0, x_33); +x_36 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_35, x_3, x_4, x_34); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_2); +x_39 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(x_42, x_3, x_4, x_37); +return x_43; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_2); +x_44 = lean_ctor_get(x_10, 0); +lean_inc(x_44); +lean_dec(x_10); +x_45 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_45, x_3, x_4, x_5); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_2); +x_47 = lean_ctor_get(x_8, 0); +lean_inc(x_47); +lean_dec(x_8); +x_48 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_48, x_3, x_4, x_5); +return x_49; +} +} +} +lean_object* l_Lean_Elab_Command_elabSetOption___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; +x_4 = lean_ctor_get(x_2, 1); +lean_dec(x_4); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +else +{ +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; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 2); +x_7 = lean_ctor_get(x_2, 3); +x_8 = lean_ctor_get(x_2, 4); +x_9 = lean_ctor_get(x_2, 5); +x_10 = lean_ctor_get(x_2, 6); +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_dec(x_2); +x_11 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_1); +lean_ctor_set(x_11, 2, x_6); +lean_ctor_set(x_11, 3, x_7); +lean_ctor_set(x_11, 4, x_8); +lean_ctor_set(x_11, 5, x_9); +lean_ctor_set(x_11, 6, x_10); +return x_11; +} +} +} +lean_object* l_Lean_Elab_Command_elabSetOption(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; lean_object* x_9; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = lean_unsigned_to_nat(2u); +x_8 = l_Lean_Syntax_getArg(x_1, x_7); +lean_inc(x_2); +x_9 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(x_6, x_8, x_2, x_3, x_4); +lean_dec(x_6); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_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_st_ref_take(x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_16 = lean_ctor_get(x_13, 4); +lean_dec(x_16); +x_17 = l_Lean_maxRecDepth; +x_18 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_225____spec__1(x_10, x_17); +lean_ctor_set(x_13, 4, x_18); +x_19 = lean_st_ref_set(x_3, x_13, x_14); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSetOption___lambda__1), 2, 1); +lean_closure_set(x_21, 0, x_10); +x_22 = l_Lean_Elab_Command_modifyScope(x_21, x_2, x_3, x_20); +lean_dec(x_2); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_23 = lean_ctor_get(x_13, 0); +x_24 = lean_ctor_get(x_13, 1); +x_25 = lean_ctor_get(x_13, 2); +x_26 = lean_ctor_get(x_13, 3); +x_27 = lean_ctor_get(x_13, 5); +x_28 = lean_ctor_get(x_13, 6); +x_29 = lean_ctor_get(x_13, 7); +x_30 = lean_ctor_get(x_13, 8); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_13); +x_31 = l_Lean_maxRecDepth; +x_32 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_225____spec__1(x_10, x_31); +x_33 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_33, 0, x_23); +lean_ctor_set(x_33, 1, x_24); +lean_ctor_set(x_33, 2, x_25); +lean_ctor_set(x_33, 3, x_26); +lean_ctor_set(x_33, 4, x_32); +lean_ctor_set(x_33, 5, x_27); +lean_ctor_set(x_33, 6, x_28); +lean_ctor_set(x_33, 7, x_29); +lean_ctor_set(x_33, 8, x_30); +x_34 = lean_st_ref_set(x_3, x_33, x_14); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSetOption___lambda__1), 2, 1); +lean_closure_set(x_36, 0, x_10); +x_37 = l_Lean_Elab_Command_modifyScope(x_36, x_2, x_3, x_35); +lean_dec(x_2); +return x_37; +} +} +else +{ +uint8_t x_38; +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_9); +if (x_38 == 0) +{ +return x_9; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_9, 0); +x_40 = lean_ctor_get(x_9, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_9); +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_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__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_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___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_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +return x_6; +} +} +lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__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_6; +x_6 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabSetOption___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_Command_elabSetOption(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("set_option"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabSetOption"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSetOption___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_Command_commandElabAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("null"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_expandInCmd___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_expandInCmd___closed__2; +x_2 = l_Lean_Elab_Command_elabVariable___closed__3; +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_Lean_Elab_Command_expandInCmd___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(4u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandInCmd(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; uint8_t x_9; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_Syntax_getArg(x_1, x_4); +x_6 = lean_unsigned_to_nat(2u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_72____spec__1(x_2, x_3); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_10 = lean_ctor_get(x_8, 0); +x_11 = l_Lean_Elab_Command_elabSection___closed__1; +lean_inc(x_10); +x_12 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Elab_Command_elabCheckFailure___closed__4; +x_14 = lean_array_push(x_13, x_12); +x_15 = l_Lean_Elab_Command_expandInCmd___closed__3; +x_16 = lean_array_push(x_14, x_15); +x_17 = l_Lean_Elab_Command_elabSection___closed__2; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; +x_20 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_20, 0, x_10); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_array_push(x_13, x_20); +x_22 = lean_array_push(x_21, x_15); +x_23 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +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 = l_Lean_Elab_Command_expandInCmd___closed__4; +x_26 = lean_array_push(x_25, x_18); +x_27 = lean_array_push(x_26, x_5); +x_28 = lean_array_push(x_27, x_7); +x_29 = lean_array_push(x_28, x_24); +x_30 = l_Lean_Elab_Command_expandInCmd___closed__2; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +lean_ctor_set(x_8, 0, x_31); +return x_8; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_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; +x_32 = lean_ctor_get(x_8, 0); +x_33 = lean_ctor_get(x_8, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_8); +x_34 = l_Lean_Elab_Command_elabSection___closed__1; +lean_inc(x_32); +x_35 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_Elab_Command_elabCheckFailure___closed__4; +x_37 = lean_array_push(x_36, x_35); +x_38 = l_Lean_Elab_Command_expandInCmd___closed__3; +x_39 = lean_array_push(x_37, x_38); +x_40 = l_Lean_Elab_Command_elabSection___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___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; +x_43 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_43, 0, x_32); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_array_push(x_36, x_43); +x_45 = lean_array_push(x_44, x_38); +x_46 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = l_Lean_Elab_Command_expandInCmd___closed__4; +x_49 = lean_array_push(x_48, x_41); +x_50 = lean_array_push(x_49, x_5); +x_51 = lean_array_push(x_50, x_7); +x_52 = lean_array_push(x_51, x_47); +x_53 = l_Lean_Elab_Command_expandInCmd___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 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_33); +return x_55; +} +} +} +lean_object* l_Lean_Elab_Command_expandInCmd___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Command_expandInCmd(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("in"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_elabNamespace___closed__6; +x_2 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("expandInCmd"); +return x_1; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; +x_2 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandInCmd___boxed), 3, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = l_Lean_Elab_macroAttribute; +x_3 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4; +x_5 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5; +x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} +lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Elab_Command(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Lean_Elab_BuiltinCommand(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_Command(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1); +l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2); +l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1); +l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1); +l_Lean_Elab_Command_elabNamespace___closed__1 = _init_l_Lean_Elab_Command_elabNamespace___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__1); +l_Lean_Elab_Command_elabNamespace___closed__2 = _init_l_Lean_Elab_Command_elabNamespace___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__2); +l_Lean_Elab_Command_elabNamespace___closed__3 = _init_l_Lean_Elab_Command_elabNamespace___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__3); +l_Lean_Elab_Command_elabNamespace___closed__4 = _init_l_Lean_Elab_Command_elabNamespace___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__4); +l_Lean_Elab_Command_elabNamespace___closed__5 = _init_l_Lean_Elab_Command_elabNamespace___closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__5); +l_Lean_Elab_Command_elabNamespace___closed__6 = _init_l_Lean_Elab_Command_elabNamespace___closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__6); +l_Lean_Elab_Command_elabNamespace___closed__7 = _init_l_Lean_Elab_Command_elabNamespace___closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__7); +l_Lean_Elab_Command_elabNamespace___closed__8 = _init_l_Lean_Elab_Command_elabNamespace___closed__8(); +lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__8); +l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1); +l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2); +l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3); +l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__4); +l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__5); +l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__6(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__6); +res = l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_elabSection___closed__1 = _init_l_Lean_Elab_Command_elabSection___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__1); +l_Lean_Elab_Command_elabSection___closed__2 = _init_l_Lean_Elab_Command_elabSection___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__2); +l_Lean_Elab_Command_elabSection___closed__3 = _init_l_Lean_Elab_Command_elabSection___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__3); +l_Lean_Elab_Command_elabSection___closed__4 = _init_l_Lean_Elab_Command_elabSection___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__4); +l___regBuiltin_Lean_Elab_Command_elabSection___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSection___closed__1); +l___regBuiltin_Lean_Elab_Command_elabSection___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSection___closed__2); +l___regBuiltin_Lean_Elab_Command_elabSection___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSection___closed__3); +res = l___regBuiltin_Lean_Elab_Command_elabSection(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1 = _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1); +l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__2 = _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__2); +l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3 = _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__3); +l_Lean_Elab_Command_elabEnd___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__1); +l_Lean_Elab_Command_elabEnd___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__2); +l_Lean_Elab_Command_elabEnd___lambda__1___closed__3 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__3); +l_Lean_Elab_Command_elabEnd___lambda__1___closed__4 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__4); +l_Lean_Elab_Command_elabEnd___closed__1 = _init_l_Lean_Elab_Command_elabEnd___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEnd___closed__1); +l_Lean_Elab_Command_elabEnd___closed__2 = _init_l_Lean_Elab_Command_elabEnd___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEnd___closed__2); +l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1); +l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2); +l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3); +l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4); +l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elabEnd(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1); +l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2); +l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3); +l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4); +l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elbChoice(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1); +l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2); +l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3); +l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4); +l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1); +l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2); +l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3); +l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4); +l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1 = _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1(); +lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1); +l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2 = _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2(); +lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2); +l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1); +l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2); +l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3(); +lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3); +l_Lean_Elab_Command_elabExport___closed__1 = _init_l_Lean_Elab_Command_elabExport___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabExport___closed__1); +l_Lean_Elab_Command_elabExport___closed__2 = _init_l_Lean_Elab_Command_elabExport___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabExport___closed__2); +l___regBuiltin_Lean_Elab_Command_elabExport___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__1); +l___regBuiltin_Lean_Elab_Command_elabExport___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__2); +l___regBuiltin_Lean_Elab_Command_elabExport___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__3); +l___regBuiltin_Lean_Elab_Command_elabExport___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__4); +l___regBuiltin_Lean_Elab_Command_elabExport___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elabExport(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1); +l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1); +l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2); +l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3); +l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4); +l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5); +l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6); +l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7(); +lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7); +l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1); +l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2); +l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3); +l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4); +l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elabOpen(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_elabVariable___lambda__2___closed__1 = _init_l_Lean_Elab_Command_elabVariable___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabVariable___lambda__2___closed__1); +l_Lean_Elab_Command_elabVariable___closed__1 = _init_l_Lean_Elab_Command_elabVariable___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabVariable___closed__1); +l_Lean_Elab_Command_elabVariable___closed__2 = _init_l_Lean_Elab_Command_elabVariable___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabVariable___closed__2); +l_Lean_Elab_Command_elabVariable___closed__3 = _init_l_Lean_Elab_Command_elabVariable___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabVariable___closed__3); +l_Lean_Elab_Command_elabVariable___boxed__const__1 = _init_l_Lean_Elab_Command_elabVariable___boxed__const__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabVariable___boxed__const__1); +l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1); +l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2); +l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3); +res = l___regBuiltin_Lean_Elab_Command_elabVariable(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_elabCheck___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___lambda__1___closed__1); +l_Lean_Elab_Command_elabCheck___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___lambda__1___closed__2); +l_Lean_Elab_Command_elabCheck___lambda__1___closed__3 = _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___lambda__1___closed__3); +l_Lean_Elab_Command_elabCheck___closed__1 = _init_l_Lean_Elab_Command_elabCheck___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__1); +l_Lean_Elab_Command_elabCheck___closed__2 = _init_l_Lean_Elab_Command_elabCheck___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__2); +l_Lean_Elab_Command_elabCheck___closed__3 = _init_l_Lean_Elab_Command_elabCheck___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__3); +l_Lean_Elab_Command_elabCheck___closed__4 = _init_l_Lean_Elab_Command_elabCheck___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__4); +l_Lean_Elab_Command_elabCheck___closed__5 = _init_l_Lean_Elab_Command_elabCheck___closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__5); +l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1); +l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2); +l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3); +res = l___regBuiltin_Lean_Elab_Command_elabCheck(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_elabReduce___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabReduce___lambda__1___closed__1); +l_Lean_Elab_Command_elabReduce___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabReduce___lambda__1___closed__2); +l_Lean_Elab_Command_elabReduce___closed__1 = _init_l_Lean_Elab_Command_elabReduce___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabReduce___closed__1); +l_Lean_Elab_Command_elabReduce___closed__2 = _init_l_Lean_Elab_Command_elabReduce___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabReduce___closed__2); +l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1); +l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2); +l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3); +res = l___regBuiltin_Lean_Elab_Command_elabReduce(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1 = _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1); +l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2 = _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2); +l_Lean_Elab_Command_failIfSucceeds___closed__1 = _init_l_Lean_Elab_Command_failIfSucceeds___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___closed__1); +l_Lean_Elab_Command_elabCheckFailure___closed__1 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__1); +l_Lean_Elab_Command_elabCheckFailure___closed__2 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__2); +l_Lean_Elab_Command_elabCheckFailure___closed__3 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__3); +l_Lean_Elab_Command_elabCheckFailure___closed__4 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__4); +l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1); +l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2); +l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3); +res = l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3); +l_Lean_Elab_Command_elabEvalUnsafe___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__1); +l_Lean_Elab_Command_elabEvalUnsafe___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__2); +l_Lean_Elab_Command_elabEvalUnsafe___closed__3 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__3); +l_Lean_Elab_Command_elabEvalUnsafe___closed__4 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__4); +l_Lean_Elab_Command_elabEvalUnsafe___closed__5 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__5); +l_Lean_Elab_Command_elabEvalUnsafe___closed__6 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__6); +l_Lean_Elab_Command_elabEvalUnsafe___closed__7 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__7); +l_Lean_Elab_Command_elabEval___rarg___closed__1 = _init_l_Lean_Elab_Command_elabEval___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEval___rarg___closed__1); +l_Lean_Elab_Command_elabEval___rarg___closed__2 = _init_l_Lean_Elab_Command_elabEval___rarg___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEval___rarg___closed__2); +l___regBuiltin_Lean_Elab_Command_elabEval___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__1); +l___regBuiltin_Lean_Elab_Command_elabEval___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__2); +l___regBuiltin_Lean_Elab_Command_elabEval___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__3); +res = l___regBuiltin_Lean_Elab_Command_elabEval(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_elabSynth___closed__1 = _init_l_Lean_Elab_Command_elabSynth___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabSynth___closed__1); +l_Lean_Elab_Command_elabSynth___closed__2 = _init_l_Lean_Elab_Command_elabSynth___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabSynth___closed__2); +l_Lean_Elab_Command_elabSynth___closed__3 = _init_l_Lean_Elab_Command_elabSynth___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabSynth___closed__3); +l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1); +l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2); +l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3); +l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4); +l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elabSynth(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1 = _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1); +l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2 = _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2); +l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1); +l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2); +l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3); +l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4); +l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5(); +lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5); +l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6(); +lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6); +l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1); +l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2); +l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3); +l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4); +l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5); +res = l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Command_expandInCmd___closed__1 = _init_l_Lean_Elab_Command_expandInCmd___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__1); +l_Lean_Elab_Command_expandInCmd___closed__2 = _init_l_Lean_Elab_Command_expandInCmd___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__2); +l_Lean_Elab_Command_expandInCmd___closed__3 = _init_l_Lean_Elab_Command_expandInCmd___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__3); +l_Lean_Elab_Command_expandInCmd___closed__4 = _init_l_Lean_Elab_Command_expandInCmd___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__4); +l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1); +l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2); +l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3); +l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4); +l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5); +res = l___regBuiltin_Lean_Elab_Command_expandInCmd(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)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 7f610e452e..e66ca7a2f6 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -13,39 +13,21 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__4; static lean_object* l_Lean_Elab_Command_State_scopes___default___closed__1; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabVariable(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___lambda__2___closed__1; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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*); static lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed__4; -lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEnd_match__1(lean_object*); static lean_object* l_Lean_Elab_Command_withLogging___closed__1; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls___boxed(lean_object*); -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_72____spec__1(lean_object*, lean_object*); -lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t); -lean_object* l_Lean_Elab_Command_elabSection(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___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*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__1; -lean_object* l_Lean_Elab_Command_elabInitQuot_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabSection___closed__3; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__3; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instInhabitedState; lean_object* l_Lean_extractMacroScopes(lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__13; -static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___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*); size_t l_USize_add(size_t, size_t); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__5___closed__1; -static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__3; @@ -54,19 +36,16 @@ lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFr lean_object* l_Lean_Elab_Command_catchExceptions(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__6; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___closed__4; -static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8___rarg(lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__12; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___boxed(lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -74,189 +53,108 @@ lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___lambda__1(lean_ lean_object* l_Lean_Elab_Command_elabCommand___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__4___closed__3; lean_object* l_Lean_Elab_Command_elabCommand___boxed__const__1; -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instAddMessageContextCommandElabM___closed__1; lean_object* l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___boxed(lean_object*); extern lean_object* l_Lean_nullKind; -lean_object* l_Lean_Elab_Command_withNamespace(lean_object*); lean_object* l_Lean_Elab_Command_getScope___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Command_liftTermElabM___spec__3(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_Command_0__Lean_Elab_Command_popScopes___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkInfoTree___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__2; -lean_object* l_Lean_Elab_Command_elabReduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__10(lean_object*, size_t, size_t, lean_object*); 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___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope_match__1(lean_object*); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); -static lean_object* l_Lean_Elab_Command_elabSection___closed__2; -uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Command_liftTermElabM___spec__3___boxed__const__1; -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabReduce___closed__1; -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2; lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1; lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__11(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_logException___at_Lean_Elab_Command_runLinters___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCheck___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__11___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_throwError___at_Lean_Elab_Command_elabExport___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1; -lean_object* l_Lean_Elab_Command_elabEval___rarg(lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__10(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_liftAttrM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static uint32_t l_Lean_Elab_Command_instInhabitedState___closed__3; -lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__1; lean_object* l_Lean_Elab_Command_liftIO(lean_object*); -static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__4; -lean_object* l_Lean_SourceInfo_fromRef(lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__2; -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___closed__1; lean_object* l_Lean_Elab_Command_commandElabAttribute; extern lean_object* l_Lean_maxRecDepthErrorMessage; -lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Command_getScope___boxed(lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___closed__2; -lean_object* l_Lean_Elab_Command_elabUniverse(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; -lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2(lean_object*); -lean_object* l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___closed__2; -lean_object* l_Lean_Elab_Command_elabCheck_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Context_macroStack___default; lean_object* l_Lean_Elab_Command_modifyScope_match__1(lean_object*); -lean_object* l_Lean_Elab_Command_elabExport___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__4; lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_runLinters___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3(lean_object*); -lean_object* l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabSection___closed__1; lean_object* l_Lean_Elab_Command_runTermElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__16; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__9(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_addDocString___at_Lean_Elab_Command_expandDeclId___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_withLogging___closed__2; -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__7; -lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabUniverses(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabOpen___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM(lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; -lean_object* l_Lean_Elab_Command_elabVariable___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_id___rarg___boxed(lean_object*); -lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__2___closed__1; -static lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__2___closed__1; -lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1; -lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___boxed(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_private_to_user_name(lean_object*); lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__1; static lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__2; static lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed__1; lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM; -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3; -lean_object* l_Lean_Elab_Command_elabInitQuot___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Context_cmdPos___default; -lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabSection(lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Scope_currNamespace___default; static lean_object* l_Lean_Elab_Command_State_messages___default___closed__2; lean_object* l_Std_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM___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_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Command_liftEIO(lean_object*); -lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_reduce(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_addLinter(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabReduce___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_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabReduce___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*); static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__4; lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; -static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__1; -lean_object* l_Lean_Elab_Command_elabCheck(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__5; static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___closed__1; static lean_object* l_Lean_Elab_Command_State_messages___default___closed__1; -lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; -lean_object* l_Lean_Elab_Command_elabUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabSynth___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_Elab_Command_instInhabitedState___closed__7; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__10; lean_object* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_Elab_Term_TermElabM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM(lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___lambda__2___closed__2; -lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__5; lean_object* l_Lean_Elab_Command_elabCommandTopLevel___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -264,7 +162,6 @@ static lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___closed__1; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_ioErrorToMessage(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Scope_opts___default; static lean_object* l_Lean_Elab_Command_State_traceState___default___closed__1; -lean_object* l_Lean_Elab_Command_failIfSucceeds(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__2; static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__2; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__2; @@ -274,8 +171,6 @@ lean_object* l_Lean_Elab_InfoTree_format(lean_object*, lean_object*, lean_object static lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__1; lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5; -static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; lean_object* l_Lean_Elab_Command_withLogging_match__1___rarg(lean_object*, lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -284,80 +179,50 @@ lean_object* l_Lean_Elab_Command_elabCommand_match__2(lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Command_getScopes___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_modifyScope___closed__3; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_messages___default; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__1; uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(uint8_t, uint8_t); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___closed__2; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__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_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_match__1(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___closed__1; -static lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2; uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM; -lean_object* l_Lean_Elab_Command_elabOpen(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3; -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__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_Command_elabCommandTopLevel___spec__9(lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadCommandElabM; static lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed__2; static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__15; -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabSynth___closed__2; static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__14; -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__5(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_Command_elabEvalUnsafe___lambda__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_Command_elabUniverses___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__2; lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1___boxed(lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5(lean_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_hasMissing(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__6(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_Command_elabReduce___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__5; -lean_object* l_Lean_Elab_Command_elabCheckFailure(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabCheck___closed__3; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__13; lean_object* l_Lean_Elab_Command_elabCommand___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses(lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__7; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___spec__10(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_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___closed__1; static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__10; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_ngen___default___closed__3; static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__3; extern lean_object* l_Lean_maxRecDepth; lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_Command_elabCommandTopLevel___spec__7___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1___closed__2; -static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3; static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__7; -lean_object* l_Lean_ScopedEnvExtension_popScope___rarg(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM_match__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1___closed__1; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___boxed(lean_object*, lean_object*, lean_object*); @@ -365,32 +230,23 @@ lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3___boxed lean_object* l_Lean_Elab_Command_elabCommand_match__2___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabSynth(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__1; -lean_object* l_Lean_Elab_Command_elabOpen___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Command_elabCommand___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f(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*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__7; static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__1; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__4; static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__5; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2; lean_object* l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -400,27 +256,13 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__8; lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__1; -lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabCheck___closed__1; lean_object* l_Lean_Elab_Command_liftEIO___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runLinters(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Command_elabCommand___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_Command_elabCheck___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg(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*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_Command_elabEvalUnsafe_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabCheck___closed__5; lean_object* lean_st_ref_take(lean_object*, lean_object*); -lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); -extern lean_object* l_Lean_numLitKind; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2; static lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__2; lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -429,123 +271,75 @@ static lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___close static lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___closed__2; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__1; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_225____spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabCheck___closed__2; lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__9; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Command_liftTermElabM___spec__2(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*); static lean_object* l_Lean_Elab_Command_modifyScope___closed__4; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_Command_instMonadTraceCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__3; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommand___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1; static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__1; lean_object* l_Lean_Elab_Command_withFreshMacroScope(lean_object*); lean_object* l_Lean_Elab_mkMessageCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__4(lean_object*); -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__1___closed__1; lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; -lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__4; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermState(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__4; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2; lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___boxed(lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__16; -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_Lean_Elab_Command_Scope_varDecls___default; -static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2; static lean_object* l_Lean_Elab_Command_elabCommand___closed__1; lean_object* l_Lean_Elab_Command_Scope_openDecls___default; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_Command_elabSection___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEnd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Elab_Command_State_nextInstIdx___default; lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabSection___closed__4; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermState___boxed(lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5; static lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__4___closed__2; lean_object* l_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__1___closed__2; static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__2; -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3; -lean_object* l_Lean_Elab_Command_elabEval___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___closed__2; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2; -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); -lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM_match__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkMetaContext___closed__1; lean_object* l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__3; static lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__3; -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__4___closed__1; lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___closed__2; -lean_object* l_Lean_Elab_Command_elabSynth___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___lambda__3___closed__3; -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4; -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_getBracketedBinderIds___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__9; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; -lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__11(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__10; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkMetaContext___closed__2; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2; static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__2; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2; lean_object* l_Lean_Elab_Command_addUnivLevel___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1(lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__6; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; lean_object* l_Lean_Core_getMaxHeartbeats(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_376_(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1819_(lean_object*); @@ -553,112 +347,69 @@ lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1721_(lea lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1358_(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Command_State_ngen___default; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabReduce___closed__2; lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__5(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getBracketedBinderIds(lean_object*); lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__14; static lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___closed__1; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2; lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Command_liftTermElabM___spec__2___boxed__const__1; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__5; static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__3; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_instMonadCommandElabM___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_messages___default___closed__3; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Command_elabCommand___spec__4___closed__4; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); -static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1; uint8_t l_Lean_Name_isAtomic(lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM_match__2(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabExport(lean_object*); -static lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2; lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); lean_object* l_Lean_Elab_Command_getScopes(lean_object*); -lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5; extern lean_object* l_Lean_protectedExt; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elbChoice(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Context_currRecDepth___default; -lean_object* l_Lean_Elab_Command_elabExport(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withInfoTreeContext___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabSynth___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCheck___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_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11(lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_liftAttrM(lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM_match__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Command_liftTermElabM___spec__7___boxed__const__1; -lean_object* l_Lean_Name_getNumParts(lean_object*); -lean_object* l_Lean_Elab_Command_hasNoErrorMessages(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___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*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_liftAttrM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1; lean_object* l_Lean_Elab_Command_liftCoreM_match__2___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__1; extern lean_object* l_Lean_docStringExt; lean_object* l_Lean_Elab_Command_State_scopes___default; lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__6(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Command_liftTermElabM___spec__8___boxed__const__1; lean_object* l_Lean_Elab_Command_instMonadLiftTIOCommandElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope___boxed(lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader_match__1(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4; lean_object* l_Lean_Elab_Command_addUnivLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___lambda__1(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_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_object*); static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__2; lean_object* l_Lean_Elab_Command_withLogging(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1; -static lean_object* l_Lean_Elab_Command_elabSynth___closed__1; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__2; uint8_t l_Array_isEmpty___rarg(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM; -lean_object* l_Lean_Elab_Command_elabSetOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1; -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___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* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext_match__1(lean_object*); -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEnd___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -666,128 +417,78 @@ lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_ob static lean_object* l_Lean_Elab_Command_modifyScope___closed__2; lean_object* l_Lean_Elab_Command_liftIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__1; -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2; lean_object* l_Lean_Elab_Command_elabCommand_match__3___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCheck___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_Elab_Command_liftIO___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1; lean_object* l_Lean_Elab_Command_modifyScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabVariable___closed__1; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkCoreContext___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1; -lean_object* l_Lean_Elab_Command_elabEnd(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__2(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__5___closed__2; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; lean_object* l_Lean_Elab_Command_Scope_levelNames___default; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_modifyScope___closed__1; -lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4; lean_object* l_Lean_Elab_Command_liftCoreM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__6; lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_Command_withMacroExpansion(lean_object*); lean_object* l_Lean_Elab_Command_withLogging_match__1(lean_object*); lean_object* l_Lean_Elab_Command_modifyScope_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4; lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1(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*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1; static lean_object* l_Lean_Elab_Command_elabCommand___lambda__3___closed__4; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__4___closed__1; static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1721____closed__4; -lean_object* l_Lean_Elab_Command_elabInitQuot___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___closed__5; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabReduce___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_hasNoErrorMessages___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2; -lean_object* l_Lean_Elab_Command_elabChoiceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__7___boxed(lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; lean_object* l_Lean_Elab_withSaveInfoContext___at_Lean_Elab_Command_liftTermElabM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd(lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__8___boxed(lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__1; static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1721____closed__2; static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__4; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3(lean_object*); static lean_object* l_Lean_Elab_Command_showPartialSyntaxErrors___closed__1; -lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4; lean_object* l_Lean_Elab_Command_Context_ref___default; lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__6; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5; -lean_object* l_Lean_Elab_Command_elabEnd_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__9; lean_object* l_Lean_Elab_Command_addUnivLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lean_object*); lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_drop___rarg(lean_object*, lean_object*); +lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__4; lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__1(lean_object*, lean_object*, 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_Elab_Command_instMonadEnvCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__1; uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_Elab_Command_elabCommand___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); -static lean_object* l_Lean_Elab_Command_elabCheck___closed__4; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__4; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___closed__3; -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__2; -static lean_object* l_Lean_Elab_Command_elabExport___closed__2; lean_object* l_Std_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___lambda__3___closed__1; -lean_object* l_Lean_Syntax_getSepArgs(lean_object*); static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1721____closed__1; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__17; static lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___closed__3; -static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; static lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__1; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___closed__3; -extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l_Lean_Elab_Command_elabCommand_match__3(lean_object*); lean_object* l_Lean_Elab_getInfoTrees___at_Lean_Elab_Command_elabCommandTopLevel___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -798,91 +499,56 @@ lean_object* l_Lean_Elab_Command_elabCommand___lambda__1(lean_object*, lean_obje lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8___boxed(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabExport___closed__1; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__6; -lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce(lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__1; lean_object* l_Lean_Elab_Command_getScope(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed__3; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule(lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM_match__2(lean_object*); -lean_object* l_Lean_Elab_Command_expandInCmd(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__8; -lean_object* l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabReduce(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__11; -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4; -lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__4___closed__1; -lean_object* l_Lean_Elab_Command_elabEval(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__8(lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_getKind(lean_object*); -static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6; -static lean_object* l_Lean_Elab_Command_elabEnd___closed__1; -lean_object* l_Lean_Environment_registerNamespace(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__10; -lean_object* l_Lean_Elab_Command_elabEnd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_showPartialSyntaxErrors; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_ioErrorToMessage___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__4___boxed(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__5; -static lean_object* l_Lean_Elab_Command_elabVariable___closed__2; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__2; lean_object* l_Lean_Elab_Command_instInhabitedScope; -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4; static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__3; static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__4; -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__4; -lean_object* l_Lean_Syntax_getOptionalIdent_x3f(lean_object*); static lean_object* l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__3; lean_object* l_Lean_Elab_Command_runTermElabM_match__1(lean_object*); -lean_object* l_Lean_Elab_Command_elbChoice___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabNamespace(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_pp_macroStack; +lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadLiftTIOCommandElabM(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen(lean_object*); -lean_object* l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_withNamespace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___rarg(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkInfoTree(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__11; static lean_object* l_Lean_Elab_Command_elabCommand___lambda__3___closed__2; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___closed__1; static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1819____closed__2; -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3; static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__3; lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM___closed__3; @@ -891,68 +557,42 @@ static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__1; lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_expandInCmd___closed__3; lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_ngen___default___closed__1; -static lean_object* l_Lean_Elab_Command_elabNamespace___closed__2; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forIn___at_Lean_Elab_Command_elabCommandTopLevel___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__12; -lean_object* l_Lean_Elab_Command_elabVariable___boxed__const__1; -lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe(lean_object*); -lean_object* l_Lean_Elab_Command_expandInCmd___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore(lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Std_PersistentArray_forInAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__10; lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__2; lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadInfoTreeCommandElabM; -static lean_object* l_Lean_Elab_Command_expandInCmd___closed__1; lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames(lean_object*); -static lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; lean_object* l_Lean_Elab_Command_Context_currMacroScope___default; lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___closed__4; static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1819____closed__1; static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__9; static lean_object* l_Lean_Elab_Command_instInhabitedState___closed__9; lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__3; -lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1; -static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__3; lean_object* l_Lean_Elab_Command_getMainModule___boxed(lean_object*); -lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1; -uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader(lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_4____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__4; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_ngen___default___closed__2; -lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth(lean_object*); lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); -lean_object* l_Lean_Elab_Command_elabVariable___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_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_DataValue_sameCtor(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_Lean_Elab_Command_elabCommand_match__1(lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader___boxed(lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_Elab_Command_elabCommand___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_getBracketedBinderIds___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Command_getScopes___rarg(lean_object*, lean_object*); @@ -961,7 +601,6 @@ lean_object* l_Lean_Elab_Command_instAddMessageContextCommandElabM; lean_object* l_Lean_Elab_Command_mkMessageAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__7(lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkCoreContext(lean_object*, lean_object*, lean_object*); @@ -969,73 +608,47 @@ static lean_object* l_Lean_Elab_Command_instMonadCommandElabM___closed__8; lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_traceState___default; lean_object* l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___rarg___boxed(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabEval(lean_object*); +static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__3; lean_object* l_Lean_Elab_Command_mkCommandElabAttribute(lean_object*); lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5; lean_object* l_Lean_Elab_Command_liftTermElabM_match__2___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_State_infoState___default___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabSynth___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__5; lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__2___closed__2; lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabChoiceAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5; lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_liftTermElabM___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_Elab_Command_elabVariable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkMetaContext; lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_Command_elabCommandTopLevel___spec__7(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes_match__1(lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__7; static lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__4; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__3; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___lambda__6___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__8; static lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1___closed__3; -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__6; lean_object* l_IO_mkRef___rarg(lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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_Lean_Elab_Command_elabCommand___lambda__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3; uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); -static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__2; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_Command_elabCommandTopLevel___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__4; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__4; lean_object* l_Lean_Elab_Command_elabCommand___lambda__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_nextMacroScope___default; -extern lean_object* l_Lean_scopedEnvExtensionsRef; -lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCheck_match__1(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; -static lean_object* l_Lean_Elab_Command_expandInCmd___closed__4; lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); uint8_t l_Lean_Elab_isFreshInstanceName(lean_object*); lean_object* l_Lean_Elab_Command_instAddErrorMessageContextCommandElabM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__12; -lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__2; -static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__1; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__1; lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext_match__2___rarg(lean_object*, lean_object*); @@ -1045,88 +658,56 @@ static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6 uint32_t lean_uint32_of_nat(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__3; static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__1; -lean_object* l_Lean_Elab_Command_elabVariable___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext(lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3; -lean_object* l_Lean_Elab_Command_hasNoErrorMessages___boxed(lean_object*); lean_object* l_Lean_Elab_Command_getScopes___boxed(lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_infoState___default; lean_object* l_Lean_Elab_Command_elabCommandTopLevel___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabInitQuot_match__1(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_Lean_Elab_Command_instMonadOptionsCommandElabM___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCommand___closed__3; -static lean_object* l_Lean_Elab_Command_elabSynth___closed__3; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__5; lean_object* l_Lean_Elab_Command_instMonadCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkMessageAux(lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_mkSimpleThunk(lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Command_liftTermElabM___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___closed__2; -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_expandInCmd___closed__2; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabCommandTopLevel___spec__4___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_Elab_Command_liftTermElabM___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__5; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__1; -static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__3; static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabNamespace___closed__1; size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___closed__6; static lean_object* l_Lean_Elab_Command_getBracketedBinderIds___closed__8; static lean_object* l_Lean_Elab_Command_instInhabitedScope___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabVariable___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__18; lean_object* l_Lean_Elab_Command_Scope_varUIds___default; lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__10___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___boxed(lean_object*, 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_Command_elabCommandTopLevel___spec__9___boxed(lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_Command_elabInitQuot___boxed(lean_object*); static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1721____closed__3; -lean_object* l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(lean_object*); -static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__2; static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__1; -lean_object* l_Lean_Elab_Command_elabSetOption___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_runLinters___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__11; -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3; static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__2; lean_object* l_Lean_Elab_Command_instMonadLiftTIOCommandElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; static lean_object* l_Lean_Elab_Command_instInhabitedScope___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___closed__1; -static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3; +lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; lean_object* l_Lean_Elab_Command_liftEIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8___rarg___closed__1; lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Command_liftTermElabM___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; +lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_lintersRef; lean_object* l_Lean_Elab_Command_runTermElabM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -1135,8 +716,6 @@ lean_object* l_Lean_Elab_Command_getRef___boxed(lean_object*, lean_object*, lean lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__3___rarg(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabCommandTopLevel___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_add_decl(lean_object*, lean_object*); -lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Elab_Command_Scope_opts___default() { _start: @@ -19238,1079 +18817,6 @@ lean_dec(x_2); return x_5; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__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) { -_start: -{ -uint8_t x_8; -x_8 = x_3 < x_2; -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_dec(x_4); -x_10 = lean_array_uget(x_1, x_3); -x_11 = lean_st_ref_take(x_6, x_7); -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_is_exclusive(x_12); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; -x_15 = lean_ctor_get(x_12, 0); -x_16 = l_Lean_ScopedEnvExtension_pushScope___rarg(x_10, x_15); -lean_dec(x_10); -lean_ctor_set(x_12, 0, x_16); -x_17 = lean_st_ref_set(x_6, x_12, x_13); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = 1; -x_20 = x_3 + x_19; -x_21 = lean_box(0); -x_3 = x_20; -x_4 = x_21; -x_7 = x_18; -goto _start; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; -x_23 = lean_ctor_get(x_12, 0); -x_24 = lean_ctor_get(x_12, 1); -x_25 = lean_ctor_get(x_12, 2); -x_26 = lean_ctor_get(x_12, 3); -x_27 = lean_ctor_get(x_12, 4); -x_28 = lean_ctor_get(x_12, 5); -x_29 = lean_ctor_get(x_12, 6); -x_30 = lean_ctor_get(x_12, 7); -x_31 = lean_ctor_get(x_12, 8); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_12); -x_32 = l_Lean_ScopedEnvExtension_pushScope___rarg(x_10, x_23); -lean_dec(x_10); -x_33 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_24); -lean_ctor_set(x_33, 2, x_25); -lean_ctor_set(x_33, 3, x_26); -lean_ctor_set(x_33, 4, x_27); -lean_ctor_set(x_33, 5, x_28); -lean_ctor_set(x_33, 6, x_29); -lean_ctor_set(x_33, 7, x_30); -lean_ctor_set(x_33, 8, x_31); -x_34 = lean_st_ref_set(x_6, x_33, x_13); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = 1; -x_37 = x_3 + x_36; -x_38 = lean_box(0); -x_3 = x_37; -x_4 = x_38; -x_7 = x_35; -goto _start; -} -} -} -} -lean_object* l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__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; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_4 = l_Lean_scopedEnvExtensionsRef; -x_5 = lean_st_ref_get(x_4, x_3); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_array_get_size(x_6); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = lean_box(0); -x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__2(x_6, x_9, x_10, x_11, x_1, x_2, x_7); -lean_dec(x_6); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; -x_14 = lean_ctor_get(x_12, 0); -lean_dec(x_14); -lean_ctor_set(x_12, 0, x_11); -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_11); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; -x_9 = x_4 < x_3; -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_1); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_5); -x_11 = lean_array_uget(x_2, x_4); -x_12 = lean_st_ref_take(x_7, x_8); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; -x_16 = lean_ctor_get(x_13, 0); -lean_inc(x_1); -x_17 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_11, x_16, x_1); -lean_ctor_set(x_13, 0, x_17); -x_18 = lean_st_ref_set(x_7, x_13, x_14); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = 1; -x_21 = x_4 + x_20; -x_22 = lean_box(0); -x_4 = x_21; -x_5 = x_22; -x_8 = x_19; -goto _start; -} -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_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_13, 1); -x_26 = lean_ctor_get(x_13, 2); -x_27 = lean_ctor_get(x_13, 3); -x_28 = lean_ctor_get(x_13, 4); -x_29 = lean_ctor_get(x_13, 5); -x_30 = lean_ctor_get(x_13, 6); -x_31 = lean_ctor_get(x_13, 7); -x_32 = lean_ctor_get(x_13, 8); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_13); -lean_inc(x_1); -x_33 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_11, x_24, x_1); -x_34 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_25); -lean_ctor_set(x_34, 2, x_26); -lean_ctor_set(x_34, 3, x_27); -lean_ctor_set(x_34, 4, x_28); -lean_ctor_set(x_34, 5, x_29); -lean_ctor_set(x_34, 6, x_30); -lean_ctor_set(x_34, 7, x_31); -lean_ctor_set(x_34, 8, x_32); -x_35 = lean_st_ref_set(x_7, x_34, x_14); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = 1; -x_38 = x_4 + x_37; -x_39 = lean_box(0); -x_4 = x_38; -x_5 = x_39; -x_8 = x_36; -goto _start; -} -} -} -} -lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3(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; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = l_Lean_scopedEnvExtensionsRef; -x_6 = lean_st_ref_get(x_5, x_4); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = lean_array_get_size(x_7); -x_10 = lean_usize_of_nat(x_9); -lean_dec(x_9); -x_11 = 0; -x_12 = lean_box(0); -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__4(x_1, x_7, x_10, x_11, x_12, x_2, x_3, x_8); -lean_dec(x_7); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; -x_15 = lean_ctor_get(x_13, 0); -lean_dec(x_15); -lean_ctor_set(x_13, 0, x_12); -return x_13; -} -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_12); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope(uint8_t 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; uint8_t x_10; -x_7 = lean_st_ref_take(x_5, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_11 = lean_ctor_get(x_8, 0); -x_12 = lean_ctor_get(x_8, 2); -lean_inc(x_3); -x_13 = l_Lean_Environment_registerNamespace(x_11, x_3); -x_14 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_12); -x_15 = !lean_is_exclusive(x_14); -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_object* x_21; -x_16 = lean_ctor_get(x_14, 2); -lean_dec(x_16); -x_17 = lean_ctor_get(x_14, 0); -lean_dec(x_17); -lean_inc(x_3); -lean_ctor_set(x_14, 2, x_3); -lean_ctor_set(x_14, 0, x_2); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_14); -lean_ctor_set(x_18, 1, x_12); -lean_ctor_set(x_8, 2, x_18); -lean_ctor_set(x_8, 0, x_13); -x_19 = lean_st_ref_set(x_5, x_8, x_9); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1(x_4, x_5, x_20); -if (x_1 == 0) -{ -uint8_t x_22; -lean_dec(x_3); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -x_24 = lean_box(0); -lean_ctor_set(x_21, 0, x_24); -return x_21; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_21, 1); -lean_inc(x_25); -lean_dec(x_21); -x_26 = lean_box(0); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_21, 1); -lean_inc(x_28); -lean_dec(x_21); -x_29 = l_Lean_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3(x_3, x_4, x_5, x_28); -return x_29; -} -} -else -{ -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; -x_30 = lean_ctor_get(x_14, 1); -x_31 = lean_ctor_get(x_14, 3); -x_32 = lean_ctor_get(x_14, 4); -x_33 = lean_ctor_get(x_14, 5); -x_34 = lean_ctor_get(x_14, 6); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_14); -lean_inc(x_3); -x_35 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_35, 0, x_2); -lean_ctor_set(x_35, 1, x_30); -lean_ctor_set(x_35, 2, x_3); -lean_ctor_set(x_35, 3, x_31); -lean_ctor_set(x_35, 4, x_32); -lean_ctor_set(x_35, 5, x_33); -lean_ctor_set(x_35, 6, x_34); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_12); -lean_ctor_set(x_8, 2, x_36); -lean_ctor_set(x_8, 0, x_13); -x_37 = lean_st_ref_set(x_5, x_8, x_9); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1(x_4, x_5, x_38); -if (x_1 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_3); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_41 = x_39; -} else { - lean_dec_ref(x_39); - x_41 = lean_box(0); -} -x_42 = lean_box(0); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_40); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_dec(x_39); -x_45 = l_Lean_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3(x_3, x_4, x_5, x_44); -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; 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; -x_46 = lean_ctor_get(x_8, 0); -x_47 = lean_ctor_get(x_8, 1); -x_48 = lean_ctor_get(x_8, 2); -x_49 = lean_ctor_get(x_8, 3); -x_50 = lean_ctor_get(x_8, 4); -x_51 = lean_ctor_get(x_8, 5); -x_52 = lean_ctor_get(x_8, 6); -x_53 = lean_ctor_get(x_8, 7); -x_54 = lean_ctor_get(x_8, 8); -lean_inc(x_54); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_8); -lean_inc(x_3); -x_55 = l_Lean_Environment_registerNamespace(x_46, x_3); -x_56 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_48); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 3); -lean_inc(x_58); -x_59 = lean_ctor_get(x_56, 4); -lean_inc(x_59); -x_60 = lean_ctor_get(x_56, 5); -lean_inc(x_60); -x_61 = lean_ctor_get(x_56, 6); -lean_inc(x_61); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - lean_ctor_release(x_56, 2); - lean_ctor_release(x_56, 3); - lean_ctor_release(x_56, 4); - lean_ctor_release(x_56, 5); - lean_ctor_release(x_56, 6); - x_62 = x_56; -} else { - lean_dec_ref(x_56); - x_62 = lean_box(0); -} -lean_inc(x_3); -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(0, 7, 0); -} else { - x_63 = x_62; -} -lean_ctor_set(x_63, 0, x_2); -lean_ctor_set(x_63, 1, x_57); -lean_ctor_set(x_63, 2, x_3); -lean_ctor_set(x_63, 3, x_58); -lean_ctor_set(x_63, 4, x_59); -lean_ctor_set(x_63, 5, x_60); -lean_ctor_set(x_63, 6, x_61); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_48); -x_65 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_65, 0, x_55); -lean_ctor_set(x_65, 1, x_47); -lean_ctor_set(x_65, 2, x_64); -lean_ctor_set(x_65, 3, x_49); -lean_ctor_set(x_65, 4, x_50); -lean_ctor_set(x_65, 5, x_51); -lean_ctor_set(x_65, 6, x_52); -lean_ctor_set(x_65, 7, x_53); -lean_ctor_set(x_65, 8, x_54); -x_66 = lean_st_ref_set(x_5, x_65, x_9); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -lean_dec(x_66); -x_68 = l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1(x_4, x_5, x_67); -if (x_1 == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_3); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_70 = x_68; -} else { - lean_dec_ref(x_68); - x_70 = lean_box(0); -} -x_71 = lean_box(0); -if (lean_is_scalar(x_70)) { - x_72 = lean_alloc_ctor(0, 2, 0); -} else { - x_72 = x_70; -} -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_69); -return x_72; -} -else -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_68, 1); -lean_inc(x_73); -lean_dec(x_68); -x_74 = l_Lean_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3(x_3, x_4, x_5, x_73); -return x_74; -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_9 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__2(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -size_t x_9; size_t x_10; lean_object* x_11; -x_9 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_10 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_11 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__4(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -return x_11; -} -} -lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3___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_activateScoped___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___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: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_1); -lean_dec(x_1); -x_8 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_8; -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes_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; uint64_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_uint64(x_1, sizeof(void*)*2); -lean_dec(x_1); -x_10 = lean_box_uint64(x_9); -x_11 = lean_apply_3(x_3, x_7, x_8, x_10); -return x_11; -} -default: -{ -lean_object* x_12; -lean_dec(x_3); -lean_dec(x_2); -x_12 = lean_apply_1(x_4, x_1); -return x_12; -} -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes_match__1___rarg), 4, 0); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid scope"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -switch (lean_obj_tag(x_2)) { -case 0: -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_3); -x_6 = lean_box(0); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -return x_7; -} -case 1: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_2, 1); -lean_inc(x_9); -lean_dec(x_2); -lean_inc(x_3); -x_10 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(x_1, x_8, x_3, x_4, x_5); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = l_Lean_Elab_Command_getScope___rarg(x_4, x_11); -if (x_1 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -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, 2); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope(x_1, x_9, x_15, x_3, x_4, x_14); -lean_dec(x_3); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_ctor_get(x_12, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_dec(x_12); -x_19 = lean_ctor_get(x_17, 2); -lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_9); -x_20 = lean_name_mk_string(x_19, x_9); -x_21 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope(x_1, x_9, x_20, x_3, x_4, x_18); -lean_dec(x_3); -return x_21; -} -} -else -{ -uint8_t x_22; -lean_dec(x_9); -lean_dec(x_3); -x_22 = !lean_is_exclusive(x_10); -if (x_22 == 0) -{ -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -x_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; -} -} -} -default: -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_2); -x_26 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2; -x_27 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_26, x_3, x_4, x_5); -return x_27; -} -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___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 = lean_unbox(x_1); -lean_dec(x_1); -x_7 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(x_6, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_7; -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace(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 = 1; -x_6 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(x_5, x_1, x_2, x_3, x_4); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8___rarg___closed__1; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg), 1, 0); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("namespace"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_Command_elabNamespace___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_elabNamespace(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; -x_5 = l_Lean_Elab_Command_elabNamespace___closed__2; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_2); -lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_8 = lean_unsigned_to_nat(1u); -x_9 = l_Lean_Syntax_getArg(x_1, x_8); -lean_dec(x_1); -x_10 = l_Lean_Syntax_getId(x_9); -lean_dec(x_9); -x_11 = 1; -x_12 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(x_11, x_10, x_2, x_3, x_4); -return x_12; -} -} -} -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_elabNamespace___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_Command_elabNamespace(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabNamespace"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabNamespace___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabNamespace___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2; -x_5 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("section"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_Command_elabSection___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("ident"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSection___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_elabSection(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; -x_5 = l_Lean_Elab_Command_elabSection___closed__2; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_2); -lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_unsigned_to_nat(1u); -x_9 = l_Lean_Syntax_getArg(x_1, x_8); -lean_dec(x_1); -x_10 = l_Lean_nullKind; -lean_inc(x_9); -x_11 = l_Lean_Syntax_isNodeOf(x_9, 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 = l_Lean_Syntax_isNodeOf(x_9, x_10, x_12); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_2); -x_14 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_15 = l_Lean_Elab_Command_getScope___rarg(x_3, x_4); -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, 2); -lean_inc(x_18); -lean_dec(x_16); -x_19 = 0; -x_20 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_21 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope(x_19, x_20, x_18, x_2, x_3, x_17); -lean_dec(x_2); -return x_21; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_Syntax_getArg(x_9, x_22); -lean_dec(x_9); -x_24 = l_Lean_Elab_Command_elabSection___closed__4; -lean_inc(x_23); -x_25 = l_Lean_Syntax_isOfKind(x_23, x_24); -if (x_25 == 0) -{ -lean_object* x_26; -lean_dec(x_23); -lean_dec(x_2); -x_26 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_26; -} -else -{ -lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_27 = l_Lean_Syntax_getId(x_23); -lean_dec(x_23); -x_28 = 0; -x_29 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(x_28, x_27, x_2, x_3, x_4); -return x_29; -} -} -} -} -} -lean_object* l_Lean_Elab_Command_elabSection___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_Command_elabSection(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabSection"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabSection___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSection___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabSection(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabSection___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabSection___closed__2; -x_5 = l___regBuiltin_Lean_Elab_Command_elabSection___closed__3; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} lean_object* l_Lean_Elab_Command_getScopes___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -20371,1520 +18877,6 @@ lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope_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_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_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; uint8_t x_15; -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(x_5, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -x_9 = lean_ctor_get(x_5, 2); -lean_inc(x_9); -x_10 = lean_ctor_get(x_5, 3); -lean_inc(x_10); -x_11 = lean_ctor_get(x_5, 4); -lean_inc(x_11); -x_12 = lean_ctor_get(x_5, 5); -lean_inc(x_12); -x_13 = lean_ctor_get(x_5, 6); -lean_inc(x_13); -lean_dec(x_5); -x_14 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_15 = lean_string_dec_eq(x_7, x_14); -lean_dec(x_7); -if (x_15 == 0) -{ -lean_object* x_16; -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_2); -x_16 = lean_apply_1(x_3, x_1); -return x_16; -} -else -{ -lean_object* x_17; -lean_dec(x_3); -lean_dec(x_1); -x_17 = lean_apply_7(x_2, x_6, x_8, x_9, x_10, x_11, x_12, x_13); -return x_17; -} -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg), 3, 0); -return x_2; -} -} -uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -uint8_t x_2; -x_2 = 0; -return x_2; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_ctor_get(x_3, 0); -x_5 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -x_6 = lean_string_dec_eq(x_4, x_5); -return x_6; -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader_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_dec(x_3); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_7; -lean_dec(x_4); -x_7 = lean_apply_2(x_5, x_1, x_2); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_5); -x_8 = lean_ctor_get(x_2, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); -lean_dec(x_1); -x_12 = lean_ctor_get(x_2, 1); -lean_inc(x_12); -lean_dec(x_2); -x_13 = lean_ctor_get(x_8, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -x_15 = lean_ctor_get(x_8, 2); -lean_inc(x_15); -x_16 = lean_ctor_get(x_8, 3); -lean_inc(x_16); -x_17 = lean_ctor_get(x_8, 4); -lean_inc(x_17); -x_18 = lean_ctor_get(x_8, 5); -lean_inc(x_18); -x_19 = lean_ctor_get(x_8, 6); -lean_inc(x_19); -lean_dec(x_8); -x_20 = lean_box_uint64(x_11); -x_21 = lean_apply_11(x_4, x_9, x_10, x_20, x_13, x_12, x_14, x_15, x_16, x_17, x_18, x_19); -return x_21; -} -} -default: -{ -lean_object* x_22; -lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_apply_2(x_5, x_1, x_2); -return x_22; -} -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader_match__1___rarg), 5, 0); -return x_2; -} -} -uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader(lean_object* x_1, lean_object* x_2) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -uint8_t x_3; -x_3 = 1; -return x_3; -} -case 1: -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_4; -x_4 = 0; -return x_4; -} -else -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_5 = lean_ctor_get(x_2, 0); -x_6 = lean_ctor_get(x_1, 0); -x_7 = lean_ctor_get(x_1, 1); -x_8 = lean_ctor_get(x_2, 1); -x_9 = lean_ctor_get(x_5, 0); -x_10 = lean_string_dec_eq(x_9, x_7); -if (x_10 == 0) -{ -uint8_t x_11; -x_11 = 0; -return x_11; -} -else -{ -x_1 = x_6; -x_2 = x_8; -goto _start; -} -} -} -default: -{ -uint8_t x_13; -x_13 = 0; -return x_13; -} -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__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) { -_start: -{ -uint8_t x_8; -x_8 = x_3 < x_2; -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_dec(x_4); -x_10 = lean_array_uget(x_1, x_3); -x_11 = lean_st_ref_take(x_6, x_7); -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_is_exclusive(x_12); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; -x_15 = lean_ctor_get(x_12, 0); -x_16 = l_Lean_ScopedEnvExtension_popScope___rarg(x_10, x_15); -lean_dec(x_10); -lean_ctor_set(x_12, 0, x_16); -x_17 = lean_st_ref_set(x_6, x_12, x_13); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = 1; -x_20 = x_3 + x_19; -x_21 = lean_box(0); -x_3 = x_20; -x_4 = x_21; -x_7 = x_18; -goto _start; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; -x_23 = lean_ctor_get(x_12, 0); -x_24 = lean_ctor_get(x_12, 1); -x_25 = lean_ctor_get(x_12, 2); -x_26 = lean_ctor_get(x_12, 3); -x_27 = lean_ctor_get(x_12, 4); -x_28 = lean_ctor_get(x_12, 5); -x_29 = lean_ctor_get(x_12, 6); -x_30 = lean_ctor_get(x_12, 7); -x_31 = lean_ctor_get(x_12, 8); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_12); -x_32 = l_Lean_ScopedEnvExtension_popScope___rarg(x_10, x_23); -lean_dec(x_10); -x_33 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_24); -lean_ctor_set(x_33, 2, x_25); -lean_ctor_set(x_33, 3, x_26); -lean_ctor_set(x_33, 4, x_27); -lean_ctor_set(x_33, 5, x_28); -lean_ctor_set(x_33, 6, x_29); -lean_ctor_set(x_33, 7, x_30); -lean_ctor_set(x_33, 8, x_31); -x_34 = lean_st_ref_set(x_6, x_33, x_13); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = 1; -x_37 = x_3 + x_36; -x_38 = lean_box(0); -x_3 = x_37; -x_4 = x_38; -x_7 = x_35; -goto _start; -} -} -} -} -lean_object* l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__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; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_4 = l_Lean_scopedEnvExtensionsRef; -x_5 = lean_st_ref_get(x_4, x_3); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_array_get_size(x_6); -x_9 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_10 = 0; -x_11 = lean_box(0); -x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__2(x_6, x_9, x_10, x_11, x_1, x_2, x_7); -lean_dec(x_6); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; -x_14 = lean_ctor_get(x_12, 0); -lean_dec(x_14); -lean_ctor_set(x_12, 0, x_11); -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_11); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_1, 1); -x_9 = lean_nat_dec_le(x_8, x_3); -if (x_9 == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_nat_dec_eq(x_2, x_10); -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; lean_object* x_18; -lean_dec(x_4); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_sub(x_2, x_12); -lean_dec(x_2); -x_14 = l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__1(x_5, x_6, x_7); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_ctor_get(x_1, 2); -x_17 = lean_nat_add(x_3, x_16); -lean_dec(x_3); -x_18 = lean_box(0); -x_2 = x_13; -x_3 = x_17; -x_4 = x_18; -x_7 = x_15; -goto _start; -} -else -{ -lean_object* x_20; -lean_dec(x_3); -lean_dec(x_2); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_4); -lean_ctor_set(x_20, 1, x_7); -return x_20; -} -} -else -{ -lean_object* x_21; -lean_dec(x_3); -lean_dec(x_2); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_4); -lean_ctor_set(x_21, 1, x_7); -return x_21; -} -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(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; lean_object* x_9; uint8_t x_10; -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_unsigned_to_nat(1u); -lean_inc(x_1); -x_7 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_7, 1, x_1); -lean_ctor_set(x_7, 2, x_6); -x_8 = lean_box(0); -x_9 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__3(x_7, x_1, x_5, x_8, x_2, x_3, x_4); -lean_dec(x_7); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_9, 0); -lean_dec(x_11); -lean_ctor_set(x_9, 0, x_8); -return x_9; -} -else -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_8); -lean_ctor_set(x_13, 1, x_12); -return x_13; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_9 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__2(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__1(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Std_Range_forIn_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -return x_8; -} -} -lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_elabEnd_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_3); -x_4 = lean_box(0); -x_5 = lean_apply_1(x_2, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_1(x_3, x_6); -return x_7; -} -} -} -lean_object* l_Lean_Elab_Command_elabEnd_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEnd_match__1___rarg), 3, 0); -return x_2; -} -} -lean_object* l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -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_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -lean_dec(x_4); -x_7 = l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(x_5); -lean_ctor_set(x_1, 1, x_7); -lean_ctor_set(x_1, 0, x_6); -return x_1; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_1, 0); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_dec(x_1); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} -} -} -} -lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(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; uint8_t x_8; -x_5 = lean_st_ref_get(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 7); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_1); -x_9 = !lean_is_exclusive(x_5); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_5, 0); -lean_dec(x_10); -x_11 = lean_box(0); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -return x_14; -} -} -else -{ -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_15 = lean_ctor_get(x_5, 1); -lean_inc(x_15); -lean_dec(x_5); -x_16 = lean_st_ref_take(x_3, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 7); -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, 7); -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); -x_24 = l_Std_PersistentArray_push___rarg(x_23, x_1); -lean_ctor_set(x_18, 1, x_24); -x_25 = lean_st_ref_set(x_3, x_17, x_19); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -x_28 = lean_box(0); -lean_ctor_set(x_25, 0, x_28); -return x_25; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); -lean_dec(x_25); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -else -{ -uint8_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; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_32 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); -x_33 = lean_ctor_get(x_18, 0); -x_34 = lean_ctor_get(x_18, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_18); -x_35 = l_Std_PersistentArray_push___rarg(x_34, x_1); -x_36 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_36, 0, x_33); -lean_ctor_set(x_36, 1, x_35); -lean_ctor_set_uint8(x_36, sizeof(void*)*2, x_32); -lean_ctor_set(x_17, 7, x_36); -x_37 = lean_st_ref_set(x_3, x_17, x_19); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_39 = x_37; -} else { - lean_dec_ref(x_37); - x_39 = lean_box(0); -} -x_40 = lean_box(0); -if (lean_is_scalar(x_39)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_39; -} -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_38); -return x_41; -} -} -else -{ -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; uint8_t 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; -x_42 = lean_ctor_get(x_17, 0); -x_43 = lean_ctor_get(x_17, 1); -x_44 = lean_ctor_get(x_17, 2); -x_45 = lean_ctor_get(x_17, 3); -x_46 = lean_ctor_get(x_17, 4); -x_47 = lean_ctor_get(x_17, 5); -x_48 = lean_ctor_get(x_17, 6); -x_49 = lean_ctor_get(x_17, 8); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_17); -x_50 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); -x_51 = lean_ctor_get(x_18, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_18, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - x_53 = x_18; -} else { - lean_dec_ref(x_18); - x_53 = lean_box(0); -} -x_54 = l_Std_PersistentArray_push___rarg(x_52, x_1); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 2, 1); -} else { - x_55 = x_53; -} -lean_ctor_set(x_55, 0, x_51); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set_uint8(x_55, sizeof(void*)*2, x_50); -x_56 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_56, 0, x_42); -lean_ctor_set(x_56, 1, x_43); -lean_ctor_set(x_56, 2, x_44); -lean_ctor_set(x_56, 3, x_45); -lean_ctor_set(x_56, 4, x_46); -lean_ctor_set(x_56, 5, x_47); -lean_ctor_set(x_56, 6, x_48); -lean_ctor_set(x_56, 7, x_55); -lean_ctor_set(x_56, 8, x_49); -x_57 = lean_st_ref_set(x_3, x_56, x_19); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_59 = x_57; -} else { - lean_dec_ref(x_57); - x_59 = lean_box(0); -} -x_60 = lean_box(0); -if (lean_is_scalar(x_59)) { - x_61 = lean_alloc_ctor(0, 2, 0); -} else { - x_61 = x_59; -} -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_58); -return x_61; -} -} -} -} -lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(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; uint8_t x_8; -x_5 = lean_st_ref_get(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 7); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); -lean_dec(x_7); -if (x_8 == 0) -{ -uint8_t x_9; -lean_dec(x_1); -x_9 = !lean_is_exclusive(x_5); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_5, 0); -lean_dec(x_10); -x_11 = lean_box(0); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -return x_14; -} -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_5, 1); -lean_inc(x_15); -lean_dec(x_5); -x_16 = l_Lean_Elab_Command_State_messages___default___closed__3; -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(x_17, x_2, x_3, x_15); -return x_18; -} -} -} -lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(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; -x_5 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_5, 0, x_1); -x_6 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(x_5, x_2, x_3, x_4); -return x_6; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid 'end', name is missing"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid 'end', name mismatch"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabEnd___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) == 0) -{ -uint8_t x_8; -lean_dec(x_3); -x_8 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope(x_2); -lean_dec(x_2); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__2; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_9, x_5, x_6, x_7); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_5); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_7); -return x_12; -} -} -else -{ -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_1, 0); -x_14 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader(x_13, x_2); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = l_List_map___at_Lean_Elab_Command_elabEnd___spec__1(x_2); -x_16 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_16, 0, x_3); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_16, x_5, x_6, x_7); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__4; -x_20 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_19, x_5, x_6, x_18); -return x_20; -} -else -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_7); -return x_22; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEnd___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid 'end', insufficient scopes"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEnd___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabEnd___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabEnd(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; lean_object* x_9; lean_object* x_10; lean_object* x_87; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_getOptionalIdent_x3f(x_6); -lean_dec(x_6); -x_87 = l_Lean_Elab_Command_getScopes___rarg(x_3, x_4); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_8 = x_5; -x_9 = x_88; -x_10 = x_89; -goto block_86; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_7, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_87, 1); -lean_inc(x_92); -lean_dec(x_87); -x_93 = l_Lean_Name_getNumParts(x_90); -lean_dec(x_90); -x_8 = x_93; -x_9 = x_91; -x_10 = x_92; -goto block_86; -} -block_86: -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_List_lengthAux___rarg(x_9, x_11); -x_13 = lean_nat_dec_lt(x_8, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -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; uint8_t x_23; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_14 = lean_st_ref_get(x_3, x_10); -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, 2); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_List_lengthAux___rarg(x_17, x_11); -lean_dec(x_17); -x_19 = lean_nat_sub(x_18, x_5); -lean_dec(x_18); -x_20 = lean_st_ref_take(x_3, x_16); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_24 = lean_ctor_get(x_21, 2); -lean_inc(x_19); -x_25 = l_List_drop___rarg(x_19, x_24); -lean_dec(x_24); -lean_ctor_set(x_21, 2, x_25); -x_26 = lean_st_ref_set(x_3, x_21, x_22); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(x_19, x_2, x_3, x_27); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = l_Lean_Elab_Command_elabEnd___closed__2; -x_31 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_30, x_2, x_3, x_29); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -return x_31; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_31, 0); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_31); -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_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; -x_36 = lean_ctor_get(x_21, 0); -x_37 = lean_ctor_get(x_21, 1); -x_38 = lean_ctor_get(x_21, 2); -x_39 = lean_ctor_get(x_21, 3); -x_40 = lean_ctor_get(x_21, 4); -x_41 = lean_ctor_get(x_21, 5); -x_42 = lean_ctor_get(x_21, 6); -x_43 = lean_ctor_get(x_21, 7); -x_44 = lean_ctor_get(x_21, 8); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_21); -lean_inc(x_19); -x_45 = l_List_drop___rarg(x_19, x_38); -lean_dec(x_38); -x_46 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_46, 0, x_36); -lean_ctor_set(x_46, 1, x_37); -lean_ctor_set(x_46, 2, x_45); -lean_ctor_set(x_46, 3, x_39); -lean_ctor_set(x_46, 4, x_40); -lean_ctor_set(x_46, 5, x_41); -lean_ctor_set(x_46, 6, x_42); -lean_ctor_set(x_46, 7, x_43); -lean_ctor_set(x_46, 8, x_44); -x_47 = lean_st_ref_set(x_3, x_46, x_22); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(x_19, x_2, x_3, x_48); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = l_Lean_Elab_Command_elabEnd___closed__2; -x_52 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_51, x_2, x_3, x_50); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_55 = x_52; -} else { - lean_dec_ref(x_52); - x_55 = lean_box(0); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(1, 2, 0); -} else { - x_56 = x_55; -} -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_57 = lean_st_ref_take(x_3, x_10); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = !lean_is_exclusive(x_58); -if (x_60 == 0) -{ -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; -x_61 = lean_ctor_get(x_58, 2); -lean_inc(x_8); -x_62 = l_List_drop___rarg(x_8, x_61); -lean_dec(x_61); -lean_ctor_set(x_58, 2, x_62); -x_63 = lean_st_ref_set(x_3, x_58, x_59); -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); -x_65 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(x_8, x_2, x_3, x_64); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = l_Lean_Elab_Command_elabEnd___lambda__1(x_7, x_9, x_1, x_66, x_2, x_3, x_67); -lean_dec(x_66); -lean_dec(x_7); -return x_68; -} -else -{ -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; -x_69 = lean_ctor_get(x_58, 0); -x_70 = lean_ctor_get(x_58, 1); -x_71 = lean_ctor_get(x_58, 2); -x_72 = lean_ctor_get(x_58, 3); -x_73 = lean_ctor_get(x_58, 4); -x_74 = lean_ctor_get(x_58, 5); -x_75 = lean_ctor_get(x_58, 6); -x_76 = lean_ctor_get(x_58, 7); -x_77 = lean_ctor_get(x_58, 8); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_58); -lean_inc(x_8); -x_78 = l_List_drop___rarg(x_8, x_71); -lean_dec(x_71); -x_79 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_79, 0, x_69); -lean_ctor_set(x_79, 1, x_70); -lean_ctor_set(x_79, 2, x_78); -lean_ctor_set(x_79, 3, x_72); -lean_ctor_set(x_79, 4, x_73); -lean_ctor_set(x_79, 5, x_74); -lean_ctor_set(x_79, 6, x_75); -lean_ctor_set(x_79, 7, x_76); -lean_ctor_set(x_79, 8, x_77); -x_80 = lean_st_ref_set(x_3, x_79, x_59); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -lean_dec(x_80); -x_82 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(x_8, x_2, x_3, x_81); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_85 = l_Lean_Elab_Command_elabEnd___lambda__1(x_7, x_9, x_1, x_83, x_2, x_3, x_84); -lean_dec(x_83); -lean_dec(x_7); -return x_85; -} -} -} -} -} -lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___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_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__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_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Command_elabEnd___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Elab_Command_elabEnd___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_Command_elabEnd(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("end"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabEnd"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEnd___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_withNamespace___rarg(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 = 1; -lean_inc(x_3); -lean_inc(x_1); -x_7 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes(x_6, x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); -lean_inc(x_4); -x_9 = lean_apply_3(x_2, x_3, x_4, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_10 = lean_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_st_ref_take(x_4, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_16 = lean_ctor_get(x_13, 2); -x_17 = l_Lean_Name_getNumParts(x_1); -lean_dec(x_1); -x_18 = l_List_drop___rarg(x_17, x_16); -lean_dec(x_16); -lean_ctor_set(x_13, 2, x_18); -x_19 = lean_st_ref_set(x_4, x_13, x_14); -lean_dec(x_4); -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_10); -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_10); -lean_ctor_set(x_23, 1, x_22); -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_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; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_13, 1); -x_26 = lean_ctor_get(x_13, 2); -x_27 = lean_ctor_get(x_13, 3); -x_28 = lean_ctor_get(x_13, 4); -x_29 = lean_ctor_get(x_13, 5); -x_30 = lean_ctor_get(x_13, 6); -x_31 = lean_ctor_get(x_13, 7); -x_32 = lean_ctor_get(x_13, 8); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_13); -x_33 = l_Lean_Name_getNumParts(x_1); -lean_dec(x_1); -x_34 = l_List_drop___rarg(x_33, x_26); -lean_dec(x_26); -x_35 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_35, 0, x_24); -lean_ctor_set(x_35, 1, x_25); -lean_ctor_set(x_35, 2, x_34); -lean_ctor_set(x_35, 3, x_27); -lean_ctor_set(x_35, 4, x_28); -lean_ctor_set(x_35, 5, x_29); -lean_ctor_set(x_35, 6, x_30); -lean_ctor_set(x_35, 7, x_31); -lean_ctor_set(x_35, 8, x_32); -x_36 = lean_st_ref_set(x_4, x_35, x_14); -lean_dec(x_4); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_38 = x_36; -} else { - lean_dec_ref(x_36); - x_38 = lean_box(0); -} -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(0, 2, 0); -} else { - x_39 = x_38; -} -lean_ctor_set(x_39, 0, x_10); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -else -{ -uint8_t x_40; -lean_dec(x_4); -lean_dec(x_1); -x_40 = !lean_is_exclusive(x_9); -if (x_40 == 0) -{ -return x_9; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_9, 0); -x_42 = lean_ctor_get(x_9, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_9); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -} -else -{ -uint8_t x_44; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_7); -if (x_44 == 0) -{ -return x_7; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_7, 0); -x_46 = lean_ctor_get(x_7, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_7); -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* l_Lean_Elab_Command_withNamespace(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_withNamespace___rarg), 5, 0); -return x_2; -} -} lean_object* l_Lean_Elab_Command_modifyScope_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -21948,7 +18940,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_Command_modifyScope___closed__1; x_2 = l_Lean_Elab_Command_modifyScope___closed__2; -x_3 = lean_unsigned_to_nat(479u); +x_3 = lean_unsigned_to_nat(406u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Elab_Command_modifyScope___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -22495,11512 +19487,6 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Elab_Command_elabChoiceAux(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; -x_6 = lean_array_get_size(x_1); -x_7 = lean_nat_dec_lt(x_2, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_8 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_5); -return x_8; -} -else -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_array_fget(x_1, x_2); -lean_inc(x_4); -lean_inc(x_3); -x_10 = l_Lean_Elab_Command_elabCommand(x_9, x_3, x_4, x_5); -if (lean_obj_tag(x_10) == 0) -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -else -{ -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; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_11); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_10); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_17 = lean_ctor_get(x_10, 1); -x_18 = lean_ctor_get(x_10, 0); -lean_dec(x_18); -x_19 = lean_ctor_get(x_11, 0); -lean_inc(x_19); -x_20 = l_Lean_Elab_unsupportedSyntaxExceptionId; -x_21 = lean_nat_dec_eq(x_20, x_19); -lean_dec(x_19); -if (x_21 == 0) -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -else -{ -lean_object* x_22; lean_object* x_23; -lean_free_object(x_10); -lean_dec(x_11); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_2, x_22); -lean_dec(x_2); -x_2 = x_23; -x_5 = x_17; -goto _start; -} -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_10, 1); -lean_inc(x_25); -lean_dec(x_10); -x_26 = lean_ctor_get(x_11, 0); -lean_inc(x_26); -x_27 = l_Lean_Elab_unsupportedSyntaxExceptionId; -x_28 = lean_nat_dec_eq(x_27, x_26); -lean_dec(x_26); -if (x_28 == 0) -{ -lean_object* x_29; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_11); -lean_ctor_set(x_29, 1, x_25); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; -lean_dec(x_11); -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_2, x_30); -lean_dec(x_2); -x_2 = x_31; -x_5 = x_25; -goto _start; -} -} -} -} -} -} -} -lean_object* l_Lean_Elab_Command_elabChoiceAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Command_elabChoiceAux(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elbChoice(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; -x_5 = l_Lean_Syntax_getArgs(x_1); -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_Elab_Command_elabChoiceAux(x_5, x_6, x_2, x_3, x_4); -lean_dec(x_5); -return x_7; -} -} -lean_object* l_Lean_Elab_Command_elbChoice___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_Command_elbChoice(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("choice"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elbChoice"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elbChoice___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elabUniverse(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; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Elab_Command_addUnivLevel(x_6, x_2, x_3, x_4); -lean_dec(x_6); -return x_7; -} -} -lean_object* l_Lean_Elab_Command_elabUniverse___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_Command_elabUniverse(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("universe"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabUniverse"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabUniverse___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__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) { -_start: -{ -uint8_t x_8; -x_8 = x_2 == x_3; -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -lean_dec(x_4); -x_9 = lean_array_uget(x_1, x_2); -lean_inc(x_5); -x_10 = l_Lean_Elab_Command_addUnivLevel(x_9, x_5, x_6, x_7); -lean_dec(x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; size_t x_13; size_t 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); -x_13 = 1; -x_14 = x_2 + x_13; -x_2 = x_14; -x_4 = x_11; -x_7 = x_12; -goto _start; -} -else -{ -uint8_t x_16; -lean_dec(x_5); -x_16 = !lean_is_exclusive(x_10); -if (x_16 == 0) -{ -return x_10; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_10, 0); -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_10); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -else -{ -lean_object* x_20; -lean_dec(x_5); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_4); -lean_ctor_set(x_20, 1, x_7); -return x_20; -} -} -} -lean_object* l_Lean_Elab_Command_elabUniverses(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; lean_object* x_9; uint8_t x_10; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_getArgs(x_6); -lean_dec(x_6); -x_8 = lean_array_get_size(x_7); -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_lt(x_9, x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_4); -return x_12; -} -else -{ -uint8_t x_13; -x_13 = lean_nat_dec_le(x_8, x_8); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -x_14 = lean_box(0); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_4); -return x_15; -} -else -{ -size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; -x_16 = 0; -x_17 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_18 = lean_box(0); -x_19 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__1(x_7, x_16, x_17, x_18, x_2, x_3, x_4); -lean_dec(x_7); -return x_19; -} -} -} -} -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -size_t x_8; size_t x_9; lean_object* x_10; -x_8 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_9 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_10 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__1(x_1, x_8, x_9, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_Elab_Command_elabUniverses___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_Command_elabUniverses(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("universes"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabUniverses"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabUniverses___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elabInitQuot_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_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -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_Lean_Elab_Command_elabInitQuot_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInitQuot_match__1___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__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; uint8_t x_8; -x_5 = lean_st_ref_take(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = !lean_is_exclusive(x_6); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_6, 0); -lean_dec(x_9); -lean_ctor_set(x_6, 0, x_1); -x_10 = lean_st_ref_set(x_3, x_6, x_7); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -lean_dec(x_12); -x_13 = lean_box(0); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_17 = lean_ctor_get(x_6, 1); -x_18 = lean_ctor_get(x_6, 2); -x_19 = lean_ctor_get(x_6, 3); -x_20 = lean_ctor_get(x_6, 4); -x_21 = lean_ctor_get(x_6, 5); -x_22 = lean_ctor_get(x_6, 6); -x_23 = lean_ctor_get(x_6, 7); -x_24 = lean_ctor_get(x_6, 8); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_6); -x_25 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_25, 0, x_1); -lean_ctor_set(x_25, 1, x_17); -lean_ctor_set(x_25, 2, x_18); -lean_ctor_set(x_25, 3, x_19); -lean_ctor_set(x_25, 4, x_20); -lean_ctor_set(x_25, 5, x_21); -lean_ctor_set(x_25, 6, x_22); -lean_ctor_set(x_25, 7, x_23); -lean_ctor_set(x_25, 8, x_24); -x_26 = lean_st_ref_set(x_3, x_25, x_7); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - x_28 = x_26; -} else { - lean_dec_ref(x_26); - x_28 = lean_box(0); -} -x_29 = lean_box(0); -if (lean_is_scalar(x_28)) { - x_30 = lean_alloc_ctor(0, 2, 0); -} else { - x_30 = x_28; -} -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_27); -return x_30; -} -} -} -lean_object* l_Lean_Elab_Command_elabInitQuot___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; lean_object* x_8; lean_object* x_9; -x_4 = lean_st_ref_get(x_2, x_3); -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); -lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_box(4); -x_9 = lean_add_decl(x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -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_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_2, x_6); -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_ctor_get(x_12, 2); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_14); -lean_dec(x_14); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_KernelException_toMessageData(x_10, x_16); -x_18 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_17, x_1, x_2, x_13); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_9, 0); -lean_inc(x_19); -lean_dec(x_9); -x_20 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_19, x_1, x_2, x_6); -lean_dec(x_1); -return x_20; -} -} -} -lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInitQuot___rarg___boxed), 3, 0); -return x_2; -} -} -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__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_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_elabInitQuot___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Elab_Command_elabInitQuot___rarg(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* l_Lean_Elab_Command_elabInitQuot___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Command_elabInitQuot(x_1); -lean_dec(x_1); -return x_2; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("init_quot"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabInitQuot"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInitQuot___boxed), 1, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_ctor_get(x_2, 4); -lean_inc(x_8); -lean_inc(x_8); -x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); -lean_dec(x_6); -x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); -lean_dec(x_2); -lean_dec(x_8); -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); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_15); -lean_ctor_set_tag(x_13, 1); -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; -x_17 = lean_ctor_get(x_13, 0); -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_13); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_9); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; -} -} -} -static lean_object* _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unknown namespace '"); -return x_1; -} -} -static lean_object* _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("'"); -return x_1; -} -} -lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_st_ref_get(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Elab_Command_getScope___rarg(x_3, x_7); -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, 2); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Elab_Command_getScope___rarg(x_3, x_11); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -x_17 = lean_ctor_get(x_15, 3); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_1); -x_18 = l_Lean_ResolveName_resolveNamespace_x3f(x_8, x_12, x_17, x_1); -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_8); -if (lean_obj_tag(x_18) == 0) -{ -uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_free_object(x_13); -x_19 = 1; -x_20 = l_Lean_Name_toString(x_1, x_19); -x_21 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; -x_22 = lean_string_append(x_21, x_20); -lean_dec(x_20); -x_23 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; -x_24 = lean_string_append(x_22, x_23); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_26, x_2, x_3, x_16); -return x_27; -} -else -{ -lean_object* x_28; -lean_dec(x_2); -lean_dec(x_1); -x_28 = lean_ctor_get(x_18, 0); -lean_inc(x_28); -lean_dec(x_18); -lean_ctor_set(x_13, 0, x_28); -return x_13; -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_13, 0); -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_13); -x_31 = lean_ctor_get(x_29, 3); -lean_inc(x_31); -lean_dec(x_29); -lean_inc(x_1); -x_32 = l_Lean_ResolveName_resolveNamespace_x3f(x_8, x_12, x_31, x_1); -lean_dec(x_31); -lean_dec(x_12); -lean_dec(x_8); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_33 = 1; -x_34 = l_Lean_Name_toString(x_1, x_33); -x_35 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; -x_36 = lean_string_append(x_35, x_34); -lean_dec(x_34); -x_37 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; -x_38 = lean_string_append(x_36, x_37); -x_39 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_40, x_2, x_3, x_30); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_2); -lean_dec(x_1); -x_42 = lean_ctor_get(x_32, 0); -lean_inc(x_42); -lean_dec(x_32); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_30); -return x_43; -} -} -} -} -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unknown declaration '"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(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; lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_5 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_5, 0, x_1); -x_6 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; -x_7 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -x_8 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; -x_9 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = 2; -x_11 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_9, x_10, x_2, x_3, x_4); -return x_11; -} -} -lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 1); -lean_inc(x_6); -lean_dec(x_3); -x_7 = lean_add_alias(x_1, x_5, x_6); -x_1 = x_7; -x_2 = x_4; -goto _start; -} -} -} -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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: -{ -uint8_t x_11; -x_11 = x_5 == x_6; -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_array_uget(x_4, x_5); -x_13 = l_Lean_Syntax_getId(x_12); -lean_inc(x_13); -x_14 = l_Lean_Name_append(x_1, x_13); -lean_inc(x_3); -x_15 = l_Lean_Environment_contains(x_3, x_14); -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_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; size_t x_29; size_t x_30; -lean_dec(x_13); -x_16 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); -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_replaceRef(x_12, x_17); -lean_dec(x_17); -lean_dec(x_12); -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); -x_22 = lean_ctor_get(x_8, 2); -x_23 = lean_ctor_get(x_8, 3); -x_24 = lean_ctor_get(x_8, 4); -x_25 = lean_ctor_get(x_8, 5); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -x_26 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_26, 0, x_20); -lean_ctor_set(x_26, 1, x_21); -lean_ctor_set(x_26, 2, x_22); -lean_ctor_set(x_26, 3, x_23); -lean_ctor_set(x_26, 4, x_24); -lean_ctor_set(x_26, 5, x_25); -lean_ctor_set(x_26, 6, x_19); -x_27 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(x_14, x_26, x_9, x_18); -lean_dec(x_26); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = 1; -x_30 = x_5 + x_29; -x_5 = x_30; -x_10 = x_28; -goto _start; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; -lean_dec(x_12); -x_32 = l_Lean_Name_append(x_2, x_13); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_14); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_7); -x_35 = 1; -x_36 = x_5 + x_35; -x_5 = x_36; -x_7 = x_34; -goto _start; -} -} -else -{ -lean_object* x_38; -lean_dec(x_3); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_7); -lean_ctor_set(x_38, 1, x_10); -return x_38; -} -} -} -lean_object* l_Lean_Elab_Command_elabExport___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; 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; uint8_t x_18; lean_object* x_19; lean_object* x_20; -x_8 = lean_st_ref_get(x_6, x_7); -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); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_unsigned_to_nat(3u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_14 = l_Lean_Syntax_getArgs(x_13); -lean_dec(x_13); -x_15 = lean_box(0); -x_16 = lean_array_get_size(x_14); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_lt(x_17, x_16); -if (x_18 == 0) -{ -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_11); -x_19 = x_15; -x_20 = x_10; -goto block_50; -} -else -{ -uint8_t x_51; -x_51 = lean_nat_dec_le(x_16, x_16); -if (x_51 == 0) -{ -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_11); -x_19 = x_15; -x_20 = x_10; -goto block_50; -} -else -{ -size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_52 = 0; -x_53 = lean_usize_of_nat(x_16); -lean_dec(x_16); -x_54 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(x_2, x_3, x_11, x_14, x_52, x_53, x_15, x_5, x_6, x_10); -lean_dec(x_14); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_19 = x_55; -x_20 = x_56; -goto block_50; -} -} -block_50: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_st_ref_take(x_6, x_20); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = !lean_is_exclusive(x_22); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_22, 0); -x_26 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(x_25, x_19); -lean_ctor_set(x_22, 0, x_26); -x_27 = lean_st_ref_set(x_6, x_22, x_23); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -x_30 = lean_box(0); -lean_ctor_set(x_27, 0, x_30); -return x_27; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -return x_33; -} -} -else -{ -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; -x_34 = lean_ctor_get(x_22, 0); -x_35 = lean_ctor_get(x_22, 1); -x_36 = lean_ctor_get(x_22, 2); -x_37 = lean_ctor_get(x_22, 3); -x_38 = lean_ctor_get(x_22, 4); -x_39 = lean_ctor_get(x_22, 5); -x_40 = lean_ctor_get(x_22, 6); -x_41 = lean_ctor_get(x_22, 7); -x_42 = lean_ctor_get(x_22, 8); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_22); -x_43 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(x_34, x_19); -x_44 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_35); -lean_ctor_set(x_44, 2, x_36); -lean_ctor_set(x_44, 3, x_37); -lean_ctor_set(x_44, 4, x_38); -lean_ctor_set(x_44, 5, x_39); -lean_ctor_set(x_44, 6, x_40); -lean_ctor_set(x_44, 7, x_41); -lean_ctor_set(x_44, 8, x_42); -x_45 = lean_st_ref_set(x_6, x_44, x_23); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_47 = x_45; -} else { - lean_dec_ref(x_45); - x_47 = lean_box(0); -} -x_48 = lean_box(0); -if (lean_is_scalar(x_47)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_47; -} -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabExport___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid 'export', self export"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabExport___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabExport___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabExport(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; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_getId(x_6); -lean_dec(x_6); -lean_inc(x_2); -x_8 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(x_7, x_2, x_3, x_4); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_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); -x_11 = l_Lean_Elab_Command_getScope___rarg(x_3, x_10); -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_ctor_get(x_12, 2); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_name_eq(x_9, x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_box(0); -x_17 = l_Lean_Elab_Command_elabExport___lambda__1(x_1, x_9, x_14, x_16, x_2, x_3, x_13); -lean_dec(x_2); -lean_dec(x_14); -lean_dec(x_9); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_19; uint8_t x_20; -lean_dec(x_14); -lean_dec(x_9); -x_18 = l_Lean_Elab_Command_elabExport___closed__2; -x_19 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(x_18, x_2, x_3, x_13); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -return x_19; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_19); -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; -} -} -} -else -{ -uint8_t x_24; -lean_dec(x_2); -x_24 = !lean_is_exclusive(x_8); -if (x_24 == 0) -{ -return x_8; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_8, 0); -x_26 = lean_ctor_get(x_8, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_8); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__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_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__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_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___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_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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) { -_start: -{ -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_12 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(x_1, x_2, x_3, x_4, x_11, x_12, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_13; -} -} -lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Command_elabExport___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Elab_Command_elabExport___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_Command_elabExport(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("export"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabExport"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabExport___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabExport(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_3, x_4, x_8); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_7); -lean_ctor_set(x_12, 1, x_11); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_13); -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_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; 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; uint8_t x_15; -x_6 = lean_st_ref_get(x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_st_ref_get(x_2, x_8); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_st_ref_get(x_2, x_12); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_1); -x_19 = l_Lean_ResolveName_resolveNamespace_x3f(x_9, x_13, x_18, x_1); -lean_dec(x_18); -lean_dec(x_13); -lean_dec(x_9); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -lean_free_object(x_14); -x_20 = 1; -x_21 = l_Lean_Name_toString(x_1, x_20); -x_22 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; -x_23 = lean_string_append(x_22, x_21); -lean_dec(x_21); -x_24 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; -x_25 = lean_string_append(x_23, x_24); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_27, x_2, x_3, x_4, x_17); -return x_28; -} -else -{ -lean_object* x_29; -lean_dec(x_1); -x_29 = lean_ctor_get(x_19, 0); -lean_inc(x_29); -lean_dec(x_19); -lean_ctor_set(x_14, 0, x_29); -return x_14; -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_14, 0); -x_31 = lean_ctor_get(x_14, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_14); -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_1); -x_33 = l_Lean_ResolveName_resolveNamespace_x3f(x_9, x_13, x_32, x_1); -lean_dec(x_32); -lean_dec(x_13); -lean_dec(x_9); -if (lean_obj_tag(x_33) == 0) -{ -uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_34 = 1; -x_35 = l_Lean_Name_toString(x_1, x_34); -x_36 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1; -x_37 = lean_string_append(x_36, x_35); -lean_dec(x_35); -x_38 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; -x_39 = lean_string_append(x_37, x_38); -x_40 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_40, 0, x_39); -x_41 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_41, 0, x_40); -x_42 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_41, x_2, x_3, x_4, x_31); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; -lean_dec(x_1); -x_43 = lean_ctor_get(x_33, 0); -lean_inc(x_43); -lean_dec(x_33); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_31); -return x_44; -} -} -} -} -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_340; uint8_t x_341; -x_340 = 2; -x_341 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_3, x_340); -if (x_341 == 0) -{ -lean_object* x_342; -x_342 = lean_box(0); -x_8 = x_342; -goto block_339; -} -else -{ -uint8_t x_343; -lean_inc(x_2); -x_343 = l_Lean_MessageData_hasSyntheticSorry(x_2); -if (x_343 == 0) -{ -lean_object* x_344; -x_344 = lean_box(0); -x_8 = x_344; -goto block_339; -} -else -{ -lean_object* x_345; lean_object* x_346; -lean_dec(x_2); -x_345 = lean_box(0); -x_346 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_7); -return x_346; -} -} -block_339: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_8); -x_9 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); -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 = l_Lean_replaceRef(x_1, x_10); -lean_dec(x_10); -x_13 = 0; -x_14 = l_Lean_Syntax_getPos_x3f(x_12, x_13); -x_15 = l_Lean_Syntax_getTailPos_x3f(x_12, x_13); -lean_dec(x_12); -if (lean_obj_tag(x_14) == 0) -{ -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get(x_5, 1); -x_18 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -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_unsigned_to_nat(0u); -x_22 = l_Lean_FileMap_toPosition(x_17, x_21); -lean_inc(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Elab_Command_getScope___rarg(x_6, x_20); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 2); -lean_inc(x_27); -lean_dec(x_25); -x_28 = l_Lean_Elab_Command_getScope___rarg(x_6, x_26); -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_ctor_get(x_29, 3); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_27); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_19); -x_34 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -lean_inc(x_16); -x_35 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_35, 0, x_16); -lean_ctor_set(x_35, 1, x_22); -lean_ctor_set(x_35, 2, x_23); -lean_ctor_set(x_35, 3, x_34); -lean_ctor_set(x_35, 4, x_33); -lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_3); -x_36 = lean_st_ref_take(x_6, x_30); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_ctor_get(x_37, 1); -x_41 = l_Std_PersistentArray_push___rarg(x_40, x_35); -lean_ctor_set(x_37, 1, x_41); -x_42 = lean_st_ref_set(x_6, x_37, x_38); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_42, 0); -lean_dec(x_44); -x_45 = lean_box(0); -lean_ctor_set(x_42, 0, x_45); -return x_42; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 1); -lean_inc(x_46); -lean_dec(x_42); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -} -else -{ -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; -x_49 = lean_ctor_get(x_37, 0); -x_50 = lean_ctor_get(x_37, 1); -x_51 = lean_ctor_get(x_37, 2); -x_52 = lean_ctor_get(x_37, 3); -x_53 = lean_ctor_get(x_37, 4); -x_54 = lean_ctor_get(x_37, 5); -x_55 = lean_ctor_get(x_37, 6); -x_56 = lean_ctor_get(x_37, 7); -x_57 = lean_ctor_get(x_37, 8); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); -lean_inc(x_54); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_37); -x_58 = l_Std_PersistentArray_push___rarg(x_50, x_35); -x_59 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_59, 0, x_49); -lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_59, 2, x_51); -lean_ctor_set(x_59, 3, x_52); -lean_ctor_set(x_59, 4, x_53); -lean_ctor_set(x_59, 5, x_54); -lean_ctor_set(x_59, 6, x_55); -lean_ctor_set(x_59, 7, x_56); -lean_ctor_set(x_59, 8, x_57); -x_60 = lean_st_ref_set(x_6, x_59, x_38); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_62 = x_60; -} else { - lean_dec_ref(x_60); - x_62 = lean_box(0); -} -x_63 = lean_box(0); -if (lean_is_scalar(x_62)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_62; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -return x_64; -} -} -else -{ -uint8_t x_65; -x_65 = !lean_is_exclusive(x_15); -if (x_65 == 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; 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; uint8_t x_90; -x_66 = lean_ctor_get(x_15, 0); -x_67 = lean_ctor_get(x_5, 0); -x_68 = lean_ctor_get(x_5, 1); -x_69 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -x_72 = lean_unsigned_to_nat(0u); -x_73 = l_Lean_FileMap_toPosition(x_68, x_72); -x_74 = l_Lean_FileMap_toPosition(x_68, x_66); -lean_dec(x_66); -lean_ctor_set(x_15, 0, x_74); -x_75 = l_Lean_Elab_Command_getScope___rarg(x_6, x_71); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_ctor_get(x_76, 2); -lean_inc(x_78); -lean_dec(x_76); -x_79 = l_Lean_Elab_Command_getScope___rarg(x_6, x_77); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); -lean_inc(x_81); -lean_dec(x_79); -x_82 = lean_ctor_get(x_80, 3); -lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_78); -lean_ctor_set(x_83, 1, x_82); -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -lean_inc(x_67); -x_86 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_86, 0, x_67); -lean_ctor_set(x_86, 1, x_73); -lean_ctor_set(x_86, 2, x_15); -lean_ctor_set(x_86, 3, x_85); -lean_ctor_set(x_86, 4, x_84); -lean_ctor_set_uint8(x_86, sizeof(void*)*5, x_3); -x_87 = lean_st_ref_take(x_6, x_81); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = !lean_is_exclusive(x_88); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_91 = lean_ctor_get(x_88, 1); -x_92 = l_Std_PersistentArray_push___rarg(x_91, x_86); -lean_ctor_set(x_88, 1, x_92); -x_93 = lean_st_ref_set(x_6, x_88, x_89); -x_94 = !lean_is_exclusive(x_93); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_93, 0); -lean_dec(x_95); -x_96 = lean_box(0); -lean_ctor_set(x_93, 0, x_96); -return x_93; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_93, 1); -lean_inc(x_97); -lean_dec(x_93); -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -} -else -{ -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; -x_100 = lean_ctor_get(x_88, 0); -x_101 = lean_ctor_get(x_88, 1); -x_102 = lean_ctor_get(x_88, 2); -x_103 = lean_ctor_get(x_88, 3); -x_104 = lean_ctor_get(x_88, 4); -x_105 = lean_ctor_get(x_88, 5); -x_106 = lean_ctor_get(x_88, 6); -x_107 = lean_ctor_get(x_88, 7); -x_108 = lean_ctor_get(x_88, 8); -lean_inc(x_108); -lean_inc(x_107); -lean_inc(x_106); -lean_inc(x_105); -lean_inc(x_104); -lean_inc(x_103); -lean_inc(x_102); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_88); -x_109 = l_Std_PersistentArray_push___rarg(x_101, x_86); -x_110 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_110, 0, x_100); -lean_ctor_set(x_110, 1, x_109); -lean_ctor_set(x_110, 2, x_102); -lean_ctor_set(x_110, 3, x_103); -lean_ctor_set(x_110, 4, x_104); -lean_ctor_set(x_110, 5, x_105); -lean_ctor_set(x_110, 6, x_106); -lean_ctor_set(x_110, 7, x_107); -lean_ctor_set(x_110, 8, x_108); -x_111 = lean_st_ref_set(x_6, x_110, x_89); -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_113 = x_111; -} else { - lean_dec_ref(x_111); - x_113 = lean_box(0); -} -x_114 = lean_box(0); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { - x_115 = x_113; -} -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_112); -return x_115; -} -} -else -{ -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; -x_116 = lean_ctor_get(x_15, 0); -lean_inc(x_116); -lean_dec(x_15); -x_117 = lean_ctor_get(x_5, 0); -x_118 = lean_ctor_get(x_5, 1); -x_119 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); -x_122 = lean_unsigned_to_nat(0u); -x_123 = l_Lean_FileMap_toPosition(x_118, x_122); -x_124 = l_Lean_FileMap_toPosition(x_118, x_116); -lean_dec(x_116); -x_125 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_125, 0, x_124); -x_126 = l_Lean_Elab_Command_getScope___rarg(x_6, x_121); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = lean_ctor_get(x_127, 2); -lean_inc(x_129); -lean_dec(x_127); -x_130 = l_Lean_Elab_Command_getScope___rarg(x_6, x_128); -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 3); -lean_inc(x_133); -lean_dec(x_131); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_129); -lean_ctor_set(x_134, 1, x_133); -x_135 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_120); -x_136 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -lean_inc(x_117); -x_137 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_137, 0, x_117); -lean_ctor_set(x_137, 1, x_123); -lean_ctor_set(x_137, 2, x_125); -lean_ctor_set(x_137, 3, x_136); -lean_ctor_set(x_137, 4, x_135); -lean_ctor_set_uint8(x_137, sizeof(void*)*5, x_3); -x_138 = lean_st_ref_take(x_6, x_132); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -lean_dec(x_138); -x_141 = lean_ctor_get(x_139, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); -x_143 = lean_ctor_get(x_139, 2); -lean_inc(x_143); -x_144 = lean_ctor_get(x_139, 3); -lean_inc(x_144); -x_145 = lean_ctor_get(x_139, 4); -lean_inc(x_145); -x_146 = lean_ctor_get(x_139, 5); -lean_inc(x_146); -x_147 = lean_ctor_get(x_139, 6); -lean_inc(x_147); -x_148 = lean_ctor_get(x_139, 7); -lean_inc(x_148); -x_149 = lean_ctor_get(x_139, 8); -lean_inc(x_149); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - lean_ctor_release(x_139, 2); - lean_ctor_release(x_139, 3); - lean_ctor_release(x_139, 4); - lean_ctor_release(x_139, 5); - lean_ctor_release(x_139, 6); - lean_ctor_release(x_139, 7); - lean_ctor_release(x_139, 8); - x_150 = x_139; -} else { - lean_dec_ref(x_139); - x_150 = lean_box(0); -} -x_151 = l_Std_PersistentArray_push___rarg(x_142, x_137); -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 9, 0); -} else { - x_152 = x_150; -} -lean_ctor_set(x_152, 0, x_141); -lean_ctor_set(x_152, 1, x_151); -lean_ctor_set(x_152, 2, x_143); -lean_ctor_set(x_152, 3, x_144); -lean_ctor_set(x_152, 4, x_145); -lean_ctor_set(x_152, 5, x_146); -lean_ctor_set(x_152, 6, x_147); -lean_ctor_set(x_152, 7, x_148); -lean_ctor_set(x_152, 8, x_149); -x_153 = lean_st_ref_set(x_6, x_152, x_140); -x_154 = lean_ctor_get(x_153, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_155 = x_153; -} else { - lean_dec_ref(x_153); - x_155 = lean_box(0); -} -x_156 = lean_box(0); -if (lean_is_scalar(x_155)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_155; -} -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_154); -return x_157; -} -} -} -else -{ -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_158; -x_158 = !lean_is_exclusive(x_14); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; -x_159 = lean_ctor_get(x_14, 0); -x_160 = lean_ctor_get(x_5, 0); -x_161 = lean_ctor_get(x_5, 1); -x_162 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -lean_dec(x_162); -x_165 = l_Lean_FileMap_toPosition(x_161, x_159); -lean_dec(x_159); -lean_inc(x_165); -lean_ctor_set(x_14, 0, x_165); -x_166 = l_Lean_Elab_Command_getScope___rarg(x_6, x_164); -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -lean_dec(x_166); -x_169 = lean_ctor_get(x_167, 2); -lean_inc(x_169); -lean_dec(x_167); -x_170 = l_Lean_Elab_Command_getScope___rarg(x_6, x_168); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_173 = lean_ctor_get(x_171, 3); -lean_inc(x_173); -lean_dec(x_171); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_169); -lean_ctor_set(x_174, 1, x_173); -x_175 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_163); -x_176 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -lean_inc(x_160); -x_177 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_177, 0, x_160); -lean_ctor_set(x_177, 1, x_165); -lean_ctor_set(x_177, 2, x_14); -lean_ctor_set(x_177, 3, x_176); -lean_ctor_set(x_177, 4, x_175); -lean_ctor_set_uint8(x_177, sizeof(void*)*5, x_3); -x_178 = lean_st_ref_take(x_6, x_172); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -lean_dec(x_178); -x_181 = !lean_is_exclusive(x_179); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; -x_182 = lean_ctor_get(x_179, 1); -x_183 = l_Std_PersistentArray_push___rarg(x_182, x_177); -lean_ctor_set(x_179, 1, x_183); -x_184 = lean_st_ref_set(x_6, x_179, x_180); -x_185 = !lean_is_exclusive(x_184); -if (x_185 == 0) -{ -lean_object* x_186; lean_object* x_187; -x_186 = lean_ctor_get(x_184, 0); -lean_dec(x_186); -x_187 = lean_box(0); -lean_ctor_set(x_184, 0, x_187); -return x_184; -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_184, 1); -lean_inc(x_188); -lean_dec(x_184); -x_189 = lean_box(0); -x_190 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_188); -return x_190; -} -} -else -{ -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; -x_191 = lean_ctor_get(x_179, 0); -x_192 = lean_ctor_get(x_179, 1); -x_193 = lean_ctor_get(x_179, 2); -x_194 = lean_ctor_get(x_179, 3); -x_195 = lean_ctor_get(x_179, 4); -x_196 = lean_ctor_get(x_179, 5); -x_197 = lean_ctor_get(x_179, 6); -x_198 = lean_ctor_get(x_179, 7); -x_199 = lean_ctor_get(x_179, 8); -lean_inc(x_199); -lean_inc(x_198); -lean_inc(x_197); -lean_inc(x_196); -lean_inc(x_195); -lean_inc(x_194); -lean_inc(x_193); -lean_inc(x_192); -lean_inc(x_191); -lean_dec(x_179); -x_200 = l_Std_PersistentArray_push___rarg(x_192, x_177); -x_201 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_201, 0, x_191); -lean_ctor_set(x_201, 1, x_200); -lean_ctor_set(x_201, 2, x_193); -lean_ctor_set(x_201, 3, x_194); -lean_ctor_set(x_201, 4, x_195); -lean_ctor_set(x_201, 5, x_196); -lean_ctor_set(x_201, 6, x_197); -lean_ctor_set(x_201, 7, x_198); -lean_ctor_set(x_201, 8, x_199); -x_202 = lean_st_ref_set(x_6, x_201, x_180); -x_203 = lean_ctor_get(x_202, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_204 = x_202; -} else { - lean_dec_ref(x_202); - x_204 = lean_box(0); -} -x_205 = lean_box(0); -if (lean_is_scalar(x_204)) { - x_206 = lean_alloc_ctor(0, 2, 0); -} else { - x_206 = x_204; -} -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_203); -return x_206; -} -} -else -{ -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; -x_207 = lean_ctor_get(x_14, 0); -lean_inc(x_207); -lean_dec(x_14); -x_208 = lean_ctor_get(x_5, 0); -x_209 = lean_ctor_get(x_5, 1); -x_210 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -x_213 = l_Lean_FileMap_toPosition(x_209, x_207); -lean_dec(x_207); -lean_inc(x_213); -x_214 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_214, 0, x_213); -x_215 = l_Lean_Elab_Command_getScope___rarg(x_6, x_212); -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -lean_dec(x_215); -x_218 = lean_ctor_get(x_216, 2); -lean_inc(x_218); -lean_dec(x_216); -x_219 = l_Lean_Elab_Command_getScope___rarg(x_6, x_217); -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -lean_inc(x_221); -lean_dec(x_219); -x_222 = lean_ctor_get(x_220, 3); -lean_inc(x_222); -lean_dec(x_220); -x_223 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_223, 0, x_218); -lean_ctor_set(x_223, 1, x_222); -x_224 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_211); -x_225 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -lean_inc(x_208); -x_226 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_226, 0, x_208); -lean_ctor_set(x_226, 1, x_213); -lean_ctor_set(x_226, 2, x_214); -lean_ctor_set(x_226, 3, x_225); -lean_ctor_set(x_226, 4, x_224); -lean_ctor_set_uint8(x_226, sizeof(void*)*5, x_3); -x_227 = lean_st_ref_take(x_6, x_221); -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -lean_dec(x_227); -x_230 = lean_ctor_get(x_228, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_228, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_228, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_228, 3); -lean_inc(x_233); -x_234 = lean_ctor_get(x_228, 4); -lean_inc(x_234); -x_235 = lean_ctor_get(x_228, 5); -lean_inc(x_235); -x_236 = lean_ctor_get(x_228, 6); -lean_inc(x_236); -x_237 = lean_ctor_get(x_228, 7); -lean_inc(x_237); -x_238 = lean_ctor_get(x_228, 8); -lean_inc(x_238); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - lean_ctor_release(x_228, 2); - lean_ctor_release(x_228, 3); - lean_ctor_release(x_228, 4); - lean_ctor_release(x_228, 5); - lean_ctor_release(x_228, 6); - lean_ctor_release(x_228, 7); - lean_ctor_release(x_228, 8); - x_239 = x_228; -} else { - lean_dec_ref(x_228); - x_239 = lean_box(0); -} -x_240 = l_Std_PersistentArray_push___rarg(x_231, x_226); -if (lean_is_scalar(x_239)) { - x_241 = lean_alloc_ctor(0, 9, 0); -} else { - x_241 = x_239; -} -lean_ctor_set(x_241, 0, x_230); -lean_ctor_set(x_241, 1, x_240); -lean_ctor_set(x_241, 2, x_232); -lean_ctor_set(x_241, 3, x_233); -lean_ctor_set(x_241, 4, x_234); -lean_ctor_set(x_241, 5, x_235); -lean_ctor_set(x_241, 6, x_236); -lean_ctor_set(x_241, 7, x_237); -lean_ctor_set(x_241, 8, x_238); -x_242 = lean_st_ref_set(x_6, x_241, x_229); -x_243 = lean_ctor_get(x_242, 1); -lean_inc(x_243); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_244 = x_242; -} else { - lean_dec_ref(x_242); - x_244 = lean_box(0); -} -x_245 = lean_box(0); -if (lean_is_scalar(x_244)) { - x_246 = lean_alloc_ctor(0, 2, 0); -} else { - x_246 = x_244; -} -lean_ctor_set(x_246, 0, x_245); -lean_ctor_set(x_246, 1, x_243); -return x_246; -} -} -else -{ -lean_object* x_247; uint8_t x_248; -x_247 = lean_ctor_get(x_14, 0); -lean_inc(x_247); -lean_dec(x_14); -x_248 = !lean_is_exclusive(x_15); -if (x_248 == 0) -{ -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; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; -x_249 = lean_ctor_get(x_15, 0); -x_250 = lean_ctor_get(x_5, 0); -x_251 = lean_ctor_get(x_5, 1); -x_252 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -x_255 = l_Lean_FileMap_toPosition(x_251, x_247); -lean_dec(x_247); -x_256 = l_Lean_FileMap_toPosition(x_251, x_249); -lean_dec(x_249); -lean_ctor_set(x_15, 0, x_256); -x_257 = l_Lean_Elab_Command_getScope___rarg(x_6, x_254); -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); -x_260 = lean_ctor_get(x_258, 2); -lean_inc(x_260); -lean_dec(x_258); -x_261 = l_Lean_Elab_Command_getScope___rarg(x_6, x_259); -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -lean_dec(x_261); -x_264 = lean_ctor_get(x_262, 3); -lean_inc(x_264); -lean_dec(x_262); -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_260); -lean_ctor_set(x_265, 1, x_264); -x_266 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_253); -x_267 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -lean_inc(x_250); -x_268 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_268, 0, x_250); -lean_ctor_set(x_268, 1, x_255); -lean_ctor_set(x_268, 2, x_15); -lean_ctor_set(x_268, 3, x_267); -lean_ctor_set(x_268, 4, x_266); -lean_ctor_set_uint8(x_268, sizeof(void*)*5, x_3); -x_269 = lean_st_ref_take(x_6, x_263); -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_269, 1); -lean_inc(x_271); -lean_dec(x_269); -x_272 = !lean_is_exclusive(x_270); -if (x_272 == 0) -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; -x_273 = lean_ctor_get(x_270, 1); -x_274 = l_Std_PersistentArray_push___rarg(x_273, x_268); -lean_ctor_set(x_270, 1, x_274); -x_275 = lean_st_ref_set(x_6, x_270, x_271); -x_276 = !lean_is_exclusive(x_275); -if (x_276 == 0) -{ -lean_object* x_277; lean_object* x_278; -x_277 = lean_ctor_get(x_275, 0); -lean_dec(x_277); -x_278 = lean_box(0); -lean_ctor_set(x_275, 0, x_278); -return x_275; -} -else -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_279 = lean_ctor_get(x_275, 1); -lean_inc(x_279); -lean_dec(x_275); -x_280 = lean_box(0); -x_281 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_281, 0, x_280); -lean_ctor_set(x_281, 1, x_279); -return x_281; -} -} -else -{ -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; -x_282 = lean_ctor_get(x_270, 0); -x_283 = lean_ctor_get(x_270, 1); -x_284 = lean_ctor_get(x_270, 2); -x_285 = lean_ctor_get(x_270, 3); -x_286 = lean_ctor_get(x_270, 4); -x_287 = lean_ctor_get(x_270, 5); -x_288 = lean_ctor_get(x_270, 6); -x_289 = lean_ctor_get(x_270, 7); -x_290 = lean_ctor_get(x_270, 8); -lean_inc(x_290); -lean_inc(x_289); -lean_inc(x_288); -lean_inc(x_287); -lean_inc(x_286); -lean_inc(x_285); -lean_inc(x_284); -lean_inc(x_283); -lean_inc(x_282); -lean_dec(x_270); -x_291 = l_Std_PersistentArray_push___rarg(x_283, x_268); -x_292 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_292, 0, x_282); -lean_ctor_set(x_292, 1, x_291); -lean_ctor_set(x_292, 2, x_284); -lean_ctor_set(x_292, 3, x_285); -lean_ctor_set(x_292, 4, x_286); -lean_ctor_set(x_292, 5, x_287); -lean_ctor_set(x_292, 6, x_288); -lean_ctor_set(x_292, 7, x_289); -lean_ctor_set(x_292, 8, x_290); -x_293 = lean_st_ref_set(x_6, x_292, x_271); -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; -} else { - lean_dec_ref(x_293); - x_295 = lean_box(0); -} -x_296 = lean_box(0); -if (lean_is_scalar(x_295)) { - x_297 = lean_alloc_ctor(0, 2, 0); -} else { - x_297 = x_295; -} -lean_ctor_set(x_297, 0, x_296); -lean_ctor_set(x_297, 1, x_294); -return x_297; -} -} -else -{ -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; -x_298 = lean_ctor_get(x_15, 0); -lean_inc(x_298); -lean_dec(x_15); -x_299 = lean_ctor_get(x_5, 0); -x_300 = lean_ctor_get(x_5, 1); -x_301 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_302 = lean_ctor_get(x_301, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec(x_301); -x_304 = l_Lean_FileMap_toPosition(x_300, x_247); -lean_dec(x_247); -x_305 = l_Lean_FileMap_toPosition(x_300, x_298); -lean_dec(x_298); -x_306 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_306, 0, x_305); -x_307 = l_Lean_Elab_Command_getScope___rarg(x_6, x_303); -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_307, 1); -lean_inc(x_309); -lean_dec(x_307); -x_310 = lean_ctor_get(x_308, 2); -lean_inc(x_310); -lean_dec(x_308); -x_311 = l_Lean_Elab_Command_getScope___rarg(x_6, x_309); -x_312 = lean_ctor_get(x_311, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_311, 1); -lean_inc(x_313); -lean_dec(x_311); -x_314 = lean_ctor_get(x_312, 3); -lean_inc(x_314); -lean_dec(x_312); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_310); -lean_ctor_set(x_315, 1, x_314); -x_316 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_316, 0, x_315); -lean_ctor_set(x_316, 1, x_302); -x_317 = l_Lean_Elab_Command_instInhabitedScope___closed__1; -lean_inc(x_299); -x_318 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_318, 0, x_299); -lean_ctor_set(x_318, 1, x_304); -lean_ctor_set(x_318, 2, x_306); -lean_ctor_set(x_318, 3, x_317); -lean_ctor_set(x_318, 4, x_316); -lean_ctor_set_uint8(x_318, sizeof(void*)*5, x_3); -x_319 = lean_st_ref_take(x_6, x_313); -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 1); -lean_inc(x_321); -lean_dec(x_319); -x_322 = lean_ctor_get(x_320, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_320, 1); -lean_inc(x_323); -x_324 = lean_ctor_get(x_320, 2); -lean_inc(x_324); -x_325 = lean_ctor_get(x_320, 3); -lean_inc(x_325); -x_326 = lean_ctor_get(x_320, 4); -lean_inc(x_326); -x_327 = lean_ctor_get(x_320, 5); -lean_inc(x_327); -x_328 = lean_ctor_get(x_320, 6); -lean_inc(x_328); -x_329 = lean_ctor_get(x_320, 7); -lean_inc(x_329); -x_330 = lean_ctor_get(x_320, 8); -lean_inc(x_330); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - lean_ctor_release(x_320, 2); - lean_ctor_release(x_320, 3); - lean_ctor_release(x_320, 4); - lean_ctor_release(x_320, 5); - lean_ctor_release(x_320, 6); - lean_ctor_release(x_320, 7); - lean_ctor_release(x_320, 8); - x_331 = x_320; -} else { - lean_dec_ref(x_320); - x_331 = lean_box(0); -} -x_332 = l_Std_PersistentArray_push___rarg(x_323, x_318); -if (lean_is_scalar(x_331)) { - x_333 = lean_alloc_ctor(0, 9, 0); -} else { - x_333 = x_331; -} -lean_ctor_set(x_333, 0, x_322); -lean_ctor_set(x_333, 1, x_332); -lean_ctor_set(x_333, 2, x_324); -lean_ctor_set(x_333, 3, x_325); -lean_ctor_set(x_333, 4, x_326); -lean_ctor_set(x_333, 5, x_327); -lean_ctor_set(x_333, 6, x_328); -lean_ctor_set(x_333, 7, x_329); -lean_ctor_set(x_333, 8, x_330); -x_334 = lean_st_ref_set(x_6, x_333, x_321); -x_335 = lean_ctor_get(x_334, 1); -lean_inc(x_335); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_336 = x_334; -} else { - lean_dec_ref(x_334); - x_336 = lean_box(0); -} -x_337 = lean_box(0); -if (lean_is_scalar(x_336)) { - x_338 = lean_alloc_ctor(0, 2, 0); -} else { - x_338 = x_336; -} -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_335); -return x_338; -} -} -} -} -} -} -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(lean_object* x_1, uint8_t 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; -x_7 = l_Lean_Elab_Command_getRef(x_4, x_5, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(x_8, x_1, x_2, x_3, x_4, x_5, x_9); -lean_dec(x_8); -return x_10; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_6 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_6, 0, x_1); -x_7 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; -x_8 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; -x_10 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = 2; -x_12 = l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(x_10, x_11, x_2, x_3, x_4, x_5); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_st_ref_take(x_2, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = !lean_is_exclusive(x_7); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_7, 0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_1); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set(x_7, 0, x_11); -x_12 = lean_st_ref_set(x_2, x_7, x_8); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_12, 0); -lean_dec(x_14); -x_15 = lean_box(0); -lean_ctor_set(x_12, 0, x_15); -return x_12; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_12, 1); -lean_inc(x_16); -lean_dec(x_12); -x_17 = lean_box(0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -} -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; lean_object* x_26; lean_object* x_27; -x_19 = lean_ctor_get(x_7, 0); -x_20 = lean_ctor_get(x_7, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_7); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_1); -lean_ctor_set(x_21, 1, x_19); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = lean_st_ref_set(x_2, x_22, x_8); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_25 = x_23; -} else { - lean_dec_ref(x_23); - x_25 = lean_box(0); -} -x_26 = lean_box(0); -if (lean_is_scalar(x_25)) { - x_27 = lean_alloc_ctor(0, 2, 0); -} else { - x_27 = x_25; -} -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_24); -return x_27; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_5); -lean_ctor_set(x_11, 1, x_9); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_dec(x_5); -x_12 = lean_array_uget(x_2, x_4); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Lean_Syntax_getArg(x_12, x_20); -x_22 = l_Lean_Syntax_getId(x_21); -lean_dec(x_21); -x_23 = lean_unsigned_to_nat(2u); -x_24 = l_Lean_Syntax_getArg(x_12, x_23); -x_25 = l_Lean_Syntax_getId(x_24); -lean_dec(x_24); -x_26 = l_Lean_Name_append(x_1, x_22); -x_27 = lean_st_ref_get(x_8, x_9); -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_ctor_get(x_28, 0); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Environment_contains(x_30, x_26); -if (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_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_dec(x_25); -x_32 = l_Lean_Elab_Command_getRef(x_7, x_8, x_29); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_replaceRef(x_12, x_33); -lean_dec(x_33); -lean_dec(x_12); -x_36 = lean_ctor_get(x_7, 0); -x_37 = lean_ctor_get(x_7, 1); -x_38 = lean_ctor_get(x_7, 2); -x_39 = lean_ctor_get(x_7, 3); -x_40 = lean_ctor_get(x_7, 4); -x_41 = lean_ctor_get(x_7, 5); -lean_inc(x_41); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -x_42 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_42, 0, x_36); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 2, x_38); -lean_ctor_set(x_42, 3, x_39); -lean_ctor_set(x_42, 4, x_40); -lean_ctor_set(x_42, 5, x_41); -lean_ctor_set(x_42, 6, x_35); -x_43 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_26, x_6, x_42, x_8, x_34); -lean_dec(x_42); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__4___closed__1; -x_13 = x_45; -x_14 = x_44; -goto block_19; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_12); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_25); -lean_ctor_set(x_46, 1, x_26); -x_47 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_46, x_6, x_7, x_8, x_29); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__4___closed__1; -x_13 = x_49; -x_14 = x_48; -goto block_19; -} -block_19: -{ -lean_object* x_15; size_t x_16; size_t x_17; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = 1; -x_17 = x_4 + x_16; -x_4 = x_17; -x_5 = x_15; -x_9 = x_14; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__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; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_Syntax_getArg(x_1, x_6); -x_8 = l_Lean_Syntax_getId(x_7); -lean_dec(x_7); -x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, x_3, x_4, x_5); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; 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; uint8_t x_20; -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_unsigned_to_nat(2u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_14 = l_Lean_Syntax_getSepArgs(x_13); -lean_dec(x_13); -x_15 = lean_array_get_size(x_14); -x_16 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_17 = 0; -x_18 = lean_box(0); -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); -lean_dec(x_14); -lean_dec(x_10); -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_18); -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_18); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -else -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_9); -if (x_24 == 0) -{ -return x_9; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_9); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_5); -lean_ctor_set(x_11, 1, 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; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_12 = lean_array_uget(x_2, x_4); -x_13 = l_Lean_Syntax_getId(x_12); -lean_inc(x_13); -x_14 = l_Lean_Name_append(x_1, x_13); -x_15 = lean_st_ref_get(x_8, x_9); -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_Environment_contains(x_18, x_14); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; -lean_dec(x_13); -x_20 = l_Lean_Elab_Command_getRef(x_7, x_8, x_17); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_replaceRef(x_12, x_21); -lean_dec(x_21); -lean_dec(x_12); -x_24 = lean_ctor_get(x_7, 0); -x_25 = lean_ctor_get(x_7, 1); -x_26 = lean_ctor_get(x_7, 2); -x_27 = lean_ctor_get(x_7, 3); -x_28 = lean_ctor_get(x_7, 4); -x_29 = lean_ctor_get(x_7, 5); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -x_30 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_30, 0, x_24); -lean_ctor_set(x_30, 1, x_25); -lean_ctor_set(x_30, 2, x_26); -lean_ctor_set(x_30, 3, x_27); -lean_ctor_set(x_30, 4, x_28); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_23); -x_31 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_14, x_6, x_30, x_8, x_22); -lean_dec(x_30); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = 1; -x_34 = x_4 + x_33; -x_4 = x_34; -x_9 = x_32; -goto _start; -} -else -{ -lean_object* x_36; size_t x_37; size_t x_38; -lean_dec(x_14); -lean_dec(x_12); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_13); -lean_ctor_set(x_36, 1, x_5); -x_37 = 1; -x_38 = x_4 + x_37; -x_4 = x_38; -x_5 = x_36; -x_9 = x_17; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_Syntax_getArg(x_1, x_6); -x_8 = l_Lean_Syntax_getId(x_7); -lean_dec(x_7); -x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, x_3, x_4, x_5); -if (lean_obj_tag(x_9) == 0) -{ -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; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -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_box(0); -x_13 = lean_unsigned_to_nat(2u); -x_14 = l_Lean_Syntax_getArg(x_1, x_13); -x_15 = l_Lean_Syntax_getArgs(x_14); -lean_dec(x_14); -x_16 = lean_array_get_size(x_15); -x_17 = lean_usize_of_nat(x_16); -lean_dec(x_16); -x_18 = 0; -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(x_10, x_15, x_17, x_18, x_12, x_2, x_3, x_4, x_11); -lean_dec(x_15); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_10); -lean_ctor_set(x_22, 1, x_20); -x_23 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_22, x_2, x_3, x_4, x_21); -return x_23; -} -else -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_9); -if (x_24 == 0) -{ -return x_9; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_9); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_5); -lean_ctor_set(x_11, 1, x_9); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; 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; -lean_dec(x_5); -x_12 = lean_array_uget(x_2, x_4); -x_20 = l_Lean_Syntax_getId(x_12); -lean_inc(x_20); -x_21 = l_Lean_Name_append(x_1, x_20); -x_22 = lean_st_ref_get(x_8, x_9); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = l_Lean_Environment_contains(x_25, x_21); -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; 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_dec(x_20); -x_27 = l_Lean_Elab_Command_getRef(x_7, x_8, x_24); -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 = l_Lean_replaceRef(x_12, x_28); -lean_dec(x_28); -lean_dec(x_12); -x_31 = lean_ctor_get(x_7, 0); -x_32 = lean_ctor_get(x_7, 1); -x_33 = lean_ctor_get(x_7, 2); -x_34 = lean_ctor_get(x_7, 3); -x_35 = lean_ctor_get(x_7, 4); -x_36 = lean_ctor_get(x_7, 5); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -x_37 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_32); -lean_ctor_set(x_37, 2, x_33); -lean_ctor_set(x_37, 3, x_34); -lean_ctor_set(x_37, 4, x_35); -lean_ctor_set(x_37, 5, x_36); -lean_ctor_set(x_37, 6, x_30); -x_38 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_21, x_6, x_37, x_8, x_29); -lean_dec(x_37); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__4___closed__1; -x_13 = x_40; -x_14 = x_39; -goto block_19; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_12); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_20); -lean_ctor_set(x_41, 1, x_21); -x_42 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_41, x_6, x_7, x_8, x_24); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runLinters___spec__4___closed__1; -x_13 = x_44; -x_14 = x_43; -goto block_19; -} -block_19: -{ -lean_object* x_15; size_t x_16; size_t x_17; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = 1; -x_17 = x_4 + x_16; -x_4 = x_17; -x_5 = x_15; -x_9 = x_14; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_Syntax_getArg(x_1, x_6); -x_8 = l_Lean_Syntax_getId(x_7); -lean_dec(x_7); -x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, x_3, x_4, x_5); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; 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; uint8_t x_20; -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_unsigned_to_nat(2u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_14 = l_Lean_Syntax_getArgs(x_13); -lean_dec(x_13); -x_15 = lean_array_get_size(x_14); -x_16 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_17 = 0; -x_18 = lean_box(0); -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); -lean_dec(x_14); -lean_dec(x_10); -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_18); -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_18); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -else -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_9); -if (x_24 == 0) -{ -return x_9; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_9); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; -if (x_10 == 0) -{ -lean_object* x_11; -lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_5); -lean_ctor_set(x_11, 1, x_9); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -lean_dec(x_5); -x_12 = lean_array_uget(x_2, x_4); -x_13 = lean_st_ref_take(x_8, x_9); -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_is_exclusive(x_14); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; -x_17 = lean_ctor_get(x_14, 0); -lean_inc(x_1); -x_18 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_12, x_17, x_1); -lean_ctor_set(x_14, 0, x_18); -x_19 = lean_st_ref_set(x_8, x_14, x_15); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = 1; -x_22 = x_4 + x_21; -x_23 = lean_box(0); -x_4 = x_22; -x_5 = x_23; -x_9 = x_20; -goto _start; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; lean_object* x_40; -x_25 = lean_ctor_get(x_14, 0); -x_26 = lean_ctor_get(x_14, 1); -x_27 = lean_ctor_get(x_14, 2); -x_28 = lean_ctor_get(x_14, 3); -x_29 = lean_ctor_get(x_14, 4); -x_30 = lean_ctor_get(x_14, 5); -x_31 = lean_ctor_get(x_14, 6); -x_32 = lean_ctor_get(x_14, 7); -x_33 = lean_ctor_get(x_14, 8); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_14); -lean_inc(x_1); -x_34 = l_Lean_ScopedEnvExtension_activateScoped___rarg(x_12, x_25, x_1); -x_35 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_26); -lean_ctor_set(x_35, 2, x_27); -lean_ctor_set(x_35, 3, x_28); -lean_ctor_set(x_35, 4, x_29); -lean_ctor_set(x_35, 5, x_30); -lean_ctor_set(x_35, 6, x_31); -lean_ctor_set(x_35, 7, x_32); -lean_ctor_set(x_35, 8, x_33); -x_36 = lean_st_ref_set(x_8, x_35, x_15); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = 1; -x_39 = x_4 + x_38; -x_40 = lean_box(0); -x_4 = x_39; -x_5 = x_40; -x_9 = x_37; -goto _start; -} -} -} -} -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_6 = l_Lean_scopedEnvExtensionsRef; -x_7 = lean_st_ref_get(x_6, x_5); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_array_get_size(x_8); -x_11 = lean_usize_of_nat(x_10); -lean_dec(x_10); -x_12 = 0; -x_13 = lean_box(0); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(x_1, x_8, x_11, x_12, x_13, x_2, x_3, x_4, x_9); -lean_dec(x_8); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set(x_14, 0, x_13); -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); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_13); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(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) { -_start: -{ -uint8_t x_9; -x_9 = x_3 < x_2; -if (x_9 == 0) -{ -lean_object* x_10; -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_4); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_4); -x_11 = lean_array_uget(x_1, x_3); -x_12 = l_Lean_Syntax_getId(x_11); -lean_dec(x_11); -x_13 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_12, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_13) == 0) -{ -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; size_t x_22; size_t x_23; lean_object* x_24; -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); -lean_inc(x_14); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_17, x_5, x_6, x_7, x_15); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(x_14, x_5, x_6, x_7, x_19); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = 1; -x_23 = x_3 + x_22; -x_24 = lean_box(0); -x_3 = x_23; -x_4 = x_24; -x_8 = x_21; -goto _start; -} -else -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_13); -if (x_26 == 0) -{ -return x_13; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_13, 0); -x_28 = lean_ctor_get(x_13, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_13); -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; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_Syntax_getArg(x_1, x_6); -x_8 = l_Lean_Syntax_getArgs(x_7); -lean_dec(x_7); -x_9 = lean_array_get_size(x_8); -x_10 = lean_usize_of_nat(x_9); -lean_dec(x_9); -x_11 = 0; -x_12 = lean_box(0); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(x_8, x_10, x_11, x_12, x_2, x_3, x_4, x_5); -lean_dec(x_8); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; -x_15 = lean_ctor_get(x_13, 0); -lean_dec(x_15); -lean_ctor_set(x_13, 0, x_12); -return x_13; -} -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_12); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -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_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_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(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; -x_6 = lean_st_ref_get(x_2, x_5); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -lean_dec(x_8); -lean_ctor_set(x_6, 0, x_9); -return x_6; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_6, 0); -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_6); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -} -} -static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1___boxed), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("openSimple"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("openOnly"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("openHiding"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__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_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; lean_object* x_20; uint8_t x_21; lean_object* x_22; uint8_t x_23; -x_10 = l_Lean_Elab_Command_getScope___rarg(x_3, x_4); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_11, 3); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Elab_Command_getScope___rarg(x_3, x_12); -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, 2); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1; -lean_inc(x_1); -x_19 = l_Lean_Syntax_getKind(x_1); -x_20 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3; -x_21 = lean_name_eq(x_19, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_13); -lean_ctor_set(x_22, 1, x_17); -if (x_21 == 0) -{ -uint8_t x_106; -x_106 = 0; -x_23 = x_106; -goto block_105; -} -else -{ -uint8_t x_107; -x_107 = 1; -x_23 = x_107; -goto block_105; -} -block_9: -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -return x_8; -} -block_105: -{ -lean_object* x_24; -x_24 = lean_st_mk_ref(x_22, x_16); -if (x_23 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5; -x_28 = lean_name_eq(x_19, x_27); -if (x_28 == 0) -{ -lean_object* x_29; uint8_t x_30; -x_29 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7; -x_30 = lean_name_eq(x_19, x_29); -lean_dec(x_19); -if (x_30 == 0) -{ -lean_object* x_31; -x_31 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(x_1, x_25, x_2, x_3, x_26); -lean_dec(x_1); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -lean_inc(x_25); -x_34 = lean_apply_5(x_18, x_32, x_25, x_2, x_3, x_33); -if (lean_obj_tag(x_34) == 0) -{ -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_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 = lean_st_ref_get(x_25, x_36); -lean_dec(x_25); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_35); -lean_ctor_set(x_40, 1, x_38); -x_5 = x_40; -x_6 = x_39; -goto block_9; -} -else -{ -uint8_t x_41; -lean_dec(x_25); -x_41 = !lean_is_exclusive(x_34); -if (x_41 == 0) -{ -return x_34; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_34, 0); -x_43 = lean_ctor_get(x_34, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_34); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_25); -lean_dec(x_3); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_31); -if (x_45 == 0) -{ -return x_31; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_31, 0); -x_47 = lean_ctor_get(x_31, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_31); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -lean_object* x_49; -x_49 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(x_1, x_25, x_2, x_3, x_26); -lean_dec(x_1); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -lean_inc(x_25); -x_52 = lean_apply_5(x_18, x_50, x_25, x_2, x_3, x_51); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_st_ref_get(x_25, x_54); -lean_dec(x_25); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_53); -lean_ctor_set(x_58, 1, x_56); -x_5 = x_58; -x_6 = x_57; -goto block_9; -} -else -{ -uint8_t x_59; -lean_dec(x_25); -x_59 = !lean_is_exclusive(x_52); -if (x_59 == 0) -{ -return x_52; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_52, 0); -x_61 = lean_ctor_get(x_52, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_52); -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_25); -lean_dec(x_3); -lean_dec(x_2); -x_63 = !lean_is_exclusive(x_49); -if (x_63 == 0) -{ -return x_49; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_49, 0); -x_65 = lean_ctor_get(x_49, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_49); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -} -else -{ -lean_object* x_67; -lean_dec(x_19); -x_67 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(x_1, x_25, x_2, x_3, x_26); -lean_dec(x_1); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -lean_inc(x_25); -x_70 = lean_apply_5(x_18, x_68, x_25, x_2, x_3, x_69); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_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 = lean_st_ref_get(x_25, x_72); -lean_dec(x_25); -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 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_71); -lean_ctor_set(x_76, 1, x_74); -x_5 = x_76; -x_6 = x_75; -goto block_9; -} -else -{ -uint8_t x_77; -lean_dec(x_25); -x_77 = !lean_is_exclusive(x_70); -if (x_77 == 0) -{ -return x_70; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_70, 0); -x_79 = lean_ctor_get(x_70, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_70); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -uint8_t x_81; -lean_dec(x_25); -lean_dec(x_3); -lean_dec(x_2); -x_81 = !lean_is_exclusive(x_67); -if (x_81 == 0) -{ -return x_67; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_67, 0); -x_83 = lean_ctor_get(x_67, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_67); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; -} -} -} -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_19); -x_85 = lean_ctor_get(x_24, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_24, 1); -lean_inc(x_86); -lean_dec(x_24); -x_87 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(x_1, x_85, x_2, x_3, x_86); -lean_dec(x_1); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -lean_inc(x_85); -x_90 = lean_apply_5(x_18, x_88, x_85, x_2, x_3, x_89); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -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_st_ref_get(x_85, x_92); -lean_dec(x_85); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_91); -lean_ctor_set(x_96, 1, x_94); -x_5 = x_96; -x_6 = x_95; -goto block_9; -} -else -{ -uint8_t x_97; -lean_dec(x_85); -x_97 = !lean_is_exclusive(x_90); -if (x_97 == 0) -{ -return x_90; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_90, 0); -x_99 = lean_ctor_get(x_90, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_90); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; -} -} -} -else -{ -uint8_t x_101; -lean_dec(x_85); -lean_dec(x_3); -lean_dec(x_2); -x_101 = !lean_is_exclusive(x_87); -if (x_101 == 0) -{ -return x_87; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_87, 0); -x_103 = lean_ctor_get(x_87, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_87); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; -} -} -} -} -} -} -lean_object* l_Lean_Elab_Command_elabOpen___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; -x_4 = lean_ctor_get(x_2, 3); -lean_dec(x_4); -lean_ctor_set(x_2, 3, x_1); -return x_2; -} -else -{ -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; -x_5 = lean_ctor_get(x_2, 0); -x_6 = lean_ctor_get(x_2, 1); -x_7 = lean_ctor_get(x_2, 2); -x_8 = lean_ctor_get(x_2, 4); -x_9 = lean_ctor_get(x_2, 5); -x_10 = lean_ctor_get(x_2, 6); -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_dec(x_2); -x_11 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_11, 0, x_5); -lean_ctor_set(x_11, 1, x_6); -lean_ctor_set(x_11, 2, x_7); -lean_ctor_set(x_11, 3, x_1); -lean_ctor_set(x_11, 4, x_8); -lean_ctor_set(x_11, 5, x_9); -lean_ctor_set(x_11, 6, x_10); -return x_11; -} -} -} -lean_object* l_Lean_Elab_Command_elabOpen(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; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -lean_inc(x_3); -lean_inc(x_2); -x_7 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1(x_6, x_2, x_3, x_4); -if (lean_obj_tag(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_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabOpen___lambda__1), 2, 1); -lean_closure_set(x_10, 0, x_8); -x_11 = l_Lean_Elab_Command_modifyScope(x_10, x_2, x_3, x_9); -lean_dec(x_3); -lean_dec(x_2); -return x_11; -} -else -{ -uint8_t x_12; -lean_dec(x_3); -lean_dec(x_2); -x_12 = !lean_is_exclusive(x_7); -if (x_12 == 0) -{ -return x_7; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_7, 0); -x_14 = lean_ctor_get(x_7, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_7); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_6; -} -} -lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_6; -} -} -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_3); -lean_dec(x_3); -x_9 = l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(x_1, x_2, x_8, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_2); -lean_dec(x_2); -x_8 = l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(x_1, x_7, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_8; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_6; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___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: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_11 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11___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: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_11 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13___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: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_11 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16___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: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_11 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -return x_12; -} -} -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_6; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___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: -{ -size_t x_9; size_t x_10; lean_object* x_11; -x_9 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_10 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_1); -return x_11; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___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) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elabOpen___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_Command_elabOpen(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("open"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabOpen"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabOpen___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__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; -x_5 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_7); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_8, 0); -x_11 = l_Lean_addMacroScope(x_6, x_1, x_10); -lean_ctor_set(x_8, 0, x_11); -return x_8; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_8, 0); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_8); -x_14 = l_Lean_addMacroScope(x_6, x_1, x_12); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; -x_7 = x_2 < x_1; -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_5); -lean_dec(x_4); -x_8 = x_3; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_6); -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; -x_10 = lean_array_uget(x_3, x_2); -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_array_uset(x_3, x_2, x_11); -x_13 = x_10; -x_14 = lean_alloc_closure((void*)(l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1___boxed), 4, 1); -lean_closure_set(x_14, 0, x_13); -lean_inc(x_5); -lean_inc(x_4); -x_15 = l_Lean_Elab_Command_withFreshMacroScope___rarg(x_14, x_4, x_5, x_6); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; -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 = 1; -x_19 = x_2 + x_18; -x_20 = x_16; -x_21 = lean_array_uset(x_12, x_2, x_20); -x_2 = x_19; -x_3 = x_21; -x_6 = x_17; -goto _start; -} -else -{ -uint8_t x_23; -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_4); -x_23 = !lean_is_exclusive(x_15); -if (x_23 == 0) -{ -return x_15; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_15); -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; -} -} -} -} -} -lean_object* l_Lean_Elab_Command_elabVariable___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_object* x_10; -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabVariable___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__1___boxed), 8, 0); -return x_1; -} -} -lean_object* l_Lean_Elab_Command_elabVariable___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: -{ -uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_11 = 0; -x_12 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_11, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_13) == 0) -{ -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; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_box(0); -x_16 = lean_array_get_size(x_3); -x_17 = lean_unsigned_to_nat(0u); -lean_inc(x_3); -x_18 = l_Array_toSubarray___rarg(x_3, x_17, x_16); -x_19 = lean_ctor_get(x_1, 6); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_15); -x_21 = lean_array_get_size(x_19); -x_22 = lean_usize_of_nat(x_21); -lean_dec(x_21); -x_23 = 0; -x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_19, x_22, x_23, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = !lean_is_exclusive(x_4); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_4, 7); -lean_dec(x_29); -lean_ctor_set(x_4, 7, x_27); -x_30 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_26); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -lean_inc(x_6); -lean_inc(x_4); -x_32 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); -lean_dec(x_3); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_35, 0, x_2); -lean_closure_set(x_35, 1, x_34); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_36, 0, x_35); -x_37 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_36, x_4, x_5, x_6, x_7, x_8, x_9, x_33); -return x_37; -} -else -{ -uint8_t x_38; -lean_dec(x_4); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_38 = !lean_is_exclusive(x_32); -if (x_38 == 0) -{ -return x_32; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_32, 0); -x_40 = lean_ctor_get(x_32, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_32); -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; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_42 = lean_ctor_get(x_4, 0); -x_43 = lean_ctor_get(x_4, 1); -x_44 = lean_ctor_get(x_4, 2); -x_45 = lean_ctor_get(x_4, 3); -x_46 = lean_ctor_get(x_4, 4); -x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); -x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); -x_50 = lean_ctor_get(x_4, 5); -x_51 = lean_ctor_get(x_4, 6); -x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_4); -x_53 = lean_alloc_ctor(0, 8, 4); -lean_ctor_set(x_53, 0, x_42); -lean_ctor_set(x_53, 1, x_43); -lean_ctor_set(x_53, 2, x_44); -lean_ctor_set(x_53, 3, x_45); -lean_ctor_set(x_53, 4, x_46); -lean_ctor_set(x_53, 5, x_50); -lean_ctor_set(x_53, 6, x_51); -lean_ctor_set(x_53, 7, x_27); -lean_ctor_set_uint8(x_53, sizeof(void*)*8, x_47); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 1, x_48); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 2, x_49); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 3, x_52); -x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_5, x_6, x_7, x_8, x_9, x_26); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -lean_inc(x_6); -lean_inc(x_53); -x_56 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_53, x_5, x_6, x_7, x_8, x_9, x_55); -lean_dec(x_3); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; -x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_59, 0, x_2); -lean_closure_set(x_59, 1, x_58); -x_60 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_60, 0, x_59); -x_61 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_60, x_53, x_5, x_6, x_7, x_8, x_9, x_57); -return x_61; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_53); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_62 = lean_ctor_get(x_56, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_56, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_64 = x_56; -} else { - lean_dec_ref(x_56); - x_64 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); -} else { - x_65 = x_64; -} -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; -} -} -} -else -{ -uint8_t x_66; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_13); -if (x_66 == 0) -{ -return x_13; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_13, 0); -x_68 = lean_ctor_get(x_13, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_13); -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; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabVariable___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_ctor_get(x_3, 5); -x_6 = lean_ctor_get(x_3, 6); -x_7 = l_Array_append___rarg(x_5, x_1); -x_8 = l_Array_append___rarg(x_6, x_2); -lean_ctor_set(x_3, 6, x_8); -lean_ctor_set(x_3, 5, x_7); -return x_3; -} -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; lean_object* x_17; lean_object* x_18; -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); -x_13 = lean_ctor_get(x_3, 4); -x_14 = lean_ctor_get(x_3, 5); -x_15 = lean_ctor_get(x_3, 6); -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_16 = l_Array_append___rarg(x_14, x_1); -x_17 = l_Array_append___rarg(x_15, x_2); -x_18 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_18, 0, x_9); -lean_ctor_set(x_18, 1, x_10); -lean_ctor_set(x_18, 2, x_11); -lean_ctor_set(x_18, 3, x_12); -lean_ctor_set(x_18, 4, x_13); -lean_ctor_set(x_18, 5, x_16); -lean_ctor_set(x_18, 6, x_17); -return x_18; -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabVariable___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("variable"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabVariable___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_Command_elabVariable___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabVariable___boxed__const__1() { -_start: -{ -size_t x_1; lean_object* x_2; -x_1 = 0; -x_2 = lean_box_usize(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabVariable(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; -x_5 = l_Lean_Elab_Command_elabVariable___closed__2; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_7; -} -else -{ -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; -x_8 = lean_unsigned_to_nat(1u); -x_9 = l_Lean_Syntax_getArg(x_1, x_8); -lean_dec(x_1); -x_10 = l_Lean_Syntax_getArgs(x_9); -lean_dec(x_9); -x_11 = lean_box(0); -x_12 = l_Lean_Elab_Command_getScope___rarg(x_3, x_4); -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, 5); -lean_inc(x_15); -lean_inc(x_10); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__2___boxed), 10, 2); -lean_closure_set(x_16, 0, x_13); -lean_closure_set(x_16, 1, x_10); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_17, 0, x_15); -lean_closure_set(x_17, 1, x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_18, 0, x_17); -lean_inc(x_2); -x_19 = l_Lean_Elab_Command_liftTermElabM___rarg(x_11, x_18, x_2, x_3, x_14); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; size_t x_24; lean_object* x_25; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_array_get_size(x_10); -x_22 = lean_unsigned_to_nat(0u); -x_23 = lean_nat_dec_lt(x_22, x_21); -x_24 = 0; -if (x_23 == 0) -{ -lean_object* x_43; -lean_dec(x_21); -x_43 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_25 = x_43; -goto block_42; -} -else -{ -uint8_t x_44; -x_44 = lean_nat_dec_le(x_21, x_21); -if (x_44 == 0) -{ -lean_object* x_45; -lean_dec(x_21); -x_45 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_25 = x_45; -goto block_42; -} -else -{ -size_t x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_usize_of_nat(x_21); -lean_dec(x_21); -x_47 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -x_48 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2(x_10, x_24, x_46, x_47); -x_25 = x_48; -goto block_42; -} -} -block_42: -{ -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; -x_26 = lean_array_get_size(x_25); -x_27 = lean_usize_of_nat(x_26); -lean_dec(x_26); -x_28 = x_25; -x_29 = lean_box_usize(x_27); -x_30 = l_Lean_Elab_Command_elabVariable___boxed__const__1; -x_31 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___boxed), 6, 3); -lean_closure_set(x_31, 0, x_29); -lean_closure_set(x_31, 1, x_30); -lean_closure_set(x_31, 2, x_28); -x_32 = x_31; -lean_inc(x_3); -lean_inc(x_2); -x_33 = lean_apply_3(x_32, x_2, x_3, x_20); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -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_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__3___boxed), 3, 2); -lean_closure_set(x_36, 0, x_10); -lean_closure_set(x_36, 1, x_34); -x_37 = l_Lean_Elab_Command_modifyScope(x_36, x_2, x_3, x_35); -lean_dec(x_3); -lean_dec(x_2); -return x_37; -} -else -{ -uint8_t x_38; -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) -{ -return x_33; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_33); -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; -} -} -} -} -else -{ -uint8_t x_49; -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_49 = !lean_is_exclusive(x_19); -if (x_49 == 0) -{ -return x_19; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_19, 0); -x_51 = lean_ctor_get(x_19, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_19); -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; -} -} -} -} -} -lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__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_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; -} -} -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_8 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(x_7, x_8, x_3, x_4, x_5, x_6); -return x_9; -} -} -lean_object* l_Lean_Elab_Command_elabVariable___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_Lean_Elab_Command_elabVariable___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Command_elabVariable___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -return x_11; -} -} -lean_object* l_Lean_Elab_Command_elabVariable___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Elab_Command_elabVariable___lambda__3(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabVariable"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabVariable___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2; -x_5 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elabCheck_match__1___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -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_apply_2(x_2, x_3, x_4); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_elabCheck_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck_match__1___rarg), 2, 0); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(" : "); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabCheck___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = 1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_12 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_11, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; -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 = 0; -x_16 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_17 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_15, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_19 = l_Lean_Meta_instantiateMVars(x_13, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_unsigned_to_nat(1u); -x_23 = l_Lean_Elab_Term_levelMVarToParam(x_20, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_21); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -lean_dec(x_24); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_26); -x_27 = l_Lean_Meta_inferType(x_26, x_6, x_7, x_8, x_9, x_25); -if (lean_obj_tag(x_27) == 0) -{ -uint8_t x_28; -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -x_31 = l_Lean_Expr_isSyntheticSorry(x_26); -if (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_object* x_39; uint8_t x_40; lean_object* x_41; -lean_free_object(x_27); -x_32 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_32, 0, x_26); -x_33 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; -x_34 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__2; -x_36 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -x_37 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_37, 0, x_29); -x_38 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_33); -x_40 = 0; -x_41 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_39, x_40, x_4, x_5, x_6, x_7, x_8, x_9, x_30); -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_41; -} -else -{ -lean_dec(x_29); -lean_dec(x_26); -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_ctor_set(x_27, 0, x_16); -return x_27; -} -} -else -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = lean_ctor_get(x_27, 0); -x_43 = lean_ctor_get(x_27, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_27); -x_44 = l_Lean_Expr_isSyntheticSorry(x_26); -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; uint8_t x_53; lean_object* x_54; -x_45 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_45, 0, x_26); -x_46 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_Elab_Command_elabCheck___lambda__1___closed__2; -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_50, 0, x_42); -x_51 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_46); -x_53 = 0; -x_54 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_52, x_53, x_4, x_5, x_6, x_7, x_8, x_9, x_43); -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_54; -} -else -{ -lean_object* x_55; -lean_dec(x_42); -lean_dec(x_26); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_16); -lean_ctor_set(x_55, 1, x_43); -return x_55; -} -} -} -else -{ -uint8_t x_56; -lean_dec(x_26); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_56 = !lean_is_exclusive(x_27); -if (x_56 == 0) -{ -return x_27; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_27, 0); -x_58 = lean_ctor_get(x_27, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_27); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -else -{ -uint8_t x_60; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_60 = !lean_is_exclusive(x_19); -if (x_60 == 0) -{ -return x_19; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_19, 0); -x_62 = lean_ctor_get(x_19, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_19); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -} -else -{ -uint8_t x_64; -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_64 = !lean_is_exclusive(x_17); -if (x_64 == 0) -{ -return x_17; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_17, 0); -x_66 = lean_ctor_get(x_17, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_17); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -} -else -{ -uint8_t x_68; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_68 = !lean_is_exclusive(x_12); -if (x_68 == 0) -{ -return x_12; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_12, 0); -x_70 = lean_ctor_get(x_12, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_12); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabCheck___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) { -_start: -{ -uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_12 = 0; -x_13 = lean_box(0); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_14 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_12, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_box(0); -x_17 = lean_array_get_size(x_4); -x_18 = lean_unsigned_to_nat(0u); -lean_inc(x_4); -x_19 = l_Array_toSubarray___rarg(x_4, x_18, x_17); -x_20 = lean_ctor_get(x_1, 6); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_16); -x_22 = lean_array_get_size(x_20); -x_23 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_24 = 0; -x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_20, x_23, x_24, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = !lean_is_exclusive(x_5); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_5, 7); -lean_dec(x_30); -lean_ctor_set(x_5, 7, x_28); -x_31 = l_Lean_Elab_Term_resetMessageLog(x_5, x_6, x_7, x_8, x_9, x_10, x_27); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -lean_inc(x_7); -lean_inc(x_5); -x_33 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); -lean_dec(x_4); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_box(0); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___lambda__1___boxed), 10, 3); -lean_closure_set(x_36, 0, x_2); -lean_closure_set(x_36, 1, x_35); -lean_closure_set(x_36, 2, x_3); -x_37 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_34); -return x_37; -} -else -{ -uint8_t x_38; -lean_dec(x_5); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) -{ -return x_33; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_33); -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; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_42 = lean_ctor_get(x_5, 0); -x_43 = lean_ctor_get(x_5, 1); -x_44 = lean_ctor_get(x_5, 2); -x_45 = lean_ctor_get(x_5, 3); -x_46 = lean_ctor_get(x_5, 4); -x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_48 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_49 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); -x_50 = lean_ctor_get(x_5, 5); -x_51 = lean_ctor_get(x_5, 6); -x_52 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_5); -x_53 = lean_alloc_ctor(0, 8, 4); -lean_ctor_set(x_53, 0, x_42); -lean_ctor_set(x_53, 1, x_43); -lean_ctor_set(x_53, 2, x_44); -lean_ctor_set(x_53, 3, x_45); -lean_ctor_set(x_53, 4, x_46); -lean_ctor_set(x_53, 5, x_50); -lean_ctor_set(x_53, 6, x_51); -lean_ctor_set(x_53, 7, x_28); -lean_ctor_set_uint8(x_53, sizeof(void*)*8, x_47); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 1, x_48); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 2, x_49); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 3, x_52); -x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_6, x_7, x_8, x_9, x_10, x_27); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -lean_inc(x_7); -lean_inc(x_53); -x_56 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_53, x_6, x_7, x_8, x_9, x_10, x_55); -lean_dec(x_4); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_box(0); -x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___lambda__1___boxed), 10, 3); -lean_closure_set(x_59, 0, x_2); -lean_closure_set(x_59, 1, x_58); -lean_closure_set(x_59, 2, x_3); -x_60 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_59, x_53, x_6, x_7, x_8, x_9, x_10, x_57); -return x_60; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_dec(x_53); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_61 = lean_ctor_get(x_56, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_56, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_63 = x_56; -} else { - lean_dec_ref(x_56); - x_63 = lean_box(0); -} -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(1, 2, 0); -} else { - x_64 = x_63; -} -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); -return x_64; -} -} -} -else -{ -uint8_t x_65; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_65 = !lean_is_exclusive(x_14); -if (x_65 == 0) -{ -return x_14; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_14, 0); -x_67 = lean_ctor_get(x_14, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_14); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -return x_68; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("check"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_Command_elabCheck___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("_check"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabCheck___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheck___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabCheck___closed__4; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabCheck(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; -x_5 = l_Lean_Elab_Command_elabCheck___closed__2; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_2); -lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_7; -} -else -{ -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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Lean_Syntax_getArg(x_1, x_8); -x_10 = lean_unsigned_to_nat(1u); -x_11 = l_Lean_Syntax_getArg(x_1, x_10); -lean_dec(x_1); -x_12 = lean_st_ref_get(x_3, x_4); -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); -x_16 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); -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 = lean_ctor_get(x_17, 5); -lean_inc(x_19); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___lambda__2___boxed), 11, 3); -lean_closure_set(x_20, 0, x_17); -lean_closure_set(x_20, 1, x_11); -lean_closure_set(x_20, 2, x_9); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_21, 0, x_19); -lean_closure_set(x_21, 1, x_20); -x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_22, 0, x_21); -x_23 = l_Lean_Elab_Command_elabCheck___closed__5; -lean_inc(x_2); -x_24 = l_Lean_Elab_Command_liftTermElabM___rarg(x_23, x_22, x_2, x_3, x_18); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_15, x_2, x_3, x_26); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -lean_ctor_set(x_27, 0, x_25); -return x_27; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_25); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_24, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_24, 1); -lean_inc(x_33); -lean_dec(x_24); -x_34 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_15, x_2, x_3, x_33); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_34, 0); -lean_dec(x_36); -lean_ctor_set_tag(x_34, 1); -lean_ctor_set(x_34, 0, x_32); -return x_34; -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_32); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -} -} -lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Command_elabCheck___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_3); -return x_11; -} -} -lean_object* l_Lean_Elab_Command_elabCheck___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Elab_Command_elabCheck___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_1); -return x_12; -} -} -lean_object* l_Lean_Elab_Command_elabCheck___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_Command_elabCheck(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabCheck"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabCheck___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2; -x_5 = l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("smartUnfolding"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_elabReduce___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = 1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_12 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_11, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; -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 = 0; -x_16 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_17 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_15, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_19 = l_Lean_Meta_instantiateMVars(x_13, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_unsigned_to_nat(1u); -x_23 = l_Lean_Elab_Term_levelMVarToParam(x_20, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_21); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -lean_dec(x_24); -x_27 = !lean_is_exclusive(x_8); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_28 = lean_ctor_get(x_8, 0); -x_29 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; -x_30 = l_Lean_KVMap_setBool(x_28, x_29, x_15); -lean_ctor_set(x_8, 0, x_30); -x_31 = lean_ctor_get(x_6, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_6, 1); -lean_inc(x_32); -x_33 = lean_ctor_get(x_6, 2); -lean_inc(x_33); -x_34 = lean_ctor_get(x_6, 3); -lean_inc(x_34); -x_35 = !lean_is_exclusive(x_31); -if (x_35 == 0) -{ -uint8_t x_36; lean_object* x_37; lean_object* x_38; -x_36 = 0; -lean_ctor_set_uint8(x_31, 5, x_36); -x_37 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_32); -lean_ctor_set(x_37, 2, x_33); -lean_ctor_set(x_37, 3, x_34); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_38 = l_Lean_Meta_reduce(x_26, x_11, x_15, x_15, x_37, x_7, x_8, x_9, x_25); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; -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_alloc_ctor(2, 1, 0); -lean_ctor_set(x_41, 0, x_39); -x_42 = 0; -x_43 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_41, x_42, x_4, x_5, x_6, x_7, x_8, x_9, x_40); -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_43; -} -else -{ -uint8_t x_44; -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_44 = !lean_is_exclusive(x_38); -if (x_44 == 0) -{ -return x_38; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_38, 0); -x_46 = lean_ctor_get(x_38, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_38); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_48 = lean_ctor_get_uint8(x_31, 0); -x_49 = lean_ctor_get_uint8(x_31, 1); -x_50 = lean_ctor_get_uint8(x_31, 2); -x_51 = lean_ctor_get_uint8(x_31, 3); -x_52 = lean_ctor_get_uint8(x_31, 4); -x_53 = lean_ctor_get_uint8(x_31, 6); -x_54 = lean_ctor_get_uint8(x_31, 7); -x_55 = lean_ctor_get_uint8(x_31, 8); -x_56 = lean_ctor_get_uint8(x_31, 9); -lean_dec(x_31); -x_57 = 0; -x_58 = lean_alloc_ctor(0, 0, 10); -lean_ctor_set_uint8(x_58, 0, x_48); -lean_ctor_set_uint8(x_58, 1, x_49); -lean_ctor_set_uint8(x_58, 2, x_50); -lean_ctor_set_uint8(x_58, 3, x_51); -lean_ctor_set_uint8(x_58, 4, x_52); -lean_ctor_set_uint8(x_58, 5, x_57); -lean_ctor_set_uint8(x_58, 6, x_53); -lean_ctor_set_uint8(x_58, 7, x_54); -lean_ctor_set_uint8(x_58, 8, x_55); -lean_ctor_set_uint8(x_58, 9, x_56); -x_59 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_32); -lean_ctor_set(x_59, 2, x_33); -lean_ctor_set(x_59, 3, x_34); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_60 = l_Lean_Meta_reduce(x_26, x_11, x_15, x_15, x_59, x_7, x_8, x_9, x_25); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_63, 0, x_61); -x_64 = 0; -x_65 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_63, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_62); -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_65; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_8); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_66 = lean_ctor_get(x_60, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_60, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_68 = x_60; -} else { - lean_dec_ref(x_60); - x_68 = lean_box(0); -} -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_68; -} -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; -} -} -} -else -{ -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; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_70 = lean_ctor_get(x_8, 0); -x_71 = lean_ctor_get(x_8, 1); -x_72 = lean_ctor_get(x_8, 2); -x_73 = lean_ctor_get(x_8, 3); -x_74 = lean_ctor_get(x_8, 4); -x_75 = lean_ctor_get(x_8, 5); -x_76 = lean_ctor_get(x_8, 6); -x_77 = lean_ctor_get(x_8, 7); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_8); -x_78 = l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; -x_79 = l_Lean_KVMap_setBool(x_70, x_78, x_15); -x_80 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_71); -lean_ctor_set(x_80, 2, x_72); -lean_ctor_set(x_80, 3, x_73); -lean_ctor_set(x_80, 4, x_74); -lean_ctor_set(x_80, 5, x_75); -lean_ctor_set(x_80, 6, x_76); -lean_ctor_set(x_80, 7, x_77); -x_81 = lean_ctor_get(x_6, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_6, 1); -lean_inc(x_82); -x_83 = lean_ctor_get(x_6, 2); -lean_inc(x_83); -x_84 = lean_ctor_get(x_6, 3); -lean_inc(x_84); -x_85 = lean_ctor_get_uint8(x_81, 0); -x_86 = lean_ctor_get_uint8(x_81, 1); -x_87 = lean_ctor_get_uint8(x_81, 2); -x_88 = lean_ctor_get_uint8(x_81, 3); -x_89 = lean_ctor_get_uint8(x_81, 4); -x_90 = lean_ctor_get_uint8(x_81, 6); -x_91 = lean_ctor_get_uint8(x_81, 7); -x_92 = lean_ctor_get_uint8(x_81, 8); -x_93 = lean_ctor_get_uint8(x_81, 9); -if (lean_is_exclusive(x_81)) { - x_94 = x_81; -} else { - lean_dec_ref(x_81); - x_94 = lean_box(0); -} -x_95 = 0; -if (lean_is_scalar(x_94)) { - x_96 = lean_alloc_ctor(0, 0, 10); -} else { - x_96 = x_94; -} -lean_ctor_set_uint8(x_96, 0, x_85); -lean_ctor_set_uint8(x_96, 1, x_86); -lean_ctor_set_uint8(x_96, 2, x_87); -lean_ctor_set_uint8(x_96, 3, x_88); -lean_ctor_set_uint8(x_96, 4, x_89); -lean_ctor_set_uint8(x_96, 5, x_95); -lean_ctor_set_uint8(x_96, 6, x_90); -lean_ctor_set_uint8(x_96, 7, x_91); -lean_ctor_set_uint8(x_96, 8, x_92); -lean_ctor_set_uint8(x_96, 9, x_93); -x_97 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_82); -lean_ctor_set(x_97, 2, x_83); -lean_ctor_set(x_97, 3, x_84); -lean_inc(x_9); -lean_inc(x_80); -lean_inc(x_7); -x_98 = l_Lean_Meta_reduce(x_26, x_11, x_15, x_15, x_97, x_7, x_80, x_9, x_25); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_101, 0, x_99); -x_102 = 0; -x_103 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_101, x_102, x_4, x_5, x_6, x_7, x_80, x_9, x_100); -lean_dec(x_9); -lean_dec(x_80); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_103; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_80); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_98, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_106 = x_98; -} else { - lean_dec_ref(x_98); - x_106 = lean_box(0); -} -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(1, 2, 0); -} else { - x_107 = x_106; -} -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -return x_107; -} -} -} -else -{ -uint8_t x_108; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_108 = !lean_is_exclusive(x_19); -if (x_108 == 0) -{ -return x_19; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_19, 0); -x_110 = lean_ctor_get(x_19, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_19); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -} -else -{ -uint8_t x_112; -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_112 = !lean_is_exclusive(x_17); -if (x_112 == 0) -{ -return x_17; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_17, 0); -x_114 = lean_ctor_get(x_17, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_17); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -} -else -{ -uint8_t x_116; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_116 = !lean_is_exclusive(x_12); -if (x_116 == 0) -{ -return x_12; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_12, 0); -x_118 = lean_ctor_get(x_12, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_12); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabReduce___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) { -_start: -{ -uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_12 = 0; -x_13 = lean_box(0); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_14 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_12, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_box(0); -x_17 = lean_array_get_size(x_4); -x_18 = lean_unsigned_to_nat(0u); -lean_inc(x_4); -x_19 = l_Array_toSubarray___rarg(x_4, x_18, x_17); -x_20 = lean_ctor_get(x_1, 6); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_16); -x_22 = lean_array_get_size(x_20); -x_23 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_24 = 0; -x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_20, x_23, x_24, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_15); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = !lean_is_exclusive(x_5); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_5, 7); -lean_dec(x_30); -lean_ctor_set(x_5, 7, x_28); -x_31 = l_Lean_Elab_Term_resetMessageLog(x_5, x_6, x_7, x_8, x_9, x_10, x_27); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -lean_inc(x_7); -lean_inc(x_5); -x_33 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_32); -lean_dec(x_4); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = lean_box(0); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__1___boxed), 10, 3); -lean_closure_set(x_36, 0, x_2); -lean_closure_set(x_36, 1, x_35); -lean_closure_set(x_36, 2, x_3); -x_37 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_34); -return x_37; -} -else -{ -uint8_t x_38; -lean_dec(x_5); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) -{ -return x_33; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_33); -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; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_42 = lean_ctor_get(x_5, 0); -x_43 = lean_ctor_get(x_5, 1); -x_44 = lean_ctor_get(x_5, 2); -x_45 = lean_ctor_get(x_5, 3); -x_46 = lean_ctor_get(x_5, 4); -x_47 = lean_ctor_get_uint8(x_5, sizeof(void*)*8); -x_48 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 1); -x_49 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 2); -x_50 = lean_ctor_get(x_5, 5); -x_51 = lean_ctor_get(x_5, 6); -x_52 = lean_ctor_get_uint8(x_5, sizeof(void*)*8 + 3); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_5); -x_53 = lean_alloc_ctor(0, 8, 4); -lean_ctor_set(x_53, 0, x_42); -lean_ctor_set(x_53, 1, x_43); -lean_ctor_set(x_53, 2, x_44); -lean_ctor_set(x_53, 3, x_45); -lean_ctor_set(x_53, 4, x_46); -lean_ctor_set(x_53, 5, x_50); -lean_ctor_set(x_53, 6, x_51); -lean_ctor_set(x_53, 7, x_28); -lean_ctor_set_uint8(x_53, sizeof(void*)*8, x_47); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 1, x_48); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 2, x_49); -lean_ctor_set_uint8(x_53, sizeof(void*)*8 + 3, x_52); -x_54 = l_Lean_Elab_Term_resetMessageLog(x_53, x_6, x_7, x_8, x_9, x_10, x_27); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -lean_inc(x_7); -lean_inc(x_53); -x_56 = l_Lean_Elab_Term_addAutoBoundImplicits(x_4, x_53, x_6, x_7, x_8, x_9, x_10, x_55); -lean_dec(x_4); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_box(0); -x_59 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__1___boxed), 10, 3); -lean_closure_set(x_59, 0, x_2); -lean_closure_set(x_59, 1, x_58); -lean_closure_set(x_59, 2, x_3); -x_60 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_59, x_53, x_6, x_7, x_8, x_9, x_10, x_57); -return x_60; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_dec(x_53); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_61 = lean_ctor_get(x_56, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_56, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_63 = x_56; -} else { - lean_dec_ref(x_56); - x_63 = lean_box(0); -} -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(1, 2, 0); -} else { - x_64 = x_63; -} -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); -return x_64; -} -} -} -else -{ -uint8_t x_65; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_65 = !lean_is_exclusive(x_14); -if (x_65 == 0) -{ -return x_14; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_14, 0); -x_67 = lean_ctor_get(x_14, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_14); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -return x_68; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabReduce___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("reduce"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabReduce___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_Command_elabReduce___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_elabReduce(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; -x_5 = l_Lean_Elab_Command_elabReduce___closed__2; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_2); -lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_7; -} -else -{ -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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Lean_Syntax_getArg(x_1, x_8); -x_10 = lean_unsigned_to_nat(1u); -x_11 = l_Lean_Syntax_getArg(x_1, x_10); -lean_dec(x_1); -x_12 = lean_st_ref_get(x_3, x_4); -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); -x_16 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); -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 = lean_ctor_get(x_17, 5); -lean_inc(x_19); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___lambda__2___boxed), 11, 3); -lean_closure_set(x_20, 0, x_17); -lean_closure_set(x_20, 1, x_11); -lean_closure_set(x_20, 2, x_9); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_21, 0, x_19); -lean_closure_set(x_21, 1, x_20); -x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_22, 0, x_21); -x_23 = l_Lean_Elab_Command_elabCheck___closed__5; -lean_inc(x_2); -x_24 = l_Lean_Elab_Command_liftTermElabM___rarg(x_23, x_22, x_2, x_3, x_18); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_15, x_2, x_3, x_26); -lean_dec(x_2); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -lean_ctor_set(x_27, 0, x_25); -return x_27; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_25); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_24, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_24, 1); -lean_inc(x_33); -lean_dec(x_24); -x_34 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_15, x_2, x_3, x_33); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_34, 0); -lean_dec(x_36); -lean_ctor_set_tag(x_34, 1); -lean_ctor_set(x_34, 0, x_32); -return x_34; -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_32); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -} -} -lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Command_elabReduce___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_3); -return x_11; -} -} -lean_object* l_Lean_Elab_Command_elabReduce___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Elab_Command_elabReduce___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_1); -return x_12; -} -} -lean_object* l_Lean_Elab_Command_elabReduce___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_Command_elabReduce(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabReduce"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabReduce___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2; -x_5 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_st_ref_get(x_1, x_2); -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_dec(x_5); -x_7 = l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -uint8_t x_8; lean_object* x_9; -x_8 = 1; -x_9 = lean_box(x_8); -lean_ctor_set(x_3, 0, x_9); -return x_3; -} -else -{ -uint8_t x_10; lean_object* x_11; -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_3, 0, x_11); -return x_3; -} -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_ctor_get(x_3, 0); -x_13 = lean_ctor_get(x_3, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_3); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_16 = 1; -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_13); -return x_18; -} -else -{ -uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_19 = 0; -x_20 = lean_box(x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_13); -return x_21; -} -} -} -} -lean_object* l_Lean_Elab_Command_hasNoErrorMessages(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed), 2, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_hasNoErrorMessages___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Elab_Command_hasNoErrorMessages(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_failIfSucceeds_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_object* x_6; -lean_dec(x_3); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -x_6 = lean_apply_3(x_2, x_1, x_4, x_5); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -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); -lean_dec(x_1); -x_9 = lean_apply_2(x_3, x_7, x_8); -return x_9; -} -} -} -lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_failIfSucceeds_match__1___rarg), 3, 0); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unexpected success"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (x_1 == 0) -{ -lean_object* x_5; lean_object* x_6; -lean_dec(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; -} -else -{ -lean_object* x_7; lean_object* x_8; -x_7 = l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2; -x_8 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(x_7, x_2, x_3, x_4); -return x_8; -} -} -} -static lean_object* _init_l_Lean_Elab_Command_failIfSucceeds___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed), 4, 0); -return x_1; -} -} -lean_object* l_Lean_Elab_Command_failIfSucceeds(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_5 = lean_st_ref_get(x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = lean_st_ref_take(x_3, x_7); -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_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; uint8_t x_18; lean_object* x_19; lean_object* x_48; lean_object* x_49; lean_object* x_79; -x_13 = lean_ctor_get(x_10, 1); -lean_dec(x_13); -x_14 = l_Lean_Elab_Command_State_messages___default___closed__3; -lean_ctor_set(x_10, 1, x_14); -x_15 = lean_st_ref_set(x_3, x_10, x_11); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_Elab_Command_failIfSucceeds___closed__1; -lean_inc(x_3); -lean_inc(x_2); -x_79 = lean_apply_3(x_1, x_2, x_3, x_16); -if (lean_obj_tag(x_79) == 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_79, 1); -lean_inc(x_80); -lean_dec(x_79); -x_81 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_80); -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -x_84 = lean_unbox(x_82); -lean_dec(x_82); -x_18 = x_84; -x_19 = x_83; -goto block_47; -} -else -{ -lean_object* x_85; -x_85 = lean_ctor_get(x_79, 0); -lean_inc(x_85); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_79, 1); -lean_inc(x_86); -lean_dec(x_79); -x_87 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_85, x_2, x_3, x_86); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; uint8_t x_89; -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = 0; -x_18 = x_89; -x_19 = x_88; -goto block_47; -} -else -{ -lean_object* x_90; lean_object* x_91; -lean_dec(x_2); -x_90 = lean_ctor_get(x_87, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 1); -lean_inc(x_91); -lean_dec(x_87); -x_48 = x_90; -x_49 = x_91; -goto block_78; -} -} -else -{ -lean_object* x_92; uint8_t x_93; -x_92 = lean_ctor_get(x_79, 1); -lean_inc(x_92); -lean_dec(x_79); -x_93 = !lean_is_exclusive(x_85); -if (x_93 == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_85, 0); -x_95 = lean_ctor_get(x_85, 1); -lean_dec(x_95); -x_96 = l_Lean_InternalExceptionId_getName(x_94, x_92); -lean_dec(x_94); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -lean_free_object(x_85); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_99, 0, x_97); -x_100 = 2; -x_101 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_99, x_100, x_2, x_3, x_98); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -lean_dec(x_101); -x_103 = 0; -x_18 = x_103; -x_19 = x_102; -goto block_47; -} -else -{ -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_104 = lean_ctor_get(x_96, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_96, 1); -lean_inc(x_105); -lean_dec(x_96); -x_106 = lean_ctor_get(x_2, 6); -lean_inc(x_106); -lean_dec(x_2); -x_107 = lean_io_error_to_string(x_104); -x_108 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_108, 0, x_107); -x_109 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set_tag(x_85, 0); -lean_ctor_set(x_85, 1, x_109); -lean_ctor_set(x_85, 0, x_106); -x_48 = x_85; -x_49 = x_105; -goto block_78; -} -} -else -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_85, 0); -lean_inc(x_110); -lean_dec(x_85); -x_111 = l_Lean_InternalExceptionId_getName(x_110, x_92); -lean_dec(x_110); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_114, 0, x_112); -x_115 = 2; -x_116 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_114, x_115, x_2, x_3, x_113); -x_117 = lean_ctor_get(x_116, 1); -lean_inc(x_117); -lean_dec(x_116); -x_118 = 0; -x_18 = x_118; -x_19 = x_117; -goto block_47; -} -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; -x_119 = lean_ctor_get(x_111, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_111, 1); -lean_inc(x_120); -lean_dec(x_111); -x_121 = lean_ctor_get(x_2, 6); -lean_inc(x_121); -lean_dec(x_2); -x_122 = lean_io_error_to_string(x_119); -x_123 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_123, 0, x_122); -x_124 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_124, 0, x_123); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_121); -lean_ctor_set(x_125, 1, x_124); -x_48 = x_125; -x_49 = x_120; -goto block_78; -} -} -} -} -block_47: -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_20 = lean_st_ref_take(x_3, x_19); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_24 = lean_ctor_get(x_21, 1); -x_25 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_24); -x_26 = l_Std_PersistentArray_append___rarg(x_8, x_25); -lean_dec(x_25); -lean_ctor_set(x_21, 1, x_26); -x_27 = lean_st_ref_set(x_3, x_21, x_22); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_box(x_18); -x_30 = lean_apply_4(x_17, x_29, x_2, x_3, x_28); -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; 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; -x_31 = lean_ctor_get(x_21, 0); -x_32 = lean_ctor_get(x_21, 1); -x_33 = lean_ctor_get(x_21, 2); -x_34 = lean_ctor_get(x_21, 3); -x_35 = lean_ctor_get(x_21, 4); -x_36 = lean_ctor_get(x_21, 5); -x_37 = lean_ctor_get(x_21, 6); -x_38 = lean_ctor_get(x_21, 7); -x_39 = lean_ctor_get(x_21, 8); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_21); -x_40 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_32); -x_41 = l_Std_PersistentArray_append___rarg(x_8, x_40); -lean_dec(x_40); -x_42 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_42, 0, x_31); -lean_ctor_set(x_42, 1, x_41); -lean_ctor_set(x_42, 2, x_33); -lean_ctor_set(x_42, 3, x_34); -lean_ctor_set(x_42, 4, x_35); -lean_ctor_set(x_42, 5, x_36); -lean_ctor_set(x_42, 6, x_37); -lean_ctor_set(x_42, 7, x_38); -lean_ctor_set(x_42, 8, x_39); -x_43 = lean_st_ref_set(x_3, x_42, x_22); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_box(x_18); -x_46 = lean_apply_4(x_17, x_45, x_2, x_3, x_44); -return x_46; -} -} -block_78: -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_50 = lean_st_ref_take(x_3, x_49); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); -x_53 = !lean_is_exclusive(x_51); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_54 = lean_ctor_get(x_51, 1); -x_55 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_54); -x_56 = l_Std_PersistentArray_append___rarg(x_8, x_55); -lean_dec(x_55); -lean_ctor_set(x_51, 1, x_56); -x_57 = lean_st_ref_set(x_3, x_51, x_52); -lean_dec(x_3); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) -{ -lean_object* x_59; -x_59 = lean_ctor_get(x_57, 0); -lean_dec(x_59); -lean_ctor_set_tag(x_57, 1); -lean_ctor_set(x_57, 0, x_48); -return x_57; -} -else -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_48); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -else -{ -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; -x_62 = lean_ctor_get(x_51, 0); -x_63 = lean_ctor_get(x_51, 1); -x_64 = lean_ctor_get(x_51, 2); -x_65 = lean_ctor_get(x_51, 3); -x_66 = lean_ctor_get(x_51, 4); -x_67 = lean_ctor_get(x_51, 5); -x_68 = lean_ctor_get(x_51, 6); -x_69 = lean_ctor_get(x_51, 7); -x_70 = lean_ctor_get(x_51, 8); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_51); -x_71 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_63); -x_72 = l_Std_PersistentArray_append___rarg(x_8, x_71); -lean_dec(x_71); -x_73 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_73, 0, x_62); -lean_ctor_set(x_73, 1, x_72); -lean_ctor_set(x_73, 2, x_64); -lean_ctor_set(x_73, 3, x_65); -lean_ctor_set(x_73, 4, x_66); -lean_ctor_set(x_73, 5, x_67); -lean_ctor_set(x_73, 6, x_68); -lean_ctor_set(x_73, 7, x_69); -lean_ctor_set(x_73, 8, x_70); -x_74 = lean_st_ref_set(x_3, x_73, x_52); -lean_dec(x_3); -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_76 = x_74; -} else { - lean_dec_ref(x_74); - x_76 = lean_box(0); -} -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); -} else { - x_77 = x_76; - lean_ctor_set_tag(x_77, 1); -} -lean_ctor_set(x_77, 0, x_48); -lean_ctor_set(x_77, 1, x_75); -return x_77; -} -} -} -else -{ -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; uint8_t x_139; lean_object* x_140; lean_object* x_162; lean_object* x_163; lean_object* x_185; -x_126 = lean_ctor_get(x_10, 0); -x_127 = lean_ctor_get(x_10, 2); -x_128 = lean_ctor_get(x_10, 3); -x_129 = lean_ctor_get(x_10, 4); -x_130 = lean_ctor_get(x_10, 5); -x_131 = lean_ctor_get(x_10, 6); -x_132 = lean_ctor_get(x_10, 7); -x_133 = lean_ctor_get(x_10, 8); -lean_inc(x_133); -lean_inc(x_132); -lean_inc(x_131); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_10); -x_134 = l_Lean_Elab_Command_State_messages___default___closed__3; -x_135 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_135, 0, x_126); -lean_ctor_set(x_135, 1, x_134); -lean_ctor_set(x_135, 2, x_127); -lean_ctor_set(x_135, 3, x_128); -lean_ctor_set(x_135, 4, x_129); -lean_ctor_set(x_135, 5, x_130); -lean_ctor_set(x_135, 6, x_131); -lean_ctor_set(x_135, 7, x_132); -lean_ctor_set(x_135, 8, x_133); -x_136 = lean_st_ref_set(x_3, x_135, x_11); -x_137 = lean_ctor_get(x_136, 1); -lean_inc(x_137); -lean_dec(x_136); -x_138 = l_Lean_Elab_Command_failIfSucceeds___closed__1; -lean_inc(x_3); -lean_inc(x_2); -x_185 = lean_apply_3(x_1, x_2, x_3, x_137); -if (lean_obj_tag(x_185) == 0) -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -lean_dec(x_185); -x_187 = l_Lean_Elab_Command_hasNoErrorMessages___rarg(x_3, x_186); -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 = lean_unbox(x_188); -lean_dec(x_188); -x_139 = x_190; -x_140 = x_189; -goto block_161; -} -else -{ -lean_object* x_191; -x_191 = lean_ctor_get(x_185, 0); -lean_inc(x_191); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; lean_object* x_193; -x_192 = lean_ctor_get(x_185, 1); -lean_inc(x_192); -lean_dec(x_185); -x_193 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(x_191, x_2, x_3, x_192); -if (lean_obj_tag(x_193) == 0) -{ -lean_object* x_194; uint8_t x_195; -x_194 = lean_ctor_get(x_193, 1); -lean_inc(x_194); -lean_dec(x_193); -x_195 = 0; -x_139 = x_195; -x_140 = x_194; -goto block_161; -} -else -{ -lean_object* x_196; lean_object* x_197; -lean_dec(x_2); -x_196 = lean_ctor_get(x_193, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_193, 1); -lean_inc(x_197); -lean_dec(x_193); -x_162 = x_196; -x_163 = x_197; -goto block_184; -} -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_198 = lean_ctor_get(x_185, 1); -lean_inc(x_198); -lean_dec(x_185); -x_199 = lean_ctor_get(x_191, 0); -lean_inc(x_199); -if (lean_is_exclusive(x_191)) { - lean_ctor_release(x_191, 0); - lean_ctor_release(x_191, 1); - x_200 = x_191; -} else { - lean_dec_ref(x_191); - x_200 = lean_box(0); -} -x_201 = l_Lean_InternalExceptionId_getName(x_199, x_198); -lean_dec(x_199); -if (lean_obj_tag(x_201) == 0) -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; -lean_dec(x_200); -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 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_204, 0, x_202); -x_205 = 2; -x_206 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_204, x_205, x_2, x_3, x_203); -x_207 = lean_ctor_get(x_206, 1); -lean_inc(x_207); -lean_dec(x_206); -x_208 = 0; -x_139 = x_208; -x_140 = x_207; -goto block_161; -} -else -{ -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; -x_209 = lean_ctor_get(x_201, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_201, 1); -lean_inc(x_210); -lean_dec(x_201); -x_211 = lean_ctor_get(x_2, 6); -lean_inc(x_211); -lean_dec(x_2); -x_212 = lean_io_error_to_string(x_209); -x_213 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_213, 0, x_212); -x_214 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_214, 0, x_213); -if (lean_is_scalar(x_200)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_200; - lean_ctor_set_tag(x_215, 0); -} -lean_ctor_set(x_215, 0, x_211); -lean_ctor_set(x_215, 1, x_214); -x_162 = x_215; -x_163 = x_210; -goto block_184; -} -} -} -block_161: -{ -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; -x_141 = lean_st_ref_take(x_3, x_140); -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -lean_dec(x_141); -x_144 = lean_ctor_get(x_142, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_142, 1); -lean_inc(x_145); -x_146 = lean_ctor_get(x_142, 2); -lean_inc(x_146); -x_147 = lean_ctor_get(x_142, 3); -lean_inc(x_147); -x_148 = lean_ctor_get(x_142, 4); -lean_inc(x_148); -x_149 = lean_ctor_get(x_142, 5); -lean_inc(x_149); -x_150 = lean_ctor_get(x_142, 6); -lean_inc(x_150); -x_151 = lean_ctor_get(x_142, 7); -lean_inc(x_151); -x_152 = lean_ctor_get(x_142, 8); -lean_inc(x_152); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - lean_ctor_release(x_142, 2); - lean_ctor_release(x_142, 3); - lean_ctor_release(x_142, 4); - lean_ctor_release(x_142, 5); - lean_ctor_release(x_142, 6); - lean_ctor_release(x_142, 7); - lean_ctor_release(x_142, 8); - x_153 = x_142; -} else { - lean_dec_ref(x_142); - x_153 = lean_box(0); -} -x_154 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_145); -x_155 = l_Std_PersistentArray_append___rarg(x_8, x_154); -lean_dec(x_154); -if (lean_is_scalar(x_153)) { - x_156 = lean_alloc_ctor(0, 9, 0); -} else { - x_156 = x_153; -} -lean_ctor_set(x_156, 0, x_144); -lean_ctor_set(x_156, 1, x_155); -lean_ctor_set(x_156, 2, x_146); -lean_ctor_set(x_156, 3, x_147); -lean_ctor_set(x_156, 4, x_148); -lean_ctor_set(x_156, 5, x_149); -lean_ctor_set(x_156, 6, x_150); -lean_ctor_set(x_156, 7, x_151); -lean_ctor_set(x_156, 8, x_152); -x_157 = lean_st_ref_set(x_3, x_156, x_143); -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); -lean_dec(x_157); -x_159 = lean_box(x_139); -x_160 = lean_apply_4(x_138, x_159, x_2, x_3, x_158); -return x_160; -} -block_184: -{ -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; -x_164 = lean_st_ref_take(x_3, x_163); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_167 = lean_ctor_get(x_165, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_165, 1); -lean_inc(x_168); -x_169 = lean_ctor_get(x_165, 2); -lean_inc(x_169); -x_170 = lean_ctor_get(x_165, 3); -lean_inc(x_170); -x_171 = lean_ctor_get(x_165, 4); -lean_inc(x_171); -x_172 = lean_ctor_get(x_165, 5); -lean_inc(x_172); -x_173 = lean_ctor_get(x_165, 6); -lean_inc(x_173); -x_174 = lean_ctor_get(x_165, 7); -lean_inc(x_174); -x_175 = lean_ctor_get(x_165, 8); -lean_inc(x_175); -if (lean_is_exclusive(x_165)) { - lean_ctor_release(x_165, 0); - lean_ctor_release(x_165, 1); - lean_ctor_release(x_165, 2); - lean_ctor_release(x_165, 3); - lean_ctor_release(x_165, 4); - lean_ctor_release(x_165, 5); - lean_ctor_release(x_165, 6); - lean_ctor_release(x_165, 7); - lean_ctor_release(x_165, 8); - x_176 = x_165; -} else { - lean_dec_ref(x_165); - x_176 = lean_box(0); -} -x_177 = l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(x_168); -x_178 = l_Std_PersistentArray_append___rarg(x_8, x_177); -lean_dec(x_177); -if (lean_is_scalar(x_176)) { - x_179 = lean_alloc_ctor(0, 9, 0); -} else { - x_179 = x_176; -} -lean_ctor_set(x_179, 0, x_167); -lean_ctor_set(x_179, 1, x_178); -lean_ctor_set(x_179, 2, x_169); -lean_ctor_set(x_179, 3, x_170); -lean_ctor_set(x_179, 4, x_171); -lean_ctor_set(x_179, 5, x_172); -lean_ctor_set(x_179, 6, x_173); -lean_ctor_set(x_179, 7, x_174); -lean_ctor_set(x_179, 8, x_175); -x_180 = lean_st_ref_set(x_3, x_179, x_166); -lean_dec(x_3); -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -if (lean_is_exclusive(x_180)) { - lean_ctor_release(x_180, 0); - lean_ctor_release(x_180, 1); - x_182 = x_180; -} else { - lean_dec_ref(x_180); - x_182 = lean_box(0); -} -if (lean_is_scalar(x_182)) { - x_183 = lean_alloc_ctor(1, 2, 0); -} else { - x_183 = x_182; - lean_ctor_set_tag(x_183, 1); -} -lean_ctor_set(x_183, 0, x_162); -lean_ctor_set(x_183, 1, x_181); -return x_183; -} -} -} -} -lean_object* l_Lean_Elab_Command_failIfSucceeds___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 = lean_unbox(x_1); -lean_dec(x_1); -x_6 = l_Lean_Elab_Command_failIfSucceeds___lambda__1(x_5, x_2, x_3, x_4); -lean_dec(x_3); -return x_6; -} -} -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___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 = l_Lean_Elab_Command_getRef(x_1, x_2, x_3); -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_4, 0); -x_7 = l_Lean_SourceInfo_fromRef(x_6); -lean_dec(x_6); -lean_ctor_set(x_4, 0, x_7); -return x_4; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_4, 0); -x_9 = lean_ctor_get(x_4, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_dec(x_4); -x_10 = l_Lean_SourceInfo_fromRef(x_8); -lean_dec(x_8); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -return x_11; -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("check_failure"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_Command_elabCheckFailure___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("#check"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabCheckFailure___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(2u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabCheckFailure(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; -x_5 = l_Lean_Elab_Command_elabCheckFailure___closed__2; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_7; -} -else -{ -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; 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_8 = lean_unsigned_to_nat(1u); -x_9 = l_Lean_Syntax_getArg(x_1, x_8); -lean_dec(x_1); -x_10 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_2, x_3, x_4); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_12); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_14); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_Elab_Command_elabCheckFailure___closed__3; -x_18 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Elab_Command_elabCheckFailure___closed__4; -x_20 = lean_array_push(x_19, x_18); -x_21 = lean_array_push(x_20, x_9); -x_22 = l_Lean_Elab_Command_elabCheck___closed__2; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___boxed), 4, 1); -lean_closure_set(x_24, 0, x_23); -x_25 = l_Lean_Elab_Command_failIfSucceeds(x_24, x_2, x_3, x_16); -return x_25; -} -} -} -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabCheckFailure"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheckFailure), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabCheckFailure___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2; -x_5 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_3); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_1(x_2, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_1(x_3, x_6); -return x_7; -} -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -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_apply_2(x_2, x_3, x_4); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__2___rarg), 2, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_3); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_1(x_2, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_1(x_3, x_6); -return x_7; -} -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg), 3, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -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_apply_2(x_2, x_3, x_4); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe_match__4___rarg), 2, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_ctor_get(x_7, 3); -x_13 = lean_apply_1(x_2, x_11); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; -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_ctor_get(x_14, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_18, 0, x_16); -x_19 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = 0; -x_21 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_1, x_19, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -if (lean_obj_tag(x_17) == 0) -{ -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_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = lean_ctor_get(x_17, 0); -lean_inc(x_23); -lean_dec(x_17); -x_24 = lean_io_error_to_string(x_23); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_22); -return x_27; -} -else -{ -uint8_t x_28; -lean_dec(x_17); -lean_dec(x_3); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_21, 0); -lean_dec(x_29); -x_30 = lean_box(0); -lean_ctor_set(x_21, 0, x_30); -return x_21; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_21, 1); -lean_inc(x_31); -lean_dec(x_21); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -return x_33; -} -} -} -else -{ -uint8_t x_34; -lean_dec(x_3); -x_34 = !lean_is_exclusive(x_13); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_13, 0); -x_36 = lean_io_error_to_string(x_35); -x_37 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_37, 0, x_36); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); -lean_inc(x_12); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_12); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_13, 0, x_39); -return x_13; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_40 = lean_ctor_get(x_13, 0); -x_41 = lean_ctor_get(x_13, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_13); -x_42 = lean_io_error_to_string(x_40); -x_43 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_44, 0, x_43); -lean_inc(x_12); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_12); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_41); -return x_46; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("runEval"); -return x_1; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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: -{ -uint8_t x_13; lean_object* x_14; -x_13 = 1; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_14 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_13, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; -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 = l_Lean_mkSimpleThunk(x_15); -x_18 = 0; -x_19 = 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_20 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_18, x_18, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_16); -if (lean_obj_tag(x_20) == 0) -{ -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_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; -x_23 = lean_name_mk_string(x_3, x_22); -x_24 = l_Lean_Elab_Command_getBracketedBinderIds___closed__9; -x_25 = lean_array_push(x_24, x_17); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_26 = l_Lean_Meta_mkAppM(x_23, x_25, x_8, x_9, x_10, x_11, x_21); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_st_ref_get(x_11, x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -x_33 = l_Lean_Meta_inferType(x_27, x_8, x_9, x_10, x_11, x_31); -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; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -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_box(0); -lean_inc(x_5); -x_37 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_37, 0, x_5); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_37, 2, x_34); -x_38 = lean_box(0); -x_39 = 0; -x_40 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_27); -lean_ctor_set(x_40, 2, x_38); -lean_ctor_set_uint8(x_40, sizeof(void*)*3, x_39); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_40); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_41); -x_42 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_35); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -lean_inc(x_10); -lean_inc(x_6); -x_44 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec(x_44); -lean_inc(x_6); -x_46 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); -lean_dec(x_5); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -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_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_48); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(x_4, x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_50); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_51; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_52 = lean_ctor_get(x_46, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_46, 1); -lean_inc(x_53); -lean_dec(x_46); -x_54 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_53); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -lean_object* x_56; -x_56 = lean_ctor_get(x_54, 0); -lean_dec(x_56); -lean_ctor_set_tag(x_54, 1); -lean_ctor_set(x_54, 0, x_52); -return x_54; -} -else -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -lean_dec(x_54); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_52); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -lean_dec(x_5); -x_59 = lean_ctor_get(x_44, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_44, 1); -lean_inc(x_60); -lean_dec(x_44); -x_61 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_60); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_61, 0); -lean_dec(x_63); -lean_ctor_set_tag(x_61, 1); -lean_ctor_set(x_61, 0, x_59); -return x_61; -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_59); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_41); -lean_dec(x_5); -x_66 = lean_ctor_get(x_42, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_42, 1); -lean_inc(x_67); -lean_dec(x_42); -x_68 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_67); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -lean_ctor_set_tag(x_68, 1); -lean_ctor_set(x_68, 0, x_66); -return x_68; -} -else -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_66); -lean_ctor_set(x_72, 1, x_71); -return x_72; -} -} -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -lean_dec(x_27); -lean_dec(x_5); -x_73 = lean_ctor_get(x_33, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_33, 1); -lean_inc(x_74); -lean_dec(x_33); -x_75 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_32, x_6, x_7, x_8, x_9, x_10, x_11, 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); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) -{ -lean_object* x_77; -x_77 = lean_ctor_get(x_75, 0); -lean_dec(x_77); -lean_ctor_set_tag(x_75, 1); -lean_ctor_set(x_75, 0, x_73); -return x_75; -} -else -{ -lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_75, 1); -lean_inc(x_78); -lean_dec(x_75); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_73); -lean_ctor_set(x_79, 1, x_78); -return x_79; -} -} -} -else -{ -uint8_t x_80; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_80 = !lean_is_exclusive(x_26); -if (x_80 == 0) -{ -return x_26; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_26, 0); -x_82 = lean_ctor_get(x_26, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_26); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; -} -} -} -else -{ -uint8_t x_84; -lean_dec(x_17); -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); -x_84 = !lean_is_exclusive(x_20); -if (x_84 == 0) -{ -return x_20; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_20, 0); -x_86 = lean_ctor_get(x_20, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_20); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -} -else -{ -uint8_t x_88; -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); -x_88 = !lean_is_exclusive(x_14); -if (x_88 == 0) -{ -return x_14; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_14, 0); -x_90 = lean_ctor_get(x_14, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_14); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_14 = 0; -x_15 = 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_16 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_14, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_16) == 0) -{ -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; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_box(0); -x_19 = lean_array_get_size(x_6); -x_20 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_21 = l_Array_toSubarray___rarg(x_6, x_20, x_19); -x_22 = lean_ctor_get(x_1, 6); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_18); -x_24 = lean_array_get_size(x_22); -x_25 = lean_usize_of_nat(x_24); -lean_dec(x_24); -x_26 = 0; -x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_22, x_25, x_26, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_17); -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_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_7); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_7, 7); -lean_dec(x_32); -lean_ctor_set(x_7, 7, x_30); -x_33 = l_Lean_Elab_Term_resetMessageLog(x_7, x_8, x_9, x_10, x_11, x_12, x_29); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -lean_inc(x_9); -lean_inc(x_7); -x_35 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); -lean_dec(x_6); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_box(0); -x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___boxed), 12, 5); -lean_closure_set(x_38, 0, x_2); -lean_closure_set(x_38, 1, x_37); -lean_closure_set(x_38, 2, x_3); -lean_closure_set(x_38, 3, x_4); -lean_closure_set(x_38, 4, x_5); -x_39 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_36); -return x_39; -} -else -{ -uint8_t x_40; -lean_dec(x_7); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_40 = !lean_is_exclusive(x_35); -if (x_40 == 0) -{ -return x_35; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_35, 0); -x_42 = lean_ctor_get(x_35, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_35); -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 -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_44 = lean_ctor_get(x_7, 0); -x_45 = lean_ctor_get(x_7, 1); -x_46 = lean_ctor_get(x_7, 2); -x_47 = lean_ctor_get(x_7, 3); -x_48 = lean_ctor_get(x_7, 4); -x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*8); -x_50 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1); -x_51 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2); -x_52 = lean_ctor_get(x_7, 5); -x_53 = lean_ctor_get(x_7, 6); -x_54 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_7); -x_55 = lean_alloc_ctor(0, 8, 4); -lean_ctor_set(x_55, 0, x_44); -lean_ctor_set(x_55, 1, x_45); -lean_ctor_set(x_55, 2, x_46); -lean_ctor_set(x_55, 3, x_47); -lean_ctor_set(x_55, 4, x_48); -lean_ctor_set(x_55, 5, x_52); -lean_ctor_set(x_55, 6, x_53); -lean_ctor_set(x_55, 7, x_30); -lean_ctor_set_uint8(x_55, sizeof(void*)*8, x_49); -lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 1, x_50); -lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 2, x_51); -lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 3, x_54); -x_56 = l_Lean_Elab_Term_resetMessageLog(x_55, x_8, x_9, x_10, x_11, x_12, x_29); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -lean_inc(x_9); -lean_inc(x_55); -x_58 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_55, x_8, x_9, x_10, x_11, x_12, x_57); -lean_dec(x_6); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = lean_box(0); -x_61 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___boxed), 12, 5); -lean_closure_set(x_61, 0, x_2); -lean_closure_set(x_61, 1, x_60); -lean_closure_set(x_61, 2, x_3); -lean_closure_set(x_61, 3, x_4); -lean_closure_set(x_61, 4, x_5); -x_62 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_61, x_55, x_8, x_9, x_10, x_11, x_12, x_59); -return x_62; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_55); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_63 = lean_ctor_get(x_58, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_58, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_65 = x_58; -} else { - lean_dec_ref(x_58); - x_65 = lean_box(0); -} -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); -} else { - x_66 = x_65; -} -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -} -else -{ -uint8_t x_67; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_67 = !lean_is_exclusive(x_16); -if (x_67 == 0) -{ -return x_16; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_16, 0); -x_69 = lean_ctor_get(x_16, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_16); -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; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("runMetaEval"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(3u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1; -x_13 = lean_name_mk_string(x_1, x_12); -x_14 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2; -lean_inc(x_2); -x_15 = lean_array_push(x_14, x_2); -lean_inc(x_4); -x_16 = lean_array_push(x_15, x_4); -x_17 = lean_array_push(x_16, x_3); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_18 = l_Lean_Meta_mkAppM(x_13, x_17, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; -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 = l_Lean_Elab_Command_elabCheckFailure___closed__4; -x_22 = lean_array_push(x_21, x_2); -x_23 = lean_array_push(x_22, x_4); -x_24 = 0; -x_25 = 1; -x_26 = l_Lean_Meta_mkLambdaFVars(x_23, x_19, x_24, x_25, x_7, x_8, x_9, x_10, x_20); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -return x_26; -} -else -{ -uint8_t x_27; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_2); -x_27 = !lean_is_exclusive(x_18); -if (x_27 == 0) -{ -return x_18; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_18, 0); -x_29 = lean_ctor_get(x_18, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_18); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("opts"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Options"); -return x_1; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3; -lean_inc(x_1); -x_13 = lean_name_mk_string(x_1, x_12); -x_14 = l_Lean_mkConst(x_13, x_2); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed), 11, 3); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_4); -lean_closure_set(x_15, 2, x_3); -x_16 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2; -x_17 = 0; -x_18 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_16, x_17, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_18; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -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_ctor_get(x_9, 3); -x_15 = lean_apply_3(x_4, x_1, x_2, x_13); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; -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); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_18); -x_21 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_21, 0, x_20); -x_22 = 0; -x_23 = l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(x_3, x_21, x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_17); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_ctor_get(x_19, 0); -lean_inc(x_25); -lean_dec(x_19); -x_26 = lean_io_error_to_string(x_25); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_24); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_30 = lean_ctor_get(x_23, 1); -lean_inc(x_30); -lean_dec(x_23); -x_31 = lean_ctor_get(x_19, 0); -lean_inc(x_31); -lean_dec(x_19); -x_32 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_30); -lean_dec(x_5); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -x_35 = lean_box(0); -lean_ctor_set(x_32, 0, x_35); -return x_32; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_32, 1); -lean_inc(x_36); -lean_dec(x_32); -x_37 = lean_box(0); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_5); -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; -x_40 = lean_ctor_get(x_15, 0); -x_41 = lean_io_error_to_string(x_40); -x_42 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_43, 0, x_42); -lean_inc(x_14); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_14); -lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_15, 0, x_44); -return x_15; -} -else -{ -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; -x_45 = lean_ctor_get(x_15, 0); -x_46 = lean_ctor_get(x_15, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_15); -x_47 = lean_io_error_to_string(x_45); -x_48 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_49, 0, x_48); -lean_inc(x_14); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_14); -lean_ctor_set(x_50, 1, x_49); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_46); -return x_51; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("env"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Environment"); -return x_1; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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: -{ -uint8_t x_13; lean_object* x_14; -x_13 = 1; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_14 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_13, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -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_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_19 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_17, x_17, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_16); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3; -lean_inc(x_3); -x_22 = lean_name_mk_string(x_3, x_21); -x_23 = lean_box(0); -x_24 = l_Lean_mkConst(x_22, x_23); -x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5), 11, 3); -lean_closure_set(x_25, 0, x_3); -lean_closure_set(x_25, 1, x_23); -lean_closure_set(x_25, 2, x_15); -x_26 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2; -x_27 = 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_28 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_26, x_27, x_24, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_20); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -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_st_ref_get(x_11, x_30); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_ctor_get(x_32, 0); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_ctor_get(x_10, 0); -lean_inc(x_35); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_29); -x_36 = l_Lean_Meta_inferType(x_29, x_8, x_9, x_10, x_11, x_33); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -lean_inc(x_5); -x_39 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_39, 0, x_5); -lean_ctor_set(x_39, 1, x_23); -lean_ctor_set(x_39, 2, x_37); -x_40 = lean_box(0); -x_41 = 0; -x_42 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_42, 0, x_39); -lean_ctor_set(x_42, 1, x_29); -lean_ctor_set(x_42, 2, x_40); -lean_ctor_set_uint8(x_42, sizeof(void*)*3, x_41); -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_42); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_43); -x_44 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_43, x_6, x_7, x_8, x_9, x_10, x_11, x_38); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec(x_44); -lean_inc(x_10); -lean_inc(x_6); -x_46 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(x_43, x_6, x_7, x_8, x_9, x_10, x_11, x_45); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -lean_inc(x_6); -x_48 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); -lean_dec(x_5); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -lean_inc(x_34); -x_51 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_50); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(x_34, x_35, x_4, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_52); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_53; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_35); -x_54 = lean_ctor_get(x_48, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_48, 1); -lean_inc(x_55); -lean_dec(x_48); -x_56 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_55); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -lean_ctor_set_tag(x_56, 1); -lean_ctor_set(x_56, 0, x_54); -return x_56; -} -else -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_dec(x_56); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_54); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -lean_dec(x_35); -lean_dec(x_5); -x_61 = lean_ctor_get(x_46, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_46, 1); -lean_inc(x_62); -lean_dec(x_46); -x_63 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, 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); -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) -{ -lean_object* x_65; -x_65 = lean_ctor_get(x_63, 0); -lean_dec(x_65); -lean_ctor_set_tag(x_63, 1); -lean_ctor_set(x_63, 0, x_61); -return x_63; -} -else -{ -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_61); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -lean_dec(x_43); -lean_dec(x_35); -lean_dec(x_5); -x_68 = lean_ctor_get(x_44, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_44, 1); -lean_inc(x_69); -lean_dec(x_44); -x_70 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_69); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) -{ -lean_object* x_72; -x_72 = lean_ctor_get(x_70, 0); -lean_dec(x_72); -lean_ctor_set_tag(x_70, 1); -lean_ctor_set(x_70, 0, x_68); -return x_70; -} -else -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_70, 1); -lean_inc(x_73); -lean_dec(x_70); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_68); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -lean_dec(x_35); -lean_dec(x_29); -lean_dec(x_5); -x_75 = lean_ctor_get(x_36, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_36, 1); -lean_inc(x_76); -lean_dec(x_36); -x_77 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_76); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_78 = !lean_is_exclusive(x_77); -if (x_78 == 0) -{ -lean_object* x_79; -x_79 = lean_ctor_get(x_77, 0); -lean_dec(x_79); -lean_ctor_set_tag(x_77, 1); -lean_ctor_set(x_77, 0, x_75); -return x_77; -} -else -{ -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_77, 1); -lean_inc(x_80); -lean_dec(x_77); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_75); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -} -else -{ -uint8_t x_82; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_82 = !lean_is_exclusive(x_28); -if (x_82 == 0) -{ -return x_28; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_28, 0); -x_84 = lean_ctor_get(x_28, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_28); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; -} -} -} -else -{ -uint8_t x_86; -lean_dec(x_15); -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); -x_86 = !lean_is_exclusive(x_19); -if (x_86 == 0) -{ -return x_19; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_19, 0); -x_88 = lean_ctor_get(x_19, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_19); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; -} -} -} -else -{ -uint8_t x_90; -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); -x_90 = !lean_is_exclusive(x_14); -if (x_90 == 0) -{ -return x_14; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_14, 0); -x_92 = lean_ctor_get(x_14, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_14); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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, lean_object* x_13) { -_start: -{ -uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_14 = 0; -x_15 = 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_16 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_14, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_16) == 0) -{ -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; size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_box(0); -x_19 = lean_array_get_size(x_6); -x_20 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_21 = l_Array_toSubarray___rarg(x_6, x_20, x_19); -x_22 = lean_ctor_get(x_1, 6); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_18); -x_24 = lean_array_get_size(x_22); -x_25 = lean_usize_of_nat(x_24); -lean_dec(x_24); -x_26 = 0; -x_27 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_22, x_25, x_26, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_17); -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_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = !lean_is_exclusive(x_7); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_7, 7); -lean_dec(x_32); -lean_ctor_set(x_7, 7, x_30); -x_33 = l_Lean_Elab_Term_resetMessageLog(x_7, x_8, x_9, x_10, x_11, x_12, x_29); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -lean_inc(x_9); -lean_inc(x_7); -x_35 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34); -lean_dec(x_6); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_box(0); -x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 12, 5); -lean_closure_set(x_38, 0, x_2); -lean_closure_set(x_38, 1, x_37); -lean_closure_set(x_38, 2, x_3); -lean_closure_set(x_38, 3, x_4); -lean_closure_set(x_38, 4, x_5); -x_39 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_36); -return x_39; -} -else -{ -uint8_t x_40; -lean_dec(x_7); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_40 = !lean_is_exclusive(x_35); -if (x_40 == 0) -{ -return x_35; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_35, 0); -x_42 = lean_ctor_get(x_35, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_35); -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 -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_44 = lean_ctor_get(x_7, 0); -x_45 = lean_ctor_get(x_7, 1); -x_46 = lean_ctor_get(x_7, 2); -x_47 = lean_ctor_get(x_7, 3); -x_48 = lean_ctor_get(x_7, 4); -x_49 = lean_ctor_get_uint8(x_7, sizeof(void*)*8); -x_50 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 1); -x_51 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 2); -x_52 = lean_ctor_get(x_7, 5); -x_53 = lean_ctor_get(x_7, 6); -x_54 = lean_ctor_get_uint8(x_7, sizeof(void*)*8 + 3); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_7); -x_55 = lean_alloc_ctor(0, 8, 4); -lean_ctor_set(x_55, 0, x_44); -lean_ctor_set(x_55, 1, x_45); -lean_ctor_set(x_55, 2, x_46); -lean_ctor_set(x_55, 3, x_47); -lean_ctor_set(x_55, 4, x_48); -lean_ctor_set(x_55, 5, x_52); -lean_ctor_set(x_55, 6, x_53); -lean_ctor_set(x_55, 7, x_30); -lean_ctor_set_uint8(x_55, sizeof(void*)*8, x_49); -lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 1, x_50); -lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 2, x_51); -lean_ctor_set_uint8(x_55, sizeof(void*)*8 + 3, x_54); -x_56 = l_Lean_Elab_Term_resetMessageLog(x_55, x_8, x_9, x_10, x_11, x_12, x_29); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -lean_inc(x_9); -lean_inc(x_55); -x_58 = l_Lean_Elab_Term_addAutoBoundImplicits(x_6, x_55, x_8, x_9, x_10, x_11, x_12, x_57); -lean_dec(x_6); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = lean_box(0); -x_61 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 12, 5); -lean_closure_set(x_61, 0, x_2); -lean_closure_set(x_61, 1, x_60); -lean_closure_set(x_61, 2, x_3); -lean_closure_set(x_61, 3, x_4); -lean_closure_set(x_61, 4, x_5); -x_62 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_61, x_55, x_8, x_9, x_10, x_11, x_12, x_59); -return x_62; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_55); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_63 = lean_ctor_get(x_58, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_58, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_65 = x_58; -} else { - lean_dec_ref(x_58); - x_65 = lean_box(0); -} -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); -} else { - x_66 = x_65; -} -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -} -else -{ -uint8_t x_67; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_67 = !lean_is_exclusive(x_16); -if (x_67 == 0) -{ -return x_16; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_16, 0); -x_69 = lean_ctor_get(x_16, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_16); -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; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("eval"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l_Lean_Elab_Command_elabEvalUnsafe___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("_eval"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabEvalUnsafe___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("MetaEval"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__2; -x_2 = l_Lean_Elab_Command_elabEvalUnsafe___closed__6; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe(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; -x_5 = l_Lean_Elab_Command_elabEvalUnsafe___closed__2; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) -{ -lean_object* x_7; -lean_dec(x_2); -lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); -return x_7; -} -else -{ -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; uint8_t x_17; -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Lean_Syntax_getArg(x_1, x_8); -x_10 = lean_unsigned_to_nat(1u); -x_11 = l_Lean_Syntax_getArg(x_1, x_10); -lean_dec(x_1); -x_12 = lean_st_ref_get(x_3, x_4); -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); -x_16 = l_Lean_Elab_Command_elabEvalUnsafe___closed__7; -x_17 = l_Lean_Environment_contains(x_15, x_16); -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; lean_object* x_27; lean_object* x_28; -x_18 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); -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_ctor_get(x_19, 5); -lean_inc(x_21); -x_22 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__2; -x_23 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 13, 5); -lean_closure_set(x_24, 0, x_19); -lean_closure_set(x_24, 1, x_11); -lean_closure_set(x_24, 2, x_22); -lean_closure_set(x_24, 3, x_9); -lean_closure_set(x_24, 4, x_23); -x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_25, 0, x_21); -lean_closure_set(x_25, 1, x_24); -x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_26, 0, x_25); -x_27 = l_Lean_Elab_Command_elabEvalUnsafe___closed__5; -x_28 = l_Lean_Elab_Command_liftTermElabM___rarg(x_27, x_26, x_2, x_3, x_20); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_29 = l_Lean_Elab_Command_getScope___rarg(x_3, x_14); -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); -x_32 = lean_ctor_get(x_30, 5); -lean_inc(x_32); -x_33 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__2; -x_34 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed), 13, 5); -lean_closure_set(x_35, 0, x_30); -lean_closure_set(x_35, 1, x_11); -lean_closure_set(x_35, 2, x_33); -lean_closure_set(x_35, 3, x_9); -lean_closure_set(x_35, 4, x_34); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_36, 0, x_32); -lean_closure_set(x_36, 1, x_35); -x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_37, 0, x_36); -x_38 = l_Lean_Elab_Command_elabEvalUnsafe___closed__5; -x_39 = l_Lean_Elab_Command_liftTermElabM___rarg(x_38, x_37, x_2, x_3, x_31); -return x_39; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l_Lean_Elab_Command_elabEvalUnsafe___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_Command_elabEvalUnsafe___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_1); -return x_14; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_6); -lean_dec(x_5); -return x_12; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -return x_12; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Command_elabEvalUnsafe___lambda__7(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_Command_elabEvalUnsafe___lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, 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_Lean_Elab_Command_elabEvalUnsafe___lambda__8(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_1); -return x_14; -} -} -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_Command_elabEvalUnsafe(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_Elab_Command_elabEval___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Command_commandElabAttribute___lambda__1___closed__2; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* l_Lean_Elab_Command_elabEval(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEval___rarg), 1, 0); -return x_4; -} -} -lean_object* l_Lean_Elab_Command_elabEval___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Elab_Command_elabEval(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabEval"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabEval(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabEvalUnsafe___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; -x_5 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__3; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elabSynth___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: -{ -uint8_t x_10; lean_object* x_11; -x_10 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_11 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_10, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = 0; -x_15 = lean_box(0); -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_synthesizeSyntheticMVars_loop(x_14, x_14, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_18 = l_Lean_Meta_instantiateMVars(x_12, x_5, x_6, x_7, x_8, x_17); -if (lean_obj_tag(x_18) == 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); -lean_dec(x_18); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_21 = l_Lean_Meta_synthInstance(x_19, x_2, x_5, x_6, x_7, x_8, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_22); -x_25 = 0; -x_26 = l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_24, x_25, x_3, x_4, x_5, x_6, x_7, x_8, 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_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(x_26, 0, x_15); -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(0, 2, 0); -lean_ctor_set(x_30, 0, x_15); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; -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_31 = !lean_is_exclusive(x_21); -if (x_31 == 0) -{ -return x_21; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_21, 0); -x_33 = lean_ctor_get(x_21, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_21); -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_35; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_18); -if (x_35 == 0) -{ -return x_18; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_18, 0); -x_37 = lean_ctor_get(x_18, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_18); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_16); -if (x_39 == 0) -{ -return x_16; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_16, 0); -x_41 = lean_ctor_get(x_16, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_16); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_43 = !lean_is_exclusive(x_11); -if (x_43 == 0) -{ -return x_11; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_11, 0); -x_45 = lean_ctor_get(x_11, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_11); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabSynth___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: -{ -uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_11 = 0; -x_12 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_11, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_13) == 0) -{ -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; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_box(0); -x_16 = lean_array_get_size(x_3); -x_17 = lean_unsigned_to_nat(0u); -lean_inc(x_3); -x_18 = l_Array_toSubarray___rarg(x_3, x_17, x_16); -x_19 = lean_ctor_get(x_1, 6); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_15); -x_21 = lean_array_get_size(x_19); -x_22 = lean_usize_of_nat(x_21); -lean_dec(x_21); -x_23 = 0; -x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(x_19, x_22, x_23, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = !lean_is_exclusive(x_4); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_4, 7); -lean_dec(x_29); -lean_ctor_set(x_4, 7, x_27); -x_30 = l_Lean_Elab_Term_resetMessageLog(x_4, x_5, x_6, x_7, x_8, x_9, x_26); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -lean_inc(x_6); -lean_inc(x_4); -x_32 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_31); -lean_dec(x_3); -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, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = lean_box(0); -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__1), 9, 2); -lean_closure_set(x_35, 0, x_2); -lean_closure_set(x_35, 1, x_34); -x_36 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_33); -return x_36; -} -else -{ -uint8_t x_37; -lean_dec(x_4); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_37 = !lean_is_exclusive(x_32); -if (x_37 == 0) -{ -return x_32; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_32, 0); -x_39 = lean_ctor_get(x_32, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_32); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_41 = lean_ctor_get(x_4, 0); -x_42 = lean_ctor_get(x_4, 1); -x_43 = lean_ctor_get(x_4, 2); -x_44 = lean_ctor_get(x_4, 3); -x_45 = lean_ctor_get(x_4, 4); -x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*8); -x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 1); -x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 2); -x_49 = lean_ctor_get(x_4, 5); -x_50 = lean_ctor_get(x_4, 6); -x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*8 + 3); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_4); -x_52 = lean_alloc_ctor(0, 8, 4); -lean_ctor_set(x_52, 0, x_41); -lean_ctor_set(x_52, 1, x_42); -lean_ctor_set(x_52, 2, x_43); -lean_ctor_set(x_52, 3, x_44); -lean_ctor_set(x_52, 4, x_45); -lean_ctor_set(x_52, 5, x_49); -lean_ctor_set(x_52, 6, x_50); -lean_ctor_set(x_52, 7, x_27); -lean_ctor_set_uint8(x_52, sizeof(void*)*8, x_46); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 1, x_47); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 2, x_48); -lean_ctor_set_uint8(x_52, sizeof(void*)*8 + 3, x_51); -x_53 = l_Lean_Elab_Term_resetMessageLog(x_52, x_5, x_6, x_7, x_8, x_9, x_26); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -lean_inc(x_6); -lean_inc(x_52); -x_55 = l_Lean_Elab_Term_addAutoBoundImplicits(x_3, x_52, x_5, x_6, x_7, x_8, x_9, x_54); -lean_dec(x_3); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = lean_box(0); -x_58 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__1), 9, 2); -lean_closure_set(x_58, 0, x_2); -lean_closure_set(x_58, 1, x_57); -x_59 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_58, x_52, x_5, x_6, x_7, x_8, x_9, x_56); -return x_59; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_52); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_60 = lean_ctor_get(x_55, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_55, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_62 = x_55; -} else { - lean_dec_ref(x_55); - 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; -} -} -} -else -{ -uint8_t x_64; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_64 = !lean_is_exclusive(x_13); -if (x_64 == 0) -{ -return x_13; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_13, 0); -x_66 = lean_ctor_get(x_13, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_13); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSynth___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("_synth_cmd"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSynth___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSynth___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSynth___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSynth___closed__2; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_elabSynth(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; 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; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = lean_st_ref_get(x_3, x_4); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Elab_Command_getScope___rarg(x_3, x_9); -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_ctor_get(x_12, 5); -lean_inc(x_14); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__2___boxed), 10, 2); -lean_closure_set(x_15, 0, x_12); -lean_closure_set(x_15, 1, x_6); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); -lean_closure_set(x_17, 0, x_16); -x_18 = l_Lean_Elab_Command_elabSynth___closed__3; -lean_inc(x_2); -x_19 = l_Lean_Elab_Command_liftTermElabM___rarg(x_18, x_17, x_2, x_3, x_13); -if (lean_obj_tag(x_19) == 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_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_21); -lean_dec(x_2); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -lean_ctor_set(x_22, 0, x_20); -return x_22; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_20); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_19, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_19, 1); -lean_inc(x_28); -lean_dec(x_19); -x_29 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_28); -lean_dec(x_2); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; -x_31 = lean_ctor_get(x_29, 0); -lean_dec(x_31); -lean_ctor_set_tag(x_29, 1); -lean_ctor_set(x_29, 0, x_27); -return x_29; -} -else -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_27); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -} -lean_object* l_Lean_Elab_Command_elabSynth___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Command_elabSynth___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -return x_11; -} -} -lean_object* l_Lean_Elab_Command_elabSynth___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_Command_elabSynth(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("synth"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabSynth"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_ctor_get(x_2, 4); -lean_inc(x_8); -lean_inc(x_8); -x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); -lean_dec(x_6); -x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); -lean_dec(x_2); -lean_dec(x_8); -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); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_15); -lean_ctor_set_tag(x_13, 1); -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; -x_17 = lean_ctor_get(x_13, 0); -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_13); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_9); -lean_ctor_set(x_19, 1, x_17); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; -} -} -} -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___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) { -_start: -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_st_ref_get(x_5, x_6); -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_9, 2); -lean_inc(x_10); -lean_dec(x_9); -x_11 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_10); -lean_dec(x_10); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_KVMap_insertCore(x_12, x_1, x_2); -lean_ctor_set(x_7, 0, x_13); -return x_7; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_14 = lean_ctor_get(x_7, 0); -x_15 = lean_ctor_get(x_7, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_7); -x_16 = lean_ctor_get(x_14, 2); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(x_16); -lean_dec(x_16); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Lean_KVMap_insertCore(x_18, x_1, x_2); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_15); -return x_20; -} -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("type mismatch at set_option"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -lean_inc(x_1); -x_9 = l_Lean_getOptionDecl(x_1, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -lean_dec(x_7); -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, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_DataValue_sameCtor(x_12, x_2); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; uint8_t x_16; -lean_dec(x_2); -lean_dec(x_1); -x_14 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2; -x_15 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(x_14, x_3, x_4, x_11); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -return x_15; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_15); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -else -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_box(0); -x_21 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1(x_1, x_2, x_20, x_3, x_4, x_11); -lean_dec(x_3); -return x_21; -} -} -else -{ -uint8_t x_22; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_22 = !lean_is_exclusive(x_9); -if (x_22 == 0) -{ -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_9, 0); -x_24 = lean_io_error_to_string(x_23); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_7); -lean_ctor_set(x_27, 1, x_26); -lean_ctor_set(x_9, 0, x_27); -return x_9; -} -else -{ -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_28 = lean_ctor_get(x_9, 0); -x_29 = lean_ctor_get(x_9, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_9); -x_30 = lean_io_error_to_string(x_28); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_7); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_29); -return x_34; -} -} -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unexpected set_option value "); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("true"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("false"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5() { -_start: -{ -uint8_t x_1; lean_object* x_2; -x_1 = 0; -x_2 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6() { -_start: -{ -uint8_t x_1; lean_object* x_2; -x_1 = 1; -x_2 = lean_alloc_ctor(1, 0, 1); -lean_ctor_set_uint8(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Syntax_getId(x_1); -x_7 = lean_erase_macro_scopes(x_6); -x_8 = l_Lean_Syntax_isStrLit_x3f(x_2); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = l_Lean_numLitKind; -x_10 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_9, x_2); -if (lean_obj_tag(x_10) == 0) -{ -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); -x_12 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3; -x_13 = lean_string_dec_eq(x_11, x_12); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4; -x_15 = lean_string_dec_eq(x_11, x_14); -lean_dec(x_11); -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_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_dec(x_7); -x_16 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); -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 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_19, 0, x_17); -x_20 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_19, x_3, x_4, x_18); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_2); -x_23 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; -x_26 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(x_26, x_3, x_4, x_21); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_2); -x_28 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5; -x_29 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_28, x_3, x_4, x_5); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; -lean_dec(x_11); -lean_dec(x_2); -x_30 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6; -x_31 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_30, x_3, x_4, x_5); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_7); -x_32 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_35, 0, x_33); -x_36 = l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2(x_35, x_3, x_4, x_34); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_38, 0, x_2); -x_39 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1___closed__3; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(x_42, x_3, x_4, x_37); -return x_43; -} -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_2); -x_44 = lean_ctor_get(x_10, 0); -lean_inc(x_44); -lean_dec(x_10); -x_45 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_45, x_3, x_4, x_5); -return x_46; -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_2); -x_47 = lean_ctor_get(x_8, 0); -lean_inc(x_47); -lean_dec(x_8); -x_48 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_7, x_48, x_3, x_4, x_5); -return x_49; -} -} -} -lean_object* l_Lean_Elab_Command_elabSetOption___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; -x_4 = lean_ctor_get(x_2, 1); -lean_dec(x_4); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -else -{ -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; -x_5 = lean_ctor_get(x_2, 0); -x_6 = lean_ctor_get(x_2, 2); -x_7 = lean_ctor_get(x_2, 3); -x_8 = lean_ctor_get(x_2, 4); -x_9 = lean_ctor_get(x_2, 5); -x_10 = lean_ctor_get(x_2, 6); -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_dec(x_2); -x_11 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_11, 0, x_5); -lean_ctor_set(x_11, 1, x_1); -lean_ctor_set(x_11, 2, x_6); -lean_ctor_set(x_11, 3, x_7); -lean_ctor_set(x_11, 4, x_8); -lean_ctor_set(x_11, 5, x_9); -lean_ctor_set(x_11, 6, x_10); -return x_11; -} -} -} -lean_object* l_Lean_Elab_Command_elabSetOption(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; lean_object* x_9; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = lean_unsigned_to_nat(2u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -lean_inc(x_2); -x_9 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(x_6, x_8, x_2, x_3, x_4); -lean_dec(x_6); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_10 = lean_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_st_ref_take(x_3, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_16 = lean_ctor_get(x_13, 4); -lean_dec(x_16); -x_17 = l_Lean_maxRecDepth; -x_18 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_225____spec__1(x_10, x_17); -lean_ctor_set(x_13, 4, x_18); -x_19 = lean_st_ref_set(x_3, x_13, x_14); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSetOption___lambda__1), 2, 1); -lean_closure_set(x_21, 0, x_10); -x_22 = l_Lean_Elab_Command_modifyScope(x_21, x_2, x_3, x_20); -lean_dec(x_2); -return x_22; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_23 = lean_ctor_get(x_13, 0); -x_24 = lean_ctor_get(x_13, 1); -x_25 = lean_ctor_get(x_13, 2); -x_26 = lean_ctor_get(x_13, 3); -x_27 = lean_ctor_get(x_13, 5); -x_28 = lean_ctor_get(x_13, 6); -x_29 = lean_ctor_get(x_13, 7); -x_30 = lean_ctor_get(x_13, 8); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_13); -x_31 = l_Lean_maxRecDepth; -x_32 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_225____spec__1(x_10, x_31); -x_33 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_33, 0, x_23); -lean_ctor_set(x_33, 1, x_24); -lean_ctor_set(x_33, 2, x_25); -lean_ctor_set(x_33, 3, x_26); -lean_ctor_set(x_33, 4, x_32); -lean_ctor_set(x_33, 5, x_27); -lean_ctor_set(x_33, 6, x_28); -lean_ctor_set(x_33, 7, x_29); -lean_ctor_set(x_33, 8, x_30); -x_34 = lean_st_ref_set(x_3, x_33, x_14); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSetOption___lambda__1), 2, 1); -lean_closure_set(x_36, 0, x_10); -x_37 = l_Lean_Elab_Command_modifyScope(x_36, x_2, x_3, x_35); -lean_dec(x_2); -return x_37; -} -} -else -{ -uint8_t x_38; -lean_dec(x_2); -x_38 = !lean_is_exclusive(x_9); -if (x_38 == 0) -{ -return x_9; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_9, 0); -x_40 = lean_ctor_get(x_9, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_9); -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_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__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_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___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_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_7; -} -} -lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -} -lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__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_6; -x_6 = l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Command_elabSetOption___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_Command_elabSetOption(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("set_option"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabSetOption"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSetOption___boxed), 4, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("null"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_expandInCmd___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_expandInCmd___closed__2; -x_2 = l_Lean_Elab_Command_Scope_varDecls___default___closed__1; -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_Lean_Elab_Command_expandInCmd___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(4u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Command_expandInCmd(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; uint8_t x_9; -x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Lean_Syntax_getArg(x_1, x_4); -x_6 = lean_unsigned_to_nat(2u); -x_7 = l_Lean_Syntax_getArg(x_1, x_6); -x_8 = l_Lean_MonadRef_mkInfoFromRefPos___at_myMacro____x40_Init_Notation___hyg_72____spec__1(x_2, x_3); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_10 = lean_ctor_get(x_8, 0); -x_11 = l_Lean_Elab_Command_elabSection___closed__1; -lean_inc(x_10); -x_12 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Elab_Command_elabCheckFailure___closed__4; -x_14 = lean_array_push(x_13, x_12); -x_15 = l_Lean_Elab_Command_expandInCmd___closed__3; -x_16 = lean_array_push(x_14, x_15); -x_17 = l_Lean_Elab_Command_elabSection___closed__2; -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; -x_20 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_20, 0, x_10); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_array_push(x_13, x_20); -x_22 = lean_array_push(x_21, x_15); -x_23 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; -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 = l_Lean_Elab_Command_expandInCmd___closed__4; -x_26 = lean_array_push(x_25, x_18); -x_27 = lean_array_push(x_26, x_5); -x_28 = lean_array_push(x_27, x_7); -x_29 = lean_array_push(x_28, x_24); -x_30 = l_Lean_Elab_Command_expandInCmd___closed__2; -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -lean_ctor_set(x_8, 0, x_31); -return x_8; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_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; -x_32 = lean_ctor_get(x_8, 0); -x_33 = lean_ctor_get(x_8, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_8); -x_34 = l_Lean_Elab_Command_elabSection___closed__1; -lean_inc(x_32); -x_35 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_35, 0, x_32); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_Elab_Command_elabCheckFailure___closed__4; -x_37 = lean_array_push(x_36, x_35); -x_38 = l_Lean_Elab_Command_expandInCmd___closed__3; -x_39 = lean_array_push(x_37, x_38); -x_40 = l_Lean_Elab_Command_elabSection___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___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; -x_43 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_43, 0, x_32); -lean_ctor_set(x_43, 1, x_42); -x_44 = lean_array_push(x_36, x_43); -x_45 = lean_array_push(x_44, x_38); -x_46 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_Elab_Command_expandInCmd___closed__4; -x_49 = lean_array_push(x_48, x_41); -x_50 = lean_array_push(x_49, x_5); -x_51 = lean_array_push(x_50, x_7); -x_52 = lean_array_push(x_51, x_47); -x_53 = l_Lean_Elab_Command_expandInCmd___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 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_33); -return x_55; -} -} -} -lean_object* l_Lean_Elab_Command_expandInCmd___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Elab_Command_expandInCmd(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("in"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__15; -x_2 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("expandInCmd"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; -x_2 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandInCmd___boxed), 3, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_Elab_macroAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4; -x_5 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} static lean_object* _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__1() { _start: { @@ -34145,7 +19631,7 @@ static lean_object* _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Com _start: { lean_object* x_1; -x_1 = lean_mk_string("private declaration '"); +x_1 = lean_mk_string("'"); return x_1; } } @@ -34158,6 +19644,23 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } +static lean_object* _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("private declaration '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -34191,7 +19694,7 @@ if (lean_obj_tag(x_12) == 0) lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; x_13 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_13, 0, x_1); -x_14 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; +x_14 = l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__2; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); @@ -34228,7 +19731,7 @@ lean_inc(x_23); lean_dec(x_12); x_24 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_24, 0, x_23); -x_25 = l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__2; +x_25 = l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__4; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); @@ -34259,6 +19762,100 @@ return x_33; } } } +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(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; uint8_t x_8; +x_5 = lean_st_ref_take(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 0); +lean_dec(x_9); +lean_ctor_set(x_6, 0, x_1); +x_10 = lean_st_ref_set(x_3, x_6, x_7); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_17 = lean_ctor_get(x_6, 1); +x_18 = lean_ctor_get(x_6, 2); +x_19 = lean_ctor_get(x_6, 3); +x_20 = lean_ctor_get(x_6, 4); +x_21 = lean_ctor_get(x_6, 5); +x_22 = lean_ctor_get(x_6, 6); +x_23 = lean_ctor_get(x_6, 7); +x_24 = lean_ctor_get(x_6, 8); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_6); +x_25 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_25, 0, x_1); +lean_ctor_set(x_25, 1, x_17); +lean_ctor_set(x_25, 2, x_18); +lean_ctor_set(x_25, 3, x_19); +lean_ctor_set(x_25, 4, x_20); +lean_ctor_set(x_25, 5, x_21); +lean_ctor_set(x_25, 6, x_22); +lean_ctor_set(x_25, 7, x_23); +lean_ctor_set(x_25, 8, x_24); +x_26 = lean_st_ref_set(x_3, x_25, x_7); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_28 = x_26; +} else { + lean_dec_ref(x_26); + x_28 = lean_box(0); +} +x_29 = lean_box(0); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +} lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -34340,7 +19937,7 @@ lean_dec(x_18); x_21 = l_Lean_protectedExt; lean_inc(x_2); x_22 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_21, x_20, x_2); -x_23 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_22, x_3, x_4, x_19); +x_23 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_22, x_3, x_4, x_19); lean_dec(x_3); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -34454,7 +20051,7 @@ return x_45; } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__6(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -34595,7 +20192,7 @@ x_27 = lean_ctor_get(x_10, 1); lean_inc(x_27); lean_dec(x_10); x_28 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__2; -x_29 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__5(x_28, x_5, x_6, x_27); +x_29 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__6(x_28, x_5, x_6, x_27); return x_29; } } @@ -34703,7 +20300,7 @@ x_12 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___cl x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; +x_14 = l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__2; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -34745,7 +20342,7 @@ return x_24; } } } -lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; @@ -34844,7 +20441,7 @@ return x_36; } } } -lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7(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) @@ -34863,12 +20460,12 @@ lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_2, 0); lean_inc(x_8); lean_dec(x_2); -x_9 = l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__7(x_1, x_8, x_3, x_4, x_5); +x_9 = l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__8(x_1, x_8, x_3, x_4, x_5); return x_9; } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__10(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -34922,7 +20519,7 @@ return x_20; } } } -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__9(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; lean_object* x_9; lean_object* x_10; @@ -34936,11 +20533,11 @@ x_8 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUn x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); -x_10 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__9(x_9, x_2, x_3, x_4); +x_10 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__10(x_9, x_2, x_3, x_4); return x_10; } } -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__10(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* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__11(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) { _start: { uint8_t x_8; @@ -34984,7 +20581,7 @@ lean_object* x_21; lean_object* x_22; uint8_t x_23; x_21 = lean_ctor_get(x_5, 6); lean_dec(x_21); lean_ctor_set(x_5, 6, x_19); -x_22 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__8(x_10, x_5, x_6, x_18); +x_22 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__9(x_10, x_5, x_6, x_18); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) { @@ -35028,7 +20625,7 @@ lean_ctor_set(x_33, 3, x_30); lean_ctor_set(x_33, 4, x_31); lean_ctor_set(x_33, 5, x_32); lean_ctor_set(x_33, 6, x_19); -x_34 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__8(x_10, x_33, x_6, x_18); +x_34 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__9(x_10, x_33, x_6, x_18); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); @@ -35113,7 +20710,7 @@ x_25 = lean_ctor_get(x_3, 0); lean_inc(x_25); lean_dec(x_3); lean_inc(x_23); -x_26 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6(x_23, x_25, x_6, x_7, x_22); +x_26 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7(x_23, x_25, x_6, x_7, x_22); x_27 = !lean_is_exclusive(x_26); if (x_27 == 0) { @@ -35276,7 +20873,7 @@ x_24 = 0; x_25 = lean_usize_of_nat(x_19); lean_dec(x_19); lean_inc(x_5); -x_26 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__10(x_18, x_24, x_25, x_2, x_5, x_6, x_7); +x_26 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__11(x_18, x_24, x_25, x_2, x_5, x_6, x_7); lean_dec(x_18); if (lean_obj_tag(x_26) == 0) { @@ -35382,6 +20979,16 @@ lean_dec(x_3); return x_5; } } +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5___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_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -35393,11 +21000,11 @@ lean_dec(x_4); return x_7; } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__6___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_throwError___at_Lean_Elab_Command_expandDeclId___spec__5(x_1, x_2, x_3, x_4); +x_5 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__6(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -35423,45 +21030,45 @@ lean_dec(x_2); return x_7; } } -lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__7(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_addDocString___at_Lean_Elab_Command_expandDeclId___spec__8(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); return x_6; } } -lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); return x_6; } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__10___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_throwError___at_Lean_Elab_Command_expandDeclId___spec__9(x_1, x_2, x_3, x_4); +x_5 = l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__10(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__9___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_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__8(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_expandDeclId___spec__9(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { size_t x_8; size_t x_9; lean_object* x_10; @@ -35469,7 +21076,7 @@ x_8 = lean_unbox_usize(x_2); lean_dec(x_2); x_9 = lean_unbox_usize(x_3); lean_dec(x_3); -x_10 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__10(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +x_10 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__11(x_1, x_8, x_9, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_1); return x_10; @@ -35999,65 +21606,6 @@ l_Lean_Elab_Command_liftTermElabM___rarg___closed__5 = _init_l_Lean_Elab_Command lean_mark_persistent(l_Lean_Elab_Command_liftTermElabM___rarg___closed__5); l_Lean_Elab_Command_liftTermElabM___rarg___closed__6 = _init_l_Lean_Elab_Command_liftTermElabM___rarg___closed__6(); lean_mark_persistent(l_Lean_Elab_Command_liftTermElabM___rarg___closed__6); -l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__1 = _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__1); -l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2 = _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2); -l_Lean_Elab_Command_elabNamespace___closed__1 = _init_l_Lean_Elab_Command_elabNamespace___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__1); -l_Lean_Elab_Command_elabNamespace___closed__2 = _init_l_Lean_Elab_Command_elabNamespace___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__2); -l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1); -l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2); -l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3); -res = l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_elabSection___closed__1 = _init_l_Lean_Elab_Command_elabSection___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__1); -l_Lean_Elab_Command_elabSection___closed__2 = _init_l_Lean_Elab_Command_elabSection___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__2); -l_Lean_Elab_Command_elabSection___closed__3 = _init_l_Lean_Elab_Command_elabSection___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__3); -l_Lean_Elab_Command_elabSection___closed__4 = _init_l_Lean_Elab_Command_elabSection___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__4); -l___regBuiltin_Lean_Elab_Command_elabSection___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSection___closed__1); -l___regBuiltin_Lean_Elab_Command_elabSection___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSection___closed__2); -l___regBuiltin_Lean_Elab_Command_elabSection___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSection___closed__3); -res = l___regBuiltin_Lean_Elab_Command_elabSection(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_elabEnd___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__1); -l_Lean_Elab_Command_elabEnd___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__2); -l_Lean_Elab_Command_elabEnd___lambda__1___closed__3 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__3); -l_Lean_Elab_Command_elabEnd___lambda__1___closed__4 = _init_l_Lean_Elab_Command_elabEnd___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_elabEnd___lambda__1___closed__4); -l_Lean_Elab_Command_elabEnd___closed__1 = _init_l_Lean_Elab_Command_elabEnd___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabEnd___closed__1); -l_Lean_Elab_Command_elabEnd___closed__2 = _init_l_Lean_Elab_Command_elabEnd___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabEnd___closed__2); -l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1); -l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2); -l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3); -l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4); -l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabEnd(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Elab_Command_modifyScope___closed__1 = _init_l_Lean_Elab_Command_modifyScope___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_modifyScope___closed__1); l_Lean_Elab_Command_modifyScope___closed__2 = _init_l_Lean_Elab_Command_modifyScope___closed__2(); @@ -36074,302 +21622,6 @@ l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLeve lean_mark_persistent(l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__3); l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__4 = _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__4(); lean_mark_persistent(l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__1___closed__4); -l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1); -l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2); -l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3); -l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4); -l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elbChoice(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1); -l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2); -l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3); -l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__4); -l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1); -l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2); -l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3); -l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__4); -l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabUniverses(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1); -l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2); -l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3); -l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4); -l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1 = _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1(); -lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1); -l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2 = _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2(); -lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3); -l_Lean_Elab_Command_elabExport___closed__1 = _init_l_Lean_Elab_Command_elabExport___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabExport___closed__1); -l_Lean_Elab_Command_elabExport___closed__2 = _init_l_Lean_Elab_Command_elabExport___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabExport___closed__2); -l___regBuiltin_Lean_Elab_Command_elabExport___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__1); -l___regBuiltin_Lean_Elab_Command_elabExport___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__2); -l___regBuiltin_Lean_Elab_Command_elabExport___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__3); -l___regBuiltin_Lean_Elab_Command_elabExport___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__4); -l___regBuiltin_Lean_Elab_Command_elabExport___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabExport(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1); -l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2); -l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3); -l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4); -l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5(); -lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__5); -l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6(); -lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6); -l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7(); -lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7); -l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1); -l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2); -l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3); -l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4); -l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabOpen(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_elabVariable___lambda__2___closed__1 = _init_l_Lean_Elab_Command_elabVariable___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabVariable___lambda__2___closed__1); -l_Lean_Elab_Command_elabVariable___closed__1 = _init_l_Lean_Elab_Command_elabVariable___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabVariable___closed__1); -l_Lean_Elab_Command_elabVariable___closed__2 = _init_l_Lean_Elab_Command_elabVariable___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabVariable___closed__2); -l_Lean_Elab_Command_elabVariable___boxed__const__1 = _init_l_Lean_Elab_Command_elabVariable___boxed__const__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabVariable___boxed__const__1); -l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1); -l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2); -l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3); -res = l___regBuiltin_Lean_Elab_Command_elabVariable(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_elabCheck___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheck___lambda__1___closed__1); -l_Lean_Elab_Command_elabCheck___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabCheck___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheck___lambda__1___closed__2); -l_Lean_Elab_Command_elabCheck___closed__1 = _init_l_Lean_Elab_Command_elabCheck___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__1); -l_Lean_Elab_Command_elabCheck___closed__2 = _init_l_Lean_Elab_Command_elabCheck___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__2); -l_Lean_Elab_Command_elabCheck___closed__3 = _init_l_Lean_Elab_Command_elabCheck___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__3); -l_Lean_Elab_Command_elabCheck___closed__4 = _init_l_Lean_Elab_Command_elabCheck___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__4); -l_Lean_Elab_Command_elabCheck___closed__5 = _init_l_Lean_Elab_Command_elabCheck___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheck___closed__5); -l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1); -l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2); -l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3); -res = l___regBuiltin_Lean_Elab_Command_elabCheck(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_elabReduce___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabReduce___lambda__1___closed__1); -l_Lean_Elab_Command_elabReduce___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabReduce___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabReduce___lambda__1___closed__2); -l_Lean_Elab_Command_elabReduce___closed__1 = _init_l_Lean_Elab_Command_elabReduce___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabReduce___closed__1); -l_Lean_Elab_Command_elabReduce___closed__2 = _init_l_Lean_Elab_Command_elabReduce___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabReduce___closed__2); -l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1); -l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2); -l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3); -res = l___regBuiltin_Lean_Elab_Command_elabReduce(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1 = _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1); -l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2 = _init_l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2); -l_Lean_Elab_Command_failIfSucceeds___closed__1 = _init_l_Lean_Elab_Command_failIfSucceeds___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___closed__1); -l_Lean_Elab_Command_elabCheckFailure___closed__1 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__1); -l_Lean_Elab_Command_elabCheckFailure___closed__2 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__2); -l_Lean_Elab_Command_elabCheckFailure___closed__3 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__3); -l_Lean_Elab_Command_elabCheckFailure___closed__4 = _init_l_Lean_Elab_Command_elabCheckFailure___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_elabCheckFailure___closed__4); -l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1); -l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2); -l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3); -res = l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__1); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__2); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__2); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2); -l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3); -l_Lean_Elab_Command_elabEvalUnsafe___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__1); -l_Lean_Elab_Command_elabEvalUnsafe___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__2); -l_Lean_Elab_Command_elabEvalUnsafe___closed__3 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__3); -l_Lean_Elab_Command_elabEvalUnsafe___closed__4 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__4); -l_Lean_Elab_Command_elabEvalUnsafe___closed__5 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__5); -l_Lean_Elab_Command_elabEvalUnsafe___closed__6 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__6); -l_Lean_Elab_Command_elabEvalUnsafe___closed__7 = _init_l_Lean_Elab_Command_elabEvalUnsafe___closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__7); -l___regBuiltin_Lean_Elab_Command_elabEval___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__1); -l___regBuiltin_Lean_Elab_Command_elabEval___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__2); -l___regBuiltin_Lean_Elab_Command_elabEval___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__3); -res = l___regBuiltin_Lean_Elab_Command_elabEval(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_elabSynth___closed__1 = _init_l_Lean_Elab_Command_elabSynth___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabSynth___closed__1); -l_Lean_Elab_Command_elabSynth___closed__2 = _init_l_Lean_Elab_Command_elabSynth___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabSynth___closed__2); -l_Lean_Elab_Command_elabSynth___closed__3 = _init_l_Lean_Elab_Command_elabSynth___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabSynth___closed__3); -l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1); -l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2); -l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3); -l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__4); -l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabSynth(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1 = _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1(); -lean_mark_persistent(l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1); -l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2 = _init_l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2(); -lean_mark_persistent(l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2); -l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1); -l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__2); -l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3); -l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4); -l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5(); -lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5); -l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6 = _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6(); -lean_mark_persistent(l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6); -l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1); -l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2); -l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3); -l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4); -l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5); -res = l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Elab_Command_expandInCmd___closed__1 = _init_l_Lean_Elab_Command_expandInCmd___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__1); -l_Lean_Elab_Command_expandInCmd___closed__2 = _init_l_Lean_Elab_Command_expandInCmd___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__2); -l_Lean_Elab_Command_expandInCmd___closed__3 = _init_l_Lean_Elab_Command_expandInCmd___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__3); -l_Lean_Elab_Command_expandInCmd___closed__4 = _init_l_Lean_Elab_Command_expandInCmd___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__4); -l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1); -l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2); -l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3); -l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4); -l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__5); -res = l___regBuiltin_Lean_Elab_Command_expandInCmd(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__1 = _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__1); l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__2 = _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___closed__2(); @@ -36382,6 +21634,10 @@ l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__ lean_mark_persistent(l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__1); l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__2 = _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__2(); lean_mark_persistent(l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__2); +l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__3 = _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__3(); +lean_mark_persistent(l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__3); +l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__4 = _init_l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__4(); +lean_mark_persistent(l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___closed__4); l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__1 = _init_l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__1); l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__2 = _init_l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index b34040c682..90dbef7280 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -174,7 +174,6 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabDeclaration___closed__10; lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__19; -lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__5; uint8_t l_Lean_isExtern(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -196,7 +195,6 @@ static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__12; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); 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_Lean_Elab_Command_elabInductiveViews(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3; lean_object* l_Lean_Elab_Command_elabAxiom_match__3___rarg(lean_object*, lean_object*); @@ -401,6 +399,7 @@ static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__8; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabDeclaration___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__4; +lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___closed__2; @@ -452,6 +451,7 @@ static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__53; static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__42; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__2___closed__2; static lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__25; +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__5; static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1___closed__1; lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Command_elabAttr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3601,7 +3601,7 @@ lean_dec(x_34); x_37 = lean_ctor_get(x_1, 0); lean_inc(x_37); lean_inc(x_27); -x_38 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6(x_27, x_37, x_5, x_6, x_28); +x_38 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7(x_27, x_37, x_5, x_6, x_28); x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); lean_dec(x_38); @@ -3657,7 +3657,7 @@ lean_dec(x_34); x_51 = lean_ctor_get(x_1, 0); lean_inc(x_51); lean_inc(x_27); -x_52 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__6(x_27, x_51, x_5, x_6, x_28); +x_52 = l_Lean_addDocString_x27___at_Lean_Elab_Command_expandDeclId___spec__7(x_27, x_51, x_5, x_6, x_28); x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); lean_dec(x_52); @@ -4784,7 +4784,7 @@ x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); lean_dec(x_36); x_39 = l_Lean_mkIdentFrom(x_1, x_37); -x_40 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_2, x_3, x_4); +x_40 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(x_2, x_3, x_4); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); diff --git a/stage0/stdlib/Lean/Elab/DefView.c b/stage0/stdlib/Lean/Elab/DefView.c index 439e9959ce..cb46959d0d 100644 --- a/stage0/stdlib/Lean/Elab/DefView.c +++ b/stage0/stdlib/Lean/Elab/DefView.c @@ -16,7 +16,6 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_Command_MkInstanceName_collect___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__7; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7___rarg(lean_object*); size_t l_USize_add(size_t, size_t); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__27; lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); @@ -41,9 +40,11 @@ lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main__ static lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__2; static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__37; lean_object* l_Lean_Elab_Command_MkInstanceName_collect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SourceInfo_fromRef(lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__21; lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); @@ -51,6 +52,7 @@ lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_MkInstanceName_coll static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__1; static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__23; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_MkInstanceName_collect_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__13; @@ -79,7 +81,6 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfDef(lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_MkInstanceName_collect___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__8; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -109,7 +110,6 @@ static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanc static lean_object* l_Lean_Elab_Command_mkDefViewOfAbbrev___closed__3; lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___lambda__1___boxed(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_Command_MkInstanceName_main___spec__7___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__6; @@ -120,7 +120,6 @@ static lean_object* l_Lean_Elab_Command_isDefLike___closed__1; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_mkDefViewOfInstance___spec__8(lean_object*, lean_object*); 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*); lean_object* l_Lean_Elab_DefKind_isExample_match__1___rarg(uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__4; @@ -132,6 +131,7 @@ static lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__9; lean_object* l_Lean_Elab_Command_isDefLike___boxed(lean_object*); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__19; lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8___rarg(lean_object*); lean_object* l_Std_RBMap_ofList___at___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___spec__1(lean_object*); lean_object* l_Std_RBNode_find___at_Lean_findDocString_x3f___spec__2(lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); @@ -142,7 +142,6 @@ lean_object* l_Lean_Elab_Command_MkInstanceName_collect___lambda__1___boxed(lean uint8_t l_Lean_Elab_instInhabitedDefKind; lean_object* l_Lean_Elab_DefKind_isTheorem___boxed(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque___boxed(lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfTheorem(lean_object*, lean_object*); @@ -226,6 +225,7 @@ static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__2; static lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__11; lean_object* l_Lean_throwError___at_Lean_Elab_Command_mkDefView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_MkInstanceName_collect___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -267,6 +267,7 @@ lean_object* l_Lean_Elab_Command_MkInstanceName_mkFreshInstanceName___boxed(lean lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_instInhabitedDefView___closed__2; static lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__5; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_MkInstanceName_main___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_isDefLike___closed__10; static lean_object* l_Lean_Elab_instInhabitedDefView___closed__1; @@ -278,7 +279,9 @@ static lean_object* l_Lean_Elab_Command_isDefLike___closed__7; static lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__7; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_mkDefViewOfInstance___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_MkInstanceName_main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__22; +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__33; static lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__14; lean_object* l_Lean_Elab_mkUnusedBaseName(lean_object*, lean_object*, lean_object*); @@ -5063,6 +5066,60 @@ return x_84; } } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__7(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +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); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +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; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_MkInstanceName_main___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -5082,7 +5139,7 @@ lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_3, 6); lean_dec(x_11); lean_ctor_set(x_3, 6, x_9); -x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_2, x_3, x_4, x_8); +x_12 = l_Lean_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__7(x_2, x_3, x_4, x_8); return x_12; } else @@ -5109,12 +5166,12 @@ lean_ctor_set(x_19, 3, x_16); lean_ctor_set(x_19, 4, x_17); lean_ctor_set(x_19, 5, x_18); lean_ctor_set(x_19, 6, x_9); -x_20 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_2, x_19, x_4, x_8); +x_20 = l_Lean_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__7(x_2, x_19, x_4, x_8); return x_20; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7___rarg(lean_object* x_1) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -5125,11 +5182,11 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7___rarg), 1, 0); +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8___rarg), 1, 0); return x_3; } } @@ -5377,7 +5434,7 @@ else { lean_object* x_84; lean_dec(x_2); -x_84 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7___rarg(x_37); +x_84 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8___rarg(x_37); return x_84; } } @@ -5553,6 +5610,15 @@ lean_dec(x_3); return x_5; } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__7___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_throwError___at_Lean_Elab_Command_MkInstanceName_main___spec__7(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_MkInstanceName_main___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -5563,11 +5629,11 @@ lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__7(x_1, x_2); +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_MkInstanceName_main___spec__8(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -5622,6 +5688,38 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDefViewOfConstant_match__ return x_2; } } +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___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 = l_Lean_Elab_Command_getRef(x_1, x_2, x_3); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = l_Lean_SourceInfo_fromRef(x_6); +lean_dec(x_6); +lean_ctor_set(x_4, 0, x_7); +return x_4; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_4, 0); +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_4); +x_10 = l_Lean_SourceInfo_fromRef(x_8); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +} lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___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: { @@ -5783,7 +5881,7 @@ lean_dec(x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_14 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_3, x_4, x_5); +x_14 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(x_3, x_4, x_5); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); @@ -5833,6 +5931,16 @@ return x_37; } } } +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___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: { @@ -6759,7 +6867,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_3, x_4, x_17); +x_18 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(x_3, x_4, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Basic.c b/stage0/stdlib/Lean/Elab/Deriving/Basic.c index 84a3a574c1..3f3a64df00 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Basic.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Basic.c @@ -13,41 +13,33 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__10___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_getOptDerivingClasses___spec__1(lean_object*); lean_object* l_Lean_Elab_derivingHandlersRef; -lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_applyDerivingHandlers_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_defaultHandler___closed__4; -static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__1; lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__13(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l_Lean_Elab_defaultHandler___closed__5; -lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_defaultHandler___spec__1(lean_object*); static lean_object* l_Lean_Elab_defaultHandler___closed__3; static lean_object* l___regBuiltin_Lean_Elab_elabDeriving___closed__3; +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_getOptDerivingClasses(lean_object*); -static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2; lean_object* l_Lean_Elab_elabDeriving_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); @@ -55,9 +47,9 @@ uint8_t l_Lean_NameMap_contains___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_getOptDerivingClasses___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__7; static lean_object* l_Lean_Elab_defaultHandler___closed__6; -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_empty; +lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__3; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__5; @@ -66,15 +58,19 @@ lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_ob lean_object* l_Lean_Elab_applyDerivingHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__2; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_604_(lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_11_(lean_object*); lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__9(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabDeriving___boxed__const__1; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_Elab_defaultHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__2___closed__2; +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__1; +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_defaultHandler___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -82,84 +78,100 @@ static lean_object* l_Lean_Elab_elabDeriving___closed__1; uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1(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_elabExport___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__8; -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg___closed__1; static lean_object* l_Lean_Elab_elabDeriving___closed__4; +static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__2; static lean_object* l_Lean_Elab_defaultHandler___closed__1; lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__9; static lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__2___closed__1; lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_Elab_applyDerivingHandlers___spec__1(lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); +static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__1; static lean_object* l_Lean_Elab_elabDeriving___closed__6; +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_elabDeriving___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__1; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_elabDeriving___spec__12(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2; +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__2; -static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__1; +static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__2; +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3; lean_object* l_Lean_Elab_DerivingClassView_applyHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_604____closed__3; +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___at_Lean_Elab_applyDerivingHandlers___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabDeriving___lambda__1(lean_object*); lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_604____closed__1; +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg___lambda__2(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_604____closed__2; -lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_sequenceMap___at_myMacro____x40_Init_NotationExtra___hyg_4451____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_defaultHandler(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_applyDerivingHandlers_match__1(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabDeriving_match__1(lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___closed__1; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabDeriving(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinDerivingHandler(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___closed__2; +lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_elabDeriving___closed__4; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__14(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabDeriving___closed__11; lean_object* lean_io_initializing(lean_object*); -lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; static lean_object* l_Lean_Elab_elabDeriving___closed__10; lean_object* l___regBuiltin_Lean_Elab_elabDeriving(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_getOptDerivingClasses___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_mkRef___rarg(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_Command_getScope___rarg(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_mkConstWithLevelParams___spec__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_elabDeriving___closed__1; +lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinDerivingHandler___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__3; lean_object* l_Lean_Elab_getOptDerivingClasses___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_elabDeriving___closed__2; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -765,7 +777,38 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_elabDeriving_match__1___rarg), 3, 0 return x_2; } } -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg), 1, 0); +return x_3; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__5(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -821,7 +864,7 @@ return x_22; } } } -static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__1() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__1() { _start: { lean_object* x_1; @@ -829,16 +872,16 @@ x_1 = lean_mk_string("unknown constant '"); return x_1; } } -static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__1; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -847,7 +890,7 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -855,11 +898,11 @@ x_5 = lean_box(0); x_6 = l_Lean_mkConst(x_1, x_5); x_7 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2; +x_8 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2; x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_8); lean_ctor_set(x_9, 1, x_7); -x_10 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3; +x_10 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3; x_11 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); @@ -867,7 +910,7 @@ x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(x_11, x_2, return x_12; } } -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; @@ -878,12 +921,12 @@ lean_ctor_set(x_7, 1, x_5); return x_7; } } -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4(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; lean_object* x_9; uint8_t x_10; lean_inc(x_1); -x_5 = l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__5(x_1, x_2, x_3, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_5, 1); @@ -897,7 +940,7 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_dec(x_1); x_11 = lean_box(0); -x_12 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___lambda__1(x_9, x_11, x_2, x_3, x_7); +x_12 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___lambda__1(x_9, x_11, x_2, x_3, x_7); lean_dec(x_2); return x_12; } @@ -905,7 +948,7 @@ else { lean_object* x_13; uint8_t x_14; lean_dec(x_9); -x_13 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5(x_1, x_2, x_3, x_7); +x_13 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6(x_1, x_2, x_3, x_7); x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) { @@ -927,157 +970,7 @@ return x_17; } } } -static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("ambiguous identifier '"); -return x_1; -} -} -static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("', possible interpretations: "); -return x_1; -} -} -lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -lean_inc(x_2); -lean_inc(x_1); -x_5 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 0) -{ -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; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_box(0); -x_9 = l_Lean_mkConst(x_1, x_8); -x_10 = lean_expr_dbg_to_string(x_9); -lean_dec(x_9); -x_11 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__1; -x_12 = lean_string_append(x_11, x_10); -lean_dec(x_10); -x_13 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__2; -x_14 = lean_string_append(x_12, x_13); -x_15 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_8, x_6); -x_16 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_15); -x_17 = lean_string_append(x_14, x_16); -lean_dec(x_16); -x_18 = l_Lean_Elab_defaultHandler___closed__5; -x_19 = lean_string_append(x_17, x_18); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_21, 0, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_21, x_2, x_3, x_7); -return x_22; -} -else -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -if (lean_obj_tag(x_23) == 0) -{ -uint8_t x_24; -lean_dec(x_2); -lean_dec(x_1); -x_24 = !lean_is_exclusive(x_5); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_5, 0); -lean_dec(x_25); -x_26 = lean_ctor_get(x_6, 0); -lean_inc(x_26); -lean_dec(x_6); -lean_ctor_set(x_5, 0, x_26); -return x_5; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_5, 1); -lean_inc(x_27); -lean_dec(x_5); -x_28 = lean_ctor_get(x_6, 0); -lean_inc(x_28); -lean_dec(x_6); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -return x_29; -} -} -else -{ -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_dec(x_23); -x_30 = lean_ctor_get(x_5, 1); -lean_inc(x_30); -lean_dec(x_5); -x_31 = lean_box(0); -x_32 = l_Lean_mkConst(x_1, x_31); -x_33 = lean_expr_dbg_to_string(x_32); -lean_dec(x_32); -x_34 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__1; -x_35 = lean_string_append(x_34, x_33); -lean_dec(x_33); -x_36 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__2; -x_37 = lean_string_append(x_35, x_36); -x_38 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_31, x_6); -x_39 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_38); -x_40 = lean_string_append(x_37, x_39); -lean_dec(x_39); -x_41 = l_Lean_Elab_defaultHandler___closed__5; -x_42 = lean_string_append(x_40, x_41); -x_43 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_45 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_44, x_2, x_3, x_30); -return x_45; -} -} -} -else -{ -uint8_t x_46; -lean_dec(x_2); -lean_dec(x_1); -x_46 = !lean_is_exclusive(x_5); -if (x_46 == 0) -{ -return x_5; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_5, 0); -x_48 = lean_ctor_get(x_5, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_5); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__7(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -1131,7 +1024,211 @@ return x_20; } } } -lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ambiguous identifier '"); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', possible interpretations: "); +return x_1; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_2); +lean_inc(x_1); +x_5 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +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; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_box(0); +x_9 = l_Lean_mkConst(x_1, x_8); +x_10 = lean_expr_dbg_to_string(x_9); +lean_dec(x_9); +x_11 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__1; +x_12 = lean_string_append(x_11, x_10); +lean_dec(x_10); +x_13 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__2; +x_14 = lean_string_append(x_12, x_13); +x_15 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_8, x_6); +x_16 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_15); +x_17 = lean_string_append(x_14, x_16); +lean_dec(x_16); +x_18 = l_Lean_Elab_defaultHandler___closed__5; +x_19 = lean_string_append(x_17, x_18); +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__7(x_21, x_2, x_3, x_7); +return x_22; +} +else +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +lean_dec(x_2); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_5); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_5, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_6, 0); +lean_inc(x_26); +lean_dec(x_6); +lean_ctor_set(x_5, 0, x_26); +return x_5; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_5, 1); +lean_inc(x_27); +lean_dec(x_5); +x_28 = lean_ctor_get(x_6, 0); +lean_inc(x_28); +lean_dec(x_6); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +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_dec(x_23); +x_30 = lean_ctor_get(x_5, 1); +lean_inc(x_30); +lean_dec(x_5); +x_31 = lean_box(0); +x_32 = l_Lean_mkConst(x_1, x_31); +x_33 = lean_expr_dbg_to_string(x_32); +lean_dec(x_32); +x_34 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__1; +x_35 = lean_string_append(x_34, x_33); +lean_dec(x_33); +x_36 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__2; +x_37 = lean_string_append(x_35, x_36); +x_38 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_31, x_6); +x_39 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_38); +x_40 = lean_string_append(x_37, x_39); +lean_dec(x_39); +x_41 = l_Lean_Elab_defaultHandler___closed__5; +x_42 = lean_string_append(x_40, x_41); +x_43 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__7(x_44, x_2, x_3, x_30); +return x_45; +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_2); +lean_dec(x_1); +x_46 = !lean_is_exclusive(x_5); +if (x_46 == 0) +{ +return x_5; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_5, 0); +x_48 = lean_ctor_get(x_5, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_5); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__10(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +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); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +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; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(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; @@ -1155,15 +1252,15 @@ x_11 = lean_box(0); x_12 = l_Lean_mkConst(x_1, x_11); x_13 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2; +x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3; +x_16 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__8(x_17, x_2, x_3, x_8); +x_18 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__10(x_17, x_2, x_3, x_8); return x_18; } else @@ -1198,15 +1295,15 @@ x_24 = lean_box(0); x_25 = l_Lean_mkConst(x_1, x_24); x_26 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_26, 0, x_25); -x_27 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2; +x_27 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2; x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3; +x_29 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__8(x_30, x_2, x_3, x_21); +x_31 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__10(x_30, x_2, x_3, x_21); return x_31; } else @@ -1225,12 +1322,12 @@ return x_33; } } } -lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_inc(x_1); -x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(x_1, x_2, x_3, x_4); +x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(x_1, x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; @@ -1289,7 +1386,300 @@ return x_20; } } } -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___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* l_Lean_Elab_pushInfoTree___at_Lean_Elab_elabDeriving___spec__12(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; uint8_t x_8; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 7); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 0); +lean_dec(x_10); +x_11 = lean_box(0); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +else +{ +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_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_dec(x_5); +x_16 = lean_st_ref_take(x_3, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 7); +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, 7); +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); +x_24 = l_Std_PersistentArray_push___rarg(x_23, x_1); +lean_ctor_set(x_18, 1, x_24); +x_25 = lean_st_ref_set(x_3, x_17, x_19); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +uint8_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; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_32 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_33 = lean_ctor_get(x_18, 0); +x_34 = lean_ctor_get(x_18, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_18); +x_35 = l_Std_PersistentArray_push___rarg(x_34, x_1); +x_36 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*2, x_32); +lean_ctor_set(x_17, 7, x_36); +x_37 = lean_st_ref_set(x_3, x_17, x_19); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +x_40 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_38); +return x_41; +} +} +else +{ +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; uint8_t 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; +x_42 = lean_ctor_get(x_17, 0); +x_43 = lean_ctor_get(x_17, 1); +x_44 = lean_ctor_get(x_17, 2); +x_45 = lean_ctor_get(x_17, 3); +x_46 = lean_ctor_get(x_17, 4); +x_47 = lean_ctor_get(x_17, 5); +x_48 = lean_ctor_get(x_17, 6); +x_49 = lean_ctor_get(x_17, 8); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_17); +x_50 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_51 = lean_ctor_get(x_18, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_18, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_53 = x_18; +} else { + lean_dec_ref(x_18); + x_53 = lean_box(0); +} +x_54 = l_Std_PersistentArray_push___rarg(x_52, x_1); +if (lean_is_scalar(x_53)) { + x_55 = lean_alloc_ctor(0, 2, 1); +} else { + x_55 = x_53; +} +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_54); +lean_ctor_set_uint8(x_55, sizeof(void*)*2, x_50); +x_56 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_56, 0, x_42); +lean_ctor_set(x_56, 1, x_43); +lean_ctor_set(x_56, 2, x_44); +lean_ctor_set(x_56, 3, x_45); +lean_ctor_set(x_56, 4, x_46); +lean_ctor_set(x_56, 5, x_47); +lean_ctor_set(x_56, 6, x_48); +lean_ctor_set(x_56, 7, x_55); +lean_ctor_set(x_56, 8, x_49); +x_57 = lean_st_ref_set(x_3, x_56, x_19); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; +} else { + lean_dec_ref(x_57); + x_59 = lean_box(0); +} +x_60 = lean_box(0); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +return x_61; +} +} +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__3() { +_start: +{ +size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 5; +x_2 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__2; +x_3 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_4); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_usize(x_5, 4, x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11(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; uint8_t x_8; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 7); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 0); +lean_dec(x_10); +x_11 = lean_box(0); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_dec(x_5); +x_16 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__3; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_Elab_pushInfoTree___at_Lean_Elab_elabDeriving___spec__12(x_17, x_2, x_3, x_15); +return x_18; +} +} +} +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2___lambda__1(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; @@ -1299,12 +1689,12 @@ lean_ctor_set(x_6, 1, x_5); return x_6; } } -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___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* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_inc(x_4); -x_7 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2(x_2, x_4, x_5, x_6); +x_7 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3(x_2, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -1356,7 +1746,7 @@ lean_inc(x_18); lean_dec(x_10); lean_inc(x_4); lean_inc(x_8); -x_19 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__6(x_8, x_4, x_5, x_18); +x_19 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__8(x_8, x_4, x_5, x_18); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; @@ -1377,7 +1767,7 @@ lean_ctor_set(x_25, 2, x_3); lean_ctor_set(x_25, 3, x_20); x_26 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_26, 0, x_25); -x_27 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(x_26, x_4, x_5, x_21); +x_27 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11(x_26, x_4, x_5, x_21); lean_dec(x_4); x_28 = !lean_is_exclusive(x_27); if (x_28 == 0) @@ -1455,7 +1845,7 @@ return x_39; } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__9(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__13(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -1480,7 +1870,7 @@ x_13 = x_10; x_14 = l_Lean_Syntax_getId(x_13); x_15 = lean_box(0); lean_inc(x_4); -x_16 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1(x_13, x_14, x_15, x_4, x_5, x_6); +x_16 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2(x_13, x_14, x_15, x_4, x_5, x_6); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; @@ -1525,7 +1915,7 @@ return x_27; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__10(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__14(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; @@ -1749,7 +2139,7 @@ lean_object* x_7; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg(x_4); return x_7; } else @@ -1812,7 +2202,7 @@ lean_object* x_17; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg(x_4); return x_17; } else @@ -1877,7 +2267,7 @@ lean_object* x_21; lean_dec(x_18); lean_dec(x_3); lean_dec(x_2); -x_21 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_21 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg(x_4); return x_21; } else @@ -1893,7 +2283,7 @@ x_25 = 0; x_26 = x_18; x_27 = lean_box_usize(x_24); x_28 = l_Lean_Elab_elabDeriving___boxed__const__1; -x_29 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__9___boxed), 6, 3); +x_29 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__13___boxed), 6, 3); lean_closure_set(x_29, 0, x_27); lean_closure_set(x_29, 1, x_28); lean_closure_set(x_29, 2, x_26); @@ -1915,7 +2305,7 @@ lean_dec(x_34); x_36 = x_22; x_37 = lean_box_usize(x_35); x_38 = l_Lean_Elab_elabDeriving___boxed__const__1; -x_39 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__9___boxed), 6, 3); +x_39 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__13___boxed), 6, 3); lean_closure_set(x_39, 0, x_37); lean_closure_set(x_39, 1, x_38); lean_closure_set(x_39, 2, x_36); @@ -1935,7 +2325,7 @@ x_44 = lean_array_get_size(x_32); x_45 = lean_usize_of_nat(x_44); lean_dec(x_44); x_46 = lean_box(0); -x_47 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__10(x_42, x_32, x_45, x_25, x_46, x_2, x_3, x_43); +x_47 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__14(x_42, x_32, x_45, x_25, x_46, x_2, x_3, x_43); lean_dec(x_32); if (lean_obj_tag(x_47) == 0) { @@ -2042,102 +2432,141 @@ return x_63; } } } -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__5___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_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_resolveGlobalName___at_Lean_Elab_elabDeriving___spec__5(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___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_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5(x_1, x_2, x_3, x_4); +x_5 = l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___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* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___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_6; -x_6 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_resolveGlobalConst___at_Lean_Elab_elabDeriving___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__7___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_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2(x_1, x_2, x_3, x_4); +x_5 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__7(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___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_throwError___at_Lean_Elab_elabDeriving___spec__8(x_1, x_2, x_3, x_4); +x_5 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__10___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_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(x_1, x_2, x_3, x_4); +x_5 = l_Lean_throwError___at_Lean_Elab_elabDeriving___spec__10(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9___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_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__6(x_1, x_2, x_3, x_4); +x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___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* l_Lean_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__8___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_mkConstWithLevelParams___at_Lean_Elab_elabDeriving___spec__8(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_elabDeriving___spec__12___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_pushInfoTree___at_Lean_Elab_elabDeriving___spec__12(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___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_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2___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_6; -x_6 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___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* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); return x_7; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__13___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: { size_t x_7; size_t x_8; lean_object* x_9; @@ -2145,12 +2574,12 @@ x_7 = lean_unbox_usize(x_1); lean_dec(x_1); x_8 = lean_unbox_usize(x_2); lean_dec(x_2); -x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__9(x_7, x_8, x_3, x_4, x_5, x_6); +x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_elabDeriving___spec__13(x_7, x_8, x_3, x_4, x_5, x_6); lean_dec(x_5); return x_9; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__10___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_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__14___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: { size_t x_9; size_t x_10; lean_object* x_11; @@ -2158,7 +2587,7 @@ x_9 = lean_unbox_usize(x_3); lean_dec(x_3); x_10 = lean_unbox_usize(x_4); lean_dec(x_4); -x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__10(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabDeriving___spec__14(x_1, x_2, x_9, x_10, x_5, x_6, x_7, x_8); lean_dec(x_2); return x_11; } @@ -2534,16 +2963,24 @@ l_Lean_Elab_defaultHandler___closed__5 = _init_l_Lean_Elab_defaultHandler___clos lean_mark_persistent(l_Lean_Elab_defaultHandler___closed__5); l_Lean_Elab_defaultHandler___closed__6 = _init_l_Lean_Elab_defaultHandler___closed__6(); lean_mark_persistent(l_Lean_Elab_defaultHandler___closed__6); -l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__1(); -lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__1); -l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2(); -lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__2); -l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3(); -lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__5___closed__3); -l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__1 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__1(); -lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__1); -l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__2 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__2(); -lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__2___closed__2); +l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_elabDeriving___spec__1___rarg___closed__1); +l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__1(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__1); +l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__2); +l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_elabDeriving___spec__6___closed__3); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__1 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__1); +l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__2 = _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_elabDeriving___spec__3___closed__2); +l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__1 = _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__1(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__1); +l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__2 = _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__2(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__2); +l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__3 = _init_l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__3(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_elabDeriving___spec__11___closed__3); l_Lean_Elab_elabDeriving___closed__1 = _init_l_Lean_Elab_elabDeriving___closed__1(); lean_mark_persistent(l_Lean_Elab_elabDeriving___closed__1); l_Lean_Elab_elabDeriving___closed__2 = _init_l_Lean_Elab_elabDeriving___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c index 559c708dbe..f59d6d3f35 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c @@ -123,6 +123,7 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___sp static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__14; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__17; +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___closed__8; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__57; 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*); @@ -135,7 +136,6 @@ static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAl static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__8; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__13; 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*); -lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__27; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__1___closed__32; @@ -6327,7 +6327,7 @@ _start: lean_object* x_5; lean_inc(x_2); lean_inc(x_1); -x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(x_1, x_2, x_3, x_4); +x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(x_1, x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; diff --git a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c index f7f6e3950a..a7f6888896 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c +++ b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c @@ -190,6 +190,7 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__5___lambda__2___closed__8; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__27; lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_match__1___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__2___closed__15; @@ -222,7 +223,6 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___ 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*); lean_object* l___private_Init_Meta_0__Lean_quoteNameMk(lean_object*); lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsort_sort___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___spec__1___closed__1; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__2___closed__9; @@ -2819,7 +2819,7 @@ _start: lean_object* x_5; lean_inc(x_2); lean_inc(x_1); -x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(x_1, x_2, x_3, x_4); +x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(x_1, x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; diff --git a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c index c13bc8ca8b..d274f5c0c6 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c @@ -121,6 +121,7 @@ lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedIn lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__6; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(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__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_Std_mkHashMapImp___rarg(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__2___closed__7; @@ -140,7 +141,6 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Derivi lean_object* lean_st_mk_ref(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*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__2; -lean_object* l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_revFold___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__3(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___lambda__2___closed__1; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__2___closed__5; @@ -8536,7 +8536,7 @@ _start: lean_object* x_5; lean_inc(x_2); lean_inc(x_1); -x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__7(x_1, x_2, x_3, x_4); +x_5 = l_Lean_getConstInfo___at_Lean_Elab_elabDeriving___spec__9(x_1, x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; diff --git a/stage0/stdlib/Lean/Elab/ElabRules.c b/stage0/stdlib/Lean/Elab/ElabRules.c index ef33689094..6421e48ec3 100644 --- a/stage0/stdlib/Lean/Elab/ElabRules.c +++ b/stage0/stdlib/Lean/Elab/ElabRules.c @@ -152,7 +152,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabElabRulesAux___sp static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__30; lean_object* l_Lean_Elab_Command_elabElabRulesAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__5; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabElabRulesAux___spec__3___lambda__2___closed__5; lean_object* l_Lean_Elab_Command_elabElabRules___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -173,9 +172,9 @@ static lean_object* l_Lean_Elab_Command_withExpectedType___closed__1; static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__52; lean_object* l_Lean_Syntax_getId(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabElabRulesAux___spec__3___lambda__2___closed__7; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__55; static lean_object* l_Lean_Elab_Command_expandElab___lambda__1___closed__2; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFromRef___at_Lean_Elab_Command_expandElab___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; @@ -205,6 +204,7 @@ static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__3 lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__13; static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__41; +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabElabRulesAux___spec__3___lambda__2___closed__1; static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__88; static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lambda__1___closed__23; @@ -912,7 +912,7 @@ x_12 = lean_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_setArg(x_1, x_12, x_11); x_14 = lean_unsigned_to_nat(0u); x_15 = lean_array_set(x_2, x_14, x_13); -x_16 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_8, x_9, x_10); +x_16 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_8, x_9, x_10); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -2577,7 +2577,7 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); -x_24 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_6, x_7, x_23); +x_24 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_6, x_7, x_23); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -3122,7 +3122,7 @@ lean_inc(x_312); x_313 = lean_ctor_get(x_311, 1); lean_inc(x_313); lean_dec(x_311); -x_314 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_6, x_7, x_313); +x_314 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_6, x_7, x_313); x_315 = lean_ctor_get(x_314, 0); lean_inc(x_315); x_316 = lean_ctor_get(x_314, 1); @@ -3669,7 +3669,7 @@ lean_inc(x_604); x_605 = lean_ctor_get(x_603, 1); lean_inc(x_605); lean_dec(x_603); -x_606 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_6, x_7, x_605); +x_606 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_6, x_7, x_605); x_607 = lean_ctor_get(x_606, 0); lean_inc(x_607); x_608 = lean_ctor_get(x_606, 1); @@ -4353,7 +4353,7 @@ lean_inc(x_963); x_964 = lean_ctor_get(x_962, 1); lean_inc(x_964); lean_dec(x_962); -x_965 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_6, x_7, x_964); +x_965 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_6, x_7, x_964); x_966 = lean_ctor_get(x_965, 0); lean_inc(x_966); x_967 = lean_ctor_get(x_965, 1); @@ -5161,7 +5161,7 @@ x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); lean_dec(x_17); x_19 = l_Lean_Elab_Command_elabElabRulesAux___closed__2; -x_20 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_19, x_7, x_8, x_18); +x_20 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_19, x_7, x_8, x_18); lean_dec(x_8); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -5516,7 +5516,7 @@ lean_object* l_Lean_Elab_Command_elabElabRules___lambda__3(lean_object* x_1, lea _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; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_12 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_9, x_10, x_11); +x_12 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_9, x_10, x_11); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); diff --git a/stage0/stdlib/Lean/Elab/GenInjective.c b/stage0/stdlib/Lean/Elab/GenInjective.c index 5cc53fa823..b614141c05 100644 --- a/stage0/stdlib/Lean/Elab/GenInjective.c +++ b/stage0/stdlib/Lean/Elab/GenInjective.c @@ -26,11 +26,13 @@ lean_object* l_Lean_Meta_mkInjectiveTheorems(lean_object*, lean_object*, lean_ob lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabGenInjectiveTheorems___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__4; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__9; static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__8; @@ -39,16 +41,18 @@ lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabGenInjective lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__1; lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__14; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__13; static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__1___closed__2; lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__1___closed__3; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__1___closed__1; @@ -68,6 +72,7 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__4___closed__2; lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__5; +lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabGenInjectiveTheorems___closed__3; lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -240,6 +245,60 @@ return x_17; } } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__5(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +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); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +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; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} static lean_object* _init_l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__1___closed__1() { _start: { @@ -301,7 +360,7 @@ x_20 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_20, 0, x_19); x_21 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_21, 0, x_20); -x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_21, x_2, x_3, x_7); +x_22 = l_Lean_throwError___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__5(x_21, x_2, x_3, x_7); return x_22; } else @@ -367,7 +426,7 @@ x_43 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_43, 0, x_42); x_44 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_44, 0, x_43); -x_45 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_44, x_2, x_3, x_30); +x_45 = l_Lean_throwError___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__5(x_44, x_2, x_3, x_30); return x_45; } } @@ -494,6 +553,15 @@ lean_dec(x_3); return x_5; } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__5___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_throwError___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__5(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabGenInjectiveTheorems___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Elab/MacroRules.c b/stage0/stdlib/Lean/Elab/MacroRules.c index c87f126fef..ed9d3f8033 100644 --- a/stage0/stdlib/Lean/Elab/MacroRules.c +++ b/stage0/stdlib/Lean/Elab/MacroRules.c @@ -88,7 +88,6 @@ static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__56; static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__66; static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__43; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__73; static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__32; static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__10; @@ -112,6 +111,7 @@ extern lean_object* l_Lean_instInhabitedSyntax; static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__59; static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__68; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___closed__8; +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__11; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -586,7 +586,7 @@ x_12 = lean_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_setArg(x_1, x_12, x_11); x_14 = lean_unsigned_to_nat(0u); x_15 = lean_array_set(x_2, x_14, x_13); -x_16 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_8, x_9, x_10); +x_16 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_8, x_9, x_10); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -1650,7 +1650,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_5, x_6, x_17); +x_18 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_5, x_6, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); @@ -2348,7 +2348,7 @@ lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1(lean_object* x_1, le _start: { 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_10 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_7, x_8, x_9); +x_10 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -2893,7 +2893,7 @@ lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean lean_dec(x_34); x_85 = l_Lean_Syntax_getArg(x_46, x_19); lean_dec(x_46); -x_86 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_8, x_9, x_10); +x_86 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_8, x_9, x_10); x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); x_88 = lean_ctor_get(x_86, 1); diff --git a/stage0/stdlib/Lean/Elab/Print.c b/stage0/stdlib/Lean/Elab/Print.c index bbaf03e653..f24491b74c 100644 --- a/stage0/stdlib/Lean/Elab/Print.c +++ b/stage0/stdlib/Lean/Elab/Print.c @@ -14,12 +14,14 @@ extern "C" { #endif lean_object* l_Lean_Elab_Command_CollectAxioms_collect_match__1(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__4; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__2; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__7; size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__2; +lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); extern lean_object* l_String_instInhabitedString; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__1; @@ -28,6 +30,7 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__5; +lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabPrint___closed__13; @@ -42,7 +45,6 @@ static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxioms lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__1; -lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__11; @@ -54,9 +56,9 @@ static lean_object* l_Lean_Elab_Command_elabPrint___closed__2; lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_CollectAxioms_collect___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg___closed__1; static lean_object* l_Lean_Elab_Command_elabPrint___closed__1; lean_object* lean_private_to_user_name(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint(lean_object*); @@ -80,32 +82,33 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore(lean_o lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint___closed__5; -lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__1; extern lean_object* l_Lean_LocalContext_empty; +lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__1___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__13; lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__4; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__6; -lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__1; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__9; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData_match__1(lean_object*); -lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__2; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData(lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Lean_Elab_Command_elabPrint(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); -lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__3; lean_object* l_Lean_Elab_Command_elabPrint___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CollectAxioms_collect_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -119,6 +122,7 @@ lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at___private_Lean_Elab_Pr lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_x27(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg(lean_object*); lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___spec__1___closed__1; @@ -143,6 +147,7 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader(lean_obje static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__8; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId___closed__1; lean_object* l_Lean_Elab_Command_elabPrintAxioms___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__3; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__4; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -160,8 +165,8 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_x27___box static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId___closed__3; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); static lean_object* l_Lean_Elab_Command_elabPrint___closed__10; +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf_match__1(lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8; @@ -177,32 +182,38 @@ static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___ static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__5; lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_CollectAxioms_State_axioms___default___closed__1; -lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabPrintAxioms___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot(uint8_t); lean_object* l_Lean_Elab_Command_CollectAxioms_collect(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3; lean_object* l_List_forM___at_Lean_Elab_Command_CollectAxioms_collect___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5; +lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__14; lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__2; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__10; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_levelParamsToMessageData___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__3; lean_object* l_Lean_Elab_Command_elabPrintAxioms(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore_match__1(lean_object*); static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__16; static lean_object* l_Lean_Elab_Command_elabPrint___closed__15; lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabPrint___closed__3; +static lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__1; +extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; static lean_object* l_Lean_Elab_Command_elabPrint___closed__5; static lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__7; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); @@ -213,6 +224,7 @@ static lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Ela lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___spec__1(lean_object*); +lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabPrint___closed__7; lean_object* l_Lean_throwError___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -232,6 +244,7 @@ static lean_object* l_Lean_Elab_Command_elabPrint___closed__14; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId___closed__1() { _start: { @@ -2555,7 +2568,300 @@ return x_20; } } } -lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(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; uint8_t x_8; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 7); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 0); +lean_dec(x_10); +x_11 = lean_box(0); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +else +{ +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_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_dec(x_5); +x_16 = lean_st_ref_take(x_3, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 7); +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, 7); +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); +x_24 = l_Std_PersistentArray_push___rarg(x_23, x_1); +lean_ctor_set(x_18, 1, x_24); +x_25 = lean_st_ref_set(x_3, x_17, x_19); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +uint8_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; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_32 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_33 = lean_ctor_get(x_18, 0); +x_34 = lean_ctor_get(x_18, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_18); +x_35 = l_Std_PersistentArray_push___rarg(x_34, x_1); +x_36 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*2, x_32); +lean_ctor_set(x_17, 7, x_36); +x_37 = lean_st_ref_set(x_3, x_17, x_19); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +x_40 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_38); +return x_41; +} +} +else +{ +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; uint8_t 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; +x_42 = lean_ctor_get(x_17, 0); +x_43 = lean_ctor_get(x_17, 1); +x_44 = lean_ctor_get(x_17, 2); +x_45 = lean_ctor_get(x_17, 3); +x_46 = lean_ctor_get(x_17, 4); +x_47 = lean_ctor_get(x_17, 5); +x_48 = lean_ctor_get(x_17, 6); +x_49 = lean_ctor_get(x_17, 8); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_17); +x_50 = lean_ctor_get_uint8(x_18, sizeof(void*)*2); +x_51 = lean_ctor_get(x_18, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_18, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_53 = x_18; +} else { + lean_dec_ref(x_18); + x_53 = lean_box(0); +} +x_54 = l_Std_PersistentArray_push___rarg(x_52, x_1); +if (lean_is_scalar(x_53)) { + x_55 = lean_alloc_ctor(0, 2, 1); +} else { + x_55 = x_53; +} +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_54); +lean_ctor_set_uint8(x_55, sizeof(void*)*2, x_50); +x_56 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_56, 0, x_42); +lean_ctor_set(x_56, 1, x_43); +lean_ctor_set(x_56, 2, x_44); +lean_ctor_set(x_56, 3, x_45); +lean_ctor_set(x_56, 4, x_46); +lean_ctor_set(x_56, 5, x_47); +lean_ctor_set(x_56, 6, x_48); +lean_ctor_set(x_56, 7, x_55); +lean_ctor_set(x_56, 8, x_49); +x_57 = lean_st_ref_set(x_3, x_56, x_19); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; +} else { + lean_dec_ref(x_57); + x_59 = lean_box(0); +} +x_60 = lean_box(0); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +return x_61; +} +} +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(32u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__3() { +_start: +{ +size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 5; +x_2 = l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__2; +x_3 = l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__1; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_4); +lean_ctor_set(x_5, 3, x_4); +lean_ctor_set_usize(x_5, 4, x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(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; uint8_t x_8; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 7); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*2); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_5, 0); +lean_dec(x_10); +x_11 = lean_box(0); +lean_ctor_set(x_5, 0, x_11); +return x_5; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_dec(x_5); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_dec(x_5); +x_16 = l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__3; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +x_18 = l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(x_17, x_2, x_3, x_15); +return x_18; +} +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2602,7 +2908,7 @@ lean_ctor_set(x_17, 2, x_2); lean_ctor_set(x_17, 3, x_12); x_18 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_18, 0, x_17); -x_19 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3(x_18, x_5, x_6, x_13); +x_19 = l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(x_18, x_5, x_6, x_13); x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); @@ -2708,7 +3014,7 @@ lean_inc(x_18); lean_dec(x_10); x_19 = lean_box(0); lean_inc(x_8); -x_20 = l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(x_1, x_3, x_8, x_19, x_4, x_5, x_18); +x_20 = l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__8(x_1, x_3, x_8, x_19, x_4, x_5, x_18); if (lean_obj_tag(x_20) == 0) { uint8_t x_21; @@ -2785,7 +3091,7 @@ return x_32; } } } -lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2861,7 +3167,7 @@ lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); -x_10 = l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(x_8, x_2, x_3, x_9); +x_10 = l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__9(x_8, x_2, x_3, x_9); return x_10; } else @@ -2937,11 +3243,31 @@ lean_dec(x_3); return x_5; } } -lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7___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_pushInfoTree___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___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_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -2966,11 +3292,11 @@ lean_dec(x_5); return x_7; } } -lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__9___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_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__7(x_1, x_2, x_3, x_4); +x_5 = l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__9(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -5077,7 +5403,38 @@ lean_dec(x_2); return x_5; } } -lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_unsupportedSyntaxExceptionId; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg), 1, 0); +return x_3; +} +} +lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5137,7 +5494,7 @@ if (x_6 == 0) lean_object* x_7; lean_dec(x_2); lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg(x_4); return x_7; } else @@ -5176,7 +5533,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1(x_21, x_2, x_3, x_22); +x_23 = l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2(x_21, x_2, x_3, x_22); lean_dec(x_2); return x_23; } @@ -5238,7 +5595,7 @@ lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); lean_dec(x_35); -x_38 = l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1(x_36, x_34, x_3, x_37); +x_38 = l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2(x_36, x_34, x_3, x_37); lean_dec(x_34); return x_38; } @@ -5271,11 +5628,21 @@ return x_42; } } } -lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__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_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; @@ -5447,6 +5814,12 @@ l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5 = _init lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__6 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__6(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__6); +l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__1 = _init_l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__1(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__1); +l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__2 = _init_l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__2(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__2); +l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__3 = _init_l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__3(); +lean_mark_persistent(l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__6___closed__3); l_Lean_Elab_Command_elabPrint___closed__1 = _init_l_Lean_Elab_Command_elabPrint___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabPrint___closed__1); l_Lean_Elab_Command_elabPrint___closed__2 = _init_l_Lean_Elab_Command_elabPrint___closed__2(); @@ -5514,6 +5887,8 @@ l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__4 = _in lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__4); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__5 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__5(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__5); +l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabPrintAxioms___spec__1___rarg___closed__1); l_Lean_Elab_Command_elabPrintAxioms___closed__1 = _init_l_Lean_Elab_Command_elabPrintAxioms___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabPrintAxioms___closed__1); l_Lean_Elab_Command_elabPrintAxioms___closed__2 = _init_l_Lean_Elab_Command_elabPrintAxioms___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index f97a41a290..8dcef59085 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -314,7 +314,6 @@ uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, 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___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed(lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___closed__4; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -345,7 +344,6 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_C lean_object* l_Lean_Elab_Command_elabStructure___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_value_x3f___default; static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___closed__7; -lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1___closed__2; lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -515,6 +513,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_C lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabStructure___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__24; lean_object* lean_environment_main_module(lean_object*); +lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2(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_expandFields___spec__1(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___boxed__const__1; lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -727,6 +726,7 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(lean lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__11___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_elabFieldTypeValue___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_elabStructure___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___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*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isStructure(lean_object*, lean_object*); lean_object* l_Lean_addDocString___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -18750,7 +18750,7 @@ x_14 = l_Lean_Syntax_getId(x_13); x_15 = lean_box(0); lean_inc(x_4); lean_inc(x_13); -x_16 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__1(x_13, x_14, x_15, x_4, x_5, x_6); +x_16 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_elabDeriving___spec__2(x_13, x_14, x_15, x_4, x_5, x_6); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; @@ -20950,7 +20950,7 @@ 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; 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_dec(x_22); -x_35 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_3, x_4, x_30); +x_35 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_mkDefViewOfConstant___spec__1(x_3, x_4, x_30); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index e06c1fb797..9830ef57c9 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -28,6 +28,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_visit___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind___closed__1; size_t l_USize_add(size_t, size_t); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__4; lean_object* l_Lean_Elab_Command_resolveSyntaxKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -138,9 +139,9 @@ lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___boxed(lean_object*, le static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__5; static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__11; lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved(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___at_Lean_Elab_Command_elabSyntax___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__6; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22; -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__15; static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__2; @@ -165,10 +166,12 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacr lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___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*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___boxed(lean_object*, lean_object*); uint8_t l_Char_isWhitespace(uint32_t); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__29; lean_object* l_Lean_Elab_Term_toParserDescr_processSeq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1(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_Command_elabSyntax___spec__5(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___at_Lean_Elab_Command_resolveSyntaxKind___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -191,7 +194,6 @@ uint8_t l_Lean_Elab_Command_checkRuleKind(lean_object*, lean_object*); extern lean_object* l_Lean_nameLitKind; lean_object* l_Lean_Elab_Term_checkLeftRec___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*); static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__1; -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processSeq___lambda__1___boxed__const__1; static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__18; @@ -216,7 +218,6 @@ static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at_Lean_Elab_Term_toParserDescr_resolveParserName___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_mapMUnsafe_map___at_Lean_Elab_Term_toParserDescr_processSeq___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_resolveSyntaxKind(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__13; @@ -237,7 +238,9 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__7; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__67; +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__4; static lean_object* l_Lean_Elab_Term_checkLeftRec___closed__4; lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); @@ -246,6 +249,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__23; lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___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* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at_Lean_Elab_Term_checkLeftRec___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__5; lean_object* lean_array_fget(lean_object*, lean_object*); @@ -269,6 +273,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_toParserDescr_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__3; @@ -277,6 +282,8 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_resolveParserName_match__2(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__2; static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4___closed__7; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__8; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___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_pushInfoLeaf___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -285,6 +292,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax(lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__19; static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__5(lean_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_Elab_Term_toParserDescr_processSeq___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*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_checkLeftRec___spec__7___rarg___closed__1; @@ -298,9 +306,9 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambd static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__12; lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4___closed__3; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2; lean_object* l_String_capitalize(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_5496_(lean_object*); @@ -311,7 +319,6 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__13; static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__7; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_visit_match__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__15; @@ -327,23 +334,20 @@ static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__14; static lean_object* l_Lean_Elab_Term_toParserDescr_ensureNoPrec___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_resolveParserName___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_Nat_repr(lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45; lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__64; lean_object* l_Lean_Elab_Term_toParserDescr_ensureNoPrec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__1; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNestedParser(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_resolveParserName(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___at_Lean_Elab_Command_elabSyntax___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1; 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*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_quoteNameMk(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__2(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; extern lean_object* l_Lean_choiceKind; @@ -395,6 +399,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__12; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); @@ -402,15 +407,15 @@ static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_ lean_object* l_Lean_Elab_Term_toParserDescr_processAtom_match__1(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processAtom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__2; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4___rarg(lean_object*); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__20; static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7___closed__3; +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__5; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy1___lambda__1___closed__10; size_t lean_usize_of_nat(lean_object*); static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; +lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___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_ConstantInfo_type(lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstWithInfos___at_Lean_Elab_Term_toParserDescr_resolveParserName___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*); @@ -445,23 +450,22 @@ uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4___closed__6; static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__1; static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__15; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__10___closed__1; -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___lambda__1___closed__8; 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*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__61; lean_object* l_Lean_Syntax_getQuotContent(lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_appendCatName(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processAtom_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_toParserDescr_processNonReserved___spec__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__2; lean_object* l_Lean_Name_getString_x21(lean_object*); lean_object* l_String_intercalate(lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_expandNoKindMacroRulesAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); uint8_t l_Lean_Name_isStr(lean_object*); @@ -493,8 +497,8 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___clos lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax___boxed(lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser(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_Command_elabSyntax___spec__8(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processUnary___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_resolveParserName_match__1___rarg___closed__1; uint8_t l_Lean_Parser_isParserCategory(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -503,6 +507,7 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__3; static lean_object* l_Lean_Elab_Term_checkLeftRec___lambda__2___closed__4; lean_object* l_Lean_Parser_ensureConstantParserAlias(lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4___closed__5; static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4___closed__13; static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__15; @@ -518,7 +523,6 @@ static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_ lean_object* l_Lean_Syntax_getKind(lean_object*); uint8_t l_Lean_Parser_isValidSyntaxNodeKind(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__4; -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Parser_Basic_0__Lean_Parser_beqLeadingIdentBehavior____x40_Lean_Parser_Basic___hyg_7409_(uint8_t, uint8_t); static lean_object* l_Lean_Elab_Command_elabSyntax___closed__1; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNestedParser___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -527,7 +531,6 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_processUnary___closed__7; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_inferMacroRulesAltKind___spec__2___rarg(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_checkLeftRec___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__9; -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__58; static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__4; @@ -538,7 +541,7 @@ static lean_object* l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resol lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__7; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1(lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object*); lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Term_toParserDescr_processSeq___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*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___closed__2; lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -550,6 +553,7 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__7; lean_object* l_Lean_Parser_isParserAlias(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_checkLeftRec___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___rarg(lean_object*); static 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*); static lean_object* l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__1; @@ -564,6 +568,7 @@ static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyn lean_object* l_Lean_Name_getPrefix(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_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3___closed__6; 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*); @@ -574,17 +579,15 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_process___spec_ lean_object* l_Lean_Elab_Command_elabSyntax_match__3(lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__4___closed__9; static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__6; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__53; 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*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8___rarg(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_String_trim(lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__4; lean_object* l_List_forIn_loop___at_Lean_Elab_Term_toParserDescr_resolveParserName___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*); static lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___closed__1; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7___rarg(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr_processParserCategory___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_elabSyntax___lambda__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*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandOptPrecedence(lean_object*, lean_object*, lean_object*); @@ -627,14 +630,15 @@ static lean_object* l_Lean_Elab_Term_toParserDescr_processAtom___closed__8; static lean_object* l_Lean_Elab_Term_toParserDescr_processNullaryOrCat___closed__3; static lean_object* l_Lean_Elab_Term_toParserDescr_processUnary___closed__4; static lean_object* l_Lean_Elab_Command_elabSyntax___lambda__7___closed__2; -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__11; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__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* l_Lean_Elab_Term_toParserDescr_resolveParserName_match__3(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_toParserDescr_processNullaryOrCat___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__77; +lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux___lambda__1___closed__1; static lean_object* l_Lean_Elab_Term_toParserDescr_processSepBy___lambda__1___closed__2; lean_object* l_List_forIn_loop___at_Lean_Elab_Term_toParserDescr_resolveParserName___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -12240,6 +12244,38 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Comma return x_2; } } +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___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 = l_Lean_Elab_Command_getRef(x_1, x_2, x_3); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = l_Lean_SourceInfo_fromRef(x_6); +lean_dec(x_6); +lean_ctor_set(x_4, 0, x_7); +return x_4; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_4, 0); +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_4); +x_10 = l_Lean_SourceInfo_fromRef(x_8); +lean_dec(x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +} static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1() { _start: { @@ -13143,7 +13179,7 @@ x_8 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotPars x_9 = lean_string_append(x_7, x_8); x_10 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_11 = l_Lean_Name_append(x_1, x_10); -x_12 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_2, x_3, x_4); +x_12 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_2, x_3, x_4); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -13636,6 +13672,16 @@ return x_261; } } } +lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -13667,7 +13713,7 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_16, x_2, x_3, x_17); +x_18 = l_Lean_setEnv___at_Lean_Elab_Command_expandDeclId___spec__5(x_16, x_2, x_3, x_17); x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); lean_dec(x_18); @@ -14196,6 +14242,60 @@ x_3 = lean_box(x_2); return x_3; } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +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); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +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; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} static lean_object* _init_l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__1() { _start: { @@ -14235,7 +14335,7 @@ lean_object* x_11; lean_object* x_12; lean_free_object(x_5); lean_dec(x_1); x_11 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__2; -x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_11, x_2, x_3, x_8); +x_12 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_11, x_2, x_3, x_8); return x_12; } else @@ -14263,7 +14363,7 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; lean_dec(x_1); x_17 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__2; -x_18 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_17, x_2, x_3, x_14); +x_18 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_17, x_2, x_3, x_14); return x_18; } else @@ -14318,7 +14418,7 @@ default: lean_object* x_12; lean_object* x_13; lean_dec(x_1); x_12 = l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___closed__2; -x_13 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_12, x_3, x_4, x_5); +x_13 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_12, x_3, x_4, x_5); return x_13; } } @@ -14380,11 +14480,20 @@ lean_object* x_15; lean_object* x_16; x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); lean_dec(x_14); -x_16 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_13, x_2, x_3, x_15); +x_16 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_13, x_2, x_3, x_15); return x_16; } } } +lean_object* l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3___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_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} lean_object* l_Lean_Elab_checkSyntaxNodeKind___at_Lean_Elab_Command_resolveSyntaxKind___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -14495,7 +14604,26 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax_match__3___rarg) return x_2; } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_checkLeftRec___spec__7___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg), 1, 0); +return x_3; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -14549,7 +14677,7 @@ return x_20; } } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -14568,7 +14696,7 @@ lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_3, 6); lean_dec(x_11); lean_ctor_set(x_3, 6, x_9); -x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__3(x_2, x_3, x_4, x_8); +x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4(x_2, x_3, x_4, x_8); return x_12; } else @@ -14595,12 +14723,12 @@ lean_ctor_set(x_19, 3, x_16); lean_ctor_set(x_19, 4, x_17); lean_ctor_set(x_19, 5, x_18); lean_ctor_set(x_19, 6, x_9); -x_20 = l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__3(x_2, x_19, x_4, x_8); +x_20 = l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4(x_2, x_19, x_4, x_8); return x_20; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4___rarg(lean_object* x_1) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -14611,15 +14739,15 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4___rarg), 1, 0); +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___rarg), 1, 0); return x_3; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__2(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; 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; @@ -14855,7 +14983,7 @@ x_81 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_81, 0, x_80); x_82 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_82, 0, x_81); -x_83 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__2(x_79, x_82, x_2, x_3, x_37); +x_83 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__3(x_79, x_82, x_2, x_3, x_37); lean_dec(x_79); return x_83; } @@ -14863,13 +14991,13 @@ else { lean_object* x_84; lean_dec(x_2); -x_84 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4___rarg(x_37); +x_84 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___rarg(x_37); return x_84; } } } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -14888,7 +15016,7 @@ lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_3, 6); lean_dec(x_11); lean_ctor_set(x_3, 6, x_9); -x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_2, x_3, x_4, x_8); +x_12 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_2, x_3, x_4, x_8); return x_12; } else @@ -14915,12 +15043,12 @@ lean_ctor_set(x_19, 3, x_16); lean_ctor_set(x_19, 4, x_17); lean_ctor_set(x_19, 5, x_18); lean_ctor_set(x_19, 6, x_9); -x_20 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2(x_2, x_19, x_4, x_8); +x_20 = l_Lean_throwError___at_Lean_Elab_Command_resolveSyntaxKind___spec__3(x_2, x_19, x_4, x_8); return x_20; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7___rarg(lean_object* x_1) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -14931,15 +15059,15 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7___rarg), 1, 0); +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8___rarg), 1, 0); return x_3; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__6(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; 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; @@ -15175,7 +15303,7 @@ x_81 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_81, 0, x_80); x_82 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_82, 0, x_81); -x_83 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__6(x_79, x_82, x_2, x_3, x_37); +x_83 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__7(x_79, x_82, x_2, x_3, x_37); lean_dec(x_79); return x_83; } @@ -15183,13 +15311,13 @@ else { lean_object* x_84; lean_dec(x_2); -x_84 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7___rarg(x_37); +x_84 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8___rarg(x_37); return x_84; } } } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -15666,7 +15794,7 @@ lean_object* x_16; lean_object* x_17; x_16 = lean_alloc_closure((void*)(l_Lean_evalOptPrio), 3, 1); lean_closure_set(x_16, 0, x_1); lean_inc(x_13); -x_17 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1(x_16, x_13, x_14, x_15); +x_17 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__2(x_16, x_13, x_14, x_15); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; @@ -15729,7 +15857,7 @@ x_42 = l_Lean_mkIdentFrom(x_3, x_12); if (lean_obj_tag(x_41) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 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_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; -x_43 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_13, x_14, x_38); +x_43 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -16020,7 +16148,7 @@ lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; x_197 = lean_ctor_get(x_41, 0); lean_inc(x_197); lean_dec(x_41); -x_198 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_13, x_14, x_38); +x_198 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); x_199 = lean_ctor_get(x_198, 0); lean_inc(x_199); x_200 = lean_ctor_get(x_198, 1); @@ -16324,7 +16452,7 @@ x_360 = l_Lean_mkIdentFrom(x_3, x_12); if (lean_obj_tag(x_359) == 0) { lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; 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; 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; -x_361 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_13, x_14, x_38); +x_361 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); x_362 = lean_ctor_get(x_361, 0); lean_inc(x_362); x_363 = lean_ctor_get(x_361, 1); @@ -16616,7 +16744,7 @@ lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; x_516 = lean_ctor_get(x_359, 0); lean_inc(x_516); lean_dec(x_359); -x_517 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_13, x_14, x_38); +x_517 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_13, x_14, x_38); x_518 = lean_ctor_get(x_517, 0); lean_inc(x_518); x_519 = lean_ctor_get(x_517, 1); @@ -16996,7 +17124,7 @@ x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkNameFromParserSyntax___b lean_closure_set(x_16, 0, x_2); lean_closure_set(x_16, 1, x_4); lean_inc(x_13); -x_17 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__5(x_16, x_13, x_14, x_15); +x_17 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__6(x_16, x_13, x_14, x_15); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -17082,7 +17210,7 @@ lean_dec(x_12); x_23 = lean_alloc_closure((void*)(l_Lean_evalPrec), 3, 1); lean_closure_set(x_23, 0, x_22); lean_inc(x_14); -x_24 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1(x_23, x_14, x_15, x_16); +x_24 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__2(x_23, x_14, x_15, x_16); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -17148,7 +17276,7 @@ lean_dec(x_12); x_35 = lean_alloc_closure((void*)(l_Lean_evalPrec), 3, 1); lean_closure_set(x_35, 0, x_34); lean_inc(x_14); -x_36 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1(x_35, x_14, x_15, x_16); +x_36 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__2(x_35, x_14, x_15, x_16); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; @@ -17248,7 +17376,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_21 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_15); +x_21 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_15); return x_21; } else @@ -17295,7 +17423,7 @@ x_35 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescr_resolvePars x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__8(x_24, x_36, x_13, x_14, x_29); +x_37 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__9(x_24, x_36, x_13, x_14, x_29); lean_dec(x_14); lean_dec(x_24); x_38 = !lean_is_exclusive(x_37); @@ -17364,7 +17492,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_21 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_14); +x_21 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_14); return x_21; } else @@ -17393,7 +17521,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_27 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_14); +x_27 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_14); return x_27; } else @@ -17457,7 +17585,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_20 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_13); +x_20 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_13); return x_20; } else @@ -17486,7 +17614,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_26 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_13); +x_26 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_13); return x_26; } else @@ -17550,7 +17678,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_18 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_10); +x_18 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_10); return x_18; } else @@ -17578,7 +17706,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_24 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_10); +x_24 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_10); return x_24; } else @@ -17606,7 +17734,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_30 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_10); +x_30 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_10); return x_30; } else @@ -17683,7 +17811,7 @@ lean_object* x_7; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4); return x_7; } else @@ -17706,7 +17834,7 @@ lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_14 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_14 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4); return x_14; } else @@ -17724,7 +17852,7 @@ lean_dec(x_15); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_18 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_18 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4); return x_18; } else @@ -17760,78 +17888,88 @@ return x_30; } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__3___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_throwError___at_Lean_Elab_Command_elabSyntax___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__2(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__4(x_1, x_2); +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_throwError___at_Lean_Elab_Command_elabSyntax___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__6(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__7(x_1, x_2); +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__5(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__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_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__5(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__2(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__8(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__7(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__8(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__6___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_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__6(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__9(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_1); return x_6; @@ -18395,7 +18533,7 @@ x_23 = l_Lean_Syntax_getId(x_6); lean_inc(x_23); x_24 = l_Lean_Name_append(x_22, x_23); lean_dec(x_22); -x_25 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Command_elabCheckFailure___spec__1(x_2, x_3, x_21); +x_25 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_2, x_3, x_21); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); diff --git a/stage0/stdlib/Lean/Parser/Command.c b/stage0/stdlib/Lean/Parser/Command.c index cbd4d31340..4c8aa67adb 100644 --- a/stage0/stdlib/Lean/Parser/Command.c +++ b/stage0/stdlib/Lean/Parser/Command.c @@ -14,11 +14,11 @@ extern "C" { #endif lean_object* l_Lean_Parser_Command_deriving_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__12; static lean_object* l_Lean_Parser_Command_structFields___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_abbrev_formatter___closed__9; static lean_object* l_Lean_Parser_Tactic_set__option_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__15; -lean_object* l_Lean_Parser_Command_universes_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_check__failure___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_set__option(lean_object*); static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__3; @@ -34,7 +34,6 @@ static lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__18; static lean_object* l_Lean_Parser_Command_init__quot___closed__3; static lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__11; -static lean_object* l_Lean_Parser_Command_universes___closed__7; static lean_object* l_Lean_Parser_Command_classInductive_formatter___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Command_in(lean_object*); static lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__20; @@ -172,6 +171,7 @@ lean_object* l___regBuiltin_Lean_Parser_Command_open_formatter(lean_object*); lean_object* l_Lean_Parser_Command_visibility; static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__28; static lean_object* l_Lean_Parser_Command_namedPrio_parenthesizer___closed__2; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__20; static lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__10; static lean_object* l_Lean_Parser_Command_example___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__6; @@ -190,7 +190,9 @@ lean_object* l_Lean_Parser_Command_reduce_parenthesizer(lean_object*, lean_objec static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_attribute_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Command_declaration_formatter___closed__3; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__32; static lean_object* l_Lean_Parser_Command_declSig_parenthesizer___closed__1; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__10; lean_object* l_Lean_Parser_Term_attributes_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__23; static lean_object* l_Lean_Parser_Command_open___elambda__1___closed__10; @@ -396,6 +398,7 @@ static lean_object* l_Lean_Parser_Command_section___closed__5; static lean_object* l_Lean_Parser_Command_openSimple___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__18; static lean_object* l_Lean_Parser_Command_ctor_parenthesizer___closed__5; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__26; static lean_object* l_Lean_Parser_Term_quot___elambda__1___lambda__3___closed__3; static lean_object* l_Lean_Parser_Command_declSig___elambda__1___closed__15; lean_object* l_Lean_Parser_group_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -409,7 +412,6 @@ static lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_declModifiers___closed__21; lean_object* l___regBuiltin_Lean_Parser_Command_universe_parenthesizer(lean_object*); static lean_object* l_Lean_Parser_Tactic_set__option___elambda__1___closed__5; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__7; static lean_object* l_Lean_Parser_Command_inferMod___elambda__1___closed__9; static lean_object* l_Lean_Parser_Command_section_formatter___closed__2; static lean_object* l_Lean_Parser_Command_unsafe___elambda__1___closed__11; @@ -464,7 +466,6 @@ static lean_object* l_Lean_Parser_Command_set__option_parenthesizer___closed__4; lean_object* l_Lean_Parser_Command_openHiding_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_structCtor_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__15; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__26; static lean_object* l_Lean_Parser_Command_partial_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Term_set__option_formatter___closed__1; static lean_object* l_Lean_Parser_Command_protected___elambda__1___closed__13; @@ -536,7 +537,6 @@ static lean_object* l_Lean_Parser_Command_extends___closed__7; static lean_object* l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4; static lean_object* l_Lean_Parser_Command_unsafe___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__11; -static lean_object* l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__2; lean_object* l_Lean_Parser_nonReservedSymbolFn(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_precheckedQuot___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_private_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -550,7 +550,6 @@ lean_object* l_Lean_Parser_ParserState_mkNode(lean_object*, lean_object*, lean_o static lean_object* l_Lean_Parser_Tactic_open___closed__3; static lean_object* l_Lean_Parser_Command_visibility___closed__1; static lean_object* l_Lean_Parser_Term_precheckedQuot_formatter___closed__1; -static lean_object* l_Lean_Parser_Command_universes___closed__2; static lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_constant_formatter___closed__7; static lean_object* l_Lean_Parser_Command_reduce___elambda__1___closed__12; @@ -617,7 +616,6 @@ static lean_object* l_Lean_Parser_Command_visibility_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__17; static lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__9; -static lean_object* l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_declValEqns_formatter___closed__3; static lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_openHiding_parenthesizer___closed__6; @@ -751,13 +749,10 @@ static lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__26; static lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__17; lean_object* l_Lean_Parser_Command_universe_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_declModifiers___closed__13; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__32; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__10; static lean_object* l_Lean_Parser_Term_precheckedQuot_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_declValSimple_parenthesizer___closed__5; uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__11; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_namedPrio___closed__10; lean_object* l_Lean_Parser_atomicFn(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_declaration___closed__10; @@ -797,7 +792,6 @@ static lean_object* l_Lean_Parser_Command_print___elambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Command_attribute_parenthesizer___closed__1; lean_object* l_Lean_Parser_checkPrecFn___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_instance; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_builtin__initialize___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_structFields___elambda__1___closed__17; static lean_object* l_Lean_Parser_Command_inferMod___closed__8; @@ -819,7 +813,6 @@ static lean_object* l_Lean_Parser_Command_reduce___closed__8; static lean_object* l_Lean_Parser_Command_declaration___elambda__1___closed__17; static lean_object* l_Lean_Parser_Command_builtin__initialize___elambda__1___closed__10; static lean_object* l___regBuiltin_Lean_Parser_Command_declaration_parenthesizer___closed__1; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__12; lean_object* l_Lean_Parser_Command_structFields___elambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_set__option___elambda__1___closed__9; static lean_object* l_Lean_Parser_Command_export___elambda__1___closed__8; @@ -864,7 +857,6 @@ static lean_object* l_Lean_Parser_Command_extends_formatter___closed__4; static lean_object* l_Lean_Parser_Command_structSimpleBinder___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_export___closed__11; static lean_object* l_Lean_Parser_Command_abbrev_formatter___closed__3; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_namespace___closed__5; static lean_object* l_Lean_Parser_Command_mutual_formatter___closed__1; static lean_object* l_Lean_Parser_Command_structure_formatter___closed__10; @@ -954,14 +946,13 @@ static lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__12; static lean_object* l_Lean_Parser_Command_ctor_formatter___closed__2; static lean_object* l_Lean_Parser_Command_declValSimple_formatter___closed__3; static lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__20; -static lean_object* l_Lean_Parser_Command_universes_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_openRenamingItem___closed__4; static lean_object* l_Lean_Parser_Command_variable_parenthesizer___closed__5; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__20; static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__21; static lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_open___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__12; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__27; static lean_object* l_Lean_Parser_Command_extends___closed__5; static lean_object* l_Lean_Parser_Command_deriving___closed__6; static lean_object* l_Lean_Parser_Command_mutual___closed__6; @@ -979,7 +970,6 @@ lean_object* l_Lean_Parser_Command_docComment_parenthesizer(lean_object*, lean_o lean_object* l_Lean_PrettyPrinter_Parenthesizer_atomic_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__7; static lean_object* l_Lean_Parser_Term_open___closed__1; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__19; lean_object* l_Lean_Parser_Command_declId___elambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_declaration_formatter___closed__13; static lean_object* l_Lean_Parser_Command_declId_formatter___closed__4; @@ -993,8 +983,8 @@ static lean_object* l_Lean_Parser_Tactic_open_formatter___closed__1; static lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__10; lean_object* l_Lean_Parser_Command_def_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Command_init__quot_parenthesizer(lean_object*); +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__9; static lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__33; -static lean_object* l_Lean_Parser_Command_universes___closed__6; static lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_unsafe___elambda__1___closed__12; static lean_object* l_Lean_Parser_Command_genInjectiveTheorems_parenthesizer___closed__4; @@ -1005,7 +995,6 @@ static lean_object* l_Lean_Parser_Command_openDecl_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_print_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_theorem_formatter___closed__6; static lean_object* l_Lean_Parser_Command_initialize___closed__2; -lean_object* l___regBuiltin_Lean_Parser_Command_universes_formatter(lean_object*); static lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__14; static lean_object* l_Lean_Parser_Command_abbrev_parenthesizer___closed__6; static lean_object* l___regBuiltin_Lean_Parser_Term_precheckedQuot_parenthesizer___closed__1; @@ -1145,9 +1134,9 @@ static lean_object* l_Lean_Parser_Command_deriving___elambda__1___closed__16; static lean_object* l_Lean_Parser_Command_openDecl_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_inferMod___closed__3; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__31; static lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__3; extern lean_object* l_Lean_PrettyPrinter_parenthesizerAttribute; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__11; static lean_object* l_Lean_Parser_Command_declaration_formatter___closed__23; lean_object* l_Lean_Parser_Command_noncomputable___elambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__4; @@ -1158,7 +1147,6 @@ static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__25; static lean_object* l_Lean_Parser_Term_set__option___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_namedPrio_formatter___closed__4; static lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__12; -lean_object* l___regBuiltin_Lean_Parser_Command_universes_parenthesizer(lean_object*); static lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__15; static lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__16; @@ -1166,7 +1154,6 @@ static lean_object* l_Lean_Parser_Command_optionValue_formatter___closed__2; static lean_object* l_Lean_Parser_Command_export___elambda__1___closed__10; lean_object* l_Lean_Parser_Command_synth; static lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__13; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__3; @@ -1179,7 +1166,7 @@ lean_object* l_Lean_Parser_Command_visibility_formatter(lean_object*, lean_objec lean_object* l___regBuiltin_Lean_Parser_Command_in_parenthesizer(lean_object*); static lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Command_openSimple_parenthesizer___closed__1; -lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684_(lean_object*); +lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667_(lean_object*); static lean_object* l_Lean_Parser_Command_reduce___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_initialize___closed__4; static lean_object* l_Lean_Parser_Command_def___elambda__1___closed__4; @@ -1232,6 +1219,7 @@ static lean_object* l_Lean_Parser_Command_classTk_formatter___closed__2; static lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__9; lean_object* l_Lean_Parser_Command_builtin__initialize_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_set__option_formatter___closed__5; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__35; static lean_object* l_Lean_Parser_Command_inferMod___elambda__1___closed__11; static lean_object* l_Lean_Parser_Command_attribute___closed__5; static lean_object* l_Lean_Parser_Command_classInductive___closed__7; @@ -1240,7 +1228,6 @@ static lean_object* l_Lean_Parser_Command_optionValue___elambda__1___closed__1; static lean_object* l_Lean_Parser_Term_quot___elambda__1___lambda__3___closed__11; static lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_ctor_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Parser_Command_universes_formatter___closed__3; static lean_object* l_Lean_Parser_Command_openSimple___closed__1; static lean_object* l_Lean_Parser_Command_declaration___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_declModifiers___closed__25; @@ -1307,6 +1294,7 @@ static lean_object* l_Lean_Parser_Command_structFields___elambda__1___closed__23 static lean_object* l_Lean_Parser_Command_classInductive___closed__5; static lean_object* l_Lean_Parser_Tactic_set__option_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__34; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__8; static lean_object* l_Lean_Parser_Command_reduce___elambda__1___closed__13; static lean_object* l_Lean_Parser_Command_open___closed__2; static lean_object* l_Lean_Parser_Term_open___closed__8; @@ -1330,6 +1318,7 @@ static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__16; static lean_object* l_Lean_Parser_Tactic_set__option___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_openOnly___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__1; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__4; static lean_object* l_Lean_Parser_Term_set__option_parenthesizer___closed__6; lean_object* l___regBuiltinParser_Lean_Parser_Tactic_open(lean_object*); static lean_object* l_Lean_Parser_Command_initialize___closed__9; @@ -1341,10 +1330,10 @@ static lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__1 static lean_object* l_Lean_Parser_Command_attribute_formatter___closed__1; static lean_object* l_Lean_Parser_Command_optDeriving_formatter___closed__4; static lean_object* l_Lean_Parser_Command_init__quot___closed__1; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__17; static lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__9; static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__10; -static lean_object* l_Lean_Parser_Command_universes___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_unsafe_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_structSimpleBinder_parenthesizer___closed__1; @@ -1445,7 +1434,6 @@ static lean_object* l_Lean_Parser_Command_check__failure___closed__8; static lean_object* l_Lean_Parser_Command_inferMod_parenthesizer___closed__5; lean_object* l_Lean_Parser_Tactic_set__option_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__9; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__17; static lean_object* l_Lean_Parser_Term_set__option___closed__9; static lean_object* l_Lean_Parser_Command_extends___elambda__1___closed__15; static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__29; @@ -1471,7 +1459,6 @@ static lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__16; static lean_object* l_Lean_Parser_Term_precheckedQuot___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_example_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__6; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__6; static lean_object* l_Lean_Parser_Tactic_open_formatter___closed__4; lean_object* l_Lean_Parser_Command_structExplicitBinder; static lean_object* l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__3; @@ -1540,8 +1527,6 @@ static lean_object* l_Lean_Parser_Command_namedPrio_formatter___closed__9; static lean_object* l_Lean_Parser_Command_reduce___elambda__1___closed__2; static lean_object* l_Lean_Parser_Command_extends___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_section___elambda__1___closed__5; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__8; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__9; static lean_object* l_Lean_Parser_Command_protected___elambda__1___closed__5; static lean_object* l___regBuiltin_Lean_Parser_Command_resolve__name_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__15; @@ -1590,7 +1575,6 @@ static 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*); static lean_object* l_Lean_Parser_Command_optDeclSig_formatter___closed__6; static lean_object* l_Lean_Parser_Command_optDeriving___elambda__1___closed__11; -static lean_object* l_Lean_Parser_Command_universes_parenthesizer___closed__4; static lean_object* l___regBuiltin_Lean_Parser_Command_init__quot_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_theorem_formatter___closed__2; static lean_object* l_Lean_Parser_Command_classInductive_parenthesizer___closed__1; @@ -1622,7 +1606,6 @@ static lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__11; static lean_object* l_Lean_Parser_Command_optDeclSig___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_section_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Command_protected___closed__1; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__31; static lean_object* l___regBuiltin_Lean_Parser_Command_exit_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_declValEqns___closed__2; @@ -1712,7 +1695,6 @@ static lean_object* l_Lean_Parser_Command_abbrev_parenthesizer___closed__5; static lean_object* l_Lean_Parser_Command_mutual_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_unsafe___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_structFields_formatter___closed__7; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__4; static lean_object* l_Lean_Parser_Command_openRenaming___closed__5; static lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__15; static lean_object* l_Lean_Parser_Command_noncomputable_parenthesizer___closed__3; @@ -1726,7 +1708,6 @@ static lean_object* l_Lean_Parser_Command_optionValue___elambda__1___closed__11; static lean_object* l_Lean_Parser_Command_section_formatter___closed__5; static lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__28; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__27; static lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__22; static lean_object* l_Lean_Parser_Command_universe_formatter___closed__2; static lean_object* l_Lean_Parser_Command_variable___closed__4; @@ -1786,6 +1767,7 @@ static lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_declaration___closed__11; static lean_object* l_Lean_Parser_Command_eval___closed__8; lean_object* l_Lean_PrettyPrinter_Formatter_many1Unbox_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__19; static lean_object* l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__5; static lean_object* l_Lean_Parser_Command_declVal___closed__2; static lean_object* l_Lean_Parser_Command_declValSimple_parenthesizer___closed__2; @@ -1811,7 +1793,6 @@ static lean_object* l_Lean_Parser_Command_abbrev_formatter___closed__7; static lean_object* l_Lean_Parser_Command_open_formatter___closed__5; static lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__11; static lean_object* l_Lean_Parser_Command_openRenaming_parenthesizer___closed__7; -lean_object* l___regBuiltinParser_Lean_Parser_Command_universes(lean_object*); static lean_object* l_Lean_Parser_Command_theorem_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_structExplicitBinder_formatter___closed__6; static lean_object* l_Lean_Parser_Command_structInstBinder___closed__4; @@ -1822,6 +1803,7 @@ static lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_mutual_formatter___closed__7; static lean_object* l_Lean_Parser_Command_attribute_parenthesizer___closed__8; static lean_object* l_Lean_Parser_Command_namedPrio___closed__6; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__11; static lean_object* l_Lean_Parser_Command_namedPrio_formatter___closed__1; static lean_object* l_Lean_Parser_Command_deriving___elambda__1___closed__11; static lean_object* l_Lean_Parser_Command_optDeriving_formatter___closed__2; @@ -1867,7 +1849,6 @@ static lean_object* l_Lean_Parser_Command_end___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_structCtor___closed__10; static lean_object* l_Lean_Parser_Command_mutual___closed__7; static lean_object* l_Lean_Parser_Command_declaration___closed__4; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__23; static lean_object* l_Lean_Parser_Term_open_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Term_set__option_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__29; @@ -1951,10 +1932,8 @@ static lean_object* l___regBuiltin_Lean_Parser_Command_init__quot_formatter___cl static lean_object* l___regBuiltin_Lean_Parser_Command_namespace_formatter___closed__2; lean_object* l_Lean_PrettyPrinter_Parenthesizer_many1Unbox_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_openRenamingItem_formatter___closed__3; -static lean_object* l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__2; static lean_object* l_Lean_Parser_Command_structInstBinder_parenthesizer___closed__9; static lean_object* l_Lean_Parser_Command_declModifiers___elambda__1___closed__4; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__1; static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_deriving; @@ -1975,6 +1954,7 @@ static lean_object* l_Lean_Parser_Command_universe___closed__1; static lean_object* l_Lean_Parser_Command_protected___closed__5; static lean_object* l_Lean_Parser_Command_deriving___closed__4; static lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__16; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__21; static lean_object* l_Lean_Parser_Command_export___elambda__1___closed__11; static lean_object* l_Lean_Parser_Command_eval___closed__3; lean_object* l___regBuiltin_Lean_Parser_Command_variable_parenthesizer(lean_object*); @@ -2009,7 +1989,6 @@ static lean_object* l_Lean_Parser_Command_structImplicitBinder___closed__10; static lean_object* l_Lean_Parser_Command_structInstBinder___closed__9; static lean_object* l_Lean_Parser_Command_initialize_parenthesizer___closed__11; static lean_object* l_Lean_Parser_Command_ctor___closed__4; -static lean_object* l_Lean_Parser_Command_universes___closed__4; static lean_object* l_Lean_Parser_Command_axiom_formatter___closed__2; static lean_object* l_Lean_Parser_Term_quot___elambda__1___lambda__3___closed__1; static lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__4; @@ -2027,6 +2006,7 @@ lean_object* l_Lean_Parser_Command_eraseAttr_formatter(lean_object*, lean_object static lean_object* l___regBuiltin_Lean_Parser_Command_printAxioms_formatter___closed__1; static lean_object* l_Lean_Parser_Command_set__option_formatter___closed__3; static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__11; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__2; static lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__16; static lean_object* l_Lean_Parser_Command_abbrev___closed__9; static lean_object* l___regBuiltin_Lean_Parser_Command_initialize_formatter___closed__1; @@ -2059,7 +2039,6 @@ static lean_object* l_Lean_Parser_Command_abbrev___closed__8; static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_initialize_formatter___closed__3; static lean_object* l_Lean_Parser_Command_exit_formatter___closed__1; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__13; static lean_object* l_Lean_Parser_Term_open___closed__9; static lean_object* l_Lean_Parser_Command_open___elambda__1___closed__8; lean_object* l___regBuiltin_Lean_Parser_Command_exit_parenthesizer(lean_object*); @@ -2109,7 +2088,6 @@ static lean_object* l_Lean_Parser_Command_structFields___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Command_universe_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__26; static lean_object* l_Lean_Parser_Command_eraseAttr___elambda__1___closed__13; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__12; static lean_object* l_Lean_Parser_Command_inductive___closed__8; lean_object* l_Lean_Parser_Command_declModifiersF_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__6; @@ -2142,7 +2120,6 @@ static lean_object* l___regBuiltin_Lean_Parser_Command_check_parenthesizer___clo lean_object* l_Lean_Parser_Command_export; lean_object* l_Lean_Parser_Command_instance_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_openRenaming___closed__3; -static lean_object* l_Lean_Parser_Command_universes___closed__8; static lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__5; static lean_object* l_Lean_Parser_Command_extends___closed__8; lean_object* l_Lean_Parser_Command_synth_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2165,7 +2142,6 @@ static lean_object* l_Lean_Parser_Command_declValSimple_formatter___closed__1; static lean_object* l_Lean_Parser_Command_declValEqns___closed__6; static lean_object* l_Lean_Parser_Command_check___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_optionValue_parenthesizer___closed__1; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__21; static lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__8; static lean_object* l___regBuiltin_Lean_Parser_Command_printAxioms_parenthesizer___closed__2; @@ -2178,6 +2154,7 @@ static lean_object* l_Lean_Parser_Command_structExplicitBinder_parenthesizer___c static lean_object* l___regBuiltin_Lean_Parser_Tactic_open_parenthesizer___closed__2; lean_object* l_Lean_Parser_withResultOfFn(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_genInjectiveTheorems___elambda__1___closed__4; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__25; static lean_object* l_Lean_Parser_Term_quot_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Tactic_open_formatter___closed__5; static lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__9; @@ -2250,7 +2227,6 @@ static lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__13; lean_object* l___regBuiltinParser_Lean_Parser_Command_printAxioms(lean_object*); static lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_noncomputable___elambda__1___closed__3; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__35; lean_object* l_Lean_Parser_Term_quot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_instance___closed__10; static lean_object* l_Lean_Parser_Command_example_parenthesizer___closed__1; @@ -2285,7 +2261,6 @@ static lean_object* l_Lean_Parser_Term_quot_formatter___closed__3; lean_object* l_Lean_Parser_sepBy1(lean_object*, lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Parser_Command_noncomputable___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_check___elambda__1___closed__9; -static lean_object* l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__1; static lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_unsafe_formatter___closed__3; static lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__8; @@ -2307,6 +2282,7 @@ extern lean_object* l_Lean_groupKind; static lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__4; lean_object* l_Lean_Parser_Command_structureTk_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Command_eval_formatter___closed__1; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__6; static lean_object* l_Lean_Parser_Command_def___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__18; lean_object* l___regBuiltin_Lean_Parser_Command_eval_parenthesizer(lean_object*); @@ -2320,6 +2296,7 @@ static lean_object* l_Lean_Parser_Command_declValEqns___closed__3; lean_object* l_Lean_Parser_Term_quot___elambda__1___lambda__1___boxed(lean_object*); static lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__3; static lean_object* l_Lean_Parser_Tactic_open_parenthesizer___closed__1; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__29; static lean_object* l_Lean_Parser_Command_builtin__initialize_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Command_printAxioms___closed__6; static lean_object* l_Lean_Parser_Command_genInjectiveTheorems___elambda__1___closed__8; @@ -2416,9 +2393,7 @@ static lean_object* l_Lean_Parser_Command_declValSimple_parenthesizer___closed__ static lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__21; static lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__10; static lean_object* l_Lean_Parser_Command_example_parenthesizer___closed__2; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__34; static lean_object* l_Lean_Parser_Command_in___closed__4; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_openRenamingItem_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_deriving_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_printAxioms___closed__1; @@ -2436,7 +2411,6 @@ lean_object* l_Lean_Parser_Term_optType_parenthesizer(lean_object*, lean_object* static lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__11; lean_object* l_Lean_Parser_numLit___elambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_abbrev___closed__1; -static lean_object* l_Lean_Parser_Command_universes_formatter___closed__1; static lean_object* l_Lean_Parser_Command_namedPrio_parenthesizer___closed__6; lean_object* l_Lean_Parser_Command_optDeriving___elambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_optionValue___closed__2; @@ -2514,13 +2488,10 @@ static lean_object* l_Lean_Parser_Term_open_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_resolve__name___closed__6; static lean_object* l_Lean_Parser_Command_init__quot_parenthesizer___closed__2; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__19; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__25; lean_object* l_Lean_Parser_Term_attrKind_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Command_mutual_formatter(lean_object*); static lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__7; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__29; static lean_object* l_Lean_Parser_Command_declVal___closed__3; static lean_object* l_Lean_Parser_Term_precheckedQuot___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_openRenamingItem_parenthesizer___closed__5; @@ -2545,7 +2516,6 @@ static lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_builtin__initialize_formatter___closed__4; static lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_private___elambda__1___closed__1; -lean_object* l_Lean_Parser_Command_universes_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_export_formatter___closed__1; static lean_object* l_Lean_Parser_Command_ctor___closed__1; static lean_object* l_Lean_Parser_Command_printAxioms___closed__4; @@ -2583,6 +2553,7 @@ static lean_object* l___regBuiltin_Lean_Parser_Command_init__quot_formatter___cl static lean_object* l_Lean_Parser_Command_optDeclSig___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_structure___closed__8; static lean_object* l_Lean_Parser_Command_end___elambda__1___closed__8; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__1; static lean_object* l_Lean_Parser_Command_print___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__23; static lean_object* l_Lean_Parser_Command_eraseAttr___elambda__1___closed__8; @@ -2592,7 +2563,6 @@ static lean_object* l_Lean_Parser_Command_genInjectiveTheorems___elambda__1___cl static lean_object* l___regBuiltin_Lean_Parser_Command_section_formatter___closed__1; static lean_object* l_Lean_Parser_Command_inferMod___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_instance___closed__6; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__2; static lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_structImplicitBinder_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_declaration___elambda__1___closed__16; @@ -2633,7 +2603,6 @@ static lean_object* l_Lean_Parser_Command_structExplicitBinder___closed__6; static lean_object* l_Lean_Parser_Command_in___closed__1; static lean_object* l_Lean_Parser_Command_optDeriving_parenthesizer___closed__4; static lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__3; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__11; static lean_object* l_Lean_Parser_Command_print_parenthesizer___closed__5; static lean_object* l_Lean_Parser_Command_openRenaming_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__16; @@ -2699,6 +2668,7 @@ static lean_object* l_Lean_Parser_Command_classInductive_formatter___closed__2; static lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__10; extern lean_object* l_Lean_Parser_Command_docComment; static lean_object* l_Lean_Parser_Command_structExplicitBinder_formatter___closed__5; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__13; static lean_object* l_Lean_Parser_Command_inductive_formatter___closed__12; lean_object* l_Lean_Parser_orelseFnCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__3; @@ -2722,6 +2692,7 @@ static lean_object* l_Lean_Parser_Command_structure___closed__4; static lean_object* l_Lean_Parser_Command_printAxioms___closed__2; static lean_object* l_Lean_Parser_Command_declModifiers___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_in___closed__8; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__23; static lean_object* l_Lean_Parser_Tactic_open___closed__1; static lean_object* l_Lean_Parser_Command_namespace_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__21; @@ -2782,9 +2753,7 @@ static lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__9; static lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__15; static lean_object* l_Lean_Parser_Term_quot_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Command_open_parenthesizer___closed__4; -static lean_object* l_Lean_Parser_Command_universes_formatter___closed__4; static lean_object* l_Lean_Parser_Command_structSimpleBinder___elambda__1___closed__6; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__3; lean_object* l___regBuiltin_Lean_Parser_Command_declaration_formatter(lean_object*); static lean_object* l_Lean_Parser_Command_end___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_example_formatter___closed__2; @@ -2807,7 +2776,6 @@ static lean_object* l_Lean_Parser_Command_namedPrio_formatter___closed__10; static lean_object* l_Lean_Parser_Command_deriving___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_check___closed__3; static lean_object* l_Lean_Parser_Command_mutual_formatter___closed__9; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_synth___closed__5; static lean_object* l___regBuiltin_Lean_Parser_Command_set__option_formatter___closed__1; @@ -2860,10 +2828,11 @@ static lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__12; static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__2; static lean_object* l_Lean_Parser_Command_structSimpleBinder___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_resolve__name_formatter___closed__1; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__33; static lean_object* l_Lean_Parser_Command_openHiding___closed__1; static lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__17; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__18; static lean_object* l_Lean_Parser_Command_check__failure___elambda__1___closed__6; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__33; static lean_object* l_Lean_Parser_Command_def___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__2; static lean_object* l_Lean_Parser_Command_structure_formatter___closed__12; @@ -2882,6 +2851,7 @@ static lean_object* l_Lean_Parser_Command_declVal_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_set__option_formatter___closed__7; static lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_constant_formatter___closed__2; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__22; static lean_object* l___regBuiltin_Lean_Parser_Command_variable_formatter___closed__1; static lean_object* l_Lean_Parser_Term_set__option___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__24; @@ -2894,7 +2864,6 @@ static lean_object* l_Lean_Parser_Command_optDeclSig_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_structInstBinder___closed__12; lean_object* l_Lean_Parser_Command_structSimpleBinder___elambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__2; static lean_object* l_Lean_Parser_Command_structImplicitBinder_formatter___closed__5; static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__19; static lean_object* l_Lean_Parser_Command_print___closed__9; @@ -2914,13 +2883,11 @@ lean_object* l_Lean_Parser_Command_openOnly_parenthesizer(lean_object*, lean_obj lean_object* l_Lean_ppSpace_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_declId_parenthesizer___closed__9; static lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__9; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__5; static lean_object* l_Lean_Parser_Command_example___elambda__1___closed__13; static lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__16; static lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__10; static lean_object* l_Lean_Parser_Command_optDeclSig___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_print___closed__4; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__14; static lean_object* l_Lean_Parser_Command_declaration___closed__8; static lean_object* l_Lean_Parser_Term_open___closed__7; lean_object* l_Lean_Parser_Term_matchAltsWhereDecls___elambda__1(lean_object*, lean_object*); @@ -2938,7 +2905,6 @@ static lean_object* l_Lean_Parser_Command_builtin__initialize___elambda__1___clo lean_object* l_String_trim(lean_object*); lean_object* l_Lean_Parser_Term_doSeq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_genInjectiveTheorems_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__28; lean_object* l_Lean_Parser_Command_structure___elambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_def_formatter___closed__1; static lean_object* l_Lean_Parser_Command_optDeriving_parenthesizer___closed__7; @@ -2994,11 +2960,9 @@ static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__9; static lean_object* l_Lean_Parser_Command_structCtor___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_structFields_parenthesizer___closed__10; static lean_object* l_Lean_Parser_Command_structureTk___closed__5; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__9; static lean_object* l_Lean_Parser_Term_precheckedQuot___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_print___closed__1; static lean_object* l_Lean_Parser_Term_open___elambda__1___closed__6; -static lean_object* l_Lean_Parser_Command_universes_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_classInductive_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_set__option___closed__1; static lean_object* l_Lean_Parser_Command_declId___elambda__1___closed__8; @@ -3033,13 +2997,13 @@ static lean_object* l_Lean_Parser_Command_inferMod_formatter___closed__2; static lean_object* l_Lean_Parser_Term_quot___elambda__1___closed__20; static lean_object* l_Lean_Parser_Command_optionValue___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__13; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__18; static lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_inductive_formatter___closed__3; static lean_object* l_Lean_Parser_Tactic_open___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_structInstBinder_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_unsafe___closed__7; lean_object* l_Lean_ppLine_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__16; static lean_object* l_Lean_Parser_Command_structSimpleBinder___closed__1; static lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_precheckedQuot; @@ -3065,13 +3029,10 @@ static lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__10; lean_object* l_Lean_Parser_Command_optDeclSig_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Command_attribute_formatter(lean_object*); static lean_object* l_Lean_Parser_Command_universe___closed__6; -lean_object* l_Lean_Parser_Command_universes; static lean_object* l_Lean_Parser_Command_optDeclSig___closed__7; static lean_object* l_Lean_Parser_Command_attribute___closed__11; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__30; static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__13; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__15; static lean_object* l_Lean_Parser_Command_optDeriving___elambda__1___closed__12; static lean_object* l_Lean_Parser_Command_builtin__initialize___closed__1; static lean_object* l_Lean_Parser_Command_instance_formatter___closed__9; @@ -3079,7 +3040,6 @@ static lean_object* l_Lean_Parser_Command_deriving_formatter___closed__2; static lean_object* l_Lean_Parser_Command_export___elambda__1___closed__13; static lean_object* l_Lean_Parser_Command_set__option_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__10; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__8; static lean_object* l_Lean_Parser_Command_genInjectiveTheorems___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_typeSpec___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_init__quot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3156,6 +3116,7 @@ static lean_object* l_Lean_Parser_Command_printAxioms_parenthesizer___closed__3; lean_object* l_Lean_Parser_unicodeSymbolFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_optionValue___closed__3; static lean_object* l_Lean_Parser_Command_optDeclSig___closed__3; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__24; static lean_object* l_Lean_Parser_Tactic_open___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_check___elambda__1___closed__12; static lean_object* l_Lean_Parser_Command_namedPrio_parenthesizer___closed__3; @@ -3169,7 +3130,6 @@ static lean_object* l_Lean_Parser_Command_inductive_formatter___closed__14; static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__9; static lean_object* l_Lean_Parser_Command_end___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__11; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__6; static lean_object* l_Lean_Parser_Command_structureTk___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_classTk_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_declModifiersT_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3182,6 +3142,7 @@ static lean_object* l_Lean_Parser_Command_declValSimple_formatter___closed__4; static lean_object* l_Lean_Parser_Command_namedPrio___elambda__1___closed__31; static lean_object* l_Lean_Parser_Command_structImplicitBinder_formatter___closed__3; lean_object* l_Lean_Parser_Command_structFields_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__7; static lean_object* l_Lean_Parser_Command_deriving___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_structImplicitBinder_parenthesizer___closed__8; lean_object* l_Lean_Parser_Command_exit; @@ -3204,7 +3165,6 @@ static lean_object* l_Lean_Parser_Command_structCtor_formatter___closed__5; static lean_object* l_Lean_Parser_Tactic_set__option___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_print___elambda__1___closed__7; static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__27; -static lean_object* l_Lean_Parser_Command_universes_parenthesizer___closed__1; static lean_object* l_Lean_Parser_Command_openDecl___elambda__1___closed__1; static lean_object* l_Lean_Parser_Command_declSig_formatter___closed__4; static lean_object* l_Lean_Parser_Command_universe_formatter___closed__1; @@ -3232,6 +3192,7 @@ static lean_object* l_Lean_Parser_Command_openHiding_formatter___closed__1; static lean_object* l_Lean_Parser_Command_structure_formatter___closed__20; static lean_object* l_Lean_Parser_Command_declaration___closed__15; static lean_object* l_Lean_Parser_Command_private_parenthesizer___closed__2; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__30; static lean_object* l_Lean_Parser_Command_declValSimple___closed__3; static lean_object* l_Lean_Parser_Command_optDeriving___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__3; @@ -3260,6 +3221,7 @@ static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__14; static lean_object* l_Lean_Parser_Command_extends_parenthesizer___closed__3; static lean_object* l_Lean_Parser_Command_inductive_formatter___closed__7; static lean_object* l_Lean_Parser_Command_classInductive_formatter___closed__4; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__5; static lean_object* l_Lean_Parser_Term_set__option___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_instance_parenthesizer___closed__6; extern lean_object* l_Lean_Parser_Term_matchAltsWhereDecls; @@ -3272,8 +3234,8 @@ static lean_object* l_Lean_Parser_Command_synth_formatter___closed__3; static lean_object* l_Lean_Parser_Command_inductive_formatter___closed__10; static lean_object* l_Lean_Parser_Command_export___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__13; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__28; static lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__25; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__16; static lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__22; static lean_object* l_Lean_Parser_Command_eraseAttr___closed__1; static lean_object* l___regBuiltin_Lean_Parser_Command_print_formatter___closed__2; @@ -3432,7 +3394,6 @@ lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___boxed(lean_obje static lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_builtin__initialize___elambda__1___closed__4; static lean_object* l_Lean_Parser_Command_partial___elambda__1___closed__4; -static lean_object* l_Lean_Parser_Command_universes___closed__5; static lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__10; static lean_object* l_Lean_Parser_Command_print_parenthesizer___closed__2; static lean_object* l_Lean_Parser_Command_openOnly___closed__3; @@ -3445,6 +3406,7 @@ static lean_object* l_Lean_Parser_Command_example___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__6; static lean_object* l_Lean_Parser_Command_classInductive_parenthesizer___closed__7; static lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__11; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__34; static lean_object* l___regBuiltin_Lean_Parser_Command_genInjectiveTheorems_formatter___closed__1; static lean_object* l_Lean_Parser_Command_instance_parenthesizer___closed__9; static lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__2; @@ -3525,7 +3487,6 @@ static lean_object* l_Lean_Parser_Command_in___closed__7; static lean_object* l_Lean_Parser_Command_declSig___closed__6; lean_object* l_Lean_Parser_Command_print; static lean_object* l_Lean_Parser_Command_abbrev_formatter___closed__1; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__22; static lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__8; static lean_object* l_Lean_Parser_Command_example___elambda__1___closed__12; static lean_object* l_Lean_Parser_Command_namedPrio_parenthesizer___closed__1; @@ -3552,7 +3513,6 @@ static lean_object* l_Lean_Parser_Command_openRenamingItem_formatter___closed__2 lean_object* l_Lean_Parser_Command_structInstBinder_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_abbrev_formatter___closed__4; static lean_object* l_Lean_Parser_Command_universe___closed__5; -static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__24; static lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__2; static lean_object* l_Lean_Parser_Command_check___closed__4; static lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__2; @@ -3570,6 +3530,7 @@ static lean_object* l_Lean_Parser_Term_open___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_initialize___closed__6; static lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__16; static lean_object* l_Lean_Parser_Command_optDeriving___closed__3; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__15; lean_object* l_Lean_Parser_unicodeSymbolFnAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Term_quot_formatter___closed__11; static lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__13; @@ -3589,7 +3550,6 @@ static lean_object* l_Lean_Parser_Command_partial_formatter___closed__1; static lean_object* l_Lean_Parser_Command_openHiding_formatter___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Command_genInjectiveTheorems(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Command_initialize_parenthesizer(lean_object*); -static lean_object* l_Lean_Parser_Command_universes___closed__3; lean_object* l_Lean_Parser_Command_declModifiers_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_deriving___elambda__1___closed__5; static lean_object* l_Lean_Parser_Command_structInstBinder_formatter___closed__4; @@ -3602,7 +3562,6 @@ static lean_object* l_Lean_Parser_Command_eval___closed__7; static lean_object* l_Lean_Parser_Command_openOnly_formatter___closed__3; static lean_object* l_Lean_Parser_Command_attribute_parenthesizer___closed__10; static lean_object* l_Lean_Parser_Command_check___closed__1; -static lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__13; static lean_object* l_Lean_Parser_Command_constant_formatter___closed__5; lean_object* l_Lean_Parser_Command_eval_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_strLit; @@ -3643,7 +3602,6 @@ static lean_object* l_Lean_Parser_Tactic_set__option___elambda__1___closed__9; static lean_object* l_Lean_Parser_Command_declValEqns___closed__5; static lean_object* l_Lean_Parser_Command_openRenamingItem_formatter___closed__1; static lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__9; -lean_object* l_Lean_Parser_Command_universes___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_ppDedent_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_structCtor_formatter___closed__6; static lean_object* l_Lean_Parser_Command_declId_parenthesizer___closed__1; @@ -3668,8 +3626,8 @@ static lean_object* l_Lean_Parser_Command_open_formatter___closed__2; static lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__3; static lean_object* l_Lean_Parser_Command_openRenaming_formatter___closed__6; static lean_object* l_Lean_Parser_Command_openHiding_formatter___closed__2; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__3; static lean_object* l_Lean_Parser_Command_resolve__name_parenthesizer___closed__3; -static lean_object* l_Lean_Parser_Command_universes_formatter___closed__2; static lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__12; lean_object* l___regBuiltinParser_Lean_Parser_Command_synth(lean_object*); lean_object* l_Lean_Parser_Command_classTk_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3683,6 +3641,7 @@ static lean_object* l_Lean_Parser_Command_def_formatter___closed__4; static lean_object* l_Lean_Parser_Command_declModifiers___closed__27; static lean_object* l_Lean_Parser_Command_end___closed__2; static lean_object* l_Lean_Parser_Command_genInjectiveTheorems___closed__3; +static lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__14; static lean_object* l_Lean_Parser_Term_quot___closed__3; lean_object* l_Lean_Parser_Command_declId_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_declModifiers_parenthesizer___closed__18; @@ -32409,13 +32368,15 @@ return x_2; static lean_object* _init_l_Lean_Parser_Command_universe___elambda__1___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universe___elambda__1___closed__8; -x_2 = l_Lean_Parser_Command_declId___elambda__1___closed__28; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__7; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_3 = l_Lean_Parser_Command_universe___elambda__1___closed__8; +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_4, 0, x_3); +lean_closure_set(x_4, 1, x_2); +return x_4; } } static lean_object* _init_l_Lean_Parser_Command_universe___elambda__1___closed__10() { @@ -32477,123 +32438,128 @@ return x_3; lean_object* l_Lean_Parser_Command_universe___elambda__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Command_universe___elambda__1___closed__4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__7; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); +x_5 = l_Lean_Parser_Command_universe___elambda__1___closed__4; +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); lean_inc(x_2); lean_inc(x_1); -x_5 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_5 == 0) +x_7 = l_Lean_Parser_tryAnti(x_1, x_2); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +lean_dec(x_6); +x_8 = lean_unsigned_to_nat(1024u); +x_9 = l_Lean_Parser_checkPrecFn(x_8, x_1, x_2); +x_10 = lean_ctor_get(x_9, 4); +lean_inc(x_10); +x_11 = lean_box(0); +x_12 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_10, x_11); +lean_dec(x_10); +if (x_12 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_dec(x_4); -x_6 = lean_unsigned_to_nat(1024u); -x_7 = l_Lean_Parser_checkPrecFn(x_6, x_1, x_2); -x_8 = lean_ctor_get(x_7, 4); -lean_inc(x_8); -x_9 = lean_box(0); -x_10 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_8, x_9); -lean_dec(x_8); -if (x_10 == 0) -{ lean_dec(x_1); -return x_7; +return x_9; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_11 = lean_ctor_get(x_7, 0); -lean_inc(x_11); -x_12 = lean_array_get_size(x_11); -lean_dec(x_11); -x_13 = l_Lean_Parser_Command_universe___elambda__1___closed__6; -x_14 = l_Lean_Parser_Command_universe___elambda__1___closed__14; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_13 = lean_ctor_get(x_9, 0); +lean_inc(x_13); +x_14 = lean_array_get_size(x_13); +lean_dec(x_13); +x_15 = l_Lean_Parser_Command_universe___elambda__1___closed__6; +x_16 = l_Lean_Parser_Command_universe___elambda__1___closed__14; lean_inc(x_1); -x_15 = l_Lean_Parser_symbolFnAux(x_13, x_14, x_1, x_7); -x_16 = lean_ctor_get(x_15, 4); -lean_inc(x_16); -x_17 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_16, x_9); -lean_dec(x_16); -if (x_17 == 0) +x_17 = l_Lean_Parser_symbolFnAux(x_15, x_16, x_1, x_9); +x_18 = lean_ctor_get(x_17, 4); +lean_inc(x_18); +x_19 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_18, x_11); +lean_dec(x_18); +if (x_19 == 0) { -x_18 = x_15; -goto block_32; +x_20 = x_17; +goto block_34; } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_1, 4); -lean_inc(x_33); -x_34 = lean_unsigned_to_nat(0u); -x_35 = lean_nat_dec_eq(x_33, x_34); -lean_dec(x_33); -if (x_35 == 0) +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_1, 4); +lean_inc(x_35); +x_36 = lean_unsigned_to_nat(0u); +x_37 = lean_nat_dec_eq(x_35, x_36); +lean_dec(x_35); +if (x_37 == 0) { -lean_object* x_36; lean_object* x_37; -x_36 = lean_box(0); +lean_object* x_38; lean_object* x_39; +x_38 = lean_box(0); lean_inc(x_1); -x_37 = l_Lean_Parser_Term_quot___elambda__1___lambda__3(x_15, x_1, x_9, x_36); -x_18 = x_37; -goto block_32; +x_39 = l_Lean_Parser_Term_quot___elambda__1___lambda__3(x_17, x_1, x_11, x_38); +x_20 = x_39; +goto block_34; } else { -x_18 = x_15; -goto block_32; +x_20 = x_17; +goto block_34; } } -block_32: +block_34: { -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_18, 4); -lean_inc(x_19); -x_20 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_19, x_9); -lean_dec(x_19); -if (x_20 == 0) +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 4); +lean_inc(x_21); +x_22 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_21, x_11); +lean_dec(x_21); +if (x_22 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = l_Lean_Parser_Command_universe___elambda__1___closed__2; -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); -x_24 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_23, x_9); -lean_dec(x_23); -if (x_24 == 0) +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_dec(x_4); +x_23 = l_Lean_Parser_Command_universe___elambda__1___closed__2; +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); +x_26 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_25, x_11); +lean_dec(x_25); +if (x_26 == 0) { lean_dec(x_1); -return x_22; +return x_24; } else { -lean_object* x_25; -x_25 = l_Lean_Parser_setLhsPrecFn(x_6, x_1, x_22); +lean_object* x_27; +x_27 = l_Lean_Parser_setLhsPrecFn(x_8, x_1, x_24); lean_dec(x_1); -return x_25; +return x_27; } } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +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_26 = l_Lean_Parser_ident___elambda__1(x_1, x_18); -x_27 = l_Lean_Parser_Command_universe___elambda__1___closed__2; -x_28 = l_Lean_Parser_ParserState_mkNode(x_26, x_27, x_12); -x_29 = lean_ctor_get(x_28, 4); -lean_inc(x_29); -x_30 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_29, x_9); -lean_dec(x_29); -if (x_30 == 0) +x_28 = lean_apply_2(x_4, x_1, x_20); +x_29 = l_Lean_Parser_Command_universe___elambda__1___closed__2; +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); +x_32 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_31, x_11); +lean_dec(x_31); +if (x_32 == 0) { lean_dec(x_1); -return x_28; +return x_30; } else { -lean_object* x_31; -x_31 = l_Lean_Parser_setLhsPrecFn(x_6, x_1, x_28); +lean_object* x_33; +x_33 = l_Lean_Parser_setLhsPrecFn(x_8, x_1, x_30); lean_dec(x_1); -return x_31; +return x_33; } } } @@ -32601,11 +32567,12 @@ return x_31; } else { -lean_object* x_38; uint8_t x_39; lean_object* x_40; -x_38 = l_Lean_Parser_Command_universe___elambda__1___closed__12; -x_39 = 1; -x_40 = l_Lean_Parser_orelseFnCore(x_4, x_38, x_39, x_1, x_2); -return x_40; +lean_object* x_40; uint8_t x_41; lean_object* x_42; +lean_dec(x_4); +x_40 = l_Lean_Parser_Command_universe___elambda__1___closed__12; +x_41 = 1; +x_42 = l_Lean_Parser_orelseFnCore(x_6, x_40, x_41, x_1, x_2); +return x_42; } } } @@ -32622,7 +32589,7 @@ static lean_object* _init_l_Lean_Parser_Command_universe___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_ident; +x_1 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__7; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Command_universe___closed__1; @@ -32743,7 +32710,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Command_universe_formatter___closed__2; -x_2 = l_Lean_Parser_Command_declId_formatter___closed__4; +x_2 = l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -32834,7 +32801,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Command_universe_parenthesizer___closed__2; -x_2 = l_Lean_Parser_Command_declId_parenthesizer___closed__4; +x_2 = l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -32895,579 +32862,6 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("universes"); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_namedPrio___elambda__1___closed__2; -x_2 = l_Lean_Parser_Command_universes___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__1; -x_2 = l_Lean_Parser_Command_universes___elambda__1___closed__3; -x_3 = 1; -x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("universes "); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__5; -x_2 = l_String_trim(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__6; -x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbolFn___boxed), 3, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__7; -x_2 = lean_alloc_closure((void*)(l_Lean_Parser_tokenWithAntiquotFn), 3, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__7; -x_2 = lean_ctor_get(x_1, 1); -lean_inc(x_2); -x_3 = l_Lean_Parser_Command_universes___elambda__1___closed__8; -x_4 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); -lean_closure_set(x_4, 0, x_3); -lean_closure_set(x_4, 1, x_2); -return x_4; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_2 = l_Lean_Parser_Command_universes___elambda__1___closed__9; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__10; -x_2 = l_Lean_Parser_Term_quot___elambda__1___closed__35; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_quot___elambda__1___closed__33; -x_2 = l_Lean_Parser_Command_universes___elambda__1___closed__11; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_quot___elambda__1___lambda__3___closed__6; -x_2 = l_Lean_Parser_Command_universes___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___elambda__1___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__13; -x_2 = l_Lean_Parser_Term_quot___elambda__1___lambda__3___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_Command_universes___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_3 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__7; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -x_5 = l_Lean_Parser_Command_universes___elambda__1___closed__4; -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_inc(x_2); -lean_inc(x_1); -x_7 = l_Lean_Parser_tryAnti(x_1, x_2); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -lean_dec(x_6); -x_8 = lean_unsigned_to_nat(1024u); -x_9 = l_Lean_Parser_checkPrecFn(x_8, x_1, x_2); -x_10 = lean_ctor_get(x_9, 4); -lean_inc(x_10); -x_11 = lean_box(0); -x_12 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_10, x_11); -lean_dec(x_10); -if (x_12 == 0) -{ -lean_dec(x_4); -lean_dec(x_1); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; -x_13 = lean_ctor_get(x_9, 0); -lean_inc(x_13); -x_14 = lean_array_get_size(x_13); -lean_dec(x_13); -x_15 = l_Lean_Parser_Command_universes___elambda__1___closed__6; -x_16 = l_Lean_Parser_Command_universes___elambda__1___closed__14; -lean_inc(x_1); -x_17 = l_Lean_Parser_symbolFnAux(x_15, x_16, x_1, x_9); -x_18 = lean_ctor_get(x_17, 4); -lean_inc(x_18); -x_19 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_18, x_11); -lean_dec(x_18); -if (x_19 == 0) -{ -x_20 = x_17; -goto block_34; -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_1, 4); -lean_inc(x_35); -x_36 = lean_unsigned_to_nat(0u); -x_37 = lean_nat_dec_eq(x_35, x_36); -lean_dec(x_35); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_box(0); -lean_inc(x_1); -x_39 = l_Lean_Parser_Term_quot___elambda__1___lambda__3(x_17, x_1, x_11, x_38); -x_20 = x_39; -goto block_34; -} -else -{ -x_20 = x_17; -goto block_34; -} -} -block_34: -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_20, 4); -lean_inc(x_21); -x_22 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_21, x_11); -lean_dec(x_21); -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_Lean_Parser_Command_universes___elambda__1___closed__2; -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); -x_26 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_25, x_11); -lean_dec(x_25); -if (x_26 == 0) -{ -lean_dec(x_1); -return x_24; -} -else -{ -lean_object* x_27; -x_27 = l_Lean_Parser_setLhsPrecFn(x_8, x_1, x_24); -lean_dec(x_1); -return x_27; -} -} -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_Lean_Parser_Command_universes___elambda__1___closed__2; -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); -x_32 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_631____at_Lean_Parser_ParserState_hasError___spec__1(x_31, x_11); -lean_dec(x_31); -if (x_32 == 0) -{ -lean_dec(x_1); -return x_30; -} -else -{ -lean_object* x_33; -x_33 = l_Lean_Parser_setLhsPrecFn(x_8, x_1, x_30); -lean_dec(x_1); -return x_33; -} -} -} -} -} -else -{ -lean_object* x_40; uint8_t x_41; lean_object* x_42; -lean_dec(x_4); -x_40 = l_Lean_Parser_Command_universes___elambda__1___closed__12; -x_41 = 1; -x_42 = l_Lean_Parser_orelseFnCore(x_6, x_40, x_41, x_1, x_2); -return x_42; -} -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__6; -x_2 = l_Lean_Parser_symbolInfo(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__7; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Command_universes___closed__1; -x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); -return x_4; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_2 = l_Lean_Parser_Command_universes___closed__2; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___closed__3; -x_2 = l_Lean_Parser_epsilonInfo; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Command_universes___closed__4; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__4; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Command_universes___closed__5; -x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_universes___elambda__1), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___closed__6; -x_2 = l_Lean_Parser_Command_universes___closed__7; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Command_universes___closed__8; -return x_1; -} -} -lean_object* l___regBuiltinParser_Lean_Parser_Command_universes(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_2 = l_Lean_Parser_Term_quot___elambda__1___closed__14; -x_3 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_4 = 1; -x_5 = l_Lean_Parser_Command_universes; -x_6 = lean_unsigned_to_nat(1000u); -x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); -return x_7; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_formatter___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__1; -x_2 = l_Lean_Parser_Command_universes___elambda__1___closed__3; -x_3 = 1; -x_4 = lean_box(x_3); -x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_formatter___boxed), 8, 3); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -lean_closure_set(x_5, 2, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_formatter___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__5; -x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_formatter___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes_formatter___closed__2; -x_2 = l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_formatter___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Command_universes_formatter___closed__3; -x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_2); -lean_closure_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Command_universes_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Command_universes_formatter___closed__1; -x_7 = l_Lean_Parser_Command_universes_formatter___closed__4; -x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -static lean_object* _init_l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_2 = l___regBuiltin_Lean_Parser_Term_quot_formatter___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_universes_formatter), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Command_universes_formatter(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_PrettyPrinter_formatterAttribute; -x_3 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__1; -x_5 = l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__2; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__1; -x_2 = l_Lean_Parser_Command_universes___elambda__1___closed__3; -x_3 = 1; -x_4 = lean_box(x_3); -x_5 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___boxed), 8, 3); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -lean_closure_set(x_5, 2, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_parenthesizer___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__5; -x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_parenthesizer___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes_parenthesizer___closed__2; -x_2 = l_Lean_Parser_Command_structExplicitBinder_parenthesizer___closed__4; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Command_universes_parenthesizer___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Command_universes_parenthesizer___closed__3; -x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); -lean_closure_set(x_4, 0, x_1); -lean_closure_set(x_4, 1, x_2); -lean_closure_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* l_Lean_Parser_Command_universes_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Command_universes_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Command_universes_parenthesizer___closed__4; -x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; -} -} -static lean_object* _init_l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_2 = l___regBuiltin_Lean_Parser_Term_quot_parenthesizer___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_universes_parenthesizer), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Command_universes_parenthesizer(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Command_universes___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__1; -x_5 = l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__2; -x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} static lean_object* _init_l_Lean_Parser_Command_check___elambda__1___closed__1() { _start: { @@ -49462,7 +48856,7 @@ x_1 = l_Lean_Parser_Command_ctor___elambda__1___closed__5; return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__1() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -49472,7 +48866,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__2() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -49482,7 +48876,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__3() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__3() { _start: { lean_object* x_1; @@ -49490,17 +48884,17 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_declModifiersF_formatter) return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__4() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__3; +x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__5() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__5() { _start: { lean_object* x_1; @@ -49508,17 +48902,17 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_declModifiersF_parenthesi return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__6() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__5; +x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__7() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__7() { _start: { lean_object* x_1; @@ -49526,17 +48920,17 @@ x_1 = lean_mk_string("nestedDeclModifiers"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__8() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__7; +x_2 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__9() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__9() { _start: { lean_object* x_1; lean_object* x_2; @@ -49546,7 +48940,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__10() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__10() { _start: { lean_object* x_1; @@ -49554,17 +48948,17 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_declModifiersT_formatter) return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__11() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__10; +x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__10; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__12() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__12() { _start: { lean_object* x_1; @@ -49572,17 +48966,17 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_declModifiersT_parenthesi return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__13() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__12; +x_1 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__12; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__14() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -49592,7 +48986,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__15() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -49602,7 +48996,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__16() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -49612,7 +49006,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__17() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__17() { _start: { lean_object* x_1; lean_object* x_2; @@ -49622,7 +49016,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__18() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -49632,7 +49026,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__19() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__19() { _start: { lean_object* x_1; lean_object* x_2; @@ -49642,7 +49036,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__20() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__20() { _start: { lean_object* x_1; lean_object* x_2; @@ -49652,7 +49046,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__21() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__21() { _start: { lean_object* x_1; lean_object* x_2; @@ -49662,7 +49056,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__22() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__22() { _start: { lean_object* x_1; @@ -49670,17 +49064,17 @@ x_1 = lean_mk_string("declVal"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__23() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__22; +x_2 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__24() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__24() { _start: { lean_object* x_1; lean_object* x_2; @@ -49690,7 +49084,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__25() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__25() { _start: { lean_object* x_1; lean_object* x_2; @@ -49700,7 +49094,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__26() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__26() { _start: { lean_object* x_1; lean_object* x_2; @@ -49710,7 +49104,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__27() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -49720,7 +49114,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__28() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__28() { _start: { lean_object* x_1; lean_object* x_2; @@ -49730,7 +49124,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__29() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__29() { _start: { lean_object* x_1; lean_object* x_2; @@ -49740,7 +49134,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__30() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__30() { _start: { lean_object* x_1; lean_object* x_2; @@ -49750,7 +49144,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__31() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__31() { _start: { lean_object* x_1; @@ -49758,17 +49152,17 @@ x_1 = lean_mk_string("openDecl"); return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__32() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__31; +x_2 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__31; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__33() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__33() { _start: { lean_object* x_1; lean_object* x_2; @@ -49778,7 +49172,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__34() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__34() { _start: { lean_object* x_1; lean_object* x_2; @@ -49788,7 +49182,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__35() { +static lean_object* _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__35() { _start: { lean_object* x_1; lean_object* x_2; @@ -49798,13 +49192,13 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684_(lean_object* x_1) { +lean_object* l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Parser_parserAliasesRef; -x_3 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__1; -x_4 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__2; +x_3 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__1; +x_4 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__2; x_5 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -49813,7 +49207,7 @@ x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); x_7 = l_Lean_PrettyPrinter_Formatter_formatterAliasesRef; -x_8 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__4; +x_8 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__4; x_9 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_3, x_8, x_6); if (lean_obj_tag(x_9) == 0) { @@ -49822,7 +49216,7 @@ x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); x_11 = l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef; -x_12 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__6; +x_12 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__6; x_13 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_3, x_12, x_10); if (lean_obj_tag(x_13) == 0) { @@ -49830,8 +49224,8 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__8; -x_16 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__9; +x_15 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__8; +x_16 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__9; x_17 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_15, x_16, x_14); if (lean_obj_tag(x_17) == 0) { @@ -49839,7 +49233,7 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); lean_dec(x_17); -x_19 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__11; +x_19 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__11; x_20 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_15, x_19, x_18); if (lean_obj_tag(x_20) == 0) { @@ -49847,7 +49241,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__13; +x_22 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__13; x_23 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_15, x_22, x_21); if (lean_obj_tag(x_23) == 0) { @@ -49855,8 +49249,8 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); -x_25 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__14; -x_26 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__15; +x_25 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__14; +x_26 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__15; x_27 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_25, x_26, x_24); if (lean_obj_tag(x_27) == 0) { @@ -49864,7 +49258,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); -x_29 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__16; +x_29 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__16; x_30 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_25, x_29, x_28); if (lean_obj_tag(x_30) == 0) { @@ -49872,7 +49266,7 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); -x_32 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__17; +x_32 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__17; x_33 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_25, x_32, x_31); if (lean_obj_tag(x_33) == 0) { @@ -49880,8 +49274,8 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); lean_dec(x_33); -x_35 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__18; -x_36 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__19; +x_35 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__18; +x_36 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__19; x_37 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_35, x_36, x_34); if (lean_obj_tag(x_37) == 0) { @@ -49889,7 +49283,7 @@ lean_object* x_38; lean_object* x_39; lean_object* x_40; x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); -x_39 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__20; +x_39 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__20; x_40 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_35, x_39, x_38); if (lean_obj_tag(x_40) == 0) { @@ -49897,7 +49291,7 @@ lean_object* x_41; lean_object* x_42; lean_object* x_43; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__21; +x_42 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__21; x_43 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_35, x_42, x_41); if (lean_obj_tag(x_43) == 0) { @@ -49905,8 +49299,8 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); -x_45 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__23; -x_46 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__24; +x_45 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__23; +x_46 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__24; x_47 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_45, x_46, x_44); if (lean_obj_tag(x_47) == 0) { @@ -49914,7 +49308,7 @@ 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); -x_49 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__25; +x_49 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__25; x_50 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_45, x_49, x_48); if (lean_obj_tag(x_50) == 0) { @@ -49922,7 +49316,7 @@ lean_object* x_51; lean_object* x_52; lean_object* x_53; x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); lean_dec(x_50); -x_52 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__26; +x_52 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__26; x_53 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_45, x_52, x_51); if (lean_obj_tag(x_53) == 0) { @@ -49930,8 +49324,8 @@ lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); lean_dec(x_53); -x_55 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__27; -x_56 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__28; +x_55 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__27; +x_56 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__28; x_57 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_55, x_56, x_54); if (lean_obj_tag(x_57) == 0) { @@ -49939,7 +49333,7 @@ lean_object* x_58; lean_object* x_59; lean_object* x_60; x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); lean_dec(x_57); -x_59 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__29; +x_59 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__29; x_60 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_55, x_59, x_58); if (lean_obj_tag(x_60) == 0) { @@ -49947,7 +49341,7 @@ lean_object* x_61; lean_object* x_62; lean_object* x_63; x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); lean_dec(x_60); -x_62 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__30; +x_62 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__30; x_63 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_55, x_62, x_61); if (lean_obj_tag(x_63) == 0) { @@ -49955,8 +49349,8 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); lean_dec(x_63); -x_65 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__32; -x_66 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__33; +x_65 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__32; +x_66 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__33; x_67 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_65, x_66, x_64); if (lean_obj_tag(x_67) == 0) { @@ -49964,7 +49358,7 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); lean_dec(x_67); -x_69 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__34; +x_69 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__34; x_70 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_65, x_69, x_68); if (lean_obj_tag(x_70) == 0) { @@ -49972,7 +49366,7 @@ lean_object* x_71; lean_object* x_72; lean_object* x_73; x_71 = lean_ctor_get(x_70, 1); lean_inc(x_71); lean_dec(x_70); -x_72 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__35; +x_72 = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__35; x_73 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_65, x_72, x_71); return x_73; } @@ -57148,85 +56542,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_universe_parenthesizer__ res = l___regBuiltin_Lean_Parser_Command_universe_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_Command_universes___elambda__1___closed__1 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__1); -l_Lean_Parser_Command_universes___elambda__1___closed__2 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__2); -l_Lean_Parser_Command_universes___elambda__1___closed__3 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__3(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__3); -l_Lean_Parser_Command_universes___elambda__1___closed__4 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__4); -l_Lean_Parser_Command_universes___elambda__1___closed__5 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__5); -l_Lean_Parser_Command_universes___elambda__1___closed__6 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__6); -l_Lean_Parser_Command_universes___elambda__1___closed__7 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__7); -l_Lean_Parser_Command_universes___elambda__1___closed__8 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__8(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__8); -l_Lean_Parser_Command_universes___elambda__1___closed__9 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__9(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__9); -l_Lean_Parser_Command_universes___elambda__1___closed__10 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__10(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__10); -l_Lean_Parser_Command_universes___elambda__1___closed__11 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__11(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__11); -l_Lean_Parser_Command_universes___elambda__1___closed__12 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__12(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__12); -l_Lean_Parser_Command_universes___elambda__1___closed__13 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__13(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__13); -l_Lean_Parser_Command_universes___elambda__1___closed__14 = _init_l_Lean_Parser_Command_universes___elambda__1___closed__14(); -lean_mark_persistent(l_Lean_Parser_Command_universes___elambda__1___closed__14); -l_Lean_Parser_Command_universes___closed__1 = _init_l_Lean_Parser_Command_universes___closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__1); -l_Lean_Parser_Command_universes___closed__2 = _init_l_Lean_Parser_Command_universes___closed__2(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__2); -l_Lean_Parser_Command_universes___closed__3 = _init_l_Lean_Parser_Command_universes___closed__3(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__3); -l_Lean_Parser_Command_universes___closed__4 = _init_l_Lean_Parser_Command_universes___closed__4(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__4); -l_Lean_Parser_Command_universes___closed__5 = _init_l_Lean_Parser_Command_universes___closed__5(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__5); -l_Lean_Parser_Command_universes___closed__6 = _init_l_Lean_Parser_Command_universes___closed__6(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__6); -l_Lean_Parser_Command_universes___closed__7 = _init_l_Lean_Parser_Command_universes___closed__7(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__7); -l_Lean_Parser_Command_universes___closed__8 = _init_l_Lean_Parser_Command_universes___closed__8(); -lean_mark_persistent(l_Lean_Parser_Command_universes___closed__8); -l_Lean_Parser_Command_universes = _init_l_Lean_Parser_Command_universes(); -lean_mark_persistent(l_Lean_Parser_Command_universes); -res = l___regBuiltinParser_Lean_Parser_Command_universes(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Command_universes_formatter___closed__1 = _init_l_Lean_Parser_Command_universes_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_universes_formatter___closed__1); -l_Lean_Parser_Command_universes_formatter___closed__2 = _init_l_Lean_Parser_Command_universes_formatter___closed__2(); -lean_mark_persistent(l_Lean_Parser_Command_universes_formatter___closed__2); -l_Lean_Parser_Command_universes_formatter___closed__3 = _init_l_Lean_Parser_Command_universes_formatter___closed__3(); -lean_mark_persistent(l_Lean_Parser_Command_universes_formatter___closed__3); -l_Lean_Parser_Command_universes_formatter___closed__4 = _init_l_Lean_Parser_Command_universes_formatter___closed__4(); -lean_mark_persistent(l_Lean_Parser_Command_universes_formatter___closed__4); -l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__1); -l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__2 = _init_l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_universes_formatter___closed__2); -res = l___regBuiltin_Lean_Parser_Command_universes_formatter(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Command_universes_parenthesizer___closed__1 = _init_l_Lean_Parser_Command_universes_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_universes_parenthesizer___closed__1); -l_Lean_Parser_Command_universes_parenthesizer___closed__2 = _init_l_Lean_Parser_Command_universes_parenthesizer___closed__2(); -lean_mark_persistent(l_Lean_Parser_Command_universes_parenthesizer___closed__2); -l_Lean_Parser_Command_universes_parenthesizer___closed__3 = _init_l_Lean_Parser_Command_universes_parenthesizer___closed__3(); -lean_mark_persistent(l_Lean_Parser_Command_universes_parenthesizer___closed__3); -l_Lean_Parser_Command_universes_parenthesizer___closed__4 = _init_l_Lean_Parser_Command_universes_parenthesizer___closed__4(); -lean_mark_persistent(l_Lean_Parser_Command_universes_parenthesizer___closed__4); -l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__1); -l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__2 = _init_l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_universes_parenthesizer___closed__2); -res = l___regBuiltin_Lean_Parser_Command_universes_parenthesizer(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Parser_Command_check___elambda__1___closed__1 = _init_l_Lean_Parser_Command_check___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_check___elambda__1___closed__1); l_Lean_Parser_Command_check___elambda__1___closed__2 = _init_l_Lean_Parser_Command_check___elambda__1___closed__2(); @@ -59446,77 +58761,77 @@ l_Lean_Parser_Command_declModifiersF = _init_l_Lean_Parser_Command_declModifiers lean_mark_persistent(l_Lean_Parser_Command_declModifiersF); l_Lean_Parser_Command_declModifiersT = _init_l_Lean_Parser_Command_declModifiersT(); lean_mark_persistent(l_Lean_Parser_Command_declModifiersT); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__1 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__1); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__2 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__2(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__2); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__3 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__3(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__3); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__4 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__4(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__4); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__5 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__5(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__5); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__6 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__6(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__6); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__7 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__7(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__7); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__8 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__8(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__8); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__9 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__9(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__9); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__10 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__10(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__10); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__11 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__11(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__11); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__12 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__12(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__12); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__13 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__13(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__13); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__14 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__14(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__14); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__15 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__15(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__15); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__16 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__16(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__16); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__17 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__17(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__17); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__18 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__18(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__18); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__19 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__19(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__19); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__20 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__20(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__20); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__21 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__21(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__21); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__22 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__22(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__22); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__23 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__23(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__23); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__24 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__24(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__24); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__25 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__25(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__25); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__26 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__26(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__26); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__27 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__27(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__27); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__28 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__28(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__28); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__29 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__29(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__29); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__30 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__30(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__30); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__31 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__31(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__31); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__32 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__32(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__32); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__33 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__33(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__33); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__34 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__34(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__34); -l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__35 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__35(); -lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684____closed__35); -res = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1684_(lean_io_mk_world()); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__1 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__1(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__1); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__2 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__2(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__2); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__3 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__3(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__3); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__4 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__4(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__4); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__5 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__5(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__5); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__6 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__6(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__6); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__7 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__7(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__7); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__8 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__8(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__8); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__9 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__9(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__9); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__10 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__10(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__10); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__11 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__11(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__11); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__12 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__12(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__12); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__13 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__13(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__13); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__14 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__14(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__14); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__15 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__15(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__15); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__16 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__16(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__16); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__17 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__17(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__17); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__18 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__18(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__18); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__19 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__19(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__19); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__20 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__20(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__20); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__21 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__21(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__21); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__22 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__22(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__22); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__23 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__23(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__23); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__24 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__24(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__24); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__25 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__25(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__25); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__26 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__26(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__26); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__27 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__27(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__27); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__28 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__28(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__28); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__29 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__29(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__29); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__30 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__30(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__30); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__31 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__31(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__31); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__32 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__32(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__32); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__33 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__33(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__33); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__34 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__34(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__34); +l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__35 = _init_l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__35(); +lean_mark_persistent(l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667____closed__35); +res = l_Lean_Parser_Command_initFn____x40_Lean_Parser_Command___hyg_1667_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Parser_Term_open___elambda__1___closed__1 = _init_l_Lean_Parser_Term_open___elambda__1___closed__1(); diff --git a/stage0/stdlib/Std/Data/RBMap.c b/stage0/stdlib/Std/Data/RBMap.c index 1faefe018a..7fdf82b87e 100644 --- a/stage0/stdlib/Std/Data/RBMap.c +++ b/stage0/stdlib/Std/Data/RBMap.c @@ -83,7 +83,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Std_RBMap_max_x21___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_instReprRBMap___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_RBMap_find_x21___rarg___closed__3; -lean_object* l_Std_RBMap_max_x21_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_balRight_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_balance2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_revFold___rarg(lean_object*, lean_object*, lean_object*); @@ -279,7 +278,6 @@ lean_object* l_Std_RBMap_foldM(lean_object*, lean_object*, lean_object*, lean_ob lean_object* l_Std_RBNode_fold___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_isEmpty(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_lowerBound_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBMap_max_x21_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBMap_max___rarg(lean_object*); lean_object* l_Std_RBNode_foldM___at_Std_RBMap_forM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -21878,37 +21876,6 @@ lean_dec(x_3); return x_4; } } -lean_object* l_Std_RBMap_max_x21_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_Std_RBMap_max_x21_match__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_Std_RBMap_max_x21_match__1___rarg), 3, 0); -return x_4; -} -} static lean_object* _init_l_Std_RBMap_max_x21___rarg___closed__1() { _start: {