diff --git a/stage0/src/Init/System/IO.lean b/stage0/src/Init/System/IO.lean index 69c437031f..1e62b8e42d 100644 --- a/stage0/src/Init/System/IO.lean +++ b/stage0/src/Init/System/IO.lean @@ -665,13 +665,12 @@ universe u namespace Lean -set_option linter.unusedVariables.funArgs false in /-- Typeclass used for presenting the output of an `#eval` command. -/ class Eval (α : Type u) where -- We default `hideUnit` to `true`, but set it to `false` in the direct call from `#eval` -- so that `()` output is hidden in chained instances such as for some `IO Unit`. -- We take `Unit → α` instead of `α` because ‵α` may contain effectful debugging primitives (e.g., `dbg_trace`) - eval : (Unit → α) → forall (hideUnit : optParam Bool true), IO Unit + eval : (Unit → α) → (hideUnit : Bool := true) → IO Unit instance [ToString α] : Eval α where eval a _ := IO.println (toString (a ())) diff --git a/stage0/src/Lean/Elab.lean b/stage0/src/Lean/Elab.lean index cfb880690f..a78a1eb8ef 100644 --- a/stage0/src/Lean/Elab.lean +++ b/stage0/src/Lean/Elab.lean @@ -41,3 +41,4 @@ import Lean.Elab.Mixfix import Lean.Elab.MacroRules import Lean.Elab.BuiltinCommand import Lean.Elab.RecAppSyntax +import Lean.Elab.Eval diff --git a/stage0/src/Lean/Elab/BuiltinCommand.lean b/stage0/src/Lean/Elab/BuiltinCommand.lean index 6db18e4182..63474f773e 100644 --- a/stage0/src/Lean/Elab/BuiltinCommand.lean +++ b/stage0/src/Lean/Elab/BuiltinCommand.lean @@ -324,6 +324,7 @@ unsafe def elabEvalUnsafe : CommandElab let elabEvalTerm : TermElabM Expr := do let e ← Term.elabTerm term none Term.synthesizeSyntheticMVarsNoPostponing + if (← Term.logUnassignedUsingErrorInfos (← getMVars e)) then throwAbortTerm if (← isProp e) then mkDecide e else diff --git a/stage0/src/Lean/Elab/Do.lean b/stage0/src/Lean/Elab/Do.lean index 367bac9a98..52ff3f37bc 100644 --- a/stage0/src/Lean/Elab/Do.lean +++ b/stage0/src/Lean/Elab/Do.lean @@ -90,36 +90,39 @@ structure ExtractMonadResult where α : Expr expectedType : Expr +private def mkUnknownMonadResult : MetaM ExtractMonadResult := do + let u ← mkFreshLevelMVar + let v ← mkFreshLevelMVar + let m ← mkFreshExprMVar (← mkArrow (mkSort (mkLevelSucc u)) (mkSort (mkLevelSucc v))) + let α ← mkFreshExprMVar (mkSort (mkLevelSucc u)) + return { m, α, expectedType := mkApp m α } + private partial def extractBind (expectedType? : Option Expr) : TermElabM ExtractMonadResult := do - match expectedType? with - | none => throwError "invalid 'do' notation, expected type is not available" - | some expectedType => - let extractStep? (type : Expr) : MetaM (Option ExtractMonadResult) := do - match type with - | Expr.app m α _ => - try - let bindInstType ← mkAppM ``Bind #[m] - let _ ← Meta.synthInstance bindInstType - return some { m := m, α := α, expectedType := expectedType } - catch _ => - return none - | _ => - return none - let rec extract? (type : Expr) : MetaM (Option ExtractMonadResult) := do - match (← extractStep? type) with - | some r => return r - | none => - let typeNew ← whnfCore type - if typeNew != type then - extract? typeNew - else - if typeNew.getAppFn.isMVar then throwError "invalid 'do' notation, expected type is not available" - match (← unfoldDefinition? typeNew) with + let some expectedType := expectedType? | mkUnknownMonadResult + let extractStep? (type : Expr) : MetaM (Option ExtractMonadResult) := do + let .app m α _ := type | return none + try + let bindInstType ← mkAppM ``Bind #[m] + discard <| Meta.synthInstance bindInstType + return some { m, α, expectedType } + catch _ => + return none + let rec extract? (type : Expr) : MetaM (Option ExtractMonadResult) := do + match (← extractStep? type) with + | some r => return r + | none => + let typeNew ← whnfCore type + if typeNew != type then + extract? typeNew + else + if typeNew.getAppFn.isMVar then + mkUnknownMonadResult + else match (← unfoldDefinition? typeNew) with | some typeNew => extract? typeNew | none => return none - match (← extract? expectedType) with - | some r => return r - | none => throwError "invalid 'do' notation, expected type is not a monad application{indentExpr expectedType}\nYou can use the `do` notation in pure code by writing `Id.run do` instead of `do`, where `Id` is the identity monad." + match (← extract? expectedType) with + | some r => return r + | none => throwError "invalid 'do' notation, expected type is not a monad application{indentExpr expectedType}\nYou can use the `do` notation in pure code by writing `Id.run do` instead of `do`, where `Id` is the identity monad." namespace Do diff --git a/stage0/src/Lean/Elab/Eval.lean b/stage0/src/Lean/Elab/Eval.lean new file mode 100644 index 0000000000..4c3682bc97 --- /dev/null +++ b/stage0/src/Lean/Elab/Eval.lean @@ -0,0 +1,19 @@ +/- +Copyright (c) 2022 Sebastian Ullrich. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Sebastian Ullrich +-/ +import Lean.Meta.Eval +import Lean.Elab.SyntheticMVars + +namespace Lean.Elab.Term +open Meta + +unsafe def evalTerm (α) (type : Expr) (value : Syntax) (safety := DefinitionSafety.safe) : TermElabM α := do + let v ← elabTermEnsuringType value type + synthesizeSyntheticMVarsNoPostponing + let v ← instantiateMVars v + if (← logUnassignedUsingErrorInfos (← getMVars v)) then throwAbortTerm + evalExpr α type v safety + +end Lean.Elab.Term diff --git a/stage0/src/Lean/Elab/MacroArgUtil.lean b/stage0/src/Lean/Elab/MacroArgUtil.lean index 1596aa2b26..6b051e4dd3 100644 --- a/stage0/src/Lean/Elab/MacroArgUtil.lean +++ b/stage0/src/Lean/Elab/MacroArgUtil.lean @@ -18,7 +18,7 @@ partial def expandMacroArg (stx : TSyntax ``macroArg) : CommandElabM (TSyntax `s | _ => throwUnsupportedSyntax mkSyntaxAndPat id? id stx where - mkSyntaxAndPat id? id stx := do + mkSyntaxAndPat (id? : Option Ident) (id : Term) (stx : TSyntax `stx) := do let pat ← match stx with | `(stx| $s:str) => pure ⟨mkNode `token_antiquot #[← liftMacroM <| strLitToPattern s, mkAtom "%", mkAtom "$", id]⟩ | `(stx| &$s:str) => pure ⟨mkNode `token_antiquot #[← liftMacroM <| strLitToPattern s, mkAtom "%", mkAtom "$", id]⟩ @@ -33,14 +33,16 @@ where | `(stx| interpolatedStr(term)) => pure ⟨Syntax.mkAntiquotNode interpolatedStrKind id⟩ -- bind through withPosition | `(stx| withPosition($stx)) => - return (← mkSyntaxAndPat id? id stx) + let (stx, pat) ← mkSyntaxAndPat id? id stx + let stx ← `(stx| withPosition($stx)) + return (stx, pat) | _ => match id? with -- if there is a binding, we assume the user knows what they are doing | some id => mkAntiquotNode stx id -- otherwise `group` the syntax to enforce arity 1, e.g. for `noWs` | none => return (← `(stx| group($stx)), (← mkAntiquotNode stx id)) pure (stx, pat) - mkSplicePat kind stx id suffix : CommandElabM Term := + mkSplicePat (kind : SyntaxNodeKind) (stx : TSyntax `stx) (id : Term) (suffix : String) : CommandElabM Term := return ⟨mkNullNode #[mkAntiquotSuffixSpliceNode kind (← mkAntiquotNode stx id) suffix]⟩ mkAntiquotNode : TSyntax `stx → Term → CommandElabM Term | `(stx| ($stx)), term => mkAntiquotNode stx term diff --git a/stage0/src/Lean/Elab/Tactic/Config.lean b/stage0/src/Lean/Elab/Tactic/Config.lean index 1e58147578..575395564d 100644 --- a/stage0/src/Lean/Elab/Tactic/Config.lean +++ b/stage0/src/Lean/Elab/Tactic/Config.lean @@ -3,6 +3,7 @@ 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.Meta.Eval import Lean.Elab.Tactic.Basic import Lean.Elab.SyntheticMVars @@ -10,7 +11,7 @@ namespace Lean.Elab.Tactic open Meta macro "declare_config_elab" elabName:ident type:ident : command => `(unsafe def evalUnsafe (e : Expr) : TermElabM $type := - Term.evalExpr $type ``$type e + Meta.evalExpr' (safety := .unsafe) $type ``$type e @[implementedBy evalUnsafe] opaque eval (e : Expr) : TermElabM $type def $elabName (optConfig : Syntax) : TermElabM $type := do if optConfig.isNone then diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index 81d7bd0b7e..d6fc847a3c 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -1582,22 +1582,6 @@ instance [MetaEval α] : MetaEval (TermElabM α) where (← Core.getMessageLog).forM fun msg => do IO.println (← msg.toString) MetaEval.eval env opts (hideUnit := true) <| x.run' {} -unsafe def evalExpr (α) (typeName : Name) (value : Expr) : TermElabM α := - withoutModifyingEnv do - let name ← mkFreshUserName `_tmp - let type ← inferType value - let type ← whnfD type - unless type.isConstOf typeName do - throwError "unexpected type at evalExpr{indentExpr type}" - let decl := Declaration.defnDecl { - name, levelParams := [], type - value, hints := ReducibilityHints.opaque, - safety := .unsafe - } - ensureNoUnassignedMVars decl - addAndCompile decl - evalConst α name - /-- Execute `x` and then tries to solve pending universe constraints. Note that, stuck constraints will not be discarded. diff --git a/stage0/src/Lean/Meta.lean b/stage0/src/Lean/Meta.lean index 4d7509d010..0b70d2aca7 100644 --- a/stage0/src/Lean/Meta.lean +++ b/stage0/src/Lean/Meta.lean @@ -42,3 +42,4 @@ import Lean.Meta.Eqns import Lean.Meta.CasesOn import Lean.Meta.ExprLens import Lean.Meta.ExprTraverse +import Lean.Meta.Eval diff --git a/stage0/src/Lean/Meta/Eval.lean b/stage0/src/Lean/Meta/Eval.lean new file mode 100644 index 0000000000..a93853130a --- /dev/null +++ b/stage0/src/Lean/Meta/Eval.lean @@ -0,0 +1,34 @@ +/- +Copyright (c) 2022 Sebastian Ullrich. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Sebastian Ullrich, Leonardo de Moura +-/ +import Lean.Meta.Check + +namespace Lean.Meta + +unsafe def evalExprCore (α) (value : Expr) (checkType : Expr → MetaM Unit) (safety := DefinitionSafety.safe) : MetaM α := + withoutModifyingEnv do + let name ← mkFreshUserName `_tmp + let type ← inferType value + checkType type + let decl := Declaration.defnDecl { + name, levelParams := [], type + value, hints := ReducibilityHints.opaque, + safety + } + addAndCompile decl + evalConst α name + +unsafe def evalExpr' (α) (typeName : Name) (value : Expr) (safety := DefinitionSafety.safe) : MetaM α := + evalExprCore (safety := safety) α value fun type => do + let type ← whnfD type + unless type.isConstOf typeName do + throwError "unexpected type at evalExpr{indentExpr type}" + +unsafe def evalExpr (α) (expectedType : Expr) (value : Expr) (safety := DefinitionSafety.safe) : MetaM α := + evalExprCore (safety := safety) α value fun type => do + unless ← isDefEq type expectedType do + throwError "unexpected type at `evalExpr` {← mkHasTypeButIsExpectedMsg type expectedType}" + +end Lean.Meta diff --git a/stage0/src/Lean/Server/AsyncList.lean b/stage0/src/Lean/Server/AsyncList.lean index f699fab589..c24cb5a945 100644 --- a/stage0/src/Lean/Server/AsyncList.lean +++ b/stage0/src/Lean/Server/AsyncList.lean @@ -11,11 +11,11 @@ namespace IO universe u v /-- An async IO list is like a lazy list but instead of being *unevaluated* `Thunk`s, -lazy tails are `Task`s *being evaluated asynchronously*. A tail can signal the end +`delayed` suffixes are `Task`s *being evaluated asynchronously*. A delayed suffix can signal the end of computation (successful or due to a failure) with a terminating value of type `ε`. -/ inductive AsyncList (ε : Type u) (α : Type v) where | cons (hd : α) (tl : AsyncList ε α) - | asyncTail (tl : Task $ Except ε $ AsyncList ε α) + | delayed (tl : Task $ Except ε $ AsyncList ε α) | nil namespace AsyncList @@ -25,7 +25,7 @@ instance : Inhabited (AsyncList ε α) := ⟨nil⟩ -- TODO(WN): tail-recursion without forcing sync? partial def append : AsyncList ε α → AsyncList ε α → AsyncList ε α | cons hd tl, s => cons hd (append tl s) - | asyncTail ttl, s => asyncTail (ttl.map $ Except.map (append · s)) + | delayed ttl, s => delayed (ttl.map $ Except.map (append · s)) | nil, s => s instance : Append (AsyncList ε α) := ⟨append⟩ @@ -48,10 +48,10 @@ partial def unfoldAsync (f : StateT σ (EIO ε) $ Option α) (init : σ) | none => return nil | some aNext => do let tNext ← EIO.asTask (step sNext) - return cons aNext $ asyncTail tNext + return cons aNext $ delayed tNext let tInit ← EIO.asTask (step init) - return asyncTail tInit + return delayed tInit /-- The computed, synchronous list. If an async tail was present, returns also its terminating value. -/ @@ -60,7 +60,7 @@ partial def getAll : AsyncList ε α → List α × Option ε let ⟨l, e?⟩ := tl.getAll ⟨hd :: l, e?⟩ | nil => ⟨[], none⟩ - | asyncTail tl => + | delayed tl => match tl.get with | Except.ok tl => tl.getAll | Except.error e => ⟨[], some e⟩ @@ -74,7 +74,7 @@ partial def waitAll (p : α → Bool := fun _ => true) : AsyncList ε α → Bas else return Task.pure ⟨[hd], none⟩ | nil => return Task.pure ⟨[], none⟩ - | asyncTail tl => do + | delayed tl => do BaseIO.bindTask tl fun | Except.ok tl => tl.waitAll p | Except.error e => return Task.pure ⟨[], some e⟩ @@ -87,33 +87,23 @@ partial def waitFind? (p : α → Bool) : AsyncList ε α → BaseIO (Task $ Exc | cons hd tl => do if p hd then return Task.pure <| Except.ok <| some hd else tl.waitFind? p - | asyncTail tl => do + | delayed tl => do BaseIO.bindTask tl fun | Except.ok tl => tl.waitFind? p | Except.error e => return Task.pure <| Except.error e -/-- Extends the `finishedPrefix` as far as possible. If computation was ongoing -and has finished, also returns the terminating value. -/ -partial def updateFinishedPrefix : AsyncList ε α → BaseIO (AsyncList ε α × Option ε) +/-- Retrieve the already-computed prefix of the list. If computation has finished with an error, return it as well. -/ +partial def getFinishedPrefix : AsyncList ε α → BaseIO (List α × Option ε) | cons hd tl => do - let ⟨tl, e?⟩ ← tl.updateFinishedPrefix - pure ⟨cons hd tl, e?⟩ - | nil => pure ⟨nil, none⟩ - | l@(asyncTail tl) => do + let ⟨tl, e?⟩ ← tl.getFinishedPrefix + pure ⟨hd :: tl, e?⟩ + | nil => pure ⟨[], none⟩ + | delayed tl => do if (← hasFinished tl) then match tl.get with - | Except.ok tl => tl.updateFinishedPrefix - | Except.error e => pure ⟨nil, some e⟩ - else pure ⟨l, none⟩ - -private partial def finishedPrefixAux : List α → AsyncList ε α → List α - | acc, cons hd tl => finishedPrefixAux (hd :: acc) tl - | acc, nil => acc - | acc, asyncTail _ => acc - -/-- The longest already-computed prefix of the list. -/ -def finishedPrefix : AsyncList ε α → List α := - List.reverse ∘ (finishedPrefixAux []) + | Except.ok tl => tl.getFinishedPrefix + | Except.error e => pure ⟨[], some e⟩ + else pure ⟨[], none⟩ def waitHead? (as : AsyncList ε α) : BaseIO (Task (Except ε (Option α))) := as.waitFind? (fun _ => true) diff --git a/stage0/src/Lean/Server/Completion.lean b/stage0/src/Lean/Server/Completion.lean index 2e208a1183..872806df0d 100644 --- a/stage0/src/Lean/Server/Completion.lean +++ b/stage0/src/Lean/Server/Completion.lean @@ -315,12 +315,22 @@ private def idCompletion (ctx : ContextInfo) (lctx : LocalContext) (id : Name) ( runM ctx lctx do idCompletionCore ctx id hoverInfo danglingDot expectedType? +private def unfoldeDefinitionGuarded? (e : Expr) : MetaM (Option Expr) := + try unfoldDefinition? e catch _ => pure none + +/-- Return `true` if `e` is a `declName`-application, or can be unfolded (delta-reduced) to one. -/ +private partial def isDefEqToAppOf (e : Expr) (declName : Name) : MetaM Bool := do + if e.getAppFn.isConstOf declName then + return true + let some e ← unfoldeDefinitionGuarded? e | return false + isDefEqToAppOf e declName + private def isDotCompletionMethod (typeName : Name) (info : ConstantInfo) : MetaM Bool := forallTelescopeReducing info.type fun xs _ => do for x in xs do let localDecl ← getLocalDecl x.fvarId! let type := localDecl.type.consumeMData - if type.getAppFn.isConstOf typeName then + if (← isDefEqToAppOf type typeName) then return true return false @@ -332,17 +342,13 @@ private partial def getDotCompletionTypeNames (type : Expr) : MetaM NameSet := return (← visit type |>.run {}).2 where visit (type : Expr) : StateRefT NameSet MetaM Unit := do - match type.getAppFn with - | Expr.const typeName .. => - modify fun s => s.insert typeName - if isStructure (← getEnv) typeName then - for parentName in getAllParentStructures (← getEnv) typeName do - modify fun s => s.insert parentName - let type? ← try unfoldDefinition? type catch _ => pure none - match type? with - | some type => visit type - | none => pure () - | _ => pure () + let .const typeName _ _ := type.getAppFn | return () + modify fun s => s.insert typeName + if isStructure (← getEnv) typeName then + for parentName in getAllParentStructures (← getEnv) typeName do + modify fun s => s.insert parentName + let some type ← unfoldeDefinitionGuarded? type | return () + visit type private def dotCompletion (ctx : ContextInfo) (info : TermInfo) (hoverInfo : HoverInfo) (expectedType? : Option Expr) : IO (Option CompletionList) := runM ctx info.lctx do diff --git a/stage0/src/Lean/Server/FileWorker.lean b/stage0/src/Lean/Server/FileWorker.lean index ef9db23339..2e122cf973 100644 --- a/stage0/src/Lean/Server/FileWorker.lean +++ b/stage0/src/Lean/Server/FileWorker.lean @@ -257,7 +257,7 @@ section Initialization let cmdSnaps ← EIO.mapTask (t := headerTask) (match · with | Except.ok (s, _) => unfoldCmdSnaps meta #[s] cancelTk ctx | Except.error e => throw (e : ElabTaskError)) - let doc : EditableDocument := ⟨meta, AsyncList.asyncTail cmdSnaps, cancelTk⟩ + let doc : EditableDocument := ⟨meta, AsyncList.delayed cmdSnaps, cancelTk⟩ return (ctx, { doc := doc pendingRequests := RBMap.empty @@ -288,10 +288,10 @@ section Updates oldDoc.cancelTk.set let changePos := oldDoc.meta.text.source.firstDiffPos newMeta.text.source -- Ignore exceptions, we are only interested in the successful snapshots - let (cmdSnaps, _) ← oldDoc.cmdSnaps.updateFinishedPrefix + let (cmdSnaps, _) ← oldDoc.cmdSnaps.getFinishedPrefix -- NOTE(WN): we invalidate eagerly as `endPos` consumes input greedily. To re-elaborate only -- when really necessary, we could do a whitespace-aware `Syntax` comparison instead. - let mut validSnaps := cmdSnaps.finishedPrefix.takeWhile (fun s => s.endPos < changePos) + let mut validSnaps := cmdSnaps.takeWhile (fun s => s.endPos < changePos) if validSnaps.length ≤ 1 then validSnaps := [newHeaderSnap] else @@ -308,7 +308,7 @@ section Updates if newLastStx != lastSnap.stx then validSnaps := validSnaps.dropLast unfoldCmdSnaps newMeta validSnaps.toArray cancelTk ctx - modify fun st => { st with doc := ⟨newMeta, AsyncList.asyncTail newSnaps, cancelTk⟩ } + modify fun st => { st with doc := ⟨newMeta, AsyncList.delayed newSnaps, cancelTk⟩ } end Updates /- Notifications are handled in the main thread. They may change global worker state diff --git a/stage0/src/Lean/Server/FileWorker/RequestHandling.lean b/stage0/src/Lean/Server/FileWorker/RequestHandling.lean index 59bec0e1df..5c8a942c15 100644 --- a/stage0/src/Lean/Server/FileWorker/RequestHandling.lean +++ b/stage0/src/Lean/Server/FileWorker/RequestHandling.lean @@ -226,8 +226,8 @@ partial def handleDocumentHighlight (p : DocumentHighlightParams) withWaitFindSnap doc (fun s => s.endPos > pos) (notFoundX := pure #[]) fun snap => do - let (snaps, _) ← doc.cmdSnaps.updateFinishedPrefix - if let some his := highlightRefs? snaps.finishedPrefix.toArray then + let (snaps, _) ← doc.cmdSnaps.getFinishedPrefix + if let some his := highlightRefs? snaps.toArray then return his if let some hi := highlightReturn? none snap.stx then return #[hi] @@ -238,8 +238,8 @@ partial def handleDocumentSymbol (_ : DocumentSymbolParams) : RequestM (RequestTask DocumentSymbolResult) := do let doc ← readDoc mapTask (← doc.cmdSnaps.waitHead?) fun _ => do - let ⟨cmdSnaps, e?⟩ ← doc.cmdSnaps.updateFinishedPrefix - let mut stxs := cmdSnaps.finishedPrefix.map (·.stx) + let ⟨cmdSnaps, e?⟩ ← doc.cmdSnaps.getFinishedPrefix + let mut stxs := cmdSnaps.map (·.stx) match e? with | some ElabTaskError.aborted => throw RequestError.fileChanged @@ -247,7 +247,7 @@ partial def handleDocumentSymbol (_ : DocumentSymbolParams) throw (e : RequestError) | _ => pure () - let lastSnap := cmdSnaps.finishedPrefix.getLast! -- see `waitHead?` above + let lastSnap := cmdSnaps.getLast! -- see `waitHead?` above stxs := stxs ++ (← parseAhead doc.meta.mkInputContext lastSnap).toList let (syms, _) := toDocumentSymbols doc.meta.text stxs return { syms := syms.toArray } diff --git a/stage0/src/Lean/Server/Rpc/Deriving.lean b/stage0/src/Lean/Server/Rpc/Deriving.lean index d4173b4d04..da20786541 100644 --- a/stage0/src/Lean/Server/Rpc/Deriving.lean +++ b/stage0/src/Lean/Server/Rpc/Deriving.lean @@ -293,7 +293,7 @@ private unsafe def dispatchDeriveInstanceUnsafe (declNames : Array Name) (args? liftTermElabM (some n) do let argsT := mkConst ``DerivingParams let args ← elabTerm args argsT - evalExpr DerivingParams ``DerivingParams args + evalExpr' DerivingParams ``DerivingParams args else pure {} if args.withRef then deriveWithRefInstance declNames[0] diff --git a/stage0/src/library/compiler/lcnf.cpp b/stage0/src/library/compiler/lcnf.cpp index 0459e38cde..af2af42452 100644 --- a/stage0/src/library/compiler/lcnf.cpp +++ b/stage0/src/library/compiler/lcnf.cpp @@ -362,7 +362,9 @@ public: minor = args[3]; else minor = args[4]; - return visit(mk_app(minor, pr_a, pr_b), root); + expr new_e = mk_app(minor, pr_a, pr_b); + new_e = mk_app(new_e, args.size() - 5, args.data() + 5); + return visit(new_e, root); } } diff --git a/stage0/src/runtime/object.cpp b/stage0/src/runtime/object.cpp index 77ff85853c..2c7dfd2119 100644 --- a/stage0/src/runtime/object.cpp +++ b/stage0/src/runtime/object.cpp @@ -20,6 +20,11 @@ Author: Leonardo de Moura #include "runtime/interrupt.h" #include "runtime/buffer.h" +#ifdef __GLIBC__ +#include +#include +#endif + // see `Task.Priority.max` #define LEAN_MAX_PRIO 8 @@ -66,7 +71,20 @@ extern "C" LEAN_EXPORT object * lean_panic_fn(object * default_val, object * msg // TODO(Leo, Kha): add thread local buffer for interpreter. if (g_panic_messages) { std::cerr << lean_string_cstr(msg) << "\n"; +#ifdef __GLIBC__ + char * bt_env = getenv("LEAN_BACKTRACE"); + if (!bt_env || strcmp(bt_env, "0") != 0) { + std::cerr << "backtrace:\n"; + void * bt_buf[100]; + int nptrs = backtrace(bt_buf, sizeof(bt_buf)); + backtrace_symbols_fd(bt_buf, nptrs, STDERR_FILENO); + if (nptrs == sizeof(bt_buf)) { + std::cerr << "...\n"; + } + } +#endif } + abort_on_panic(); if (g_exit_on_panic) { std::exit(1); diff --git a/stage0/stdlib/Lean/Elab.c b/stage0/stdlib/Lean/Elab.c index 0b455da372..eee7f25f2b 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.Config 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.AuxDef 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 Lean.Elab.RecAppSyntax +// Imports: Init Lean.Elab.Import Lean.Elab.Exception Lean.Elab.Config 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.AuxDef 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 Lean.Elab.RecAppSyntax Lean.Elab.Eval #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -51,6 +51,7 @@ lean_object* initialize_Lean_Elab_Mixfix(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_MacroRules(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_BuiltinCommand(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_RecAppSyntax(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Eval(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab(uint8_t builtin, lean_object* w) { lean_object * res; @@ -170,6 +171,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_RecAppSyntax(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Eval(builtin, 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/App.c b/stage0/stdlib/Lean/Elab/App.c index 7550577a6f..4db72995ff 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -225,6 +225,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotN LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent___closed__3; +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___closed__3; lean_object* l_Lean_Elab_Term_observing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___closed__7; @@ -836,7 +837,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicitUnivs(lean_object*, lean_o static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(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_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -27700,7 +27700,7 @@ lean_dec(x_10); x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_14 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); lean_dec(x_14); @@ -27719,7 +27719,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_19 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_18); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -27755,7 +27755,7 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_16, 1); lean_inc(x_25); lean_dec(x_16); -x_26 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +x_26 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_25); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 03ad39859b..4cea3fa570 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -22,6 +22,7 @@ static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder_ static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetFunDecl_declRange___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_isRecCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabBinders(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___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_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -29,7 +30,6 @@ uint8_t l_Lean_Syntax_isAntiquotSuffixSplice(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall___closed__6; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_precheckFun___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetFunDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_withNewLocals___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -61,6 +61,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall___closed__1; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__25; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetFunDecl_declRange___closed__4; LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -122,6 +123,7 @@ lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_Quotation_pr static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDelayedDecl___closed__3; +uint8_t l_Lean_isCasesOnRecursor(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_expandFunBinders_loop___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl_declRange___closed__3; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__8; @@ -166,6 +168,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expan lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetFunDecl_declRange___closed__5; +static lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__2; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__15; LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_expandWhereDecls___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -187,11 +190,13 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun___closed__2; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandFunBinders_loop___spec__3(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabFun___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDelayedDecl_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl_declRange___closed__5; lean_object* lean_string_utf8_byte_size(lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxFunDiscr___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDelayedDecl_declRange(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic___spec__2___closed__4; @@ -206,6 +211,7 @@ LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_qu LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatchTactic(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandFunBinders_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDelayedDecl_declRange___closed__1; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__7___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_Binders_0__Lean_Elab_Term_matchBinder___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -215,9 +221,12 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Binde static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetTmpDecl_declRange___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic___spec__2___closed__3; +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabArrow(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic___spec__2___closed__5; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_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_Term_expandFunBinders_loop___closed__10; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__10; @@ -228,6 +237,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl_declRange(lea lean_object* l_List_forM___at_Lean_Elab_Term_Quotation_precheck___spec__4(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_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__2; static lean_object* l_Lean_Elab_Term_precheckArrow___closed__1; +lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_instMonadLiftReaderT(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__8; @@ -265,7 +275,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl_declRange___closed static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__56; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__2; -lean_object* l_Lean_addDecl___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_Term_elabFun___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckFun___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_precheckFun___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -297,6 +306,7 @@ static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinder static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__1; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___closed__3; lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabFun___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetTmpDecl___closed__1; @@ -312,6 +322,7 @@ static lean_object* l_Lean_Elab_Term_elabForall___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabFun___closed__2; static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_precheckFun___spec__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_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*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_1498____closed__2; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__47; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -348,6 +359,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_precheckFun___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclCore___lambda__2___closed__2; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__9; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabFun_declRange___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__1; @@ -375,6 +387,7 @@ static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__32; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetDeclCore___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_Term_elabArrow_declRange___closed__6; +uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_precheckFun___spec__5___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_expandWhereDecls___closed__2; @@ -402,12 +415,14 @@ static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__24; static lean_object* l_Lean_Elab_Term_expandWhereDecls___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabFun___spec__5___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__7; +static lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__3; static lean_object* l_Lean_Elab_Term_declareTacticSyntax___lambda__2___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabForall(lean_object*); lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__61; LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_declareTacticSyntax___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrow___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_declareTacticSyntax___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -432,11 +447,13 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckFun___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__14; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandWhereDeclsOpt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___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* l_Lean_mkFVar(lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_quoteAutoTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Core_instMonadQuotationCoreM; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg___closed__1; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop(lean_object*); uint8_t l_Lean_Syntax_isAntiquot(lean_object*); @@ -489,6 +506,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_FunBinders_State_expectedType_x3f___de static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetFunDecl___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabFun___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_Term_quoteAutoTactic___closed__16; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); @@ -499,6 +517,7 @@ lean_object* l_Lean_mkHole(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetDeclCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabArrow_declRange(lean_object*); extern lean_object* l_Lean_Elab_macroAttribute; +LEAN_EXPORT lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Elab_Term_declareTacticSyntax___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_1498____closed__4; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic___spec__2___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabFunBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -507,7 +526,9 @@ lean_object* lean_environment_main_module(lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(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_expandWhereDecls___closed__3; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__11; +static lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__6; static lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -539,6 +560,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrow_declRange___closed__ lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__59; +uint8_t lean_is_aux_recursor(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclCore___lambda__2___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetTmpDecl_declRange___closed__3; static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__6; @@ -562,6 +584,7 @@ lean_object* l_Lean_instMonadQuotation___rarg(lean_object*, lean_object*, lean_o lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_FunBinders_elabFunBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_precheckFun___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_universeConstraintsCheckpoint___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -637,14 +660,17 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandFunBin static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__4; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__3___closed__2; +LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall_declRange___closed__6; lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabFun___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__11; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl(lean_object*); +lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__3; +uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun_declRange___closed__1; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__43; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -652,6 +678,7 @@ uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderType___boxed(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow_declRange___closed__1; @@ -669,6 +696,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_FunBinders_State_fvars___default; +static lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__1; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Term_elabFun_declRange___closed__2; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__48; @@ -676,6 +704,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDelayedDecl_declRange__ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetFunDecl(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_precheckFun___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*); static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__9; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__40; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___closed__1; @@ -686,6 +715,7 @@ static lean_object* l_Lean_Elab_Term_elabLetDeclCore___lambda__2___closed__1; static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__4; static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__17; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__1; +extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors; LEAN_EXPORT lean_object* l_Lean_Elab_Term_declareTacticSyntax___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*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__34; LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -705,6 +735,8 @@ static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__13; static lean_object* l___regBuiltin_Lean_Elab_Term_precheckArrow___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall_declRange___closed__3; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__27; +LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_declareTacticSyntax___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_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Term_expandFun_declRange___closed__2; @@ -723,12 +755,14 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_precheckFun___closed__3; uint8_t lean_string_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall___closed__5; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow_docString(lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__45; static lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow_declRange___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabBinder(lean_object*); +lean_object* lean_add_decl(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isAntiquotSplice(lean_object*); static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderType(lean_object* x_1, lean_object* x_2) { @@ -2856,6 +2890,1329 @@ lean_dec(x_1); return x_21; } } +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_6, 2); +lean_inc(x_9); +x_10 = l_Lean_KernelException_toMessageData(x_1, x_9); +x_11 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +x_10 = lean_st_ref_get(x_8, x_9); +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, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_add_decl(x_13, x_1); +lean_dec(x_1); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_17); +lean_dec(x_14); +x_18 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_18; +} +} +} +static lean_object* _init_l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("declaration uses 'sorry'", 24); +return x_1; +} +} +static lean_object* _init_l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 5); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_12); +if (x_13 == 0) +{ +uint8_t x_14; uint8_t x_15; +x_14 = 0; +lean_inc(x_1); +x_15 = l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(x_1, x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___lambda__1(x_1, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__3; +x_19 = 1; +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_20 = l_Lean_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_18, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +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_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___lambda__1(x_1, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_22); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +x_25 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___lambda__1(x_1, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_25; +} +} +} +LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 4) +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +lean_inc(x_3); +lean_inc(x_1); +x_4 = lean_is_aux_recursor(x_1, x_3); +if (x_4 == 0) +{ +uint8_t x_5; +lean_inc(x_3); +x_5 = l_Lean_isRecCore(x_1, x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; +x_8 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_7, x_3); +lean_dec(x_3); +if (x_8 == 0) +{ +uint8_t x_9; +x_9 = 1; +return x_9; +} +else +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +} +} +else +{ +uint8_t x_11; +lean_inc(x_3); +lean_inc(x_1); +x_11 = l_Lean_isCasesOnRecursor(x_1, x_3); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +lean_dec(x_1); +x_12 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; +x_13 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_12, x_3); +lean_dec(x_3); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 1; +return x_14; +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +lean_inc(x_3); +x_16 = l_Lean_isRecCore(x_1, x_3); +if (x_16 == 0) +{ +uint8_t x_17; +lean_dec(x_3); +x_17 = 0; +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; +x_19 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_18, x_3); +lean_dec(x_3); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = 1; +return x_20; +} +else +{ +uint8_t x_21; +x_21 = 0; +return x_21; +} +} +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_2); +lean_dec(x_1); +x_22 = 0; +return x_22; +} +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("code generator does not support recursor '", 42); +return x_1; +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("' yet, consider using 'match ... with' and/or structural recursion", 66); +return x_1; +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_2); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_2); +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +lean_dec(x_3); +x_35 = lean_ctor_get(x_12, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_35, 2); +lean_inc(x_36); +lean_dec(x_35); +lean_inc(x_1); +x_37 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_37, 0, x_1); +x_38 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_37, x_36); +if (lean_obj_tag(x_38) == 0) +{ +x_14 = x_10; +goto block_34; +} +else +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +lean_dec(x_38); +if (lean_obj_tag(x_39) == 4) +{ +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; uint8_t x_47; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_1); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +x_44 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +return x_46; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_46); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +else +{ +lean_dec(x_39); +x_14 = x_10; +goto block_34; +} +} +block_34: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +lean_inc(x_1); +x_16 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_16, 0, x_1); +x_17 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_16, x_15); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_box(0); +x_2 = x_18; +x_3 = x_13; +x_10 = x_14; +goto _start; +} +else +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); +lean_dec(x_17); +if (lean_obj_tag(x_20) == 4) +{ +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; +lean_dec(x_13); +lean_dec(x_1); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___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_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +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_Term_throwErrorIfErrors___spec__1(x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +return x_27; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_27); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; +lean_dec(x_20); +x_32 = lean_box(0); +x_2 = x_32; +x_3 = x_13; +x_10 = x_14; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_2); +lean_ctor_set(x_11, 1, x_10); +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_dec(x_2); +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +lean_dec(x_3); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_1); +x_15 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_15, 0, x_1); +x_16 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_15, x_14); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = lean_box(0); +x_2 = x_17; +x_3 = x_13; +goto _start; +} +else +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +lean_dec(x_16); +if (lean_obj_tag(x_19) == 4) +{ +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_dec(x_13); +lean_dec(x_1); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +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; +} +} +else +{ +lean_object* x_31; +lean_dec(x_19); +x_31 = lean_box(0); +x_2 = x_31; +x_3 = x_13; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_2); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_2); +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +lean_dec(x_3); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_1); +x_24 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_24, 0, x_1); +x_25 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_24, x_23); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_12, 2); +lean_inc(x_26); +lean_dec(x_12); +x_27 = lean_box(0); +lean_inc(x_4); +lean_inc(x_1); +x_28 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_1, x_27, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = x_28; +goto block_22; +} +else +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_25, 0); +lean_inc(x_29); +lean_dec(x_25); +if (lean_obj_tag(x_29) == 4) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_dec(x_12); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +lean_inc(x_4); +x_36 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +x_14 = x_36; +goto block_22; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_14 = x_40; +goto block_22; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_29); +x_41 = lean_ctor_get(x_12, 2); +lean_inc(x_41); +lean_dec(x_12); +x_42 = lean_box(0); +lean_inc(x_4); +lean_inc(x_1); +x_43 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_1, x_42, x_41, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_14 = x_43; +goto block_22; +} +} +block_22: +{ +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; +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_2 = x_15; +x_3 = x_13; +x_10 = x_16; +goto _start; +} +else +{ +uint8_t x_18; +lean_dec(x_13); +lean_dec(x_4); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ +return x_14; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +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_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_declareTacticSyntax___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_3); +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +lean_dec(x_2); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_ctor_get(x_12, 2); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_14, 0, x_1); +x_15 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_14, x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_4); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_10); +return x_17; +} +else +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +if (lean_obj_tag(x_18) == 4) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_18); +lean_dec(x_4); +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_10); +return x_27; +} +} +} +case 1: +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_48; lean_object* x_49; +lean_dec(x_3); +x_28 = lean_ctor_get(x_2, 0); +lean_inc(x_28); +lean_dec(x_2); +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, 2); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_1); +x_48 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_48, 0, x_1); +x_49 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_48, x_31); +if (lean_obj_tag(x_49) == 0) +{ +x_32 = x_10; +goto block_47; +} +else +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +lean_dec(x_49); +if (lean_obj_tag(x_50) == 4) +{ +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; uint8_t x_58; +lean_dec(x_30); +lean_dec(x_1); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_56, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +return x_57; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_57, 0); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_57); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +else +{ +lean_dec(x_50); +x_32 = x_10; +goto block_47; +} +} +block_47: +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_33, 0, x_1); +x_34 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_33, x_30); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_4); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_32); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_34, 0); +lean_inc(x_37); +lean_dec(x_34); +if (lean_obj_tag(x_37) == 4) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_43, x_4, x_5, x_6, x_7, x_8, x_9, x_32); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_37); +lean_dec(x_4); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_32); +return x_46; +} +} +} +} +case 2: +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_82; lean_object* x_83; +lean_dec(x_3); +x_62 = lean_ctor_get(x_2, 0); +lean_inc(x_62); +lean_dec(x_2); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_ctor_get(x_63, 2); +lean_inc(x_65); +lean_dec(x_63); +lean_inc(x_1); +x_82 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_82, 0, x_1); +x_83 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_82, x_65); +if (lean_obj_tag(x_83) == 0) +{ +x_66 = x_10; +goto block_81; +} +else +{ +lean_object* x_84; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +lean_dec(x_83); +if (lean_obj_tag(x_84) == 4) +{ +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; uint8_t x_92; +lean_dec(x_64); +lean_dec(x_1); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +lean_dec(x_84); +x_86 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_86, 0, x_85); +x_87 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_88 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +x_89 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_90 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_90, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_92 = !lean_is_exclusive(x_91); +if (x_92 == 0) +{ +return x_91; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_91, 0); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_91); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +else +{ +lean_dec(x_84); +x_66 = x_10; +goto block_81; +} +} +block_81: +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_67, 0, x_1); +x_68 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_67, x_64); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_4); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_66); +return x_70; +} +else +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_68, 0); +lean_inc(x_71); +lean_dec(x_68); +if (lean_obj_tag(x_71) == 4) +{ +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; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +lean_dec(x_71); +x_73 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_73, 0, x_72); +x_74 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_75 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +x_76 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_77 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +x_78 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_77, x_4, x_5, x_6, x_7, x_8, x_9, x_66); +return x_78; +} +else +{ +lean_object* x_79; lean_object* x_80; +lean_dec(x_71); +lean_dec(x_4); +x_79 = lean_box(0); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_66); +return x_80; +} +} +} +} +case 3: +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_116; lean_object* x_117; +lean_dec(x_3); +x_96 = lean_ctor_get(x_2, 0); +lean_inc(x_96); +lean_dec(x_2); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_ctor_get(x_97, 2); +lean_inc(x_99); +lean_dec(x_97); +lean_inc(x_1); +x_116 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_116, 0, x_1); +x_117 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_116, x_99); +if (lean_obj_tag(x_117) == 0) +{ +x_100 = x_10; +goto block_115; +} +else +{ +lean_object* x_118; +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +lean_dec(x_117); +if (lean_obj_tag(x_118) == 4) +{ +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; uint8_t x_126; +lean_dec(x_98); +lean_dec(x_1); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +lean_dec(x_118); +x_120 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_120, 0, x_119); +x_121 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_122 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_120); +x_123 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_124 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +x_125 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_124, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_126 = !lean_is_exclusive(x_125); +if (x_126 == 0) +{ +return x_125; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_125, 0); +x_128 = lean_ctor_get(x_125, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_125); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; +} +} +else +{ +lean_dec(x_118); +x_100 = x_10; +goto block_115; +} +} +block_115: +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed), 2, 1); +lean_closure_set(x_101, 0, x_1); +x_102 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_101, x_98); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_4); +x_103 = lean_box(0); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_100); +return x_104; +} +else +{ +lean_object* x_105; +x_105 = lean_ctor_get(x_102, 0); +lean_inc(x_105); +lean_dec(x_102); +if (lean_obj_tag(x_105) == 4) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +lean_dec(x_105); +x_107 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_107, 0, x_106); +x_108 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2; +x_109 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_107); +x_110 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4; +x_111 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +x_112 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_111, x_4, x_5, x_6, x_7, x_8, x_9, x_100); +return x_112; +} +else +{ +lean_object* x_113; lean_object* x_114; +lean_dec(x_105); +lean_dec(x_4); +x_113 = lean_box(0); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_100); +return x_114; +} +} +} +} +case 4: +{ +lean_object* x_130; +lean_dec(x_4); +lean_dec(x_1); +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_3); +lean_ctor_set(x_130, 1, x_10); +return x_130; +} +case 5: +{ +lean_object* x_131; lean_object* x_132; +x_131 = lean_ctor_get(x_2, 0); +lean_inc(x_131); +lean_dec(x_2); +x_132 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(x_1, x_3, x_131, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_132; +} +default: +{ +lean_object* x_133; lean_object* x_134; +x_133 = lean_ctor_get(x_2, 2); +lean_inc(x_133); +lean_dec(x_2); +x_134 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__8(x_1, x_3, x_133, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_134; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Elab_Term_declareTacticSyntax___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_box(0); +x_14 = l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_declareTacticSyntax___spec__5(x_12, x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_6, 2); +lean_inc(x_13); +x_14 = lean_compile_decl(x_12, x_13, x_1); +lean_dec(x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 11) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +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_17 = l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Elab_Term_declareTacticSyntax___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_19, 0, x_16); +x_20 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_21; +} +else +{ +uint8_t x_22; +lean_dec(x_16); +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_22 = !lean_is_exclusive(x_17); +if (x_22 == 0) +{ +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 0); +x_24 = lean_ctor_get(x_17, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_17); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +lean_object* x_26; +lean_dec(x_1); +x_26 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_1); +x_27 = lean_ctor_get(x_14, 0); +lean_inc(x_27); +lean_dec(x_14); +x_28 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_28; +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_declareTacticSyntax___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -2887,14 +4244,14 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_18); -x_19 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_19 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +x_21 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_20); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -3250,6 +4607,79 @@ x_11 = l_Lean_Core_withFreshMacroScope___rarg(x_10, x_6, x_7, x_8); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_declareTacticSyntax___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: +{ +lean_object* x_11; +x_11 = l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_declareTacticSyntax___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_11; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_declareTacticSyntax___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -28377,6 +29807,20 @@ l_Lean_Elab_Term_quoteAutoTactic___closed__62 = _init_l_Lean_Elab_Term_quoteAuto lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___closed__62); l_Lean_Elab_Term_quoteAutoTactic___closed__63 = _init_l_Lean_Elab_Term_quoteAutoTactic___closed__63(); lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___closed__63); +l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__1 = _init_l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__1(); +lean_mark_persistent(l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__1); +l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__2 = _init_l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__2(); +lean_mark_persistent(l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__2); +l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__3 = _init_l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__3(); +lean_mark_persistent(l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___closed__3); +l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__1 = _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__1(); +lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__1); +l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2 = _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2(); +lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__2); +l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__3 = _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__3(); +lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__3); +l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4 = _init_l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4(); +lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___closed__4); l_Lean_Elab_Term_declareTacticSyntax___lambda__2___closed__1 = _init_l_Lean_Elab_Term_declareTacticSyntax___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_declareTacticSyntax___lambda__2___closed__1); l_Lean_Elab_Term_declareTacticSyntax___lambda__2___closed__2 = _init_l_Lean_Elab_Term_declareTacticSyntax___lambda__2___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/BuiltinCommand.c b/stage0/stdlib/Lean/Elab/BuiltinCommand.c index 843ebfc1e5..0b4c21883e 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinCommand.c +++ b/stage0/stdlib/Lean/Elab/BuiltinCommand.c @@ -18,7 +18,7 @@ lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabVariable(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Command_elabOpen___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT 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_EXPORT 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_EXPORT lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__8; @@ -53,10 +53,10 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabExp LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___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_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__13___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__4; +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_withNamespace(lean_object*); lean_object* l_List_filterTRAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth_declRange(lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck_declRange___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__17(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*); @@ -125,6 +125,7 @@ LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elab LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Command_elabOpen___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange___closed__5; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Elab_Command_elabEvalUnsafe___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_elabModuleDoc___closed__3; lean_object* l_Lean_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*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed(lean_object*, lean_object*); @@ -138,12 +139,12 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabVariable___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Command_elabEnd___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT 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*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__5; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f(lean_object*); LEAN_EXPORT 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; +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabNonComputableSection___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange___closed__2; @@ -158,14 +159,17 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCom static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange___closed__3; 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_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__15___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck_declRange___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable(lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSection(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice_declRange___closed__3; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen_declRange___closed__3; -LEAN_EXPORT 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_EXPORT 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_EXPORT 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*); +static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2; 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_EXPORT 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_EXPORT 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*); @@ -178,7 +182,6 @@ lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Elab_Command_elabVariable___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Command_elabExport___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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*); @@ -232,9 +235,10 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange(lea static lean_object* l_Lean_Elab_Command_elabSynth___closed__2; LEAN_EXPORT 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___regBuiltin_Lean_Elab_Command_elabVariable_declRange___closed__6; +LEAN_EXPORT 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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__1___at_Lean_Elab_Command_elabUniverse___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; -LEAN_EXPORT 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_EXPORT 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_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunMetaEval___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabExport___spec__16(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -243,6 +247,7 @@ lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckFailure(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange___closed__7; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___closed__5; +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; @@ -260,6 +265,7 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3; static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__8; lean_object* l_Lean_ScopedEnvExtension_popScope___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg(lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSynth(lean_object*, lean_object*, lean_object*, lean_object*); @@ -289,12 +295,12 @@ lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_ LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheck___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); -LEAN_EXPORT 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_EXPORT 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*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse_declRange___closed__7; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunMetaEval___closed__1; -LEAN_EXPORT 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_EXPORT 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*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__1; lean_object* l_Lean_Option_get___at_Std_Format_pretty_x27___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2; @@ -345,19 +351,23 @@ static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveName LEAN_EXPORT lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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___regBuiltin_Lean_Elab_Command_elabExport_declRange___closed__2; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___at_Lean_Elab_Command_elabVariable___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__15; LEAN_EXPORT 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_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__9(lean_object*, lean_object*, lean_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_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___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_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__12; lean_object* l_Lean_Syntax_setArgs(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object*); +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption_declRange___closed__2; lean_object* l_Nat_repr(lean_object*); @@ -366,7 +376,6 @@ lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, l LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption_declRange(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__9; -lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(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__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce_declRange___closed__7; @@ -379,6 +388,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection_declRange___closed__6; lean_object* l_Lean_Syntax_getId(lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkEvalInstCore___closed__6; +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_EXPORT lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabReduce___closed__2; static lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Command_elabExport___spec__12___closed__1; @@ -389,21 +399,22 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUn static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__1; uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__3; -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___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__11; lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(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_elabNamespace___closed__2; -LEAN_EXPORT 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*); +LEAN_EXPORT 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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice___closed__2; +extern lean_object* l_Lean_Elab_abortTermExceptionId; LEAN_EXPORT 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_addBuiltinDeclarationRanges(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_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__9; lean_object* lean_array_to_list(lean_object*, lean_object*); +lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); @@ -461,6 +472,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace_declRange___c lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___closed__1; static lean_object* l_Lean_Elab_Command_elabSetOption___closed__1; +static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__1; LEAN_EXPORT 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*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__2; @@ -470,7 +482,7 @@ static lean_object* l_Lean_Elab_Command_elabVariable___closed__1; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___lambda__1___boxed(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__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport_declRange___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_EXPORT lean_object* l_Lean_Elab_Command_elabEnd(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunMetaEval___lambda__2___closed__2; @@ -516,6 +528,7 @@ static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mk static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__8; static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse_declRange___closed__6; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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; static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5; @@ -527,7 +540,9 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse_declRange___cl lean_object* l_List_drop___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedException; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabNonComputableSection(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__1; static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames___closed__1; +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg___boxed(lean_object*, 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); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); @@ -539,6 +554,7 @@ static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_ad static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__4; @@ -546,6 +562,7 @@ extern lean_object* l___private_Lean_DocString_0__Lean_moduleDocExt; static lean_object* l_Lean_Elab_Command_elabExport___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse_declRange___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace_declRange___closed__5; static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; @@ -572,6 +589,7 @@ lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessag LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__7; +lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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*); @@ -596,6 +614,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange___c static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection_declRange___closed__6; lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Command_elabExport___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunMetaEval___lambda__2___closed__1; lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6; @@ -617,12 +636,14 @@ static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mk extern lean_object* l_Lean_Elab_Command_instInhabitedScope; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection_declRange___closed__1; lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck_declRange___closed__7; static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__4; @@ -650,8 +671,10 @@ lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lean_resolveUniqueNamespace___at_Lean_Elab_Command_elabOpen___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection_declRange___closed__1; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabNamespace___closed__2; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection___closed__1; @@ -675,6 +698,7 @@ lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_objec static lean_object* l_Lean_resolveUniqueNamespace___at_Lean_Elab_Command_elabOpen___spec__3___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice_declRange___closed__6; +lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_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_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_object*); @@ -810,7 +834,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure_declRange_ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSection_declRange(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSetOption___lambda__1(lean_object*, lean_object*); LEAN_EXPORT 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*, lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck_declRange___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce_declRange___closed__3; @@ -16947,6 +16970,220 @@ return x_39; } } } +LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Elab_Command_elabEvalUnsafe___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_9 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_9 = lean_ctor_get(x_6, 5); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +lean_inc(x_10); +x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +lean_dec(x_2); +lean_dec(x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_18); +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_15); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_11); +lean_ctor_set(x_21, 1, x_19); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 0); +lean_inc(x_9); +lean_dec(x_1); +x_10 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_8); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_6, 2); +x_14 = lean_eval_const(x_12, x_13, x_1); +lean_dec(x_1); +lean_dec(x_12); +x_15 = l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg___boxed), 8, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_abortTermExceptionId; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___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_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___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_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___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_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg), 1, 0); +return x_7; +} +} LEAN_EXPORT 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: { @@ -17068,7 +17305,91 @@ return x_46; } } } -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1() { +LEAN_EXPORT 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) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_10 = l_Lean_Meta_isProp(x_1, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_13 = !lean_is_exclusive(x_10); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_10, 0); +lean_dec(x_14); +lean_ctor_set(x_10, 0, x_1); +return x_10; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_dec(x_10); +x_18 = l_Lean_Meta_mkDecide(x_1, x_5, x_6, x_7, x_8, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_10); +if (x_19 == 0) +{ +return x_10; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_10, 0); +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_10); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -17077,11 +17398,11 @@ x_2 = l_Std_mkHashSetImp___rarg(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; +x_1 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__1; x_2 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__3___closed__1; x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); @@ -17090,7 +17411,7 @@ lean_ctor_set(x_3, 2, x_2); return x_3; } } -LEAN_EXPORT 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_EXPORT 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) { _start: { lean_object* x_12; lean_object* x_13; uint8_t x_90; lean_object* x_91; @@ -17101,6 +17422,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); x_91 = l_Lean_Elab_Term_elabTerm(x_3, x_4, x_90, x_90, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_91) == 0) { @@ -17120,59 +17442,60 @@ lean_inc(x_5); x_95 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_94, x_94, x_5, x_6, x_7, x_8, x_9, x_10, x_93); if (lean_obj_tag(x_95) == 0) { -lean_object* x_96; lean_object* x_97; +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; x_96 = lean_ctor_get(x_95, 1); lean_inc(x_96); lean_dec(x_95); -lean_inc(x_10); -lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); lean_inc(x_92); -x_97 = l_Lean_Meta_isProp(x_92, x_7, x_8, x_9, x_10, x_96); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; uint8_t x_99; +x_97 = l_Lean_Meta_getMVars(x_92, x_7, x_8, x_9, x_10, x_96); x_98 = lean_ctor_get(x_97, 0); lean_inc(x_98); -x_99 = lean_unbox(x_98); -lean_dec(x_98); -if (x_99 == 0) -{ -lean_object* x_100; -x_100 = lean_ctor_get(x_97, 1); -lean_inc(x_100); -lean_dec(x_97); -x_12 = x_92; -x_13 = x_100; -goto block_89; -} -else -{ -lean_object* x_101; lean_object* x_102; -x_101 = lean_ctor_get(x_97, 1); -lean_inc(x_101); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); lean_dec(x_97); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_102 = l_Lean_Meta_mkDecide(x_92, x_7, x_8, x_9, x_10, x_101); -if (lean_obj_tag(x_102) == 0) +lean_inc(x_6); +lean_inc(x_5); +x_100 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_98, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_99); +lean_dec(x_98); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_102, 0); +lean_object* x_101; uint8_t x_102; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_unbox(x_101); +lean_dec(x_101); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_100, 1); lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_12 = x_103; -x_13 = x_104; +lean_dec(x_100); +x_104 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_105 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2(x_92, x_104, x_5, x_6, x_7, x_8, x_9, x_10, x_103); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_12 = x_106; +x_13 = x_107; goto block_89; } else { -uint8_t x_105; +uint8_t x_108; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17180,61 +17503,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_105 = !lean_is_exclusive(x_102); -if (x_105 == 0) +x_108 = !lean_is_exclusive(x_105); +if (x_108 == 0) { -return x_102; +return x_105; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_102, 0); -x_107 = lean_ctor_get(x_102, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_102); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; -} -} -} -} -else -{ -uint8_t x_109; -lean_dec(x_92); -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_2); -x_109 = !lean_is_exclusive(x_97); -if (x_109 == 0) -{ -return x_97; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_97, 0); -x_111 = lean_ctor_get(x_97, 1); -lean_inc(x_111); +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_105, 0); +x_110 = lean_ctor_get(x_105, 1); lean_inc(x_110); -lean_dec(x_97); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -return x_112; +lean_inc(x_109); +lean_dec(x_105); +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_113; +lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_dec(x_92); lean_dec(x_10); lean_dec(x_9); @@ -17243,53 +17534,121 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_113 = !lean_is_exclusive(x_95); -if (x_113 == 0) +x_112 = lean_ctor_get(x_100, 1); +lean_inc(x_112); +lean_dec(x_100); +x_113 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg(x_112); +x_114 = !lean_is_exclusive(x_113); +if (x_114 == 0) +{ +return x_113; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_113, 0); +x_116 = lean_ctor_get(x_113, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_113); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; +} +} +} +else +{ +uint8_t x_118; +lean_dec(x_92); +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_2); +x_118 = !lean_is_exclusive(x_100); +if (x_118 == 0) +{ +return x_100; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_100, 0); +x_120 = lean_ctor_get(x_100, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_100); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; +} +} +} +else +{ +uint8_t x_122; +lean_dec(x_92); +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_2); +x_122 = !lean_is_exclusive(x_95); +if (x_122 == 0) { return x_95; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_95, 0); -x_115 = lean_ctor_get(x_95, 1); -lean_inc(x_115); -lean_inc(x_114); +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_95, 0); +x_124 = lean_ctor_get(x_95, 1); +lean_inc(x_124); +lean_inc(x_123); lean_dec(x_95); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +return x_125; } } } else { -uint8_t x_117; +uint8_t x_126; 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_2); -x_117 = !lean_is_exclusive(x_91); -if (x_117 == 0) +x_126 = !lean_is_exclusive(x_91); +if (x_126 == 0) { return x_91; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_91, 0); -x_119 = lean_ctor_get(x_91, 1); -lean_inc(x_119); -lean_inc(x_118); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_91, 0); +x_128 = lean_ctor_get(x_91, 1); +lean_inc(x_128); +lean_inc(x_127); lean_dec(x_91); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; } } block_89: @@ -17350,7 +17709,7 @@ x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); x_33 = lean_box(0); -x_34 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2; +x_34 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2; lean_inc(x_29); x_35 = l_Lean_CollectLevelParams_main(x_29, x_34); x_36 = lean_ctor_get(x_35, 2); @@ -17403,7 +17762,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_49 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_48); +x_49 = l_Lean_addAndCompile___at_Lean_Elab_Command_elabEvalUnsafe___spec__1(x_46, x_5, x_6, x_7, x_8, x_9, x_10, x_48); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_object* x_51; @@ -17411,7 +17770,7 @@ x_50 = lean_ctor_get(x_49, 1); lean_inc(x_50); lean_dec(x_49); lean_inc(x_5); -x_51 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_50); +x_51 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_50); if (lean_obj_tag(x_51) == 0) { lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; @@ -17420,7 +17779,7 @@ lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); lean_dec(x_51); -x_54 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_53); +x_54 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_53); x_55 = lean_ctor_get(x_54, 1); lean_inc(x_55); lean_dec(x_54); @@ -17440,7 +17799,7 @@ lean_inc(x_57); x_58 = lean_ctor_get(x_51, 1); lean_inc(x_58); lean_dec(x_51); -x_59 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_58); +x_59 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_58); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17479,7 +17838,7 @@ lean_inc(x_64); x_65 = lean_ctor_get(x_49, 1); lean_inc(x_65); lean_dec(x_49); -x_66 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_65); +x_66 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_65); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17519,7 +17878,7 @@ lean_inc(x_71); x_72 = lean_ctor_get(x_47, 1); lean_inc(x_72); lean_dec(x_47); -x_73 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_72); +x_73 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_72); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17559,7 +17918,7 @@ lean_inc(x_78); x_79 = lean_ctor_get(x_30, 1); lean_inc(x_79); lean_dec(x_30); -x_80 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_79); +x_80 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_79); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -17621,11 +17980,11 @@ return x_88; } } } -LEAN_EXPORT 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) { +LEAN_EXPORT 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, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___boxed), 11, 4); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 11, 4); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_2); lean_closure_set(x_14, 2, x_3); @@ -17634,7 +17993,7 @@ x_15 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_14, x_7, x_8, x_9, x_1 return x_15; } } -LEAN_EXPORT 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, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT 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, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; @@ -17685,7 +18044,7 @@ x_32 = l_Lean_Core_resetMessageLog(x_11, x_12, x_28); x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec(x_32); -x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 13, 4); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed), 13, 4); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_3); lean_closure_set(x_34, 2, x_4); @@ -17738,7 +18097,7 @@ x_52 = l_Lean_Core_resetMessageLog(x_11, x_12, x_28); x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); lean_dec(x_52); -x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 13, 4); +x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed), 13, 4); lean_closure_set(x_54, 0, x_2); lean_closure_set(x_54, 1, x_3); lean_closure_set(x_54, 2, x_4); @@ -17783,7 +18142,7 @@ return x_60; } } } -LEAN_EXPORT 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) { +LEAN_EXPORT 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; @@ -17838,7 +18197,7 @@ 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__4(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +x_32 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(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) @@ -17910,7 +18269,7 @@ return x_51; } } } -LEAN_EXPORT 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) { +LEAN_EXPORT 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) { _start: { lean_object* x_12; lean_object* x_13; uint8_t x_91; lean_object* x_92; @@ -17921,6 +18280,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); x_92 = l_Lean_Elab_Term_elabTerm(x_3, x_4, x_91, x_91, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_92) == 0) { @@ -17940,59 +18300,60 @@ lean_inc(x_5); x_96 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_95, x_95, x_5, x_6, x_7, x_8, x_9, x_10, x_94); if (lean_obj_tag(x_96) == 0) { -lean_object* x_97; lean_object* x_98; +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; x_97 = lean_ctor_get(x_96, 1); lean_inc(x_97); lean_dec(x_96); -lean_inc(x_10); -lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); lean_inc(x_93); -x_98 = l_Lean_Meta_isProp(x_93, x_7, x_8, x_9, x_10, x_97); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; uint8_t x_100; +x_98 = l_Lean_Meta_getMVars(x_93, x_7, x_8, x_9, x_10, x_97); x_99 = lean_ctor_get(x_98, 0); lean_inc(x_99); -x_100 = lean_unbox(x_99); -lean_dec(x_99); -if (x_100 == 0) -{ -lean_object* x_101; -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_dec(x_98); -x_12 = x_93; -x_13 = x_101; -goto block_90; -} -else -{ -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_98, 1); -lean_inc(x_102); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); lean_dec(x_98); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_103 = l_Lean_Meta_mkDecide(x_93, x_7, x_8, x_9, x_10, x_102); -if (lean_obj_tag(x_103) == 0) +lean_inc(x_6); +lean_inc(x_5); +x_101 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_99, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_100); +lean_dec(x_99); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_103, 0); +lean_object* x_102; uint8_t x_103; +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_unbox(x_102); +lean_dec(x_102); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_101, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_12 = x_104; -x_13 = x_105; +lean_dec(x_101); +x_105 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_106 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2(x_93, x_105, x_5, x_6, x_7, x_8, x_9, x_10, x_104); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_12 = x_107; +x_13 = x_108; goto block_90; } else { -uint8_t x_106; +uint8_t x_109; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -18001,62 +18362,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_106 = !lean_is_exclusive(x_103); -if (x_106 == 0) +x_109 = !lean_is_exclusive(x_106); +if (x_109 == 0) { -return x_103; +return x_106; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_103, 0); -x_108 = lean_ctor_get(x_103, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_103); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; -} -} -} -} -else -{ -uint8_t x_110; -lean_dec(x_93); -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_2); -lean_dec(x_1); -x_110 = !lean_is_exclusive(x_98); -if (x_110 == 0) -{ -return x_98; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_98, 0); -x_112 = lean_ctor_get(x_98, 1); -lean_inc(x_112); +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_106, 0); +x_111 = lean_ctor_get(x_106, 1); lean_inc(x_111); -lean_dec(x_98); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; +lean_inc(x_110); +lean_dec(x_106); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } } else { -uint8_t x_114; +lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_dec(x_93); lean_dec(x_10); lean_dec(x_9); @@ -18066,54 +18394,124 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_114 = !lean_is_exclusive(x_96); -if (x_114 == 0) +x_113 = lean_ctor_get(x_101, 1); +lean_inc(x_113); +lean_dec(x_101); +x_114 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg(x_113); +x_115 = !lean_is_exclusive(x_114); +if (x_115 == 0) +{ +return x_114; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_114, 0); +x_117 = lean_ctor_get(x_114, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_114); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +else +{ +uint8_t x_119; +lean_dec(x_93); +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_2); +lean_dec(x_1); +x_119 = !lean_is_exclusive(x_101); +if (x_119 == 0) +{ +return x_101; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_101, 0); +x_121 = lean_ctor_get(x_101, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_101); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_dec(x_93); +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_2); +lean_dec(x_1); +x_123 = !lean_is_exclusive(x_96); +if (x_123 == 0) { return x_96; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_96, 0); -x_116 = lean_ctor_get(x_96, 1); -lean_inc(x_116); -lean_inc(x_115); +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_96, 0); +x_125 = lean_ctor_get(x_96, 1); +lean_inc(x_125); +lean_inc(x_124); lean_dec(x_96); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; } } } else { -uint8_t x_118; +uint8_t x_127; 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_2); lean_dec(x_1); -x_118 = !lean_is_exclusive(x_92); -if (x_118 == 0) +x_127 = !lean_is_exclusive(x_92); +if (x_127 == 0) { return x_92; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_92, 0); -x_120 = lean_ctor_get(x_92, 1); -lean_inc(x_120); -lean_inc(x_119); +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_92, 0); +x_129 = lean_ctor_get(x_92, 1); +lean_inc(x_129); +lean_inc(x_128); lean_dec(x_92); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -return x_121; +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +return x_130; } } block_90: @@ -18176,7 +18574,7 @@ x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); lean_dec(x_31); x_34 = lean_box(0); -x_35 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2; +x_35 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2; lean_inc(x_30); x_36 = l_Lean_CollectLevelParams_main(x_30, x_35); x_37 = lean_ctor_get(x_36, 2); @@ -18229,7 +18627,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_50 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +x_50 = l_Lean_addAndCompile___at_Lean_Elab_Command_elabEvalUnsafe___spec__1(x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_49); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; lean_object* x_52; @@ -18237,7 +18635,7 @@ x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); lean_dec(x_50); lean_inc(x_5); -x_52 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_51); +x_52 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, 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; @@ -18247,11 +18645,11 @@ x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); lean_dec(x_52); lean_inc(x_20); -x_55 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_54); +x_55 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_54); x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); lean_dec(x_55); -x_57 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__5(x_20, x_21, x_1, x_53, x_5, x_6, x_7, x_8, x_9, x_10, x_56); +x_57 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(x_20, x_21, x_1, x_53, x_5, x_6, x_7, x_8, x_9, x_10, x_56); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -18270,7 +18668,7 @@ lean_inc(x_58); x_59 = lean_ctor_get(x_52, 1); lean_inc(x_59); lean_dec(x_52); -x_60 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_59); +x_60 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_59); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -18311,7 +18709,7 @@ lean_inc(x_65); x_66 = lean_ctor_get(x_50, 1); lean_inc(x_66); lean_dec(x_50); -x_67 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_66); +x_67 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_66); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -18353,7 +18751,7 @@ lean_inc(x_72); x_73 = lean_ctor_get(x_48, 1); lean_inc(x_73); lean_dec(x_48); -x_74 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_73); +x_74 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_73); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -18395,7 +18793,7 @@ lean_inc(x_79); x_80 = lean_ctor_get(x_31, 1); lean_inc(x_80); lean_dec(x_31); -x_81 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_80); +x_81 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_80); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -18458,11 +18856,11 @@ return x_89; } } } -LEAN_EXPORT 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, lean_object* x_13) { +LEAN_EXPORT 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: { lean_object* x_14; lean_object* x_15; -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__6), 11, 4); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7), 11, 4); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_2); lean_closure_set(x_14, 2, x_3); @@ -18471,7 +18869,7 @@ x_15 = l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(x_14, x_7, x_8, x_9, x_1 return x_15; } } -LEAN_EXPORT 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) { +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; lean_object* x_15; @@ -18522,7 +18920,7 @@ x_32 = l_Lean_Core_resetMessageLog(x_11, x_12, x_28); x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec(x_32); -x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 13, 4); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed), 13, 4); lean_closure_set(x_34, 0, x_2); lean_closure_set(x_34, 1, x_3); lean_closure_set(x_34, 2, x_4); @@ -18575,7 +18973,7 @@ x_52 = l_Lean_Core_resetMessageLog(x_11, x_12, x_28); x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); lean_dec(x_52); -x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___boxed), 13, 4); +x_54 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed), 13, 4); lean_closure_set(x_54, 0, x_2); lean_closure_set(x_54, 1, x_3); lean_closure_set(x_54, 2, x_4); @@ -18723,7 +19121,7 @@ lean_dec(x_19); x_22 = lean_ctor_get(x_20, 5); lean_inc(x_22); x_23 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed), 13, 5); +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___boxed), 13, 5); lean_closure_set(x_24, 0, x_20); lean_closure_set(x_24, 1, x_9); lean_closure_set(x_24, 2, x_23); @@ -18750,7 +19148,7 @@ lean_dec(x_29); x_32 = lean_ctor_get(x_30, 5); lean_inc(x_32); x_33 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; -x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed), 13, 5); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__9___boxed), 13, 5); lean_closure_set(x_34, 0, x_30); lean_closure_set(x_34, 1, x_9); lean_closure_set(x_34, 2, x_33); @@ -18768,6 +19166,59 @@ return x_38; } } } +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Command_elabEvalUnsafe___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} LEAN_EXPORT 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: { @@ -18782,39 +19233,50 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT 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_EXPORT 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) { +_start: +{ +lean_object* x_10; +x_10 = 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); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT 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) { _start: { lean_object* x_12; -x_12 = 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 = 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); lean_dec(x_1); return x_12; } } -LEAN_EXPORT 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_6); -lean_dec(x_5); -return x_14; -} -} LEAN_EXPORT 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, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; x_14 = 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, x_12, x_13); +lean_dec(x_6); +lean_dec(x_5); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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__5(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_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT 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__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_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); @@ -18824,21 +19286,21 @@ lean_dec(x_3); return x_12; } } -LEAN_EXPORT 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, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = 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, x_13); -lean_dec(x_6); -lean_dec(x_5); -return x_14; -} -} LEAN_EXPORT 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_6); +lean_dec(x_5); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__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, 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__9(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; } @@ -18894,7 +19356,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(359u); +x_1 = lean_unsigned_to_nat(360u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18906,7 +19368,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(359u); +x_1 = lean_unsigned_to_nat(360u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18934,7 +19396,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(359u); +x_1 = lean_unsigned_to_nat(360u); x_2 = lean_unsigned_to_nat(7u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -18946,7 +19408,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(359u); +x_1 = lean_unsigned_to_nat(360u); x_2 = lean_unsigned_to_nat(15u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19533,7 +19995,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(361u); +x_1 = lean_unsigned_to_nat(362u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19545,7 +20007,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(369u); +x_1 = lean_unsigned_to_nat(370u); x_2 = lean_unsigned_to_nat(11u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19573,7 +20035,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(361u); +x_1 = lean_unsigned_to_nat(362u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -19585,7 +20047,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(361u); +x_1 = lean_unsigned_to_nat(362u); x_2 = lean_unsigned_to_nat(43u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20296,7 +20758,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(371u); +x_1 = lean_unsigned_to_nat(372u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20308,7 +20770,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(374u); +x_1 = lean_unsigned_to_nat(375u); x_2 = lean_unsigned_to_nat(57u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20336,7 +20798,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(371u); +x_1 = lean_unsigned_to_nat(372u); x_2 = lean_unsigned_to_nat(39u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20348,7 +20810,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(371u); +x_1 = lean_unsigned_to_nat(372u); x_2 = lean_unsigned_to_nat(52u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20585,7 +21047,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(376u); +x_1 = lean_unsigned_to_nat(377u); x_2 = lean_unsigned_to_nat(41u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20597,7 +21059,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(378u); +x_1 = lean_unsigned_to_nat(379u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20625,7 +21087,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(376u); +x_1 = lean_unsigned_to_nat(377u); x_2 = lean_unsigned_to_nat(45u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20637,7 +21099,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(376u); +x_1 = lean_unsigned_to_nat(377u); x_2 = lean_unsigned_to_nat(56u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -21392,10 +21854,14 @@ l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__4 lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__4); l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__5 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__5(); lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_mkRunEval___closed__5); -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_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__1 = _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__1); +l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__2 = _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__2(); +lean_mark_persistent(l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Command_elabEvalUnsafe___spec__5___rarg___closed__2); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__1 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__1); +l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2 = _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2); 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(); diff --git a/stage0/stdlib/Lean/Elab/BuiltinTerm.c b/stage0/stdlib/Lean/Elab/BuiltinTerm.c index fbe301439b..ec9f8626b8 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinTerm.c +++ b/stage0/stdlib/Lean/Elab/BuiltinTerm.c @@ -193,7 +193,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabSetOption_declRange___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTypeOf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__3; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic(lean_object*); @@ -430,6 +429,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkS static lean_object* l_Lean_pushScope___at_Lean_Elab_Term_elabOpen___spec__1___closed__1; static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__3; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabWaitIfTypeContainsMVar___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -7937,7 +7937,7 @@ x_11 = lean_ctor_get(x_7, 5); x_12 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); lean_ctor_set(x_7, 5, x_12); -x_13 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); return x_13; } @@ -7981,7 +7981,7 @@ lean_ctor_set(x_26, 7, x_21); lean_ctor_set(x_26, 8, x_22); lean_ctor_set(x_26, 9, x_23); lean_ctor_set(x_26, 10, x_24); -x_27 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9); lean_dec(x_26); return x_27; } diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index 0313093927..2938b1e32a 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -24,7 +24,6 @@ static lean_object* l_Lean_Elab_Command_expandInitCmd___lambda__1___closed__32; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__4; static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__20; -lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); static lean_object* l_Lean_Elab_Command_elabDeclaration___closed__9; size_t lean_usize_add(size_t, size_t); @@ -49,6 +48,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace_declR LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabDeclaration___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabDeclaration___spec__5___rarg(lean_object*); +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___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_elabDeclaration___closed__8; static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__7; lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -191,7 +191,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutual lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandInitCmd___lambda__1___closed__26; -lean_object* l_Lean_addDecl___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_Lean_Elab_Command_elabDeclaration___closed__10; static lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__5; uint8_t l_Lean_isExtern(lean_object*, lean_object*); @@ -371,6 +370,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_ 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_expandInitCmd___lambda__1___closed__25; static lean_object* l_Lean_Elab_Command_expandInitCmd___lambda__1___closed__6; +lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__17; LEAN_EXPORT lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_expandDeclNamespace_x3f(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -3671,7 +3671,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_56); -x_59 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_56, x_10, x_11, x_12, x_13, x_14, x_15, x_58); +x_59 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_56, x_10, x_11, x_12, x_13, x_14, x_15, x_58); if (lean_obj_tag(x_59) == 0) { lean_object* x_60; lean_object* x_61; lean_object* x_62; @@ -3738,7 +3738,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_74 = l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(x_56, x_10, x_11, x_12, x_13, x_14, x_15, x_69); +x_74 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(x_56, x_10, x_11, x_12, x_13, x_14, x_15, x_69); if (lean_obj_tag(x_74) == 0) { lean_object* x_75; uint8_t x_76; lean_object* x_77; diff --git a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c index 987b4127a7..50391c981a 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c @@ -145,6 +145,7 @@ static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__1 static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__16; static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__6; LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__24; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Deriving_mkDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -161,7 +162,6 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Ela static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__32; LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_DecEq_mkDecEqInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__3___closed__9; -lean_object* l_Lean_addAndCompile___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__3___closed__6; @@ -7197,7 +7197,7 @@ lean_ctor_set(x_36, 3, x_33); lean_ctor_set_uint8(x_36, sizeof(void*)*4, x_35); x_37 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_37, 0, x_36); -x_38 = l_Lean_addAndCompile___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__6(x_37, x_7, x_8, x_9, x_10, x_29); +x_38 = l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(x_37, x_7, x_8, x_9, x_10, x_29); return x_38; } else @@ -7435,7 +7435,7 @@ lean_ctor_set(x_44, 1, x_35); lean_ctor_set(x_44, 2, x_43); x_45 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_45, 0, x_44); -x_46 = l_Lean_addAndCompile___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__6(x_45, x_9, x_10, x_11, x_12, x_39); +x_46 = l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(x_45, x_9, x_10, x_11, x_12, x_39); return x_46; } else diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 0e15bad9bf..b772e5e5f2 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -56,6 +56,7 @@ lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(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_Do_mkSimpleJmp___closed__8; +lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode___closed__1; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__23; @@ -78,6 +79,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRang lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_mkMatch___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData(lean_object*); +lean_object* l_Lean_mkSort(lean_object*); static lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__26; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__16; lean_object* l_Lean_Syntax_getHeadInfo_x3f(lean_object*); @@ -139,6 +141,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__15; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__14; static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__29; lean_object* l_Lean_SourceInfo_fromRef(lean_object*); @@ -162,7 +165,6 @@ static lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__2 static lean_object* l_Lean_Elab_Term_Do_ToTerm_mkIte___closed__5; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_pullExitPointsAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_extendUpdatedVarsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); @@ -865,7 +867,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_toDoElem(lea LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__5(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_EXPORT lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__15; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30705_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30759_(lean_object*); static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__9; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__3; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___closed__3; @@ -924,6 +926,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_pullExitPoints(lean_object*, lean_o extern lean_object* l_Lean_Elab_macroAttribute; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Lean_mkLevelSucc(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__3; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__5; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__5; @@ -953,6 +956,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1 uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_mkReassignCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Elab_Term_Do_insertVars___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -991,6 +995,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeB static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__21; static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__27; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_extendUpdatedVarsAux_update___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__22; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__2; @@ -1070,6 +1075,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLiftMethod(lean_object*, lean_obje static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__19; static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__10; static lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__3; +lean_object* l_Lean_Meta_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageData___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_withNewMutableVars___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__3; @@ -1083,6 +1089,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__21 static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__2; static lean_object* l_Lean_Elab_Term_Do_mkSimpleJmp___closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_mkSimpleJmp___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_Kind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_Do_ToCodeBlock_Context_insideFor___default; @@ -1152,7 +1159,6 @@ static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimit LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_convertTerminalActionIntoJmp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__4; LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__15; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); @@ -1163,7 +1169,6 @@ lean_object* l_Lean_indentD(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___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_Term_elabLiftMethod_declRange___closed__7; extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; -static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3___closed__7; uint8_t l_Lean_Syntax_isEscapedAntiquot(lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__7; @@ -1238,7 +1243,6 @@ uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__1; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__7; LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Term_Do_mkJmp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_getDoReassignVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__3; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__4; @@ -2568,86 +2572,74 @@ x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_9; -lean_dec(x_3); +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; 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_object* x_29; lean_object* x_30; lean_object* x_31; +x_6 = l_Lean_Meta_mkFreshLevelMVar(x_1, x_2, x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_9 = l_Lean_Meta_unfoldDefinition_x3f(x_1, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Meta_mkFreshLevelMVar(x_1, x_2, x_3, x_4, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_ctor_get(x_10, 0); -lean_inc(x_15); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(x_2, x_15, x_4, x_5, x_6, x_7, x_14); -return x_16; -} -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_17 = lean_ctor_get(x_9, 0); +x_12 = l_Lean_mkLevelSucc(x_7); +x_13 = l_Lean_mkSort(x_12); +x_14 = l_Lean_mkLevelSucc(x_10); +x_15 = l_Lean_mkSort(x_14); +lean_inc(x_13); +x_16 = l_Lean_Meta_mkArrow(x_13, x_15, x_1, x_2, x_3, x_4, x_11); +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -x_18 = lean_ctor_get(x_9, 1); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); -lean_dec(x_9); -x_19 = lean_alloc_ctor(1, 2, 0); +lean_dec(x_16); +x_19 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +x_20 = 0; +x_21 = lean_box(0); +lean_inc(x_1); +x_22 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_19, x_20, x_21, x_1, x_2, x_3, x_4, x_18); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_13); +x_26 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_25, x_20, x_21, x_1, x_2, x_3, x_4, x_24); +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); +lean_inc(x_27); +lean_inc(x_23); +x_29 = l_Lean_mkApp(x_23, x_27); +x_30 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 1, x_27); +lean_ctor_set(x_30, 2, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +return x_31; } } -} -static lean_object* _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1() { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult___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_1; -x_1 = lean_mk_string_from_bytes("invalid 'do' notation, expected type is not available", 53); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +lean_object* x_6; +x_6 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult(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_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { @@ -2702,95 +2694,151 @@ x_17 = l_Lean_Expr_isMVar(x_16); lean_dec(x_16); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_box(0); -x_19 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___lambda__1(x_12, x_1, x_18, x_3, x_4, x_5, x_6, x_13); -return x_19; +lean_object* x_18; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_18 = l_Lean_Meta_unfoldDefinition_x3f(x_12, x_3, x_4, x_5, x_6, x_13); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +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_20); +return x_22; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_ctor_get(x_19, 0); +lean_inc(x_24); +lean_dec(x_19); +x_2 = x_24; +x_7 = x_23; +goto _start; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_26 = lean_ctor_get(x_18, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_18, 1); +lean_inc(x_27); +lean_dec(x_18); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_dec(x_12); lean_dec(x_1); -x_20 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2; -x_21 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_20, x_3, x_4, x_5, x_6, x_13); +x_29 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult(x_3, x_4, x_5, x_6, x_13); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_22 = lean_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(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_30); +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_25; lean_object* x_26; lean_object* x_27; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_25 = lean_ctor_get(x_11, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_11, 1); -lean_inc(x_26); +x_34 = lean_ctor_get(x_11, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_11, 1); +lean_inc(x_35); lean_dec(x_11); -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; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_28 = lean_ctor_get(x_8, 1); -lean_inc(x_28); +x_37 = lean_ctor_get(x_8, 1); +lean_inc(x_37); lean_dec(x_8); -x_29 = lean_ctor_get(x_9, 0); -lean_inc(x_29); +x_38 = lean_ctor_get(x_9, 0); +lean_inc(x_38); lean_dec(x_9); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_28); -return x_31; +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_37); +return x_40; } } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_32 = lean_ctor_get(x_8, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_8, 1); -lean_inc(x_33); +x_41 = lean_ctor_get(x_8, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_8, 1); +lean_inc(x_42); lean_dec(x_8); -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; +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; } } } @@ -2991,96 +3039,95 @@ _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2; -x_10 = l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___spec__1(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_9; +lean_dec(x_2); +x_9 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_mkUnknownMonadResult(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); -return x_10; +return x_9; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_1, 0); -lean_inc(x_11); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); lean_dec(x_1); -lean_inc(x_11); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1), 7, 1); -lean_closure_set(x_12, 0, x_11); +lean_inc(x_10); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1), 7, 1); +lean_closure_set(x_11, 0, x_10); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_11); -x_13 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(x_12, x_11, x_4, x_5, x_6, x_7, x_8); +lean_inc(x_10); +x_12 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f(x_11, x_10, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(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; +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -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; -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_indentExpr(x_11); -x_17 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2; -x_18 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__4; -x_20 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___spec__1(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_15); +lean_dec(x_12); +x_15 = l_Lean_indentExpr(x_10); +x_16 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__2; +x_17 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__4; +x_19 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___spec__1(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_14); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_21; +return x_20; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_11); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_22 = lean_ctor_get(x_13, 1); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_dec(x_12); +x_22 = lean_ctor_get(x_13, 0); lean_inc(x_22); lean_dec(x_13); -x_23 = lean_ctor_get(x_14, 0); -lean_inc(x_23); -lean_dec(x_14); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -return x_24; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; } } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_11); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_25 = lean_ctor_get(x_13, 0); +x_24 = lean_ctor_get(x_12, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_12, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_13, 1); -lean_inc(x_26); -lean_dec(x_13); -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_dec(x_12); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } @@ -16478,7 +16525,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__2; -x_3 = lean_unsigned_to_nat(762u); +x_3 = lean_unsigned_to_nat(765u); x_4 = lean_unsigned_to_nat(13u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -17720,7 +17767,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__21; -x_3 = lean_unsigned_to_nat(880u); +x_3 = lean_unsigned_to_nat(883u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -18772,7 +18819,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__1; -x_3 = lean_unsigned_to_nat(889u); +x_3 = lean_unsigned_to_nat(892u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19024,7 +19071,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__1; -x_3 = lean_unsigned_to_nat(893u); +x_3 = lean_unsigned_to_nat(896u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19757,7 +19804,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__1; -x_3 = lean_unsigned_to_nat(901u); +x_3 = lean_unsigned_to_nat(904u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19843,7 +19890,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__1; -x_3 = lean_unsigned_to_nat(905u); +x_3 = lean_unsigned_to_nat(908u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -20701,7 +20748,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__13; -x_3 = lean_unsigned_to_nat(916u); +x_3 = lean_unsigned_to_nat(919u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -24772,7 +24819,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_mkNestedKind___closed__1; -x_3 = lean_unsigned_to_nat(1049u); +x_3 = lean_unsigned_to_nat(1052u); x_4 = lean_unsigned_to_nat(27u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -24941,7 +24988,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__1; -x_3 = lean_unsigned_to_nat(1105u); +x_3 = lean_unsigned_to_nat(1108u); x_4 = lean_unsigned_to_nat(27u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -43418,7 +43465,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1604u); +x_1 = lean_unsigned_to_nat(1607u); x_2 = lean_unsigned_to_nat(24u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43430,7 +43477,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1611u); +x_1 = lean_unsigned_to_nat(1614u); x_2 = lean_unsigned_to_nat(84u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43458,7 +43505,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1604u); +x_1 = lean_unsigned_to_nat(1607u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43470,7 +43517,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1604u); +x_1 = lean_unsigned_to_nat(1607u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43516,7 +43563,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30705_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30759_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -43672,7 +43719,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1625u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43684,7 +43731,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1625u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43712,7 +43759,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1625u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43724,7 +43771,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1625u); x_2 = lean_unsigned_to_nat(17u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43830,7 +43877,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1628u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43842,7 +43889,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1628u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43870,7 +43917,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1628u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43882,7 +43929,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1628u); x_2 = lean_unsigned_to_nat(17u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43988,7 +44035,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1628u); +x_1 = lean_unsigned_to_nat(1631u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44000,7 +44047,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1628u); +x_1 = lean_unsigned_to_nat(1631u); x_2 = lean_unsigned_to_nat(68u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44028,7 +44075,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1628u); +x_1 = lean_unsigned_to_nat(1631u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44040,7 +44087,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1628u); +x_1 = lean_unsigned_to_nat(1631u); x_2 = lean_unsigned_to_nat(20u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44146,7 +44193,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1631u); +x_1 = lean_unsigned_to_nat(1634u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44158,7 +44205,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1631u); +x_1 = lean_unsigned_to_nat(1634u); x_2 = lean_unsigned_to_nat(68u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44186,7 +44233,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1631u); +x_1 = lean_unsigned_to_nat(1634u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44198,7 +44245,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1631u); +x_1 = lean_unsigned_to_nat(1634u); x_2 = lean_unsigned_to_nat(20u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44395,10 +44442,6 @@ l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1 lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__13); l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__14 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__14(); lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__14); -l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__1); -l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind_extract_x3f___closed__2); l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__1 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__1); l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__2 = _init_l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__2(); @@ -45549,7 +45592,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___closed_ res = l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30705_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30759_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Eval.c b/stage0/stdlib/Lean/Elab/Eval.c new file mode 100644 index 0000000000..6805251da7 --- /dev/null +++ b/stage0/stdlib/Lean/Elab/Eval.c @@ -0,0 +1,349 @@ +// Lean compiler output +// Module: Lean.Elab.Eval +// Imports: Init Lean.Meta.Eval Lean.Elab.SyntheticMVars +#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_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalExpr___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_abortTermExceptionId; +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg(lean_object*); +lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__2; +lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm(lean_object*); +static lean_object* _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_abortTermExceptionId; +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___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_throwAbortTerm___at_Lean_Elab_Term_evalTerm___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_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___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_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___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) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg), 1, 0); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_evalExpr___rarg(x_1, x_2, x_3, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +lean_inc(x_1); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = lean_box(0); +x_13 = 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_14 = l_Lean_Elab_Term_elabTermEnsuringType(x_2, x_11, x_13, x_13, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +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; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_18 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_17, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +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; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +lean_inc(x_7); +x_20 = l_Lean_Meta_instantiateMVars(x_15, x_6, x_7, x_8, x_9, x_19); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_7); +lean_inc(x_21); +x_23 = l_Lean_Meta_getMVars(x_21, x_6, x_7, x_8, x_9, x_22); +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); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_26 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_24, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +lean_dec(x_24); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +lean_dec(x_27); +if (x_28 == 0) +{ +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 = l_Lean_Meta_evalExpr___rarg(x_1, x_21, x_3, x_6, x_7, x_8, x_9, x_29); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_21); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +lean_dec(x_26); +x_32 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg(x_31); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +return x_32; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_21); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_26); +if (x_37 == 0) +{ +return x_26; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_26, 0); +x_39 = lean_ctor_get(x_26, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_26); +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 +{ +uint8_t x_41; +lean_dec(x_15); +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_1); +x_41 = !lean_is_exclusive(x_18); +if (x_41 == 0) +{ +return x_18; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_18, 0); +x_43 = lean_ctor_get(x_18, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_18); +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_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); +x_45 = !lean_is_exclusive(x_14); +if (x_45 == 0) +{ +return x_14; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_14, 0); +x_47 = lean_ctor_get(x_14, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_14); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_evalTerm___rarg___boxed), 10, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_3); +lean_dec(x_3); +x_13 = l_Lean_Elab_Term_evalTerm___rarg___lambda__1(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalTerm___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = l_Lean_Elab_Term_evalTerm___rarg(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +lean_object* initialize_Init(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Eval(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_SyntheticMVars(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Elab_Eval(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Eval(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Elab_SyntheticMVars(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__1); +l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__2(); +lean_mark_persistent(l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_evalTerm___spec__1___rarg___closed__2); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index a6d27130c7..c151103564 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -61,6 +61,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_withCto LEAN_EXPORT lean_object* l_Lean_Elab_Command_withCtorRef___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkResultingUniverses_check___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___closed__2; +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkResultingUniverses___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isPartial(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -298,7 +299,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Inducti LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__7___boxed__const__1; LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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*, lean_object*); static lean_object* l_Lean_Elab_Command_accLevelAtCtor___lambda__2___closed__4; @@ -462,7 +462,6 @@ lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_ob static lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyDerivingHandlers___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams___spec__11(lean_object*, size_t, size_t); -lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_reorderCtorArgs___spec__3___lambda__2(lean_object*); static lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams___lambda__3___closed__2; uint8_t l_Lean_Expr_isForall(lean_object*); @@ -545,6 +544,7 @@ static lean_object* l_List_mapTRAux___at___private_Lean_Elab_Inductive_0__Lean_E LEAN_EXPORT lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint8_t l_instInhabitedBool; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabInductiveViews___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_withCtorRef___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses_go___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_withCtorRef___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); @@ -17670,7 +17670,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_15; } else @@ -17886,7 +17886,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_15; } else @@ -18102,7 +18102,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_15; } else @@ -18318,7 +18318,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_15; } else @@ -19103,7 +19103,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_15; } else @@ -19319,7 +19319,7 @@ lean_object* x_14; lean_object* x_15; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_15 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_15; } else @@ -27162,7 +27162,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_29 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_26, x_9, x_10, x_11, x_12, x_13, x_14, x_28); +x_29 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_26, x_9, x_10, x_11, x_12, x_13, x_14, x_28); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; diff --git a/stage0/stdlib/Lean/Elab/LetRec.c b/stage0/stdlib/Lean/Elab/LetRec.c index b03bce428b..0aade96d25 100644 --- a/stage0/stdlib/Lean/Elab/LetRec.c +++ b/stage0/stdlib/Lean/Elab/LetRec.c @@ -98,7 +98,6 @@ lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_T lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__8; static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___closed__9; -lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__12___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__12___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*); @@ -171,6 +170,7 @@ lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__16___closed__2; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2859,7 +2859,7 @@ x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); lean_inc(x_26); -x_32 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(x_26, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +x_32 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(x_26, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_31); x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec(x_32); diff --git a/stage0/stdlib/Lean/Elab/MacroArgUtil.c b/stage0/stdlib/Lean/Elab/MacroArgUtil.c index 1dac76f84e..b2fdb036db 100644 --- a/stage0/stdlib/Lean/Elab/MacroArgUtil.c +++ b/stage0/stdlib/Lean/Elab/MacroArgUtil.c @@ -64,6 +64,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacroArg___lambda__1(lean_obj lean_object* lean_string_utf8_byte_size(lean_object*); static lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__29; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__31; static lean_object* l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___lambda__2___closed__2; static lean_object* l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___closed__5; lean_object* l_Lean_Syntax_mkAntiquotNode(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -121,6 +122,7 @@ static lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__ LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__10; +static lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__32; lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___spec__7___closed__1; static lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__2___closed__1; @@ -9567,26 +9569,31 @@ return x_3; static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__20() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("term", 4); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__18; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__21() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__20; -x_3 = lean_name_mk_string(x_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_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__18; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__20; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__22() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("interpolatedStrKind", 19); +x_1 = lean_mk_string_from_bytes("term", 4); return x_1; } } @@ -9604,45 +9611,43 @@ static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___cl _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("?", 1); +x_1 = lean_mk_string_from_bytes("interpolatedStrKind", 19); return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__25() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__24; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__26() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("?", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__27() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string_from_bytes("token_antiquot", 14); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__26() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__25; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__27() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("%", 1); -return x_1; -} -} static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(2); +x_1 = lean_box(0); x_2 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__27; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -9650,7 +9655,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___cl _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("$", 1); +x_1 = lean_mk_string_from_bytes("%", 1); return x_1; } } @@ -9666,6 +9671,26 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__31() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("$", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__32() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__31; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat(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: { @@ -11740,49 +11765,236 @@ lean_object* x_630; lean_object* x_631; lean_dec(x_3); x_630 = l_Lean_Syntax_getArg(x_577, x_514); lean_dec(x_577); +lean_inc(x_5); +lean_inc(x_4); x_631 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat(x_1, x_2, x_630, x_4, x_5, x_6); if (lean_obj_tag(x_631) == 0) { -uint8_t x_632; -x_632 = !lean_is_exclusive(x_631); -if (x_632 == 0) -{ -return x_631; -} -else -{ -lean_object* x_633; lean_object* x_634; lean_object* x_635; -x_633 = lean_ctor_get(x_631, 0); -x_634 = lean_ctor_get(x_631, 1); -lean_inc(x_634); +lean_object* x_632; lean_object* x_633; uint8_t x_634; +x_632 = lean_ctor_get(x_631, 0); +lean_inc(x_632); +x_633 = lean_ctor_get(x_631, 1); lean_inc(x_633); lean_dec(x_631); -x_635 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_635, 0, x_633); -lean_ctor_set(x_635, 1, x_634); -return x_635; +x_634 = !lean_is_exclusive(x_632); +if (x_634 == 0) +{ +lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; uint8_t x_643; +x_635 = lean_ctor_get(x_632, 0); +x_636 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_633); +x_637 = lean_ctor_get(x_636, 0); +lean_inc(x_637); +x_638 = lean_ctor_get(x_636, 1); +lean_inc(x_638); +lean_dec(x_636); +x_639 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_638); +lean_dec(x_4); +x_640 = lean_ctor_get(x_639, 0); +lean_inc(x_640); +x_641 = lean_ctor_get(x_639, 1); +lean_inc(x_641); +lean_dec(x_639); +x_642 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_641); +lean_dec(x_5); +x_643 = !lean_is_exclusive(x_642); +if (x_643 == 0) +{ +lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; +x_644 = lean_ctor_get(x_642, 0); +x_645 = l_Lean_addMacroScope(x_644, x_524, x_640); +x_646 = lean_box(0); +x_647 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__21; +lean_inc(x_637); +x_648 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_648, 0, x_637); +lean_ctor_set(x_648, 1, x_647); +lean_ctor_set(x_648, 2, x_645); +lean_ctor_set(x_648, 3, x_646); +x_649 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_637); +x_650 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_650, 0, x_637); +lean_ctor_set(x_650, 1, x_649); +x_651 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +x_652 = lean_array_push(x_651, x_635); +x_653 = lean_box(2); +x_654 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_655 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_655, 0, x_653); +lean_ctor_set(x_655, 1, x_654); +lean_ctor_set(x_655, 2, x_652); +x_656 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_657 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_657, 0, x_637); +lean_ctor_set(x_657, 1, x_656); +x_658 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_659 = lean_array_push(x_658, x_648); +x_660 = lean_array_push(x_659, x_650); +x_661 = lean_array_push(x_660, x_655); +x_662 = lean_array_push(x_661, x_657); +x_663 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_663, 0, x_653); +lean_ctor_set(x_663, 1, x_12); +lean_ctor_set(x_663, 2, x_662); +lean_ctor_set(x_632, 0, x_663); +lean_ctor_set(x_642, 0, x_632); +return x_642; +} +else +{ +lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; +x_664 = lean_ctor_get(x_642, 0); +x_665 = lean_ctor_get(x_642, 1); +lean_inc(x_665); +lean_inc(x_664); +lean_dec(x_642); +x_666 = l_Lean_addMacroScope(x_664, x_524, x_640); +x_667 = lean_box(0); +x_668 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__21; +lean_inc(x_637); +x_669 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_669, 0, x_637); +lean_ctor_set(x_669, 1, x_668); +lean_ctor_set(x_669, 2, x_666); +lean_ctor_set(x_669, 3, x_667); +x_670 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_637); +x_671 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_671, 0, x_637); +lean_ctor_set(x_671, 1, x_670); +x_672 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +x_673 = lean_array_push(x_672, x_635); +x_674 = lean_box(2); +x_675 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_676 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_676, 0, x_674); +lean_ctor_set(x_676, 1, x_675); +lean_ctor_set(x_676, 2, x_673); +x_677 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_678 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_678, 0, x_637); +lean_ctor_set(x_678, 1, x_677); +x_679 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_680 = lean_array_push(x_679, x_669); +x_681 = lean_array_push(x_680, x_671); +x_682 = lean_array_push(x_681, x_676); +x_683 = lean_array_push(x_682, x_678); +x_684 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_684, 0, x_674); +lean_ctor_set(x_684, 1, x_12); +lean_ctor_set(x_684, 2, x_683); +lean_ctor_set(x_632, 0, x_684); +x_685 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_685, 0, x_632); +lean_ctor_set(x_685, 1, x_665); +return x_685; } } else { -uint8_t x_636; -x_636 = !lean_is_exclusive(x_631); -if (x_636 == 0) +lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; +x_686 = lean_ctor_get(x_632, 0); +x_687 = lean_ctor_get(x_632, 1); +lean_inc(x_687); +lean_inc(x_686); +lean_dec(x_632); +x_688 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_633); +x_689 = lean_ctor_get(x_688, 0); +lean_inc(x_689); +x_690 = lean_ctor_get(x_688, 1); +lean_inc(x_690); +lean_dec(x_688); +x_691 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_690); +lean_dec(x_4); +x_692 = lean_ctor_get(x_691, 0); +lean_inc(x_692); +x_693 = lean_ctor_get(x_691, 1); +lean_inc(x_693); +lean_dec(x_691); +x_694 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_693); +lean_dec(x_5); +x_695 = lean_ctor_get(x_694, 0); +lean_inc(x_695); +x_696 = lean_ctor_get(x_694, 1); +lean_inc(x_696); +if (lean_is_exclusive(x_694)) { + lean_ctor_release(x_694, 0); + lean_ctor_release(x_694, 1); + x_697 = x_694; +} else { + lean_dec_ref(x_694); + x_697 = lean_box(0); +} +x_698 = l_Lean_addMacroScope(x_695, x_524, x_692); +x_699 = lean_box(0); +x_700 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__21; +lean_inc(x_689); +x_701 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_701, 0, x_689); +lean_ctor_set(x_701, 1, x_700); +lean_ctor_set(x_701, 2, x_698); +lean_ctor_set(x_701, 3, x_699); +x_702 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_689); +x_703 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_703, 0, x_689); +lean_ctor_set(x_703, 1, x_702); +x_704 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +x_705 = lean_array_push(x_704, x_686); +x_706 = lean_box(2); +x_707 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_708 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_708, 0, x_706); +lean_ctor_set(x_708, 1, x_707); +lean_ctor_set(x_708, 2, x_705); +x_709 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_710 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_710, 0, x_689); +lean_ctor_set(x_710, 1, x_709); +x_711 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_712 = lean_array_push(x_711, x_701); +x_713 = lean_array_push(x_712, x_703); +x_714 = lean_array_push(x_713, x_708); +x_715 = lean_array_push(x_714, x_710); +x_716 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_716, 0, x_706); +lean_ctor_set(x_716, 1, x_12); +lean_ctor_set(x_716, 2, x_715); +x_717 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_717, 0, x_716); +lean_ctor_set(x_717, 1, x_687); +if (lean_is_scalar(x_697)) { + x_718 = lean_alloc_ctor(0, 2, 0); +} else { + x_718 = x_697; +} +lean_ctor_set(x_718, 0, x_717); +lean_ctor_set(x_718, 1, x_696); +return x_718; +} +} +else +{ +uint8_t x_719; +lean_dec(x_5); +lean_dec(x_4); +x_719 = !lean_is_exclusive(x_631); +if (x_719 == 0) { return x_631; } else { -lean_object* x_637; lean_object* x_638; lean_object* x_639; -x_637 = lean_ctor_get(x_631, 0); -x_638 = lean_ctor_get(x_631, 1); -lean_inc(x_638); -lean_inc(x_637); +lean_object* x_720; lean_object* x_721; lean_object* x_722; +x_720 = lean_ctor_get(x_631, 0); +x_721 = lean_ctor_get(x_631, 1); +lean_inc(x_721); +lean_inc(x_720); lean_dec(x_631); -x_639 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_639, 0, x_637); -lean_ctor_set(x_639, 1, x_638); -return x_639; +x_722 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_722, 0, x_720); +lean_ctor_set(x_722, 1, x_721); +return x_722; } } } @@ -11790,1170 +12002,842 @@ return x_639; } else { -lean_object* x_640; lean_object* x_641; lean_object* x_642; uint8_t x_643; +lean_object* x_723; lean_object* x_724; lean_object* x_725; uint8_t x_726; lean_dec(x_515); -x_640 = lean_unsigned_to_nat(2u); -x_641 = l_Lean_Syntax_getArg(x_3, x_640); -x_642 = lean_unsigned_to_nat(1u); -lean_inc(x_641); -x_643 = l_Lean_Syntax_matchesNull(x_641, x_642); -if (x_643 == 0) +x_723 = lean_unsigned_to_nat(2u); +x_724 = l_Lean_Syntax_getArg(x_3, x_723); +x_725 = lean_unsigned_to_nat(1u); +lean_inc(x_724); +x_726 = l_Lean_Syntax_matchesNull(x_724, x_725); +if (x_726 == 0) { -lean_dec(x_641); +lean_dec(x_724); if (lean_obj_tag(x_1) == 0) { -lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; -x_644 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_645 = lean_ctor_get(x_644, 0); -lean_inc(x_645); -x_646 = lean_ctor_get(x_644, 1); -lean_inc(x_646); -lean_dec(x_644); -x_647 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_646); -x_648 = lean_ctor_get(x_647, 0); -lean_inc(x_648); -x_649 = lean_ctor_get(x_647, 1); -lean_inc(x_649); -lean_dec(x_647); -x_650 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_649); -x_651 = lean_ctor_get(x_650, 0); -lean_inc(x_651); -x_652 = lean_ctor_get(x_650, 1); -lean_inc(x_652); -lean_dec(x_650); -x_653 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_654 = l_Lean_addMacroScope(x_651, x_653, x_648); -x_655 = lean_box(0); -x_656 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_645); -x_657 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_657, 0, x_645); -lean_ctor_set(x_657, 1, x_656); -lean_ctor_set(x_657, 2, x_654); -lean_ctor_set(x_657, 3, x_655); -x_658 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_645); -x_659 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_659, 0, x_645); -lean_ctor_set(x_659, 1, x_658); -x_660 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; -lean_inc(x_3); -x_661 = lean_array_push(x_660, x_3); -x_662 = lean_box(2); -x_663 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_664 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_664, 0, x_662); -lean_ctor_set(x_664, 1, x_663); -lean_ctor_set(x_664, 2, x_661); -x_665 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_666 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_666, 0, x_645); -lean_ctor_set(x_666, 1, x_665); -x_667 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_668 = lean_array_push(x_667, x_657); -x_669 = lean_array_push(x_668, x_659); -x_670 = lean_array_push(x_669, x_664); -x_671 = lean_array_push(x_670, x_666); -x_672 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_672, 0, x_662); -lean_ctor_set(x_672, 1, x_12); -lean_ctor_set(x_672, 2, x_671); -x_673 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_652); -if (lean_obj_tag(x_673) == 0) -{ -uint8_t x_674; -x_674 = !lean_is_exclusive(x_673); -if (x_674 == 0) -{ -lean_object* x_675; lean_object* x_676; -x_675 = lean_ctor_get(x_673, 0); -x_676 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_676, 0, x_672); -lean_ctor_set(x_676, 1, x_675); -lean_ctor_set(x_673, 0, x_676); -return x_673; -} -else -{ -lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; -x_677 = lean_ctor_get(x_673, 0); -x_678 = lean_ctor_get(x_673, 1); -lean_inc(x_678); -lean_inc(x_677); -lean_dec(x_673); -x_679 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_679, 0, x_672); -lean_ctor_set(x_679, 1, x_677); -x_680 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_680, 0, x_679); -lean_ctor_set(x_680, 1, x_678); -return x_680; -} -} -else -{ -uint8_t x_681; -lean_dec(x_672); -x_681 = !lean_is_exclusive(x_673); -if (x_681 == 0) -{ -return x_673; -} -else -{ -lean_object* x_682; lean_object* x_683; lean_object* x_684; -x_682 = lean_ctor_get(x_673, 0); -x_683 = lean_ctor_get(x_673, 1); -lean_inc(x_683); -lean_inc(x_682); -lean_dec(x_673); -x_684 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_684, 0, x_682); -lean_ctor_set(x_684, 1, x_683); -return x_684; -} -} -} -else -{ -lean_object* x_685; lean_object* x_686; -lean_dec(x_2); -x_685 = lean_ctor_get(x_1, 0); -lean_inc(x_685); -lean_dec(x_1); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_686 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_685, x_4, x_5, x_6); -if (lean_obj_tag(x_686) == 0) -{ -lean_object* x_687; lean_object* x_688; lean_object* x_689; -x_687 = lean_ctor_get(x_686, 0); -lean_inc(x_687); -x_688 = lean_ctor_get(x_686, 1); -lean_inc(x_688); -lean_dec(x_686); -x_689 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_687, x_4, x_5, x_688); -lean_dec(x_5); -lean_dec(x_4); -return x_689; -} -else -{ -uint8_t x_690; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_690 = !lean_is_exclusive(x_686); -if (x_690 == 0) -{ -return x_686; -} -else -{ -lean_object* x_691; lean_object* x_692; lean_object* x_693; -x_691 = lean_ctor_get(x_686, 0); -x_692 = lean_ctor_get(x_686, 1); -lean_inc(x_692); -lean_inc(x_691); -lean_dec(x_686); -x_693 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_693, 0, x_691); -lean_ctor_set(x_693, 1, x_692); -return x_693; -} -} -} -} -else -{ -lean_object* x_694; lean_object* x_695; uint8_t x_696; -x_694 = l_Lean_Syntax_getArg(x_641, x_514); -lean_dec(x_641); -x_695 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___closed__8; -lean_inc(x_694); -x_696 = l_Lean_Syntax_isOfKind(x_694, x_695); -if (x_696 == 0) -{ -lean_dec(x_694); -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; -x_697 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_698 = lean_ctor_get(x_697, 0); -lean_inc(x_698); -x_699 = lean_ctor_get(x_697, 1); -lean_inc(x_699); -lean_dec(x_697); -x_700 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_699); -x_701 = lean_ctor_get(x_700, 0); -lean_inc(x_701); -x_702 = lean_ctor_get(x_700, 1); -lean_inc(x_702); -lean_dec(x_700); -x_703 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_702); -x_704 = lean_ctor_get(x_703, 0); -lean_inc(x_704); -x_705 = lean_ctor_get(x_703, 1); -lean_inc(x_705); -lean_dec(x_703); -x_706 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_707 = l_Lean_addMacroScope(x_704, x_706, x_701); -x_708 = lean_box(0); -x_709 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_698); -x_710 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_710, 0, x_698); -lean_ctor_set(x_710, 1, x_709); -lean_ctor_set(x_710, 2, x_707); -lean_ctor_set(x_710, 3, x_708); -x_711 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_698); -x_712 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_712, 0, x_698); -lean_ctor_set(x_712, 1, x_711); -x_713 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; -lean_inc(x_3); -x_714 = lean_array_push(x_713, x_3); -x_715 = lean_box(2); -x_716 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_717 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_717, 0, x_715); -lean_ctor_set(x_717, 1, x_716); -lean_ctor_set(x_717, 2, x_714); -x_718 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_719 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_719, 0, x_698); -lean_ctor_set(x_719, 1, x_718); -x_720 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_721 = lean_array_push(x_720, x_710); -x_722 = lean_array_push(x_721, x_712); -x_723 = lean_array_push(x_722, x_717); -x_724 = lean_array_push(x_723, x_719); -x_725 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_725, 0, x_715); -lean_ctor_set(x_725, 1, x_12); -lean_ctor_set(x_725, 2, x_724); -x_726 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_705); -if (lean_obj_tag(x_726) == 0) -{ -uint8_t x_727; -x_727 = !lean_is_exclusive(x_726); -if (x_727 == 0) -{ -lean_object* x_728; lean_object* x_729; -x_728 = lean_ctor_get(x_726, 0); -x_729 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_729, 0, x_725); -lean_ctor_set(x_729, 1, x_728); -lean_ctor_set(x_726, 0, x_729); -return x_726; -} -else -{ -lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; -x_730 = lean_ctor_get(x_726, 0); -x_731 = lean_ctor_get(x_726, 1); +lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; +x_727 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_728 = lean_ctor_get(x_727, 0); +lean_inc(x_728); +x_729 = lean_ctor_get(x_727, 1); +lean_inc(x_729); +lean_dec(x_727); +x_730 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_729); +x_731 = lean_ctor_get(x_730, 0); lean_inc(x_731); -lean_inc(x_730); -lean_dec(x_726); -x_732 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_732, 0, x_725); -lean_ctor_set(x_732, 1, x_730); -x_733 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_733, 0, x_732); -lean_ctor_set(x_733, 1, x_731); -return x_733; -} -} -else -{ -uint8_t x_734; -lean_dec(x_725); -x_734 = !lean_is_exclusive(x_726); -if (x_734 == 0) -{ -return x_726; -} -else -{ -lean_object* x_735; lean_object* x_736; lean_object* x_737; -x_735 = lean_ctor_get(x_726, 0); -x_736 = lean_ctor_get(x_726, 1); -lean_inc(x_736); +x_732 = lean_ctor_get(x_730, 1); +lean_inc(x_732); +lean_dec(x_730); +x_733 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_732); +x_734 = lean_ctor_get(x_733, 0); +lean_inc(x_734); +x_735 = lean_ctor_get(x_733, 1); lean_inc(x_735); -lean_dec(x_726); -x_737 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_737, 0, x_735); -lean_ctor_set(x_737, 1, x_736); -return x_737; -} -} -} -else -{ -lean_object* x_738; lean_object* x_739; -lean_dec(x_2); -x_738 = lean_ctor_get(x_1, 0); -lean_inc(x_738); -lean_dec(x_1); -lean_inc(x_5); -lean_inc(x_4); +lean_dec(x_733); +x_736 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_737 = l_Lean_addMacroScope(x_734, x_736, x_731); +x_738 = lean_box(0); +x_739 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_728); +x_740 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_740, 0, x_728); +lean_ctor_set(x_740, 1, x_739); +lean_ctor_set(x_740, 2, x_737); +lean_ctor_set(x_740, 3, x_738); +x_741 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_728); +x_742 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_742, 0, x_728); +lean_ctor_set(x_742, 1, x_741); +x_743 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; lean_inc(x_3); -x_739 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_738, x_4, x_5, x_6); -if (lean_obj_tag(x_739) == 0) +x_744 = lean_array_push(x_743, x_3); +x_745 = lean_box(2); +x_746 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_747 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_747, 0, x_745); +lean_ctor_set(x_747, 1, x_746); +lean_ctor_set(x_747, 2, x_744); +x_748 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_749 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_749, 0, x_728); +lean_ctor_set(x_749, 1, x_748); +x_750 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_751 = lean_array_push(x_750, x_740); +x_752 = lean_array_push(x_751, x_742); +x_753 = lean_array_push(x_752, x_747); +x_754 = lean_array_push(x_753, x_749); +x_755 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_755, 0, x_745); +lean_ctor_set(x_755, 1, x_12); +lean_ctor_set(x_755, 2, x_754); +x_756 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_735); +if (lean_obj_tag(x_756) == 0) { -lean_object* x_740; lean_object* x_741; lean_object* x_742; -x_740 = lean_ctor_get(x_739, 0); -lean_inc(x_740); -x_741 = lean_ctor_get(x_739, 1); -lean_inc(x_741); -lean_dec(x_739); -x_742 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_740, x_4, x_5, x_741); -lean_dec(x_5); -lean_dec(x_4); -return x_742; +uint8_t x_757; +x_757 = !lean_is_exclusive(x_756); +if (x_757 == 0) +{ +lean_object* x_758; lean_object* x_759; +x_758 = lean_ctor_get(x_756, 0); +x_759 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_759, 0, x_755); +lean_ctor_set(x_759, 1, x_758); +lean_ctor_set(x_756, 0, x_759); +return x_756; } else { -uint8_t x_743; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_743 = !lean_is_exclusive(x_739); -if (x_743 == 0) -{ -return x_739; -} -else -{ -lean_object* x_744; lean_object* x_745; lean_object* x_746; -x_744 = lean_ctor_get(x_739, 0); -x_745 = lean_ctor_get(x_739, 1); -lean_inc(x_745); -lean_inc(x_744); -lean_dec(x_739); -x_746 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_746, 0, x_744); -lean_ctor_set(x_746, 1, x_745); -return x_746; -} -} -} -} -else -{ -lean_object* x_747; lean_object* x_748; uint8_t x_749; -x_747 = l_Lean_Syntax_getArg(x_694, x_514); -x_748 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__21; -x_749 = l_Lean_Syntax_matchesIdent(x_747, x_748); -lean_dec(x_747); -if (x_749 == 0) -{ -lean_dec(x_694); -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; -x_750 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_751 = lean_ctor_get(x_750, 0); -lean_inc(x_751); -x_752 = lean_ctor_get(x_750, 1); -lean_inc(x_752); -lean_dec(x_750); -x_753 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_752); -x_754 = lean_ctor_get(x_753, 0); -lean_inc(x_754); -x_755 = lean_ctor_get(x_753, 1); -lean_inc(x_755); -lean_dec(x_753); -x_756 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_755); -x_757 = lean_ctor_get(x_756, 0); -lean_inc(x_757); -x_758 = lean_ctor_get(x_756, 1); -lean_inc(x_758); +lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; +x_760 = lean_ctor_get(x_756, 0); +x_761 = lean_ctor_get(x_756, 1); +lean_inc(x_761); +lean_inc(x_760); lean_dec(x_756); -x_759 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_760 = l_Lean_addMacroScope(x_757, x_759, x_754); -x_761 = lean_box(0); -x_762 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_751); -x_763 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_763, 0, x_751); -lean_ctor_set(x_763, 1, x_762); -lean_ctor_set(x_763, 2, x_760); -lean_ctor_set(x_763, 3, x_761); -x_764 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_751); -x_765 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_765, 0, x_751); -lean_ctor_set(x_765, 1, x_764); -x_766 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; -lean_inc(x_3); -x_767 = lean_array_push(x_766, x_3); -x_768 = lean_box(2); -x_769 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_770 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_770, 0, x_768); -lean_ctor_set(x_770, 1, x_769); -lean_ctor_set(x_770, 2, x_767); -x_771 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_772 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_772, 0, x_751); -lean_ctor_set(x_772, 1, x_771); -x_773 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_774 = lean_array_push(x_773, x_763); -x_775 = lean_array_push(x_774, x_765); -x_776 = lean_array_push(x_775, x_770); -x_777 = lean_array_push(x_776, x_772); -x_778 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_778, 0, x_768); -lean_ctor_set(x_778, 1, x_12); -lean_ctor_set(x_778, 2, x_777); -x_779 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_758); -if (lean_obj_tag(x_779) == 0) -{ -uint8_t x_780; -x_780 = !lean_is_exclusive(x_779); -if (x_780 == 0) -{ -lean_object* x_781; lean_object* x_782; -x_781 = lean_ctor_get(x_779, 0); -x_782 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_782, 0, x_778); -lean_ctor_set(x_782, 1, x_781); -lean_ctor_set(x_779, 0, x_782); -return x_779; -} -else -{ -lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; -x_783 = lean_ctor_get(x_779, 0); -x_784 = lean_ctor_get(x_779, 1); -lean_inc(x_784); -lean_inc(x_783); -lean_dec(x_779); -x_785 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_785, 0, x_778); -lean_ctor_set(x_785, 1, x_783); -x_786 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_786, 0, x_785); -lean_ctor_set(x_786, 1, x_784); -return x_786; +x_762 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_762, 0, x_755); +lean_ctor_set(x_762, 1, x_760); +x_763 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_763, 0, x_762); +lean_ctor_set(x_763, 1, x_761); +return x_763; } } else { -uint8_t x_787; -lean_dec(x_778); -x_787 = !lean_is_exclusive(x_779); -if (x_787 == 0) +uint8_t x_764; +lean_dec(x_755); +x_764 = !lean_is_exclusive(x_756); +if (x_764 == 0) { -return x_779; +return x_756; } else { -lean_object* x_788; lean_object* x_789; lean_object* x_790; -x_788 = lean_ctor_get(x_779, 0); -x_789 = lean_ctor_get(x_779, 1); -lean_inc(x_789); -lean_inc(x_788); -lean_dec(x_779); -x_790 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_790, 0, x_788); -lean_ctor_set(x_790, 1, x_789); -return x_790; +lean_object* x_765; lean_object* x_766; lean_object* x_767; +x_765 = lean_ctor_get(x_756, 0); +x_766 = lean_ctor_get(x_756, 1); +lean_inc(x_766); +lean_inc(x_765); +lean_dec(x_756); +x_767 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_767, 0, x_765); +lean_ctor_set(x_767, 1, x_766); +return x_767; } } } else { -lean_object* x_791; lean_object* x_792; +lean_object* x_768; lean_object* x_769; lean_dec(x_2); -x_791 = lean_ctor_get(x_1, 0); -lean_inc(x_791); +x_768 = lean_ctor_get(x_1, 0); +lean_inc(x_768); lean_dec(x_1); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_792 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_791, x_4, x_5, x_6); -if (lean_obj_tag(x_792) == 0) +x_769 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_768, x_4, x_5, x_6); +if (lean_obj_tag(x_769) == 0) { -lean_object* x_793; lean_object* x_794; lean_object* x_795; -x_793 = lean_ctor_get(x_792, 0); -lean_inc(x_793); -x_794 = lean_ctor_get(x_792, 1); -lean_inc(x_794); -lean_dec(x_792); -x_795 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_793, x_4, x_5, x_794); +lean_object* x_770; lean_object* x_771; lean_object* x_772; +x_770 = lean_ctor_get(x_769, 0); +lean_inc(x_770); +x_771 = lean_ctor_get(x_769, 1); +lean_inc(x_771); +lean_dec(x_769); +x_772 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_770, x_4, x_5, x_771); lean_dec(x_5); lean_dec(x_4); -return x_795; +return x_772; } else { -uint8_t x_796; +uint8_t x_773; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_796 = !lean_is_exclusive(x_792); -if (x_796 == 0) +x_773 = !lean_is_exclusive(x_769); +if (x_773 == 0) { -return x_792; +return x_769; } else { -lean_object* x_797; lean_object* x_798; lean_object* x_799; -x_797 = lean_ctor_get(x_792, 0); -x_798 = lean_ctor_get(x_792, 1); -lean_inc(x_798); -lean_inc(x_797); -lean_dec(x_792); -x_799 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_799, 0, x_797); -lean_ctor_set(x_799, 1, x_798); -return x_799; +lean_object* x_774; lean_object* x_775; lean_object* x_776; +x_774 = lean_ctor_get(x_769, 0); +x_775 = lean_ctor_get(x_769, 1); +lean_inc(x_775); +lean_inc(x_774); +lean_dec(x_769); +x_776 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_776, 0, x_774); +lean_ctor_set(x_776, 1, x_775); +return x_776; } } } } else { -lean_object* x_800; uint8_t x_801; -x_800 = l_Lean_Syntax_getArg(x_694, x_642); -lean_dec(x_694); -x_801 = l_Lean_Syntax_matchesNull(x_800, x_514); -if (x_801 == 0) +lean_object* x_777; lean_object* x_778; uint8_t x_779; +x_777 = l_Lean_Syntax_getArg(x_724, x_514); +lean_dec(x_724); +x_778 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___closed__8; +lean_inc(x_777); +x_779 = l_Lean_Syntax_isOfKind(x_777, x_778); +if (x_779 == 0) { +lean_dec(x_777); if (lean_obj_tag(x_1) == 0) { -lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; -x_802 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_803 = lean_ctor_get(x_802, 0); -lean_inc(x_803); -x_804 = lean_ctor_get(x_802, 1); -lean_inc(x_804); -lean_dec(x_802); -x_805 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_804); -x_806 = lean_ctor_get(x_805, 0); -lean_inc(x_806); -x_807 = lean_ctor_get(x_805, 1); -lean_inc(x_807); -lean_dec(x_805); -x_808 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_807); -x_809 = lean_ctor_get(x_808, 0); -lean_inc(x_809); -x_810 = lean_ctor_get(x_808, 1); -lean_inc(x_810); -lean_dec(x_808); -x_811 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_812 = l_Lean_addMacroScope(x_809, x_811, x_806); -x_813 = lean_box(0); -x_814 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_803); -x_815 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_815, 0, x_803); -lean_ctor_set(x_815, 1, x_814); -lean_ctor_set(x_815, 2, x_812); -lean_ctor_set(x_815, 3, x_813); -x_816 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_803); -x_817 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_817, 0, x_803); -lean_ctor_set(x_817, 1, x_816); -x_818 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; +x_780 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_781 = lean_ctor_get(x_780, 0); +lean_inc(x_781); +x_782 = lean_ctor_get(x_780, 1); +lean_inc(x_782); +lean_dec(x_780); +x_783 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_782); +x_784 = lean_ctor_get(x_783, 0); +lean_inc(x_784); +x_785 = lean_ctor_get(x_783, 1); +lean_inc(x_785); +lean_dec(x_783); +x_786 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_785); +x_787 = lean_ctor_get(x_786, 0); +lean_inc(x_787); +x_788 = lean_ctor_get(x_786, 1); +lean_inc(x_788); +lean_dec(x_786); +x_789 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_790 = l_Lean_addMacroScope(x_787, x_789, x_784); +x_791 = lean_box(0); +x_792 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_781); +x_793 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_793, 0, x_781); +lean_ctor_set(x_793, 1, x_792); +lean_ctor_set(x_793, 2, x_790); +lean_ctor_set(x_793, 3, x_791); +x_794 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_781); +x_795 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_795, 0, x_781); +lean_ctor_set(x_795, 1, x_794); +x_796 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; lean_inc(x_3); -x_819 = lean_array_push(x_818, x_3); -x_820 = lean_box(2); -x_821 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_822 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_822, 0, x_820); -lean_ctor_set(x_822, 1, x_821); -lean_ctor_set(x_822, 2, x_819); -x_823 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_824 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_824, 0, x_803); -lean_ctor_set(x_824, 1, x_823); -x_825 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_826 = lean_array_push(x_825, x_815); -x_827 = lean_array_push(x_826, x_817); -x_828 = lean_array_push(x_827, x_822); -x_829 = lean_array_push(x_828, x_824); -x_830 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_830, 0, x_820); -lean_ctor_set(x_830, 1, x_12); -lean_ctor_set(x_830, 2, x_829); -x_831 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_810); -if (lean_obj_tag(x_831) == 0) +x_797 = lean_array_push(x_796, x_3); +x_798 = lean_box(2); +x_799 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_800 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_800, 0, x_798); +lean_ctor_set(x_800, 1, x_799); +lean_ctor_set(x_800, 2, x_797); +x_801 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_802 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_802, 0, x_781); +lean_ctor_set(x_802, 1, x_801); +x_803 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_804 = lean_array_push(x_803, x_793); +x_805 = lean_array_push(x_804, x_795); +x_806 = lean_array_push(x_805, x_800); +x_807 = lean_array_push(x_806, x_802); +x_808 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_808, 0, x_798); +lean_ctor_set(x_808, 1, x_12); +lean_ctor_set(x_808, 2, x_807); +x_809 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_788); +if (lean_obj_tag(x_809) == 0) { -uint8_t x_832; -x_832 = !lean_is_exclusive(x_831); +uint8_t x_810; +x_810 = !lean_is_exclusive(x_809); +if (x_810 == 0) +{ +lean_object* x_811; lean_object* x_812; +x_811 = lean_ctor_get(x_809, 0); +x_812 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_812, 0, x_808); +lean_ctor_set(x_812, 1, x_811); +lean_ctor_set(x_809, 0, x_812); +return x_809; +} +else +{ +lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; +x_813 = lean_ctor_get(x_809, 0); +x_814 = lean_ctor_get(x_809, 1); +lean_inc(x_814); +lean_inc(x_813); +lean_dec(x_809); +x_815 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_815, 0, x_808); +lean_ctor_set(x_815, 1, x_813); +x_816 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_816, 0, x_815); +lean_ctor_set(x_816, 1, x_814); +return x_816; +} +} +else +{ +uint8_t x_817; +lean_dec(x_808); +x_817 = !lean_is_exclusive(x_809); +if (x_817 == 0) +{ +return x_809; +} +else +{ +lean_object* x_818; lean_object* x_819; lean_object* x_820; +x_818 = lean_ctor_get(x_809, 0); +x_819 = lean_ctor_get(x_809, 1); +lean_inc(x_819); +lean_inc(x_818); +lean_dec(x_809); +x_820 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_820, 0, x_818); +lean_ctor_set(x_820, 1, x_819); +return x_820; +} +} +} +else +{ +lean_object* x_821; lean_object* x_822; +lean_dec(x_2); +x_821 = lean_ctor_get(x_1, 0); +lean_inc(x_821); +lean_dec(x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_822 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_821, x_4, x_5, x_6); +if (lean_obj_tag(x_822) == 0) +{ +lean_object* x_823; lean_object* x_824; lean_object* x_825; +x_823 = lean_ctor_get(x_822, 0); +lean_inc(x_823); +x_824 = lean_ctor_get(x_822, 1); +lean_inc(x_824); +lean_dec(x_822); +x_825 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_823, x_4, x_5, x_824); +lean_dec(x_5); +lean_dec(x_4); +return x_825; +} +else +{ +uint8_t x_826; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_826 = !lean_is_exclusive(x_822); +if (x_826 == 0) +{ +return x_822; +} +else +{ +lean_object* x_827; lean_object* x_828; lean_object* x_829; +x_827 = lean_ctor_get(x_822, 0); +x_828 = lean_ctor_get(x_822, 1); +lean_inc(x_828); +lean_inc(x_827); +lean_dec(x_822); +x_829 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_829, 0, x_827); +lean_ctor_set(x_829, 1, x_828); +return x_829; +} +} +} +} +else +{ +lean_object* x_830; lean_object* x_831; uint8_t x_832; +x_830 = l_Lean_Syntax_getArg(x_777, x_514); +x_831 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__23; +x_832 = l_Lean_Syntax_matchesIdent(x_830, x_831); +lean_dec(x_830); if (x_832 == 0) { -lean_object* x_833; lean_object* x_834; -x_833 = lean_ctor_get(x_831, 0); -x_834 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_834, 0, x_830); -lean_ctor_set(x_834, 1, x_833); -lean_ctor_set(x_831, 0, x_834); -return x_831; -} -else -{ -lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; -x_835 = lean_ctor_get(x_831, 0); -x_836 = lean_ctor_get(x_831, 1); -lean_inc(x_836); -lean_inc(x_835); -lean_dec(x_831); -x_837 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_837, 0, x_830); -lean_ctor_set(x_837, 1, x_835); -x_838 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_838, 0, x_837); -lean_ctor_set(x_838, 1, x_836); -return x_838; -} -} -else -{ -uint8_t x_839; -lean_dec(x_830); -x_839 = !lean_is_exclusive(x_831); -if (x_839 == 0) -{ -return x_831; -} -else -{ -lean_object* x_840; lean_object* x_841; lean_object* x_842; -x_840 = lean_ctor_get(x_831, 0); -x_841 = lean_ctor_get(x_831, 1); -lean_inc(x_841); -lean_inc(x_840); -lean_dec(x_831); -x_842 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_842, 0, x_840); -lean_ctor_set(x_842, 1, x_841); -return x_842; -} -} -} -else -{ -lean_object* x_843; lean_object* x_844; -lean_dec(x_2); -x_843 = lean_ctor_get(x_1, 0); -lean_inc(x_843); -lean_dec(x_1); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_844 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_843, x_4, x_5, x_6); -if (lean_obj_tag(x_844) == 0) -{ -lean_object* x_845; lean_object* x_846; lean_object* x_847; -x_845 = lean_ctor_get(x_844, 0); -lean_inc(x_845); -x_846 = lean_ctor_get(x_844, 1); -lean_inc(x_846); -lean_dec(x_844); -x_847 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_845, x_4, x_5, x_846); -lean_dec(x_5); -lean_dec(x_4); -return x_847; -} -else -{ -uint8_t x_848; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_848 = !lean_is_exclusive(x_844); -if (x_848 == 0) -{ -return x_844; -} -else -{ -lean_object* x_849; lean_object* x_850; lean_object* x_851; -x_849 = lean_ctor_get(x_844, 0); -x_850 = lean_ctor_get(x_844, 1); -lean_inc(x_850); -lean_inc(x_849); -lean_dec(x_844); -x_851 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_851, 0, x_849); -lean_ctor_set(x_851, 1, x_850); -return x_851; -} -} -} -} -else -{ -lean_object* x_852; lean_object* x_853; uint8_t x_854; lean_object* x_855; lean_object* x_856; -lean_dec(x_1); -x_852 = lean_box(0); -x_853 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__23; -x_854 = 0; -x_855 = l_Lean_Syntax_mkAntiquotNode(x_853, x_2, x_514, x_852, x_854); -x_856 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_855, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_856; -} -} -} -} -} -} -else -{ -lean_object* x_857; lean_object* x_858; lean_object* x_859; uint8_t x_860; -lean_dec(x_515); -x_857 = lean_unsigned_to_nat(2u); -x_858 = l_Lean_Syntax_getArg(x_3, x_857); -x_859 = lean_unsigned_to_nat(1u); -lean_inc(x_858); -x_860 = l_Lean_Syntax_matchesNull(x_858, x_859); -if (x_860 == 0) -{ -lean_dec(x_858); +lean_dec(x_777); if (lean_obj_tag(x_1) == 0) { -lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; -x_861 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_862 = lean_ctor_get(x_861, 0); -lean_inc(x_862); -x_863 = lean_ctor_get(x_861, 1); -lean_inc(x_863); -lean_dec(x_861); -x_864 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_863); -x_865 = lean_ctor_get(x_864, 0); -lean_inc(x_865); -x_866 = lean_ctor_get(x_864, 1); +lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; +x_833 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_834 = lean_ctor_get(x_833, 0); +lean_inc(x_834); +x_835 = lean_ctor_get(x_833, 1); +lean_inc(x_835); +lean_dec(x_833); +x_836 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_835); +x_837 = lean_ctor_get(x_836, 0); +lean_inc(x_837); +x_838 = lean_ctor_get(x_836, 1); +lean_inc(x_838); +lean_dec(x_836); +x_839 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_838); +x_840 = lean_ctor_get(x_839, 0); +lean_inc(x_840); +x_841 = lean_ctor_get(x_839, 1); +lean_inc(x_841); +lean_dec(x_839); +x_842 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_843 = l_Lean_addMacroScope(x_840, x_842, x_837); +x_844 = lean_box(0); +x_845 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_834); +x_846 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_846, 0, x_834); +lean_ctor_set(x_846, 1, x_845); +lean_ctor_set(x_846, 2, x_843); +lean_ctor_set(x_846, 3, x_844); +x_847 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_834); +x_848 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_848, 0, x_834); +lean_ctor_set(x_848, 1, x_847); +x_849 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_inc(x_3); +x_850 = lean_array_push(x_849, x_3); +x_851 = lean_box(2); +x_852 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_853 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_853, 0, x_851); +lean_ctor_set(x_853, 1, x_852); +lean_ctor_set(x_853, 2, x_850); +x_854 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_855 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_855, 0, x_834); +lean_ctor_set(x_855, 1, x_854); +x_856 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_857 = lean_array_push(x_856, x_846); +x_858 = lean_array_push(x_857, x_848); +x_859 = lean_array_push(x_858, x_853); +x_860 = lean_array_push(x_859, x_855); +x_861 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_861, 0, x_851); +lean_ctor_set(x_861, 1, x_12); +lean_ctor_set(x_861, 2, x_860); +x_862 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_841); +if (lean_obj_tag(x_862) == 0) +{ +uint8_t x_863; +x_863 = !lean_is_exclusive(x_862); +if (x_863 == 0) +{ +lean_object* x_864; lean_object* x_865; +x_864 = lean_ctor_get(x_862, 0); +x_865 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_865, 0, x_861); +lean_ctor_set(x_865, 1, x_864); +lean_ctor_set(x_862, 0, x_865); +return x_862; +} +else +{ +lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; +x_866 = lean_ctor_get(x_862, 0); +x_867 = lean_ctor_get(x_862, 1); +lean_inc(x_867); lean_inc(x_866); -lean_dec(x_864); -x_867 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_866); -x_868 = lean_ctor_get(x_867, 0); -lean_inc(x_868); -x_869 = lean_ctor_get(x_867, 1); -lean_inc(x_869); -lean_dec(x_867); -x_870 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_871 = l_Lean_addMacroScope(x_868, x_870, x_865); -x_872 = lean_box(0); -x_873 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_862); -x_874 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_874, 0, x_862); -lean_ctor_set(x_874, 1, x_873); -lean_ctor_set(x_874, 2, x_871); -lean_ctor_set(x_874, 3, x_872); -x_875 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_862); -x_876 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_876, 0, x_862); -lean_ctor_set(x_876, 1, x_875); -x_877 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; -lean_inc(x_3); -x_878 = lean_array_push(x_877, x_3); -x_879 = lean_box(2); -x_880 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_881 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_881, 0, x_879); -lean_ctor_set(x_881, 1, x_880); -lean_ctor_set(x_881, 2, x_878); -x_882 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_883 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_883, 0, x_862); -lean_ctor_set(x_883, 1, x_882); -x_884 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_885 = lean_array_push(x_884, x_874); -x_886 = lean_array_push(x_885, x_876); -x_887 = lean_array_push(x_886, x_881); -x_888 = lean_array_push(x_887, x_883); -x_889 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_889, 0, x_879); -lean_ctor_set(x_889, 1, x_12); -lean_ctor_set(x_889, 2, x_888); -x_890 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_869); -if (lean_obj_tag(x_890) == 0) -{ -uint8_t x_891; -x_891 = !lean_is_exclusive(x_890); -if (x_891 == 0) -{ -lean_object* x_892; lean_object* x_893; -x_892 = lean_ctor_get(x_890, 0); -x_893 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_893, 0, x_889); -lean_ctor_set(x_893, 1, x_892); -lean_ctor_set(x_890, 0, x_893); -return x_890; -} -else -{ -lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; -x_894 = lean_ctor_get(x_890, 0); -x_895 = lean_ctor_get(x_890, 1); -lean_inc(x_895); -lean_inc(x_894); -lean_dec(x_890); -x_896 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_896, 0, x_889); -lean_ctor_set(x_896, 1, x_894); -x_897 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_897, 0, x_896); -lean_ctor_set(x_897, 1, x_895); -return x_897; +lean_dec(x_862); +x_868 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_868, 0, x_861); +lean_ctor_set(x_868, 1, x_866); +x_869 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_869, 0, x_868); +lean_ctor_set(x_869, 1, x_867); +return x_869; } } else { -uint8_t x_898; -lean_dec(x_889); -x_898 = !lean_is_exclusive(x_890); -if (x_898 == 0) +uint8_t x_870; +lean_dec(x_861); +x_870 = !lean_is_exclusive(x_862); +if (x_870 == 0) { -return x_890; +return x_862; } else { -lean_object* x_899; lean_object* x_900; lean_object* x_901; -x_899 = lean_ctor_get(x_890, 0); -x_900 = lean_ctor_get(x_890, 1); -lean_inc(x_900); -lean_inc(x_899); -lean_dec(x_890); -x_901 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_901, 0, x_899); -lean_ctor_set(x_901, 1, x_900); -return x_901; +lean_object* x_871; lean_object* x_872; lean_object* x_873; +x_871 = lean_ctor_get(x_862, 0); +x_872 = lean_ctor_get(x_862, 1); +lean_inc(x_872); +lean_inc(x_871); +lean_dec(x_862); +x_873 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_873, 0, x_871); +lean_ctor_set(x_873, 1, x_872); +return x_873; } } } else { -lean_object* x_902; lean_object* x_903; +lean_object* x_874; lean_object* x_875; lean_dec(x_2); -x_902 = lean_ctor_get(x_1, 0); -lean_inc(x_902); +x_874 = lean_ctor_get(x_1, 0); +lean_inc(x_874); lean_dec(x_1); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_903 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_902, x_4, x_5, x_6); -if (lean_obj_tag(x_903) == 0) +x_875 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_874, x_4, x_5, x_6); +if (lean_obj_tag(x_875) == 0) { -lean_object* x_904; lean_object* x_905; lean_object* x_906; -x_904 = lean_ctor_get(x_903, 0); -lean_inc(x_904); -x_905 = lean_ctor_get(x_903, 1); -lean_inc(x_905); -lean_dec(x_903); -x_906 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_904, x_4, x_5, x_905); +lean_object* x_876; lean_object* x_877; lean_object* x_878; +x_876 = lean_ctor_get(x_875, 0); +lean_inc(x_876); +x_877 = lean_ctor_get(x_875, 1); +lean_inc(x_877); +lean_dec(x_875); +x_878 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_876, x_4, x_5, x_877); lean_dec(x_5); lean_dec(x_4); -return x_906; +return x_878; } else { -uint8_t x_907; +uint8_t x_879; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_907 = !lean_is_exclusive(x_903); -if (x_907 == 0) +x_879 = !lean_is_exclusive(x_875); +if (x_879 == 0) { -return x_903; +return x_875; } else { -lean_object* x_908; lean_object* x_909; lean_object* x_910; -x_908 = lean_ctor_get(x_903, 0); -x_909 = lean_ctor_get(x_903, 1); -lean_inc(x_909); -lean_inc(x_908); -lean_dec(x_903); -x_910 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_910, 0, x_908); -lean_ctor_set(x_910, 1, x_909); -return x_910; +lean_object* x_880; lean_object* x_881; lean_object* x_882; +x_880 = lean_ctor_get(x_875, 0); +x_881 = lean_ctor_get(x_875, 1); +lean_inc(x_881); +lean_inc(x_880); +lean_dec(x_875); +x_882 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_882, 0, x_880); +lean_ctor_set(x_882, 1, x_881); +return x_882; } } } } else { -lean_object* x_911; lean_object* x_912; lean_object* x_913; -lean_dec(x_1); -x_911 = l_Lean_Syntax_getArg(x_858, x_514); -lean_dec(x_858); -x_912 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__2___closed__7; -lean_inc(x_5); -lean_inc(x_4); -x_913 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat(x_518, x_911, x_2, x_912, x_4, x_5, x_6); -if (lean_obj_tag(x_913) == 0) +lean_object* x_883; uint8_t x_884; +x_883 = l_Lean_Syntax_getArg(x_777, x_725); +lean_dec(x_777); +x_884 = l_Lean_Syntax_matchesNull(x_883, x_514); +if (x_884 == 0) { -lean_object* x_914; lean_object* x_915; lean_object* x_916; -x_914 = lean_ctor_get(x_913, 0); -lean_inc(x_914); -x_915 = lean_ctor_get(x_913, 1); -lean_inc(x_915); -lean_dec(x_913); -x_916 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_914, x_4, x_5, x_915); -lean_dec(x_5); -lean_dec(x_4); -return x_916; +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; +x_885 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_886 = lean_ctor_get(x_885, 0); +lean_inc(x_886); +x_887 = lean_ctor_get(x_885, 1); +lean_inc(x_887); +lean_dec(x_885); +x_888 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_887); +x_889 = lean_ctor_get(x_888, 0); +lean_inc(x_889); +x_890 = lean_ctor_get(x_888, 1); +lean_inc(x_890); +lean_dec(x_888); +x_891 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_890); +x_892 = lean_ctor_get(x_891, 0); +lean_inc(x_892); +x_893 = lean_ctor_get(x_891, 1); +lean_inc(x_893); +lean_dec(x_891); +x_894 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_895 = l_Lean_addMacroScope(x_892, x_894, x_889); +x_896 = lean_box(0); +x_897 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_886); +x_898 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_898, 0, x_886); +lean_ctor_set(x_898, 1, x_897); +lean_ctor_set(x_898, 2, x_895); +lean_ctor_set(x_898, 3, x_896); +x_899 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_886); +x_900 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_900, 0, x_886); +lean_ctor_set(x_900, 1, x_899); +x_901 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_inc(x_3); +x_902 = lean_array_push(x_901, x_3); +x_903 = lean_box(2); +x_904 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_905 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_905, 0, x_903); +lean_ctor_set(x_905, 1, x_904); +lean_ctor_set(x_905, 2, x_902); +x_906 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_907 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_907, 0, x_886); +lean_ctor_set(x_907, 1, x_906); +x_908 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_909 = lean_array_push(x_908, x_898); +x_910 = lean_array_push(x_909, x_900); +x_911 = lean_array_push(x_910, x_905); +x_912 = lean_array_push(x_911, x_907); +x_913 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_913, 0, x_903); +lean_ctor_set(x_913, 1, x_12); +lean_ctor_set(x_913, 2, x_912); +x_914 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_893); +if (lean_obj_tag(x_914) == 0) +{ +uint8_t x_915; +x_915 = !lean_is_exclusive(x_914); +if (x_915 == 0) +{ +lean_object* x_916; lean_object* x_917; +x_916 = lean_ctor_get(x_914, 0); +x_917 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_917, 0, x_913); +lean_ctor_set(x_917, 1, x_916); +lean_ctor_set(x_914, 0, x_917); +return x_914; } else { -uint8_t x_917; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_917 = !lean_is_exclusive(x_913); -if (x_917 == 0) -{ -return x_913; -} -else -{ -lean_object* x_918; lean_object* x_919; lean_object* x_920; -x_918 = lean_ctor_get(x_913, 0); -x_919 = lean_ctor_get(x_913, 1); +lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; +x_918 = lean_ctor_get(x_914, 0); +x_919 = lean_ctor_get(x_914, 1); lean_inc(x_919); lean_inc(x_918); +lean_dec(x_914); +x_920 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_920, 0, x_913); +lean_ctor_set(x_920, 1, x_918); +x_921 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_921, 0, x_920); +lean_ctor_set(x_921, 1, x_919); +return x_921; +} +} +else +{ +uint8_t x_922; lean_dec(x_913); -x_920 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_920, 0, x_918); -lean_ctor_set(x_920, 1, x_919); -return x_920; -} +x_922 = !lean_is_exclusive(x_914); +if (x_922 == 0) +{ +return x_914; } +else +{ +lean_object* x_923; lean_object* x_924; lean_object* x_925; +x_923 = lean_ctor_get(x_914, 0); +x_924 = lean_ctor_get(x_914, 1); +lean_inc(x_924); +lean_inc(x_923); +lean_dec(x_914); +x_925 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_925, 0, x_923); +lean_ctor_set(x_925, 1, x_924); +return x_925; } } } else { -lean_object* x_921; lean_object* x_922; lean_object* x_923; uint8_t x_924; -lean_dec(x_515); -x_921 = lean_unsigned_to_nat(2u); -x_922 = l_Lean_Syntax_getArg(x_3, x_921); -x_923 = lean_unsigned_to_nat(1u); -lean_inc(x_922); -x_924 = l_Lean_Syntax_matchesNull(x_922, x_923); -if (x_924 == 0) -{ -lean_dec(x_922); -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; -x_925 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_926 = lean_ctor_get(x_925, 0); -lean_inc(x_926); -x_927 = lean_ctor_get(x_925, 1); -lean_inc(x_927); -lean_dec(x_925); -x_928 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_927); -x_929 = lean_ctor_get(x_928, 0); -lean_inc(x_929); -x_930 = lean_ctor_get(x_928, 1); -lean_inc(x_930); -lean_dec(x_928); -x_931 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_930); -x_932 = lean_ctor_get(x_931, 0); -lean_inc(x_932); -x_933 = lean_ctor_get(x_931, 1); -lean_inc(x_933); -lean_dec(x_931); -x_934 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_935 = l_Lean_addMacroScope(x_932, x_934, x_929); -x_936 = lean_box(0); -x_937 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_926); -x_938 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_938, 0, x_926); -lean_ctor_set(x_938, 1, x_937); -lean_ctor_set(x_938, 2, x_935); -lean_ctor_set(x_938, 3, x_936); -x_939 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_926); -x_940 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_940, 0, x_926); -lean_ctor_set(x_940, 1, x_939); -x_941 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; -lean_inc(x_3); -x_942 = lean_array_push(x_941, x_3); -x_943 = lean_box(2); -x_944 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_945 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_945, 0, x_943); -lean_ctor_set(x_945, 1, x_944); -lean_ctor_set(x_945, 2, x_942); -x_946 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_947 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_947, 0, x_926); -lean_ctor_set(x_947, 1, x_946); -x_948 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_949 = lean_array_push(x_948, x_938); -x_950 = lean_array_push(x_949, x_940); -x_951 = lean_array_push(x_950, x_945); -x_952 = lean_array_push(x_951, x_947); -x_953 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_953, 0, x_943); -lean_ctor_set(x_953, 1, x_12); -lean_ctor_set(x_953, 2, x_952); -x_954 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_933); -if (lean_obj_tag(x_954) == 0) -{ -uint8_t x_955; -x_955 = !lean_is_exclusive(x_954); -if (x_955 == 0) -{ -lean_object* x_956; lean_object* x_957; -x_956 = lean_ctor_get(x_954, 0); -x_957 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_957, 0, x_953); -lean_ctor_set(x_957, 1, x_956); -lean_ctor_set(x_954, 0, x_957); -return x_954; -} -else -{ -lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; -x_958 = lean_ctor_get(x_954, 0); -x_959 = lean_ctor_get(x_954, 1); -lean_inc(x_959); -lean_inc(x_958); -lean_dec(x_954); -x_960 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_960, 0, x_953); -lean_ctor_set(x_960, 1, x_958); -x_961 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_961, 0, x_960); -lean_ctor_set(x_961, 1, x_959); -return x_961; -} -} -else -{ -uint8_t x_962; -lean_dec(x_953); -x_962 = !lean_is_exclusive(x_954); -if (x_962 == 0) -{ -return x_954; -} -else -{ -lean_object* x_963; lean_object* x_964; lean_object* x_965; -x_963 = lean_ctor_get(x_954, 0); -x_964 = lean_ctor_get(x_954, 1); -lean_inc(x_964); -lean_inc(x_963); -lean_dec(x_954); -x_965 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_965, 0, x_963); -lean_ctor_set(x_965, 1, x_964); -return x_965; -} -} -} -else -{ -lean_object* x_966; lean_object* x_967; +lean_object* x_926; lean_object* x_927; lean_dec(x_2); -x_966 = lean_ctor_get(x_1, 0); -lean_inc(x_966); +x_926 = lean_ctor_get(x_1, 0); +lean_inc(x_926); lean_dec(x_1); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_967 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_966, x_4, x_5, x_6); -if (lean_obj_tag(x_967) == 0) +x_927 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_926, x_4, x_5, x_6); +if (lean_obj_tag(x_927) == 0) { -lean_object* x_968; lean_object* x_969; lean_object* x_970; -x_968 = lean_ctor_get(x_967, 0); -lean_inc(x_968); -x_969 = lean_ctor_get(x_967, 1); -lean_inc(x_969); -lean_dec(x_967); -x_970 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_968, x_4, x_5, x_969); +lean_object* x_928; lean_object* x_929; lean_object* x_930; +x_928 = lean_ctor_get(x_927, 0); +lean_inc(x_928); +x_929 = lean_ctor_get(x_927, 1); +lean_inc(x_929); +lean_dec(x_927); +x_930 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_928, x_4, x_5, x_929); lean_dec(x_5); lean_dec(x_4); -return x_970; +return x_930; } else { -uint8_t x_971; +uint8_t x_931; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_971 = !lean_is_exclusive(x_967); -if (x_971 == 0) +x_931 = !lean_is_exclusive(x_927); +if (x_931 == 0) { -return x_967; +return x_927; } else { -lean_object* x_972; lean_object* x_973; lean_object* x_974; -x_972 = lean_ctor_get(x_967, 0); -x_973 = lean_ctor_get(x_967, 1); -lean_inc(x_973); -lean_inc(x_972); -lean_dec(x_967); -x_974 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_974, 0, x_972); -lean_ctor_set(x_974, 1, x_973); -return x_974; +lean_object* x_932; lean_object* x_933; lean_object* x_934; +x_932 = lean_ctor_get(x_927, 0); +x_933 = lean_ctor_get(x_927, 1); +lean_inc(x_933); +lean_inc(x_932); +lean_dec(x_927); +x_934 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_934, 0, x_932); +lean_ctor_set(x_934, 1, x_933); +return x_934; } } } } else { -lean_object* x_975; lean_object* x_976; lean_object* x_977; +lean_object* x_935; lean_object* x_936; uint8_t x_937; lean_object* x_938; lean_object* x_939; lean_dec(x_1); -x_975 = l_Lean_Syntax_getArg(x_922, x_514); -lean_dec(x_922); -x_976 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__2___closed__7; -lean_inc(x_5); -lean_inc(x_4); -x_977 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat(x_518, x_975, x_2, x_976, x_4, x_5, x_6); -if (lean_obj_tag(x_977) == 0) -{ -lean_object* x_978; lean_object* x_979; lean_object* x_980; -x_978 = lean_ctor_get(x_977, 0); -lean_inc(x_978); -x_979 = lean_ctor_get(x_977, 1); -lean_inc(x_979); -lean_dec(x_977); -x_980 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_978, x_4, x_5, x_979); +x_935 = lean_box(0); +x_936 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__25; +x_937 = 0; +x_938 = l_Lean_Syntax_mkAntiquotNode(x_936, x_2, x_514, x_935, x_937); +x_939 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_938, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); +return x_939; +} +} +} +} +} +} +else +{ +lean_object* x_940; lean_object* x_941; lean_object* x_942; uint8_t x_943; +lean_dec(x_515); +x_940 = lean_unsigned_to_nat(2u); +x_941 = l_Lean_Syntax_getArg(x_3, x_940); +x_942 = lean_unsigned_to_nat(1u); +lean_inc(x_941); +x_943 = l_Lean_Syntax_matchesNull(x_941, x_942); +if (x_943 == 0) +{ +lean_dec(x_941); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; +x_944 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_945 = lean_ctor_get(x_944, 0); +lean_inc(x_945); +x_946 = lean_ctor_get(x_944, 1); +lean_inc(x_946); +lean_dec(x_944); +x_947 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_946); +x_948 = lean_ctor_get(x_947, 0); +lean_inc(x_948); +x_949 = lean_ctor_get(x_947, 1); +lean_inc(x_949); +lean_dec(x_947); +x_950 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_949); +x_951 = lean_ctor_get(x_950, 0); +lean_inc(x_951); +x_952 = lean_ctor_get(x_950, 1); +lean_inc(x_952); +lean_dec(x_950); +x_953 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_954 = l_Lean_addMacroScope(x_951, x_953, x_948); +x_955 = lean_box(0); +x_956 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_945); +x_957 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_957, 0, x_945); +lean_ctor_set(x_957, 1, x_956); +lean_ctor_set(x_957, 2, x_954); +lean_ctor_set(x_957, 3, x_955); +x_958 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_945); +x_959 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_959, 0, x_945); +lean_ctor_set(x_959, 1, x_958); +x_960 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_inc(x_3); +x_961 = lean_array_push(x_960, x_3); +x_962 = lean_box(2); +x_963 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_964 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_964, 0, x_962); +lean_ctor_set(x_964, 1, x_963); +lean_ctor_set(x_964, 2, x_961); +x_965 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_966 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_966, 0, x_945); +lean_ctor_set(x_966, 1, x_965); +x_967 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_968 = lean_array_push(x_967, x_957); +x_969 = lean_array_push(x_968, x_959); +x_970 = lean_array_push(x_969, x_964); +x_971 = lean_array_push(x_970, x_966); +x_972 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_972, 0, x_962); +lean_ctor_set(x_972, 1, x_12); +lean_ctor_set(x_972, 2, x_971); +x_973 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_952); +if (lean_obj_tag(x_973) == 0) +{ +uint8_t x_974; +x_974 = !lean_is_exclusive(x_973); +if (x_974 == 0) +{ +lean_object* x_975; lean_object* x_976; +x_975 = lean_ctor_get(x_973, 0); +x_976 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_976, 0, x_972); +lean_ctor_set(x_976, 1, x_975); +lean_ctor_set(x_973, 0, x_976); +return x_973; +} +else +{ +lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; +x_977 = lean_ctor_get(x_973, 0); +x_978 = lean_ctor_get(x_973, 1); +lean_inc(x_978); +lean_inc(x_977); +lean_dec(x_973); +x_979 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_979, 0, x_972); +lean_ctor_set(x_979, 1, x_977); +x_980 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_980, 0, x_979); +lean_ctor_set(x_980, 1, x_978); return x_980; } +} else { uint8_t x_981; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_981 = !lean_is_exclusive(x_977); +lean_dec(x_972); +x_981 = !lean_is_exclusive(x_973); if (x_981 == 0) { -return x_977; +return x_973; } else { lean_object* x_982; lean_object* x_983; lean_object* x_984; -x_982 = lean_ctor_get(x_977, 0); -x_983 = lean_ctor_get(x_977, 1); +x_982 = lean_ctor_get(x_973, 0); +x_983 = lean_ctor_get(x_973, 1); lean_inc(x_983); lean_inc(x_982); -lean_dec(x_977); +lean_dec(x_973); x_984 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_984, 0, x_982); lean_ctor_set(x_984, 1, x_983); @@ -12961,227 +12845,227 @@ return x_984; } } } -} -} else { -lean_object* x_985; lean_object* x_986; lean_object* x_987; uint8_t x_988; -lean_dec(x_515); -x_985 = lean_unsigned_to_nat(2u); -x_986 = l_Lean_Syntax_getArg(x_3, x_985); -x_987 = lean_unsigned_to_nat(1u); -lean_inc(x_986); -x_988 = l_Lean_Syntax_matchesNull(x_986, x_987); -if (x_988 == 0) -{ -lean_dec(x_986); -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; -x_989 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_990 = lean_ctor_get(x_989, 0); -lean_inc(x_990); -x_991 = lean_ctor_get(x_989, 1); -lean_inc(x_991); -lean_dec(x_989); -x_992 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_991); -x_993 = lean_ctor_get(x_992, 0); -lean_inc(x_993); -x_994 = lean_ctor_get(x_992, 1); -lean_inc(x_994); -lean_dec(x_992); -x_995 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_994); -x_996 = lean_ctor_get(x_995, 0); -lean_inc(x_996); -x_997 = lean_ctor_get(x_995, 1); -lean_inc(x_997); -lean_dec(x_995); -x_998 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_999 = l_Lean_addMacroScope(x_996, x_998, x_993); -x_1000 = lean_box(0); -x_1001 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_990); -x_1002 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1002, 0, x_990); -lean_ctor_set(x_1002, 1, x_1001); -lean_ctor_set(x_1002, 2, x_999); -lean_ctor_set(x_1002, 3, x_1000); -x_1003 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_990); -x_1004 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_1004, 0, x_990); -lean_ctor_set(x_1004, 1, x_1003); -x_1005 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; -lean_inc(x_3); -x_1006 = lean_array_push(x_1005, x_3); -x_1007 = lean_box(2); -x_1008 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_1009 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1009, 0, x_1007); -lean_ctor_set(x_1009, 1, x_1008); -lean_ctor_set(x_1009, 2, x_1006); -x_1010 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_1011 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_1011, 0, x_990); -lean_ctor_set(x_1011, 1, x_1010); -x_1012 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_1013 = lean_array_push(x_1012, x_1002); -x_1014 = lean_array_push(x_1013, x_1004); -x_1015 = lean_array_push(x_1014, x_1009); -x_1016 = lean_array_push(x_1015, x_1011); -x_1017 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1017, 0, x_1007); -lean_ctor_set(x_1017, 1, x_12); -lean_ctor_set(x_1017, 2, x_1016); -x_1018 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_997); -if (lean_obj_tag(x_1018) == 0) -{ -uint8_t x_1019; -x_1019 = !lean_is_exclusive(x_1018); -if (x_1019 == 0) -{ -lean_object* x_1020; lean_object* x_1021; -x_1020 = lean_ctor_get(x_1018, 0); -x_1021 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1021, 0, x_1017); -lean_ctor_set(x_1021, 1, x_1020); -lean_ctor_set(x_1018, 0, x_1021); -return x_1018; -} -else -{ -lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; -x_1022 = lean_ctor_get(x_1018, 0); -x_1023 = lean_ctor_get(x_1018, 1); -lean_inc(x_1023); -lean_inc(x_1022); -lean_dec(x_1018); -x_1024 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1024, 0, x_1017); -lean_ctor_set(x_1024, 1, x_1022); -x_1025 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1025, 0, x_1024); -lean_ctor_set(x_1025, 1, x_1023); -return x_1025; -} -} -else -{ -uint8_t x_1026; -lean_dec(x_1017); -x_1026 = !lean_is_exclusive(x_1018); -if (x_1026 == 0) -{ -return x_1018; -} -else -{ -lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; -x_1027 = lean_ctor_get(x_1018, 0); -x_1028 = lean_ctor_get(x_1018, 1); -lean_inc(x_1028); -lean_inc(x_1027); -lean_dec(x_1018); -x_1029 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1029, 0, x_1027); -lean_ctor_set(x_1029, 1, x_1028); -return x_1029; -} -} -} -else -{ -lean_object* x_1030; lean_object* x_1031; +lean_object* x_985; lean_object* x_986; lean_dec(x_2); -x_1030 = lean_ctor_get(x_1, 0); -lean_inc(x_1030); +x_985 = lean_ctor_get(x_1, 0); +lean_inc(x_985); lean_dec(x_1); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1031 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_1030, x_4, x_5, x_6); -if (lean_obj_tag(x_1031) == 0) +x_986 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_985, x_4, x_5, x_6); +if (lean_obj_tag(x_986) == 0) { -lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; -x_1032 = lean_ctor_get(x_1031, 0); -lean_inc(x_1032); -x_1033 = lean_ctor_get(x_1031, 1); -lean_inc(x_1033); -lean_dec(x_1031); -x_1034 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1032, x_4, x_5, x_1033); +lean_object* x_987; lean_object* x_988; lean_object* x_989; +x_987 = lean_ctor_get(x_986, 0); +lean_inc(x_987); +x_988 = lean_ctor_get(x_986, 1); +lean_inc(x_988); +lean_dec(x_986); +x_989 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_987, x_4, x_5, x_988); lean_dec(x_5); lean_dec(x_4); -return x_1034; +return x_989; } else { -uint8_t x_1035; +uint8_t x_990; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1035 = !lean_is_exclusive(x_1031); -if (x_1035 == 0) +x_990 = !lean_is_exclusive(x_986); +if (x_990 == 0) { -return x_1031; +return x_986; } else { -lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; -x_1036 = lean_ctor_get(x_1031, 0); -x_1037 = lean_ctor_get(x_1031, 1); -lean_inc(x_1037); -lean_inc(x_1036); -lean_dec(x_1031); -x_1038 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1038, 0, x_1036); -lean_ctor_set(x_1038, 1, x_1037); -return x_1038; -} -} -} -} -else -{ -lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; -lean_dec(x_1); -x_1039 = l_Lean_Syntax_getArg(x_986, x_514); +lean_object* x_991; lean_object* x_992; lean_object* x_993; +x_991 = lean_ctor_get(x_986, 0); +x_992 = lean_ctor_get(x_986, 1); +lean_inc(x_992); +lean_inc(x_991); lean_dec(x_986); -x_1040 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__24; +x_993 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_993, 0, x_991); +lean_ctor_set(x_993, 1, x_992); +return x_993; +} +} +} +} +else +{ +lean_object* x_994; lean_object* x_995; lean_object* x_996; +lean_dec(x_1); +x_994 = l_Lean_Syntax_getArg(x_941, x_514); +lean_dec(x_941); +x_995 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__2___closed__7; lean_inc(x_5); lean_inc(x_4); -x_1041 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat(x_516, x_1039, x_2, x_1040, x_4, x_5, x_6); -if (lean_obj_tag(x_1041) == 0) +x_996 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat(x_518, x_994, x_2, x_995, x_4, x_5, x_6); +if (lean_obj_tag(x_996) == 0) { -lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; -x_1042 = lean_ctor_get(x_1041, 0); -lean_inc(x_1042); -x_1043 = lean_ctor_get(x_1041, 1); -lean_inc(x_1043); -lean_dec(x_1041); -x_1044 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1042, x_4, x_5, x_1043); +lean_object* x_997; lean_object* x_998; lean_object* x_999; +x_997 = lean_ctor_get(x_996, 0); +lean_inc(x_997); +x_998 = lean_ctor_get(x_996, 1); +lean_inc(x_998); +lean_dec(x_996); +x_999 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_997, x_4, x_5, x_998); lean_dec(x_5); lean_dec(x_4); +return x_999; +} +else +{ +uint8_t x_1000; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1000 = !lean_is_exclusive(x_996); +if (x_1000 == 0) +{ +return x_996; +} +else +{ +lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; +x_1001 = lean_ctor_get(x_996, 0); +x_1002 = lean_ctor_get(x_996, 1); +lean_inc(x_1002); +lean_inc(x_1001); +lean_dec(x_996); +x_1003 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1003, 0, x_1001); +lean_ctor_set(x_1003, 1, x_1002); +return x_1003; +} +} +} +} +} +else +{ +lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; uint8_t x_1007; +lean_dec(x_515); +x_1004 = lean_unsigned_to_nat(2u); +x_1005 = l_Lean_Syntax_getArg(x_3, x_1004); +x_1006 = lean_unsigned_to_nat(1u); +lean_inc(x_1005); +x_1007 = l_Lean_Syntax_matchesNull(x_1005, x_1006); +if (x_1007 == 0) +{ +lean_dec(x_1005); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; +x_1008 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_1009 = lean_ctor_get(x_1008, 0); +lean_inc(x_1009); +x_1010 = lean_ctor_get(x_1008, 1); +lean_inc(x_1010); +lean_dec(x_1008); +x_1011 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_1010); +x_1012 = lean_ctor_get(x_1011, 0); +lean_inc(x_1012); +x_1013 = lean_ctor_get(x_1011, 1); +lean_inc(x_1013); +lean_dec(x_1011); +x_1014 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_1013); +x_1015 = lean_ctor_get(x_1014, 0); +lean_inc(x_1015); +x_1016 = lean_ctor_get(x_1014, 1); +lean_inc(x_1016); +lean_dec(x_1014); +x_1017 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_1018 = l_Lean_addMacroScope(x_1015, x_1017, x_1012); +x_1019 = lean_box(0); +x_1020 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_1009); +x_1021 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1021, 0, x_1009); +lean_ctor_set(x_1021, 1, x_1020); +lean_ctor_set(x_1021, 2, x_1018); +lean_ctor_set(x_1021, 3, x_1019); +x_1022 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_1009); +x_1023 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1023, 0, x_1009); +lean_ctor_set(x_1023, 1, x_1022); +x_1024 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_inc(x_3); +x_1025 = lean_array_push(x_1024, x_3); +x_1026 = lean_box(2); +x_1027 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_1028 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1028, 0, x_1026); +lean_ctor_set(x_1028, 1, x_1027); +lean_ctor_set(x_1028, 2, x_1025); +x_1029 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_1030 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1030, 0, x_1009); +lean_ctor_set(x_1030, 1, x_1029); +x_1031 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_1032 = lean_array_push(x_1031, x_1021); +x_1033 = lean_array_push(x_1032, x_1023); +x_1034 = lean_array_push(x_1033, x_1028); +x_1035 = lean_array_push(x_1034, x_1030); +x_1036 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1036, 0, x_1026); +lean_ctor_set(x_1036, 1, x_12); +lean_ctor_set(x_1036, 2, x_1035); +x_1037 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_1016); +if (lean_obj_tag(x_1037) == 0) +{ +uint8_t x_1038; +x_1038 = !lean_is_exclusive(x_1037); +if (x_1038 == 0) +{ +lean_object* x_1039; lean_object* x_1040; +x_1039 = lean_ctor_get(x_1037, 0); +x_1040 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1040, 0, x_1036); +lean_ctor_set(x_1040, 1, x_1039); +lean_ctor_set(x_1037, 0, x_1040); +return x_1037; +} +else +{ +lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; +x_1041 = lean_ctor_get(x_1037, 0); +x_1042 = lean_ctor_get(x_1037, 1); +lean_inc(x_1042); +lean_inc(x_1041); +lean_dec(x_1037); +x_1043 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1043, 0, x_1036); +lean_ctor_set(x_1043, 1, x_1041); +x_1044 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1044, 0, x_1043); +lean_ctor_set(x_1044, 1, x_1042); return x_1044; } +} else { uint8_t x_1045; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1045 = !lean_is_exclusive(x_1041); +lean_dec(x_1036); +x_1045 = !lean_is_exclusive(x_1037); if (x_1045 == 0) { -return x_1041; +return x_1037; } else { lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; -x_1046 = lean_ctor_get(x_1041, 0); -x_1047 = lean_ctor_get(x_1041, 1); +x_1046 = lean_ctor_get(x_1037, 0); +x_1047 = lean_ctor_get(x_1037, 1); lean_inc(x_1047); lean_inc(x_1046); -lean_dec(x_1041); +lean_dec(x_1037); x_1048 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1048, 0, x_1046); lean_ctor_set(x_1048, 1, x_1047); @@ -13189,246 +13073,103 @@ return x_1048; } } } -} -} -} else { -lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; uint8_t x_1052; -lean_dec(x_7); -x_1049 = lean_unsigned_to_nat(1u); -x_1050 = l_Lean_Syntax_getArg(x_3, x_1049); -x_1051 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___lambda__2___closed__10; -lean_inc(x_1050); -x_1052 = l_Lean_Syntax_isOfKind(x_1050, x_1051); -if (x_1052 == 0) +lean_object* x_1049; lean_object* x_1050; +lean_dec(x_2); +x_1049 = lean_ctor_get(x_1, 0); +lean_inc(x_1049); +lean_dec(x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1050 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_1049, x_4, x_5, x_6); +if (lean_obj_tag(x_1050) == 0) { +lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; +x_1051 = lean_ctor_get(x_1050, 0); +lean_inc(x_1051); +x_1052 = lean_ctor_get(x_1050, 1); +lean_inc(x_1052); lean_dec(x_1050); -if (lean_obj_tag(x_1) == 0) +x_1053 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1051, x_4, x_5, x_1052); +lean_dec(x_5); +lean_dec(x_4); +return x_1053; +} +else { -lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; -x_1053 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_1054 = lean_ctor_get(x_1053, 0); -lean_inc(x_1054); -x_1055 = lean_ctor_get(x_1053, 1); +uint8_t x_1054; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1054 = !lean_is_exclusive(x_1050); +if (x_1054 == 0) +{ +return x_1050; +} +else +{ +lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; +x_1055 = lean_ctor_get(x_1050, 0); +x_1056 = lean_ctor_get(x_1050, 1); +lean_inc(x_1056); lean_inc(x_1055); -lean_dec(x_1053); -x_1056 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_1055); -x_1057 = lean_ctor_get(x_1056, 0); -lean_inc(x_1057); -x_1058 = lean_ctor_get(x_1056, 1); -lean_inc(x_1058); -lean_dec(x_1056); -x_1059 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_1058); -x_1060 = lean_ctor_get(x_1059, 0); -lean_inc(x_1060); -x_1061 = lean_ctor_get(x_1059, 1); +lean_dec(x_1050); +x_1057 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1057, 0, x_1055); +lean_ctor_set(x_1057, 1, x_1056); +return x_1057; +} +} +} +} +else +{ +lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; +lean_dec(x_1); +x_1058 = l_Lean_Syntax_getArg(x_1005, x_514); +lean_dec(x_1005); +x_1059 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__2___closed__7; +lean_inc(x_5); +lean_inc(x_4); +x_1060 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat(x_518, x_1058, x_2, x_1059, x_4, x_5, x_6); +if (lean_obj_tag(x_1060) == 0) +{ +lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; +x_1061 = lean_ctor_get(x_1060, 0); lean_inc(x_1061); -lean_dec(x_1059); -x_1062 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_1063 = l_Lean_addMacroScope(x_1060, x_1062, x_1057); -x_1064 = lean_box(0); -x_1065 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_1054); -x_1066 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1066, 0, x_1054); -lean_ctor_set(x_1066, 1, x_1065); -lean_ctor_set(x_1066, 2, x_1063); -lean_ctor_set(x_1066, 3, x_1064); -x_1067 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_1054); -x_1068 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_1068, 0, x_1054); -lean_ctor_set(x_1068, 1, x_1067); -x_1069 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; -lean_inc(x_3); -x_1070 = lean_array_push(x_1069, x_3); -x_1071 = lean_box(2); -x_1072 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_1073 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1073, 0, x_1071); -lean_ctor_set(x_1073, 1, x_1072); -lean_ctor_set(x_1073, 2, x_1070); -x_1074 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_1075 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_1075, 0, x_1054); -lean_ctor_set(x_1075, 1, x_1074); -x_1076 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_1077 = lean_array_push(x_1076, x_1066); -x_1078 = lean_array_push(x_1077, x_1068); -x_1079 = lean_array_push(x_1078, x_1073); -x_1080 = lean_array_push(x_1079, x_1075); -x_1081 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__6; -x_1082 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1082, 0, x_1071); -lean_ctor_set(x_1082, 1, x_1081); -lean_ctor_set(x_1082, 2, x_1080); -x_1083 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_1061); -if (lean_obj_tag(x_1083) == 0) -{ -uint8_t x_1084; -x_1084 = !lean_is_exclusive(x_1083); -if (x_1084 == 0) -{ -lean_object* x_1085; lean_object* x_1086; -x_1085 = lean_ctor_get(x_1083, 0); -x_1086 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1086, 0, x_1082); -lean_ctor_set(x_1086, 1, x_1085); -lean_ctor_set(x_1083, 0, x_1086); -return x_1083; -} -else -{ -lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; -x_1087 = lean_ctor_get(x_1083, 0); -x_1088 = lean_ctor_get(x_1083, 1); -lean_inc(x_1088); -lean_inc(x_1087); -lean_dec(x_1083); -x_1089 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1089, 0, x_1082); -lean_ctor_set(x_1089, 1, x_1087); -x_1090 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1090, 0, x_1089); -lean_ctor_set(x_1090, 1, x_1088); -return x_1090; -} -} -else -{ -uint8_t x_1091; -lean_dec(x_1082); -x_1091 = !lean_is_exclusive(x_1083); -if (x_1091 == 0) -{ -return x_1083; -} -else -{ -lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; -x_1092 = lean_ctor_get(x_1083, 0); -x_1093 = lean_ctor_get(x_1083, 1); -lean_inc(x_1093); -lean_inc(x_1092); -lean_dec(x_1083); -x_1094 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1094, 0, x_1092); -lean_ctor_set(x_1094, 1, x_1093); -return x_1094; -} -} -} -else -{ -lean_object* x_1095; lean_object* x_1096; -lean_dec(x_2); -x_1095 = lean_ctor_get(x_1, 0); -lean_inc(x_1095); -lean_dec(x_1); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_1096 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_1095, x_4, x_5, x_6); -if (lean_obj_tag(x_1096) == 0) -{ -lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; -x_1097 = lean_ctor_get(x_1096, 0); -lean_inc(x_1097); -x_1098 = lean_ctor_get(x_1096, 1); -lean_inc(x_1098); -lean_dec(x_1096); -x_1099 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1097, x_4, x_5, x_1098); +x_1062 = lean_ctor_get(x_1060, 1); +lean_inc(x_1062); +lean_dec(x_1060); +x_1063 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1061, x_4, x_5, x_1062); lean_dec(x_5); lean_dec(x_4); -return x_1099; +return x_1063; } else { -uint8_t x_1100; +uint8_t x_1064; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_1100 = !lean_is_exclusive(x_1096); -if (x_1100 == 0) +x_1064 = !lean_is_exclusive(x_1060); +if (x_1064 == 0) { -return x_1096; +return x_1060; } else { -lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; -x_1101 = lean_ctor_get(x_1096, 0); -x_1102 = lean_ctor_get(x_1096, 1); -lean_inc(x_1102); -lean_inc(x_1101); -lean_dec(x_1096); -x_1103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1103, 0, x_1101); -lean_ctor_set(x_1103, 1, x_1102); -return x_1103; -} -} -} -} -else -{ -lean_object* x_1104; lean_object* x_1105; -lean_dec(x_1); -x_1104 = lean_alloc_closure((void*)(l_Lean_Elab_Command_strLitToPattern___boxed), 3, 1); -lean_closure_set(x_1104, 0, x_1050); -lean_inc(x_5); -lean_inc(x_4); -x_1105 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__10(x_1104, x_4, x_5, x_6); -if (lean_obj_tag(x_1105) == 0) -{ -lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; -x_1106 = lean_ctor_get(x_1105, 0); -lean_inc(x_1106); -x_1107 = lean_ctor_get(x_1105, 1); -lean_inc(x_1107); -lean_dec(x_1105); -x_1108 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_1109 = lean_array_push(x_1108, x_1106); -x_1110 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__28; -x_1111 = lean_array_push(x_1109, x_1110); -x_1112 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__30; -x_1113 = lean_array_push(x_1111, x_1112); -x_1114 = lean_array_push(x_1113, x_2); -x_1115 = lean_box(2); -x_1116 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__26; -x_1117 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1117, 0, x_1115); -lean_ctor_set(x_1117, 1, x_1116); -lean_ctor_set(x_1117, 2, x_1114); -x_1118 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1117, x_4, x_5, x_1107); -lean_dec(x_5); -lean_dec(x_4); -return x_1118; -} -else -{ -uint8_t x_1119; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1119 = !lean_is_exclusive(x_1105); -if (x_1119 == 0) -{ -return x_1105; -} -else -{ -lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; -x_1120 = lean_ctor_get(x_1105, 0); -x_1121 = lean_ctor_get(x_1105, 1); -lean_inc(x_1121); -lean_inc(x_1120); -lean_dec(x_1105); -x_1122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1122, 0, x_1120); -lean_ctor_set(x_1122, 1, x_1121); -return x_1122; +lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; +x_1065 = lean_ctor_get(x_1060, 0); +x_1066 = lean_ctor_get(x_1060, 1); +lean_inc(x_1066); +lean_inc(x_1065); +lean_dec(x_1060); +x_1067 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1067, 0, x_1065); +lean_ctor_set(x_1067, 1, x_1066); +return x_1067; } } } @@ -13436,174 +13177,353 @@ return x_1122; } else { -lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; uint8_t x_1126; -lean_dec(x_7); -x_1123 = lean_unsigned_to_nat(0u); -x_1124 = l_Lean_Syntax_getArg(x_3, x_1123); -x_1125 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___lambda__2___closed__10; -lean_inc(x_1124); -x_1126 = l_Lean_Syntax_isOfKind(x_1124, x_1125); -if (x_1126 == 0) +lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; uint8_t x_1071; +lean_dec(x_515); +x_1068 = lean_unsigned_to_nat(2u); +x_1069 = l_Lean_Syntax_getArg(x_3, x_1068); +x_1070 = lean_unsigned_to_nat(1u); +lean_inc(x_1069); +x_1071 = l_Lean_Syntax_matchesNull(x_1069, x_1070); +if (x_1071 == 0) { -lean_dec(x_1124); +lean_dec(x_1069); if (lean_obj_tag(x_1) == 0) { -lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; -x_1127 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); -x_1128 = lean_ctor_get(x_1127, 0); -lean_inc(x_1128); -x_1129 = lean_ctor_get(x_1127, 1); -lean_inc(x_1129); -lean_dec(x_1127); -x_1130 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_1129); -x_1131 = lean_ctor_get(x_1130, 0); -lean_inc(x_1131); -x_1132 = lean_ctor_get(x_1130, 1); -lean_inc(x_1132); -lean_dec(x_1130); -x_1133 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_1132); -x_1134 = lean_ctor_get(x_1133, 0); -lean_inc(x_1134); -x_1135 = lean_ctor_get(x_1133, 1); -lean_inc(x_1135); -lean_dec(x_1133); -x_1136 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; -x_1137 = l_Lean_addMacroScope(x_1134, x_1136, x_1131); -x_1138 = lean_box(0); -x_1139 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; -lean_inc(x_1128); -x_1140 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1140, 0, x_1128); -lean_ctor_set(x_1140, 1, x_1139); -lean_ctor_set(x_1140, 2, x_1137); -lean_ctor_set(x_1140, 3, x_1138); -x_1141 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; -lean_inc(x_1128); -x_1142 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_1142, 0, x_1128); -lean_ctor_set(x_1142, 1, x_1141); -x_1143 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; +x_1072 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_1073 = lean_ctor_get(x_1072, 0); +lean_inc(x_1073); +x_1074 = lean_ctor_get(x_1072, 1); +lean_inc(x_1074); +lean_dec(x_1072); +x_1075 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_1074); +x_1076 = lean_ctor_get(x_1075, 0); +lean_inc(x_1076); +x_1077 = lean_ctor_get(x_1075, 1); +lean_inc(x_1077); +lean_dec(x_1075); +x_1078 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_1077); +x_1079 = lean_ctor_get(x_1078, 0); +lean_inc(x_1079); +x_1080 = lean_ctor_get(x_1078, 1); +lean_inc(x_1080); +lean_dec(x_1078); +x_1081 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_1082 = l_Lean_addMacroScope(x_1079, x_1081, x_1076); +x_1083 = lean_box(0); +x_1084 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_1073); +x_1085 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1085, 0, x_1073); +lean_ctor_set(x_1085, 1, x_1084); +lean_ctor_set(x_1085, 2, x_1082); +lean_ctor_set(x_1085, 3, x_1083); +x_1086 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_1073); +x_1087 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1087, 0, x_1073); +lean_ctor_set(x_1087, 1, x_1086); +x_1088 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; lean_inc(x_3); -x_1144 = lean_array_push(x_1143, x_3); -x_1145 = lean_box(2); -x_1146 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; -x_1147 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1147, 0, x_1145); -lean_ctor_set(x_1147, 1, x_1146); -lean_ctor_set(x_1147, 2, x_1144); -x_1148 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; -x_1149 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_1149, 0, x_1128); -lean_ctor_set(x_1149, 1, x_1148); -x_1150 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_1151 = lean_array_push(x_1150, x_1140); -x_1152 = lean_array_push(x_1151, x_1142); -x_1153 = lean_array_push(x_1152, x_1147); -x_1154 = lean_array_push(x_1153, x_1149); -x_1155 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__6; -x_1156 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1156, 0, x_1145); -lean_ctor_set(x_1156, 1, x_1155); -lean_ctor_set(x_1156, 2, x_1154); -x_1157 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_1135); -if (lean_obj_tag(x_1157) == 0) +x_1089 = lean_array_push(x_1088, x_3); +x_1090 = lean_box(2); +x_1091 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_1092 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1092, 0, x_1090); +lean_ctor_set(x_1092, 1, x_1091); +lean_ctor_set(x_1092, 2, x_1089); +x_1093 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_1094 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1094, 0, x_1073); +lean_ctor_set(x_1094, 1, x_1093); +x_1095 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_1096 = lean_array_push(x_1095, x_1085); +x_1097 = lean_array_push(x_1096, x_1087); +x_1098 = lean_array_push(x_1097, x_1092); +x_1099 = lean_array_push(x_1098, x_1094); +x_1100 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1100, 0, x_1090); +lean_ctor_set(x_1100, 1, x_12); +lean_ctor_set(x_1100, 2, x_1099); +x_1101 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_1080); +if (lean_obj_tag(x_1101) == 0) { -uint8_t x_1158; -x_1158 = !lean_is_exclusive(x_1157); -if (x_1158 == 0) +uint8_t x_1102; +x_1102 = !lean_is_exclusive(x_1101); +if (x_1102 == 0) { -lean_object* x_1159; lean_object* x_1160; -x_1159 = lean_ctor_get(x_1157, 0); -x_1160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1160, 0, x_1156); -lean_ctor_set(x_1160, 1, x_1159); -lean_ctor_set(x_1157, 0, x_1160); -return x_1157; +lean_object* x_1103; lean_object* x_1104; +x_1103 = lean_ctor_get(x_1101, 0); +x_1104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1104, 0, x_1100); +lean_ctor_set(x_1104, 1, x_1103); +lean_ctor_set(x_1101, 0, x_1104); +return x_1101; } else { -lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; -x_1161 = lean_ctor_get(x_1157, 0); -x_1162 = lean_ctor_get(x_1157, 1); -lean_inc(x_1162); -lean_inc(x_1161); -lean_dec(x_1157); -x_1163 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1163, 0, x_1156); -lean_ctor_set(x_1163, 1, x_1161); -x_1164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1164, 0, x_1163); -lean_ctor_set(x_1164, 1, x_1162); -return x_1164; +lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; +x_1105 = lean_ctor_get(x_1101, 0); +x_1106 = lean_ctor_get(x_1101, 1); +lean_inc(x_1106); +lean_inc(x_1105); +lean_dec(x_1101); +x_1107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1107, 0, x_1100); +lean_ctor_set(x_1107, 1, x_1105); +x_1108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1108, 0, x_1107); +lean_ctor_set(x_1108, 1, x_1106); +return x_1108; } } else { -uint8_t x_1165; -lean_dec(x_1156); -x_1165 = !lean_is_exclusive(x_1157); -if (x_1165 == 0) +uint8_t x_1109; +lean_dec(x_1100); +x_1109 = !lean_is_exclusive(x_1101); +if (x_1109 == 0) { -return x_1157; +return x_1101; } else { -lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; -x_1166 = lean_ctor_get(x_1157, 0); -x_1167 = lean_ctor_get(x_1157, 1); -lean_inc(x_1167); -lean_inc(x_1166); -lean_dec(x_1157); -x_1168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1168, 0, x_1166); -lean_ctor_set(x_1168, 1, x_1167); -return x_1168; +lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; +x_1110 = lean_ctor_get(x_1101, 0); +x_1111 = lean_ctor_get(x_1101, 1); +lean_inc(x_1111); +lean_inc(x_1110); +lean_dec(x_1101); +x_1112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1112, 0, x_1110); +lean_ctor_set(x_1112, 1, x_1111); +return x_1112; } } } else { -lean_object* x_1169; lean_object* x_1170; +lean_object* x_1113; lean_object* x_1114; lean_dec(x_2); -x_1169 = lean_ctor_get(x_1, 0); -lean_inc(x_1169); +x_1113 = lean_ctor_get(x_1, 0); +lean_inc(x_1113); lean_dec(x_1); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_1170 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_1169, x_4, x_5, x_6); -if (lean_obj_tag(x_1170) == 0) +x_1114 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_1113, x_4, x_5, x_6); +if (lean_obj_tag(x_1114) == 0) { -lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; -x_1171 = lean_ctor_get(x_1170, 0); -lean_inc(x_1171); -x_1172 = lean_ctor_get(x_1170, 1); -lean_inc(x_1172); -lean_dec(x_1170); -x_1173 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1171, x_4, x_5, x_1172); +lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; +x_1115 = lean_ctor_get(x_1114, 0); +lean_inc(x_1115); +x_1116 = lean_ctor_get(x_1114, 1); +lean_inc(x_1116); +lean_dec(x_1114); +x_1117 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1115, x_4, x_5, x_1116); lean_dec(x_5); lean_dec(x_4); +return x_1117; +} +else +{ +uint8_t x_1118; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1118 = !lean_is_exclusive(x_1114); +if (x_1118 == 0) +{ +return x_1114; +} +else +{ +lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; +x_1119 = lean_ctor_get(x_1114, 0); +x_1120 = lean_ctor_get(x_1114, 1); +lean_inc(x_1120); +lean_inc(x_1119); +lean_dec(x_1114); +x_1121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1121, 0, x_1119); +lean_ctor_set(x_1121, 1, x_1120); +return x_1121; +} +} +} +} +else +{ +lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; +lean_dec(x_1); +x_1122 = l_Lean_Syntax_getArg(x_1069, x_514); +lean_dec(x_1069); +x_1123 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__26; +lean_inc(x_5); +lean_inc(x_4); +x_1124 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat(x_516, x_1122, x_2, x_1123, x_4, x_5, x_6); +if (lean_obj_tag(x_1124) == 0) +{ +lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; +x_1125 = lean_ctor_get(x_1124, 0); +lean_inc(x_1125); +x_1126 = lean_ctor_get(x_1124, 1); +lean_inc(x_1126); +lean_dec(x_1124); +x_1127 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1125, x_4, x_5, x_1126); +lean_dec(x_5); +lean_dec(x_4); +return x_1127; +} +else +{ +uint8_t x_1128; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1128 = !lean_is_exclusive(x_1124); +if (x_1128 == 0) +{ +return x_1124; +} +else +{ +lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; +x_1129 = lean_ctor_get(x_1124, 0); +x_1130 = lean_ctor_get(x_1124, 1); +lean_inc(x_1130); +lean_inc(x_1129); +lean_dec(x_1124); +x_1131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1131, 0, x_1129); +lean_ctor_set(x_1131, 1, x_1130); +return x_1131; +} +} +} +} +} +} +else +{ +lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; uint8_t x_1135; +lean_dec(x_7); +x_1132 = lean_unsigned_to_nat(1u); +x_1133 = l_Lean_Syntax_getArg(x_3, x_1132); +x_1134 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___lambda__2___closed__10; +lean_inc(x_1133); +x_1135 = l_Lean_Syntax_isOfKind(x_1133, x_1134); +if (x_1135 == 0) +{ +lean_dec(x_1133); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; +x_1136 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_1137 = lean_ctor_get(x_1136, 0); +lean_inc(x_1137); +x_1138 = lean_ctor_get(x_1136, 1); +lean_inc(x_1138); +lean_dec(x_1136); +x_1139 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_1138); +x_1140 = lean_ctor_get(x_1139, 0); +lean_inc(x_1140); +x_1141 = lean_ctor_get(x_1139, 1); +lean_inc(x_1141); +lean_dec(x_1139); +x_1142 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_1141); +x_1143 = lean_ctor_get(x_1142, 0); +lean_inc(x_1143); +x_1144 = lean_ctor_get(x_1142, 1); +lean_inc(x_1144); +lean_dec(x_1142); +x_1145 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_1146 = l_Lean_addMacroScope(x_1143, x_1145, x_1140); +x_1147 = lean_box(0); +x_1148 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_1137); +x_1149 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1149, 0, x_1137); +lean_ctor_set(x_1149, 1, x_1148); +lean_ctor_set(x_1149, 2, x_1146); +lean_ctor_set(x_1149, 3, x_1147); +x_1150 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_1137); +x_1151 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1151, 0, x_1137); +lean_ctor_set(x_1151, 1, x_1150); +x_1152 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_inc(x_3); +x_1153 = lean_array_push(x_1152, x_3); +x_1154 = lean_box(2); +x_1155 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_1156 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1156, 0, x_1154); +lean_ctor_set(x_1156, 1, x_1155); +lean_ctor_set(x_1156, 2, x_1153); +x_1157 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_1158 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1158, 0, x_1137); +lean_ctor_set(x_1158, 1, x_1157); +x_1159 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_1160 = lean_array_push(x_1159, x_1149); +x_1161 = lean_array_push(x_1160, x_1151); +x_1162 = lean_array_push(x_1161, x_1156); +x_1163 = lean_array_push(x_1162, x_1158); +x_1164 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__6; +x_1165 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1165, 0, x_1154); +lean_ctor_set(x_1165, 1, x_1164); +lean_ctor_set(x_1165, 2, x_1163); +x_1166 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_1144); +if (lean_obj_tag(x_1166) == 0) +{ +uint8_t x_1167; +x_1167 = !lean_is_exclusive(x_1166); +if (x_1167 == 0) +{ +lean_object* x_1168; lean_object* x_1169; +x_1168 = lean_ctor_get(x_1166, 0); +x_1169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1169, 0, x_1165); +lean_ctor_set(x_1169, 1, x_1168); +lean_ctor_set(x_1166, 0, x_1169); +return x_1166; +} +else +{ +lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; +x_1170 = lean_ctor_get(x_1166, 0); +x_1171 = lean_ctor_get(x_1166, 1); +lean_inc(x_1171); +lean_inc(x_1170); +lean_dec(x_1166); +x_1172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1172, 0, x_1165); +lean_ctor_set(x_1172, 1, x_1170); +x_1173 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1173, 0, x_1172); +lean_ctor_set(x_1173, 1, x_1171); return x_1173; } +} else { uint8_t x_1174; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_1174 = !lean_is_exclusive(x_1170); +lean_dec(x_1165); +x_1174 = !lean_is_exclusive(x_1166); if (x_1174 == 0) { -return x_1170; +return x_1166; } else { lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; -x_1175 = lean_ctor_get(x_1170, 0); -x_1176 = lean_ctor_get(x_1170, 1); +x_1175 = lean_ctor_get(x_1166, 0); +x_1176 = lean_ctor_get(x_1166, 1); lean_inc(x_1176); lean_inc(x_1175); -lean_dec(x_1170); +lean_dec(x_1166); x_1177 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1177, 0, x_1175); lean_ctor_set(x_1177, 1, x_1176); @@ -13611,66 +13531,358 @@ return x_1177; } } } -} else { lean_object* x_1178; lean_object* x_1179; +lean_dec(x_2); +x_1178 = lean_ctor_get(x_1, 0); +lean_inc(x_1178); lean_dec(x_1); -x_1178 = lean_alloc_closure((void*)(l_Lean_Elab_Command_strLitToPattern___boxed), 3, 1); -lean_closure_set(x_1178, 0, x_1124); lean_inc(x_5); lean_inc(x_4); -x_1179 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__10(x_1178, x_4, x_5, x_6); +lean_inc(x_3); +x_1179 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_1178, x_4, x_5, x_6); if (lean_obj_tag(x_1179) == 0) { -lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; +lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; x_1180 = lean_ctor_get(x_1179, 0); lean_inc(x_1180); x_1181 = lean_ctor_get(x_1179, 1); lean_inc(x_1181); lean_dec(x_1179); -x_1182 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; -x_1183 = lean_array_push(x_1182, x_1180); -x_1184 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__28; -x_1185 = lean_array_push(x_1183, x_1184); -x_1186 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__30; -x_1187 = lean_array_push(x_1185, x_1186); -x_1188 = lean_array_push(x_1187, x_2); -x_1189 = lean_box(2); -x_1190 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__26; -x_1191 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_1191, 0, x_1189); -lean_ctor_set(x_1191, 1, x_1190); -lean_ctor_set(x_1191, 2, x_1188); -x_1192 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1191, x_4, x_5, x_1181); +x_1182 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1180, x_4, x_5, x_1181); lean_dec(x_5); lean_dec(x_4); -return x_1192; +return x_1182; } else { -uint8_t x_1193; +uint8_t x_1183; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_1193 = !lean_is_exclusive(x_1179); -if (x_1193 == 0) +x_1183 = !lean_is_exclusive(x_1179); +if (x_1183 == 0) { return x_1179; } else { -lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; -x_1194 = lean_ctor_get(x_1179, 0); -x_1195 = lean_ctor_get(x_1179, 1); -lean_inc(x_1195); -lean_inc(x_1194); +lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; +x_1184 = lean_ctor_get(x_1179, 0); +x_1185 = lean_ctor_get(x_1179, 1); +lean_inc(x_1185); +lean_inc(x_1184); lean_dec(x_1179); -x_1196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1196, 0, x_1194); -lean_ctor_set(x_1196, 1, x_1195); -return x_1196; +x_1186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1186, 0, x_1184); +lean_ctor_set(x_1186, 1, x_1185); +return x_1186; +} +} +} +} +else +{ +lean_object* x_1187; lean_object* x_1188; +lean_dec(x_1); +x_1187 = lean_alloc_closure((void*)(l_Lean_Elab_Command_strLitToPattern___boxed), 3, 1); +lean_closure_set(x_1187, 0, x_1133); +lean_inc(x_5); +lean_inc(x_4); +x_1188 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__10(x_1187, x_4, x_5, x_6); +if (lean_obj_tag(x_1188) == 0) +{ +lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; +x_1189 = lean_ctor_get(x_1188, 0); +lean_inc(x_1189); +x_1190 = lean_ctor_get(x_1188, 1); +lean_inc(x_1190); +lean_dec(x_1188); +x_1191 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_1192 = lean_array_push(x_1191, x_1189); +x_1193 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__30; +x_1194 = lean_array_push(x_1192, x_1193); +x_1195 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__32; +x_1196 = lean_array_push(x_1194, x_1195); +x_1197 = lean_array_push(x_1196, x_2); +x_1198 = lean_box(2); +x_1199 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__28; +x_1200 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1200, 0, x_1198); +lean_ctor_set(x_1200, 1, x_1199); +lean_ctor_set(x_1200, 2, x_1197); +x_1201 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1200, x_4, x_5, x_1190); +lean_dec(x_5); +lean_dec(x_4); +return x_1201; +} +else +{ +uint8_t x_1202; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1202 = !lean_is_exclusive(x_1188); +if (x_1202 == 0) +{ +return x_1188; +} +else +{ +lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; +x_1203 = lean_ctor_get(x_1188, 0); +x_1204 = lean_ctor_get(x_1188, 1); +lean_inc(x_1204); +lean_inc(x_1203); +lean_dec(x_1188); +x_1205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1205, 0, x_1203); +lean_ctor_set(x_1205, 1, x_1204); +return x_1205; +} +} +} +} +} +else +{ +lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; uint8_t x_1209; +lean_dec(x_7); +x_1206 = lean_unsigned_to_nat(0u); +x_1207 = l_Lean_Syntax_getArg(x_3, x_1206); +x_1208 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode___lambda__2___closed__10; +lean_inc(x_1207); +x_1209 = l_Lean_Syntax_isOfKind(x_1207, x_1208); +if (x_1209 == 0) +{ +lean_dec(x_1207); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; +x_1210 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___spec__1(x_4, x_5, x_6); +x_1211 = lean_ctor_get(x_1210, 0); +lean_inc(x_1211); +x_1212 = lean_ctor_get(x_1210, 1); +lean_inc(x_1212); +lean_dec(x_1210); +x_1213 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_1212); +x_1214 = lean_ctor_get(x_1213, 0); +lean_inc(x_1214); +x_1215 = lean_ctor_get(x_1213, 1); +lean_inc(x_1215); +lean_dec(x_1213); +x_1216 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_1215); +x_1217 = lean_ctor_get(x_1216, 0); +lean_inc(x_1217); +x_1218 = lean_ctor_get(x_1216, 1); +lean_inc(x_1218); +lean_dec(x_1216); +x_1219 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__4; +x_1220 = l_Lean_addMacroScope(x_1217, x_1219, x_1214); +x_1221 = lean_box(0); +x_1222 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__3; +lean_inc(x_1211); +x_1223 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1223, 0, x_1211); +lean_ctor_set(x_1223, 1, x_1222); +lean_ctor_set(x_1223, 2, x_1220); +lean_ctor_set(x_1223, 3, x_1221); +x_1224 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__5; +lean_inc(x_1211); +x_1225 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1225, 0, x_1211); +lean_ctor_set(x_1225, 1, x_1224); +x_1226 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__1; +lean_inc(x_3); +x_1227 = lean_array_push(x_1226, x_3); +x_1228 = lean_box(2); +x_1229 = l_Lean_Elab_Command_expandMacroArg_mkSplicePat___closed__3; +x_1230 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1230, 0, x_1228); +lean_ctor_set(x_1230, 1, x_1229); +lean_ctor_set(x_1230, 2, x_1227); +x_1231 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__6; +x_1232 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_1232, 0, x_1211); +lean_ctor_set(x_1232, 1, x_1231); +x_1233 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_1234 = lean_array_push(x_1233, x_1223); +x_1235 = lean_array_push(x_1234, x_1225); +x_1236 = lean_array_push(x_1235, x_1230); +x_1237 = lean_array_push(x_1236, x_1232); +x_1238 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__6; +x_1239 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1239, 0, x_1228); +lean_ctor_set(x_1239, 1, x_1238); +lean_ctor_set(x_1239, 2, x_1237); +x_1240 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_2, x_4, x_5, x_1218); +if (lean_obj_tag(x_1240) == 0) +{ +uint8_t x_1241; +x_1241 = !lean_is_exclusive(x_1240); +if (x_1241 == 0) +{ +lean_object* x_1242; lean_object* x_1243; +x_1242 = lean_ctor_get(x_1240, 0); +x_1243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1243, 0, x_1239); +lean_ctor_set(x_1243, 1, x_1242); +lean_ctor_set(x_1240, 0, x_1243); +return x_1240; +} +else +{ +lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; +x_1244 = lean_ctor_get(x_1240, 0); +x_1245 = lean_ctor_get(x_1240, 1); +lean_inc(x_1245); +lean_inc(x_1244); +lean_dec(x_1240); +x_1246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1246, 0, x_1239); +lean_ctor_set(x_1246, 1, x_1244); +x_1247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1247, 0, x_1246); +lean_ctor_set(x_1247, 1, x_1245); +return x_1247; +} +} +else +{ +uint8_t x_1248; +lean_dec(x_1239); +x_1248 = !lean_is_exclusive(x_1240); +if (x_1248 == 0) +{ +return x_1240; +} +else +{ +lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; +x_1249 = lean_ctor_get(x_1240, 0); +x_1250 = lean_ctor_get(x_1240, 1); +lean_inc(x_1250); +lean_inc(x_1249); +lean_dec(x_1240); +x_1251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1251, 0, x_1249); +lean_ctor_set(x_1251, 1, x_1250); +return x_1251; +} +} +} +else +{ +lean_object* x_1252; lean_object* x_1253; +lean_dec(x_2); +x_1252 = lean_ctor_get(x_1, 0); +lean_inc(x_1252); +lean_dec(x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_1253 = l_Lean_Elab_Command_expandMacroArg_mkAntiquotNode(x_3, x_1252, x_4, x_5, x_6); +if (lean_obj_tag(x_1253) == 0) +{ +lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; +x_1254 = lean_ctor_get(x_1253, 0); +lean_inc(x_1254); +x_1255 = lean_ctor_get(x_1253, 1); +lean_inc(x_1255); +lean_dec(x_1253); +x_1256 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1254, x_4, x_5, x_1255); +lean_dec(x_5); +lean_dec(x_4); +return x_1256; +} +else +{ +uint8_t x_1257; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_1257 = !lean_is_exclusive(x_1253); +if (x_1257 == 0) +{ +return x_1253; +} +else +{ +lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; +x_1258 = lean_ctor_get(x_1253, 0); +x_1259 = lean_ctor_get(x_1253, 1); +lean_inc(x_1259); +lean_inc(x_1258); +lean_dec(x_1253); +x_1260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1260, 0, x_1258); +lean_ctor_set(x_1260, 1, x_1259); +return x_1260; +} +} +} +} +else +{ +lean_object* x_1261; lean_object* x_1262; +lean_dec(x_1); +x_1261 = lean_alloc_closure((void*)(l_Lean_Elab_Command_strLitToPattern___boxed), 3, 1); +lean_closure_set(x_1261, 0, x_1207); +lean_inc(x_5); +lean_inc(x_4); +x_1262 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabCommand___spec__10(x_1261, x_4, x_5, x_6); +if (lean_obj_tag(x_1262) == 0) +{ +lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; +x_1263 = lean_ctor_get(x_1262, 0); +lean_inc(x_1263); +x_1264 = lean_ctor_get(x_1262, 1); +lean_inc(x_1264); +lean_dec(x_1262); +x_1265 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__3___closed__7; +x_1266 = lean_array_push(x_1265, x_1263); +x_1267 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__30; +x_1268 = lean_array_push(x_1266, x_1267); +x_1269 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__32; +x_1270 = lean_array_push(x_1268, x_1269); +x_1271 = lean_array_push(x_1270, x_2); +x_1272 = lean_box(2); +x_1273 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__28; +x_1274 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1274, 0, x_1272); +lean_ctor_set(x_1274, 1, x_1273); +lean_ctor_set(x_1274, 2, x_1271); +x_1275 = l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___lambda__1(x_3, x_1274, x_4, x_5, x_1264); +lean_dec(x_5); +lean_dec(x_4); +return x_1275; +} +else +{ +uint8_t x_1276; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_1276 = !lean_is_exclusive(x_1262); +if (x_1276 == 0) +{ +return x_1262; +} +else +{ +lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; +x_1277 = lean_ctor_get(x_1262, 0); +x_1278 = lean_ctor_get(x_1262, 1); +lean_inc(x_1278); +lean_inc(x_1277); +lean_dec(x_1262); +x_1279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1279, 0, x_1277); +lean_ctor_set(x_1279, 1, x_1278); +return x_1279; } } } @@ -14251,6 +14463,10 @@ l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__29 = _init_l_Lean_El lean_mark_persistent(l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__29); l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__30 = _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__30(); lean_mark_persistent(l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__30); +l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__31 = _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__31(); +lean_mark_persistent(l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__31); +l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__32 = _init_l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__32(); +lean_mark_persistent(l_Lean_Elab_Command_expandMacroArg_mkSyntaxAndPat___closed__32); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_expandMacroArg___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_expandMacroArg___spec__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_expandMacroArg___spec__1___rarg___closed__1); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_expandMacroArg___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_expandMacroArg___spec__1___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index d9e982947c..404cbceafd 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -59,6 +59,7 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendind LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__9(lean_object*, lean_object*, lean_object*, lean_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_LocalDecl_userName(lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__7; +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -253,6 +254,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expan LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___boxed(lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___rarg(lean_object*); lean_object* l_Std_RBNode_findCore___at_Lean_Elab_Structural_findRecArg_go___spec__11(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run___boxed(lean_object*, lean_object*); @@ -416,7 +418,6 @@ LEAN_EXPORT lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0 lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_find___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_addAndCompile___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_Term_addLocalVarInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__3; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__4___lambda__3___closed__6; @@ -586,6 +587,7 @@ lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_processDefDeriving___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__4___closed__1; lean_object* lean_name_append_after(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); @@ -614,6 +616,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBound uint8_t lean_expr_equal(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*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_removeUnusedVars___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_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -870,7 +873,6 @@ uint8_t l___private_Lean_Elab_DefView_0__Lean_Elab_beqDefKind____x40_Lean_Elab_D LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run(lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_markModified___boxed(lean_object*); @@ -25463,6 +25465,58 @@ return x_74; } } } +LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_processDefDeriving___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_9 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) +{ +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +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; +} +} +} +} static lean_object* _init_l_Lean_Elab_Term_processDefDeriving___closed__1() { _start: { @@ -25641,7 +25695,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_60 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_57); +x_60 = l_Lean_addAndCompile___at_Lean_Elab_Term_processDefDeriving___spec__4(x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_57); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; @@ -25907,7 +25961,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_130 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(x_129, x_3, x_4, x_5, x_6, x_7, x_8, x_126); +x_130 = l_Lean_addAndCompile___at_Lean_Elab_Term_processDefDeriving___spec__4(x_129, x_3, x_4, x_5, x_6, x_7, x_8, x_126); if (lean_obj_tag(x_130) == 0) { lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; @@ -26275,7 +26329,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_210 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(x_209, x_3, x_4, x_5, x_6, x_7, x_8, x_205); +x_210 = l_Lean_addAndCompile___at_Lean_Elab_Term_processDefDeriving___spec__4(x_209, x_3, x_4, x_5, x_6, x_7, x_8, x_205); if (lean_obj_tag(x_210) == 0) { lean_object* x_211; uint8_t x_212; lean_object* x_213; lean_object* x_214; @@ -33055,7 +33109,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +x_20 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_19); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -33091,7 +33145,7 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_17, 1); lean_inc(x_26); lean_dec(x_17); -x_27 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_26); +x_27 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_26); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); diff --git a/stage0/stdlib/Lean/Elab/PatternVar.c b/stage0/stdlib/Lean/Elab/PatternVar.c index e7a0a7a0be..5ccd881f65 100644 --- a/stage0/stdlib/Lean/Elab/PatternVar.c +++ b/stage0/stdlib/Lean/Elab/PatternVar.c @@ -133,7 +133,6 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVar static lean_object* l_Lean_Elab_throwIllFormedSyntax___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_quotedNameToPattern___spec__1___closed__2; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__7; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_CollectPatternVars_main___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_CollectPatternVars_collect___lambda__2___closed__8; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__3; static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__15; @@ -284,6 +283,7 @@ lean_object* l_Lean_Elab_Term_expandApp(lean_object*, uint8_t, lean_object*, lea static lean_object* l___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_throwCtorExpected___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_CollectPatternVars_collect_processCtorAppCore___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__3(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_expandDeclId___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_PatternVar_0__Lean_Elab_Term_CollectPatternVars_doubleQuotedNameToPattern___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2559,7 +2559,7 @@ x_11 = lean_ctor_get(x_7, 5); x_12 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); lean_ctor_set(x_7, 5, x_12); -x_13 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); return x_13; } @@ -2603,7 +2603,7 @@ lean_ctor_set(x_26, 7, x_21); lean_ctor_set(x_26, 8, x_22); lean_ctor_set(x_26, 9, x_23); lean_ctor_set(x_26, 10, x_24); -x_27 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9); lean_dec(x_26); return x_27; } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c index 59d66942ba..7acc815922 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c @@ -19,7 +19,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefi lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_noncomputableExt; -lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_compileDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___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*); size_t lean_usize_add(size_t, size_t); @@ -32,6 +31,7 @@ lean_object* l_Lean_addDecl___at_Lean_Meta_mkAuxLemma___spec__4(lean_object*, le LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instantiateMVarsAtPreDecls___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_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -62,7 +62,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefi LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafe(lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_eraseRecAppSyntax(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_applyAttributesOf___spec__1(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mdataExpr_x21(lean_object*); @@ -86,7 +85,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePart static lean_object* l_Lean_Elab_instInhabitedPreDefinition___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompileUnsafe___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRec___spec__2___closed__1; -lean_object* l_Lean_addDecl___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___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_levelMVarToParamPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -126,6 +124,7 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_compi LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getMaxHeight(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(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*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___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*); @@ -149,6 +148,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_ static lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__4___closed__5; lean_object* l_Lean_Meta_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addNonRec___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_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAsAxiom___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_addAndCompilePartialRec___spec__3___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -724,7 +724,7 @@ x_22 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_22, 0, x_21); x_23 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_18); +x_24 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_18); return x_24; } else @@ -760,7 +760,7 @@ 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 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +x_33 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_27); return x_33; } else @@ -1659,7 +1659,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_9 = l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, 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; @@ -3338,7 +3338,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_12 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -5215,7 +5215,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_29); -x_30 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_28); +x_30 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_28); if (lean_obj_tag(x_30) == 0) { lean_object* x_31; lean_object* x_32; size_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -5497,7 +5497,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_86); -x_87 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_86, x_3, x_4, x_5, x_6, x_82, x_8, x_85); +x_87 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_86, x_3, x_4, x_5, x_6, x_82, x_8, x_85); if (lean_obj_tag(x_87) == 0) { lean_object* x_88; lean_object* x_89; size_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index f95206377d..a6e503fc43 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -39,6 +39,7 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__13___rarg(lean_object*); lean_object* l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(lean_object*); +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isPartial(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__8___rarg(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__8___boxed(lean_object*, lean_object*); @@ -140,7 +141,6 @@ lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef___spec__1___rarg(lean_object*); -lean_object* l_Lean_addDecl___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_Meta_mkSorry(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); @@ -4333,7 +4333,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_23 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_23 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c index 1f9d01660a..0a106d1b00 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c @@ -70,6 +70,7 @@ static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinitio extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withCommonTelescope_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__7; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_wfRecursion___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -199,7 +200,6 @@ static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinitio lean_object* l_Lean_Meta_unfoldDeclsFrom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withCommonTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_withCommonTelescope___rarg___closed__1; -lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__2; static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__1; @@ -4314,7 +4314,7 @@ lean_dec(x_29); x_32 = lean_ctor_get(x_30, 0); lean_inc(x_32); lean_dec(x_30); -x_33 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_31); +x_33 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_31); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4417,7 +4417,7 @@ lean_inc(x_55); x_56 = lean_ctor_get(x_26, 1); lean_inc(x_56); lean_dec(x_26); -x_57 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_56); +x_57 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_56); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4458,7 +4458,7 @@ lean_inc(x_62); x_63 = lean_ctor_get(x_21, 1); lean_inc(x_63); lean_dec(x_21); -x_64 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_63); +x_64 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_63); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4502,7 +4502,7 @@ lean_inc(x_69); x_70 = lean_ctor_get(x_19, 1); lean_inc(x_70); lean_dec(x_19); -x_71 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_70); +x_71 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_18, x_8, x_9, x_10, x_11, x_12, x_13, x_70); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5163,7 +5163,7 @@ lean_inc(x_79); x_80 = lean_ctor_get(x_76, 1); lean_inc(x_80); lean_dec(x_76); -x_81 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_80); +x_81 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_80); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5246,7 +5246,7 @@ lean_inc(x_99); x_100 = lean_ctor_get(x_96, 1); lean_inc(x_100); lean_dec(x_96); -x_101 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_100); +x_101 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_100); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5289,7 +5289,7 @@ lean_inc(x_118); x_119 = lean_ctor_get(x_70, 1); lean_inc(x_119); lean_dec(x_70); -x_120 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_119); +x_120 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_119); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5330,7 +5330,7 @@ lean_inc(x_125); x_126 = lean_ctor_get(x_68, 1); lean_inc(x_126); lean_dec(x_68); -x_127 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_126); +x_127 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_126); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5362,7 +5362,7 @@ return x_131; block_66: { 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 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +x_20 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_19); x_21 = lean_ctor_get(x_18, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index 1cb958c610..22eef592ca 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -291,7 +291,6 @@ static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_ static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__8___closed__7; static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__3; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__25___closed__11; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__14___closed__18; static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4904____closed__4; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__25___closed__32; @@ -698,6 +697,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__20; static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__3; +lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__1___closed__8; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__17(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*); @@ -13345,7 +13345,7 @@ x_11 = lean_ctor_get(x_7, 5); x_12 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); lean_ctor_set(x_7, 5, x_12); -x_13 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); return x_13; } @@ -13389,7 +13389,7 @@ lean_ctor_set(x_26, 7, x_21); lean_ctor_set(x_26, 8, x_22); lean_ctor_set(x_26, 9, x_23); lean_ctor_set(x_26, 10, x_24); -x_27 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_2, x_3, x_4, x_5, x_6, x_26, x_8, x_9); lean_dec(x_26); return x_27; } diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 065197ff82..f2383f39b2 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -67,6 +67,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStr lean_object* l_Lean_LocalDecl_userName(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_go(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_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__7; +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_NameSet_contains___boxed(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__3___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam_levelMVarToParamFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -270,6 +271,7 @@ static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Le lean_object* l_Lean_mkDefaultFnOfProjFn(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__4(lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -279,6 +281,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__1(lean_obje static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_522____closed__17; 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_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_327_(uint8_t, lean_object*); +lean_object* l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getNestedProjectionArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent___boxed(lean_object*); @@ -299,7 +302,6 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0_ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___closed__3; @@ -308,7 +310,6 @@ static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure LEAN_EXPORT lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_value(lean_object*); -lean_object* l_Lean_addAndCompile___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam_levelMVarToParamFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -329,7 +330,6 @@ static uint64_t l_Lean_Elab_Command_instInhabitedStructFieldInfo___closed__1; lean_object* l_Lean_mkCasesOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___closed__9; lean_object* l_Lean_Option_register___at_Lean_initFn____x40_Lean_PrettyPrinter_Delaborator_Options___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); @@ -551,10 +551,10 @@ lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, le static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_2512____closed__4; static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__7; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___closed__5; -lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findExistingField_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___closed__5; +lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(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_Structure_0__Lean_Elab_Command_withFields_go___rarg___closed__9; uint8_t l_Lean_Expr_isForall(lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); @@ -651,6 +651,7 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___privat LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_toVisibility___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___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* l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_327____closed__2; @@ -964,7 +965,6 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0_ lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_327____closed__13; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__5___closed__5; -lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_2512____closed__1; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_327____closed__12; LEAN_EXPORT uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1(lean_object*, lean_object*); @@ -4367,7 +4367,7 @@ lean_dec(x_17); x_20 = lean_ctor_get(x_3, 0); lean_inc(x_20); lean_inc(x_18); -x_21 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(x_18, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +x_21 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(x_18, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_19); x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); lean_dec(x_21); @@ -5621,7 +5621,7 @@ lean_dec(x_21); x_24 = lean_ctor_get(x_3, 0); lean_inc(x_24); lean_inc(x_22); -x_25 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(x_22, x_24, x_12, x_13, x_14, x_15, x_16, x_17, x_23); +x_25 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(x_22, x_24, x_12, x_13, x_14, x_15, x_16, x_17, x_23); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -20760,7 +20760,7 @@ lean_object* x_16; lean_object* x_17; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); lean_dec(x_15); -x_17 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_17 = l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_13); return x_17; } else @@ -20769,7 +20769,7 @@ lean_object* x_18; lean_object* x_19; x_18 = lean_ctor_get(x_15, 0); lean_inc(x_18); lean_dec(x_15); -x_19 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_19 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_13); lean_dec(x_8); lean_dec(x_4); return x_19; @@ -23573,7 +23573,7 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_58 = l_Lean_addAndCompile___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__6(x_57, x_11, x_12, x_13, x_14, x_46); +x_58 = l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(x_57, x_11, x_12, x_13, x_14, x_46); if (lean_obj_tag(x_58) == 0) { lean_object* x_59; uint8_t x_60; @@ -23646,7 +23646,7 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_74 = l_Lean_addAndCompile___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__6(x_73, x_11, x_12, x_13, x_14, x_46); +x_74 = l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(x_73, x_11, x_12, x_13, x_14, x_46); if (lean_obj_tag(x_74) == 0) { lean_object* x_75; uint8_t x_76; @@ -25425,7 +25425,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_69 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_66, x_10, x_11, x_12, x_13, x_14, x_15, x_68); +x_69 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_66, x_10, x_11, x_12, x_13, x_14, x_15, x_68); if (lean_obj_tag(x_69) == 0) { lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Config.c b/stage0/stdlib/Lean/Elab/Tactic/Config.c index 98c0b1e0df..2183e880eb 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Config.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Config.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Config -// Imports: Init Lean.Elab.Tactic.Basic Lean.Elab.SyntheticMVars +// Imports: Init Lean.Meta.Eval Lean.Elab.Tactic.Basic Lean.Elab.SyntheticMVars #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -49,9 +49,11 @@ static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__105; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__85; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__252; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__186; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__124; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__134; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__244; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__87; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__138; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__143; @@ -60,12 +62,15 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__95; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__79; lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__250; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__101; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__241; static lean_object* l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__14; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__214; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__167; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__160; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__232; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__243; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__92; lean_object* lean_string_utf8_byte_size(lean_object*); static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__205; @@ -100,6 +105,7 @@ static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__191; static lean_object* l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__5; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__37; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__242; static lean_object* l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__3; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__100; @@ -107,6 +113,7 @@ static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__53; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__208; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__230; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__55; static lean_object* l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__17; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__126; @@ -136,6 +143,7 @@ static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__221; static lean_object* l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__4; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__229; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__251; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__149; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__77; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__224; @@ -182,6 +190,7 @@ static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__162; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__34; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__247; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__195; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__226; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__223; @@ -212,12 +221,15 @@ static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__72; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__216; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__96; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__245; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__41; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__218; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__249; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__13; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__180; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__54; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__147; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__248; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__52; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__194; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__112; @@ -250,6 +262,7 @@ static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______ma static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__156; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__161; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__127; +static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__253; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__35; static lean_object* l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__70; @@ -1096,7 +1109,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Term.evalExpr", 13); +x_1 = lean_mk_string_from_bytes("Meta.evalExpr'", 14); return x_1; } } @@ -1126,37 +1139,35 @@ return x_4; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__69() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__32; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Meta", 4); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__70() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("evalExpr", 8); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__69; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__71() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__69; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__70; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("evalExpr'", 9); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__72() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__59; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__70; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__70; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__71; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1165,11 +1176,9 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__72; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__69; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -1177,29 +1186,33 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__73; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__73; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__71; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__75() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doubleQuotedName", 16); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__74; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__76() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_1 = lean_box(0); x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__75; -x_3 = lean_name_mk_string(x_1, x_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; } } @@ -1207,59 +1220,66 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("`", 1); +x_1 = lean_mk_string_from_bytes("namedArgument", 13); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__78() { _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* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__77; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__79() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(7u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("safety", 6); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__80() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("attributes", 10); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__79; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__81() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__80; -x_3 = lean_name_mk_string(x_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_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__79; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__80; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__82() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("@[", 2); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__79; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__83() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("attrInstance", 12); +x_1 = lean_mk_string_from_bytes("dotIdent", 8); return x_1; } } @@ -1277,49 +1297,48 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("attrKind", 8); +x_1 = lean_mk_string_from_bytes(".", 1); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__86() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__85; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__13; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__87() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__15; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__88() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = lean_box(2); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__86; -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__87; -x_4 = lean_alloc_ctor(1, 3, 0); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__13; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__86; +x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); lean_ctor_set(x_4, 2, x_3); return x_4; } } +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__88() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__13; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__89() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Attr", 4); +x_1 = lean_mk_string_from_bytes("doubleQuotedName", 16); return x_1; } } @@ -1327,7 +1346,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__4; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__89; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -1337,57 +1356,51 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("simple", 6); +x_1 = lean_mk_string_from_bytes("`", 1); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__92() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__90; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__91; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +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; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__93() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("implementedBy", 13); -return x_1; +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; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__94() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__93; -x_2 = lean_string_utf8_byte_size(x_1); +x_1 = lean_unsigned_to_nat(7u); +x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__95() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__93; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__94; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("attributes", 10); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__96() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__93; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__95; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1395,64 +1408,65 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__97() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__29; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__88; -x_3 = lean_array_push(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("@[", 2); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__98() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("]", 1); +x_1 = lean_mk_string_from_bytes("attrInstance", 12); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__99() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("opaque", 6); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__98; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__100() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__6; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__99; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("attrKind", 8); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__101() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("eval", 4); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__100; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__102() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__101; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__15; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; +x_3 = lean_array_push(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__103() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__101; -x_2 = lean_unsigned_to_nat(0u); +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__101; x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__102; -x_4 = lean_alloc_ctor(0, 3, 0); +x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); lean_ctor_set(x_4, 2, x_3); @@ -1462,68 +1476,64 @@ return x_4; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__104() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__101; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Attr", 4); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__105() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("declSig", 7); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__4; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__104; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__106() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__6; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__105; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("simple", 6); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__107() { _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* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__105; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__106; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__108() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__20; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; -x_3 = lean_array_push(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("implementedBy", 13); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__109() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; +lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__108; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; -x_3 = lean_array_push(x_1, x_2); -return x_3; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__110() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = lean_box(2); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__10; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__108; +x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__109; -x_4 = lean_alloc_ctor(1, 3, 0); +x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); lean_ctor_set(x_4, 2, x_3); @@ -1533,91 +1543,86 @@ return x_4; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__111() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("optConfig", 9); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__108; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__112() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__111; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__29; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__103; +x_3 = lean_array_push(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__113() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__111; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__112; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("]", 1); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__114() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__111; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("opaque", 6); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Syntax", 6); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__6; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__114; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__116() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("eval", 4); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__117() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__116; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__116; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__118() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115; -x_3 = lean_name_mk_string(x_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_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__116; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__117; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__119() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__116; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1625,149 +1630,79 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__120() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__119; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("declSig", 7); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__121() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__6; x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__120; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__122() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("do", 2); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__20; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; +x_3 = lean_array_push(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__123() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__122; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__122; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; +x_3 = lean_array_push(x_1, x_2); return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__124() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doSeqIndent", 11); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__10; +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__123; +x_4 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__125() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__124; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("optConfig", 9); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__126() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doSeqItem", 9); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__125; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__127() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__126; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__128() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doIf", 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__128; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__130() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("if", 2); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__131() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doIfProp", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__132() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__131; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__133() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("optConfig.isNone", 16); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__134() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__133; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__135() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__133; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__125; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__134; +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__126; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1775,11 +1710,96 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__128() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__125; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Syntax", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__130() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__131() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__130; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__132() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__133() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__134() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__133; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__135() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__134; +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; +} +} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__136() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("isNone", 6); +x_1 = lean_mk_string_from_bytes("do", 2); return x_1; } } @@ -1787,7 +1807,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__114; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__136; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -1796,26 +1816,26 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__138() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__29; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; -x_3 = lean_array_push(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("doSeqIndent", 11); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__139() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("then", 4); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__138; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__140() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doReturn", 8); +x_1 = lean_mk_string_from_bytes("doSeqItem", 9); return x_1; } } @@ -1833,99 +1853,102 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("return", 6); +x_1 = lean_mk_string_from_bytes("doIf", 4); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__143() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("structInst", 10); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__142; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__144() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__143; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("if", 2); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__145() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("{", 1); +x_1 = lean_mk_string_from_bytes("doIfProp", 8); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__146() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("optEllipsis", 11); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__145; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__147() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__146; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("optConfig.isNone", 16); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__148() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__147; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__149() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = lean_box(2); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__147; -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__87; -x_4 = lean_alloc_ctor(1, 3, 0); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__147; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__148; +x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__149() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("}", 1); -return x_1; -} -} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__150() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("else", 4); +x_1 = lean_mk_string_from_bytes("isNone", 6); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__151() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doLetArrow", 10); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__128; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__150; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__152() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__151; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__29; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; +x_3 = lean_array_push(x_1, x_2); return x_3; } } @@ -1933,7 +1956,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("let", 3); +x_1 = lean_mk_string_from_bytes("then", 4); return x_1; } } @@ -1941,7 +1964,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doIdDecl", 8); +x_1 = lean_mk_string_from_bytes("doReturn", 8); return x_1; } } @@ -1959,134 +1982,124 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("c", 1); +x_1 = lean_mk_string_from_bytes("return", 6); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__157() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__156; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("structInst", 10); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__158() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__156; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__157; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__157; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__159() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__156; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("{", 1); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__160() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("←", 3); +x_1 = lean_mk_string_from_bytes("optEllipsis", 11); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__161() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("doExpr", 6); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__160; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__162() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__161; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__163() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("term_<|_", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__164() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__163; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__165() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("withoutModifyingState", 21); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__166() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__165; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__167() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__165; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__166; -x_4 = lean_alloc_ctor(0, 3, 0); +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__161; +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__102; +x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__168() { +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__163() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("}", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__164() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("else", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__165() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("doLetArrow", 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__166() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__165; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__167() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("let", 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__168() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("doIdDecl", 8); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__169() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__165; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__168; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2094,59 +2107,27 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__170() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__169; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("c", 1); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__171() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__170; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__170; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__172() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("<|", 2); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("withLCtx", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__174() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__175() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__170; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__174; +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__171; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2154,12 +2135,38 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__176() { +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__170; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__174() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("←", 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__175() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("doExpr", 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__176() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__175; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2168,7 +2175,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Meta", 4); +x_1 = lean_mk_string_from_bytes("term_<|_", 8); return x_1; } } @@ -2176,7 +2183,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; +x_1 = lean_box(0); x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__177; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -2185,51 +2192,50 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__179() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__178; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("withoutModifyingState", 21); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__180() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__179; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__179; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__181() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__180; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__179; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__180; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__182() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("choice", 6); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__179; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__183() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__182; +x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__179; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2237,9 +2243,13 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__184() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("term{}", 6); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__183; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__185() { @@ -2248,7 +2258,9 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__184; -x_3 = lean_name_mk_string(x_1, x_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; } } @@ -2256,26 +2268,34 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("withSaveInfoContext", 19); +x_1 = lean_mk_string_from_bytes("<|", 2); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__187() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__186; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("withLCtx", 8); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__188() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__187; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__189() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__186; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__187; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__187; +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__188; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2283,22 +2303,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__189() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__186; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__190() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__4; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__186; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__187; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2307,11 +2317,9 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__190; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__73; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__187; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -2321,7 +2329,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__191; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -2330,39 +2338,38 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__193() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Term.withSynthesize", 19); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__192; +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; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__194() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__193; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("choice", 6); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__195() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__193; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__194; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__194; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__196() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("withSynthesize", 14); +x_1 = lean_mk_string_from_bytes("term{}", 6); return x_1; } } @@ -2370,7 +2377,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__69; +x_1 = lean_box(0); x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__196; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -2379,61 +2386,27 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__198() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__59; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__196; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("withSaveInfoContext", 19); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__199() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__198; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__198; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__200() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__199; -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; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__201() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Term.elabTermEnsuringType", 25); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__202() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__201; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__203() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__201; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__198; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__202; +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__199; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2441,44 +2414,79 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__201() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__198; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__202() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__4; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__198; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__203() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__202; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__204() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("elabTermEnsuringType", 20); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__203; +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; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__205() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__69; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__204; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Term.withSynthesize", 19); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__206() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__59; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__204; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__205; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__207() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__206; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__205; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__206; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__208() { @@ -2486,10 +2494,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__207; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__32; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -2497,7 +2503,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("arrayRef", 8); +x_1 = lean_mk_string_from_bytes("withSynthesize", 14); return x_1; } } @@ -2505,7 +2511,7 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__208; x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__209; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -2514,17 +2520,23 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__211() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("[", 1); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__59; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__209; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__212() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("num", 3); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__211; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__213() { @@ -2533,7 +2545,9 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__212; -x_3 = lean_name_mk_string(x_1, x_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; } } @@ -2541,19 +2555,146 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("0", 1); +x_1 = lean_mk_string_from_bytes("Term.elabTermEnsuringType", 25); return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__215() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__214; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__216() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__214; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__215; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__217() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("elabTermEnsuringType", 20); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__218() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__208; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__217; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__219() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__59; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__217; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__220() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__219; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__221() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__220; +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; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__222() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("arrayRef", 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__223() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__222; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__224() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("[", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__225() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("num", 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__226() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__225; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__227() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("0", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__228() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string_from_bytes("3", 1); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__216() { +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__229() { _start: { lean_object* x_1; @@ -2561,144 +2702,12 @@ x_1 = lean_mk_string_from_bytes("paren", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__217() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__216; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__218() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Lean.mkConst", 12); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__219() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__218; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__220() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__218; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__219; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__221() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("mkConst", 7); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__222() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__221; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__223() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__222; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__224() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__223; -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; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__225() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Term.synthesizeSyntheticMVarsNoPostponing", 41); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__226() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__225; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__227() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__225; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__226; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__228() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("synthesizeSyntheticMVarsNoPostponing", 36); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__229() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__69; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__228; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__230() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__59; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__228; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__33; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__229; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2706,51 +2715,27 @@ return x_3; static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__231() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__230; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Lean.mkConst", 12); +return x_1; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__232() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__231; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__231; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("instantiateMVars", 16); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__234() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__235() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__231; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__234; +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__232; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2758,13 +2743,33 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__234() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("mkConst", 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__235() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_commandDeclare__config__elab_______closed__2; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__234; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__236() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233; -x_3 = lean_name_mk_string(x_1, x_2); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__235; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -2772,42 +2777,178 @@ static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__178; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__238() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__237; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__239() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__238; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__236; 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; } } +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__238() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Term.synthesizeSyntheticMVarsNoPostponing", 41); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__239() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__238; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__238; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__239; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__241() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("synthesizeSyntheticMVarsNoPostponing", 36); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__242() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__208; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__241; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__243() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__59; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__241; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__244() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__243; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__245() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__244; +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; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("instantiateMVars", 16); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__247() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__248() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__247; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__249() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__250() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__73; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__251() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__250; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__252() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__251; +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; +} +} +static lean_object* _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__253() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__29; -x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__110; +x_2 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__124; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -2843,7 +2984,7 @@ x_12 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRul x_13 = !lean_is_exclusive(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; 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; 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; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 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; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +lean_object* x_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; 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; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 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; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; x_14 = lean_ctor_get(x_12, 0); x_15 = lean_ctor_get(x_2, 2); lean_inc(x_15); @@ -3026,1853 +3167,1948 @@ lean_inc(x_14); x_96 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_96, 0, x_14); lean_ctor_set(x_96, 1, x_95); -x_97 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__71; +x_97 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__72; lean_inc(x_15); lean_inc(x_16); x_98 = l_Lean_addMacroScope(x_16, x_97, x_15); x_99 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__68; -x_100 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__74; +x_100 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__76; lean_inc(x_14); x_101 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_101, 0, x_14); lean_ctor_set(x_101, 1, x_99); lean_ctor_set(x_101, 2, x_98); lean_ctor_set(x_101, 3, x_100); -x_102 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__77; +x_102 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__82; +lean_inc(x_15); +lean_inc(x_16); +x_103 = l_Lean_addMacroScope(x_16, x_102, x_15); +x_104 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__81; lean_inc(x_14); -x_103 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_103, 0, x_14); -lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__78; -lean_inc(x_103); -x_105 = lean_array_push(x_104, x_103); -x_106 = lean_array_push(x_105, x_103); -lean_inc(x_11); -x_107 = lean_array_push(x_106, x_11); -x_108 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__76; -x_109 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_109, 0, x_21); -lean_ctor_set(x_109, 1, x_108); -lean_ctor_set(x_109, 2, x_107); -lean_inc(x_11); -x_110 = lean_array_push(x_104, x_11); -lean_inc(x_109); -x_111 = lean_array_push(x_110, x_109); -x_112 = lean_array_push(x_111, x_50); -x_113 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_113, 0, x_21); -lean_ctor_set(x_113, 1, x_25); -lean_ctor_set(x_113, 2, x_112); -x_114 = lean_array_push(x_40, x_101); -x_115 = lean_array_push(x_114, x_113); -x_116 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_116, 0, x_21); -lean_ctor_set(x_116, 1, x_84); -lean_ctor_set(x_116, 2, x_115); -x_117 = lean_array_push(x_104, x_96); -lean_inc(x_117); -x_118 = lean_array_push(x_117, x_116); -x_119 = lean_array_push(x_118, x_29); -x_120 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__64; +x_105 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_105, 0, x_14); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_105, 2, x_103); +lean_ctor_set(x_105, 3, x_37); +x_106 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__85; +lean_inc(x_14); +x_107 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_107, 0, x_14); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__88; +lean_inc(x_15); +lean_inc(x_16); +x_109 = l_Lean_addMacroScope(x_16, x_108, x_15); +x_110 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__87; +lean_inc(x_14); +x_111 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_111, 0, x_14); +lean_ctor_set(x_111, 1, x_110); +lean_ctor_set(x_111, 2, x_109); +lean_ctor_set(x_111, 3, x_37); +x_112 = lean_array_push(x_40, x_107); +x_113 = lean_array_push(x_112, x_111); +x_114 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__84; +x_115 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_115, 0, x_21); +lean_ctor_set(x_115, 1, x_114); +lean_ctor_set(x_115, 2, x_113); +lean_inc(x_66); +x_116 = lean_array_push(x_66, x_105); +lean_inc(x_96); +x_117 = lean_array_push(x_116, x_96); +x_118 = lean_array_push(x_117, x_115); +lean_inc(x_64); +x_119 = lean_array_push(x_118, x_64); +x_120 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__78; x_121 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_121, 0, x_21); lean_ctor_set(x_121, 1, x_120); lean_ctor_set(x_121, 2, x_119); -x_122 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__79; -x_123 = lean_array_push(x_122, x_34); +x_122 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__91; +lean_inc(x_14); +x_123 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_123, 0, x_14); +lean_ctor_set(x_123, 1, x_122); +x_124 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__92; lean_inc(x_123); -x_124 = lean_array_push(x_123, x_44); -x_125 = lean_array_push(x_124, x_94); -x_126 = lean_array_push(x_125, x_121); -x_127 = lean_array_push(x_126, x_29); -x_128 = lean_array_push(x_127, x_29); -x_129 = lean_array_push(x_128, x_29); -x_130 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__22; -x_131 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_131, 0, x_21); -lean_ctor_set(x_131, 1, x_130); -lean_ctor_set(x_131, 2, x_129); -x_132 = lean_array_push(x_40, x_32); -x_133 = lean_array_push(x_132, x_131); -x_134 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__8; +x_125 = lean_array_push(x_124, x_123); +x_126 = lean_array_push(x_125, x_123); +lean_inc(x_11); +x_127 = lean_array_push(x_126, x_11); +x_128 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__90; +x_129 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_129, 0, x_21); +lean_ctor_set(x_129, 1, x_128); +lean_ctor_set(x_129, 2, x_127); +x_130 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__93; +x_131 = lean_array_push(x_130, x_121); +lean_inc(x_11); +x_132 = lean_array_push(x_131, x_11); +lean_inc(x_129); +x_133 = lean_array_push(x_132, x_129); +x_134 = lean_array_push(x_133, x_50); x_135 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_135, 0, x_21); -lean_ctor_set(x_135, 1, x_134); -lean_ctor_set(x_135, 2, x_133); -x_136 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__82; -lean_inc(x_14); -x_137 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_137, 0, x_14); -lean_ctor_set(x_137, 1, x_136); -x_138 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__96; -lean_inc(x_15); -lean_inc(x_16); -x_139 = l_Lean_addMacroScope(x_16, x_138, x_15); -x_140 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__95; -lean_inc(x_14); -x_141 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_141, 0, x_14); -lean_ctor_set(x_141, 1, x_140); -lean_ctor_set(x_141, 2, x_139); -lean_ctor_set(x_141, 3, x_37); -x_142 = lean_array_push(x_19, x_39); +lean_ctor_set(x_135, 1, x_25); +lean_ctor_set(x_135, 2, x_134); +x_136 = lean_array_push(x_40, x_101); +x_137 = lean_array_push(x_136, x_135); +x_138 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_138, 0, x_21); +lean_ctor_set(x_138, 1, x_84); +lean_ctor_set(x_138, 2, x_137); +x_139 = lean_array_push(x_124, x_96); +lean_inc(x_139); +x_140 = lean_array_push(x_139, x_138); +x_141 = lean_array_push(x_140, x_29); +x_142 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__64; x_143 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_143, 0, x_21); -lean_ctor_set(x_143, 1, x_25); -lean_ctor_set(x_143, 2, x_142); -x_144 = lean_array_push(x_40, x_141); -x_145 = lean_array_push(x_144, x_143); -x_146 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__92; -x_147 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_147, 0, x_21); -lean_ctor_set(x_147, 1, x_146); -lean_ctor_set(x_147, 2, x_145); -x_148 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__97; -x_149 = lean_array_push(x_148, x_147); -x_150 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__84; -x_151 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_151, 0, x_21); -lean_ctor_set(x_151, 1, x_150); -lean_ctor_set(x_151, 2, x_149); -x_152 = lean_array_push(x_19, x_151); +lean_ctor_set(x_143, 1, x_142); +lean_ctor_set(x_143, 2, x_141); +x_144 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__94; +x_145 = lean_array_push(x_144, x_34); +lean_inc(x_145); +x_146 = lean_array_push(x_145, x_44); +x_147 = lean_array_push(x_146, x_94); +x_148 = lean_array_push(x_147, x_143); +x_149 = lean_array_push(x_148, x_29); +x_150 = lean_array_push(x_149, x_29); +x_151 = lean_array_push(x_150, x_29); +x_152 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__22; x_153 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_153, 0, x_21); -lean_ctor_set(x_153, 1, x_25); -lean_ctor_set(x_153, 2, x_152); -x_154 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__98; +lean_ctor_set(x_153, 1, x_152); +lean_ctor_set(x_153, 2, x_151); +x_154 = lean_array_push(x_40, x_32); +x_155 = lean_array_push(x_154, x_153); +x_156 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__8; +x_157 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_157, 0, x_21); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_155); +x_158 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__97; lean_inc(x_14); -x_155 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_155, 0, x_14); -lean_ctor_set(x_155, 1, x_154); -x_156 = lean_array_push(x_104, x_137); -x_157 = lean_array_push(x_156, x_153); -lean_inc(x_155); -x_158 = lean_array_push(x_157, x_155); -x_159 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__81; -x_160 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_160, 0, x_21); -lean_ctor_set(x_160, 1, x_159); -lean_ctor_set(x_160, 2, x_158); -x_161 = lean_array_push(x_19, x_160); -x_162 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_162, 0, x_21); -lean_ctor_set(x_162, 1, x_25); -lean_ctor_set(x_162, 2, x_161); -x_163 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__17; -x_164 = lean_array_push(x_163, x_162); -x_165 = lean_array_push(x_164, x_29); -x_166 = lean_array_push(x_165, x_29); -x_167 = lean_array_push(x_166, x_29); -x_168 = lean_array_push(x_167, x_29); +x_159 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_159, 0, x_14); +lean_ctor_set(x_159, 1, x_158); +x_160 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__111; +lean_inc(x_15); +lean_inc(x_16); +x_161 = l_Lean_addMacroScope(x_16, x_160, x_15); +x_162 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__110; +lean_inc(x_14); +x_163 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_163, 0, x_14); +lean_ctor_set(x_163, 1, x_162); +lean_ctor_set(x_163, 2, x_161); +lean_ctor_set(x_163, 3, x_37); +x_164 = lean_array_push(x_19, x_39); +x_165 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_165, 0, x_21); +lean_ctor_set(x_165, 1, x_25); +lean_ctor_set(x_165, 2, x_164); +x_166 = lean_array_push(x_40, x_163); +x_167 = lean_array_push(x_166, x_165); +x_168 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__107; x_169 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_169, 0, x_21); -lean_ctor_set(x_169, 1, x_31); -lean_ctor_set(x_169, 2, x_168); -x_170 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__99; +lean_ctor_set(x_169, 1, x_168); +lean_ctor_set(x_169, 2, x_167); +x_170 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__112; +x_171 = lean_array_push(x_170, x_169); +x_172 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__99; +x_173 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_173, 0, x_21); +lean_ctor_set(x_173, 1, x_172); +lean_ctor_set(x_173, 2, x_171); +x_174 = lean_array_push(x_19, x_173); +x_175 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_175, 0, x_21); +lean_ctor_set(x_175, 1, x_25); +lean_ctor_set(x_175, 2, x_174); +x_176 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__113; lean_inc(x_14); -x_171 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_171, 0, x_14); -lean_ctor_set(x_171, 1, x_170); -x_172 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__104; -lean_inc(x_15); -lean_inc(x_16); -x_173 = l_Lean_addMacroScope(x_16, x_172, x_15); -x_174 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__103; -lean_inc(x_14); -x_175 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_175, 0, x_14); -lean_ctor_set(x_175, 1, x_174); -lean_ctor_set(x_175, 2, x_173); -lean_ctor_set(x_175, 3, x_37); -x_176 = lean_array_push(x_40, x_175); -lean_inc(x_176); -x_177 = lean_array_push(x_176, x_29); -x_178 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_178, 0, x_21); -lean_ctor_set(x_178, 1, x_43); -lean_ctor_set(x_178, 2, x_177); -x_179 = lean_array_push(x_91, x_88); -x_180 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__106; -x_181 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_181, 0, x_21); -lean_ctor_set(x_181, 1, x_180); -lean_ctor_set(x_181, 2, x_179); -x_182 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__107; -x_183 = lean_array_push(x_182, x_171); -x_184 = lean_array_push(x_183, x_178); -x_185 = lean_array_push(x_184, x_181); -x_186 = lean_array_push(x_185, x_29); -x_187 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__100; -x_188 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_188, 0, x_21); -lean_ctor_set(x_188, 1, x_187); -lean_ctor_set(x_188, 2, x_186); -x_189 = lean_array_push(x_40, x_169); -x_190 = lean_array_push(x_189, x_188); +x_177 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_177, 0, x_14); +lean_ctor_set(x_177, 1, x_176); +x_178 = lean_array_push(x_124, x_159); +x_179 = lean_array_push(x_178, x_175); +lean_inc(x_177); +x_180 = lean_array_push(x_179, x_177); +x_181 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__96; +x_182 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_182, 0, x_21); +lean_ctor_set(x_182, 1, x_181); +lean_ctor_set(x_182, 2, x_180); +x_183 = lean_array_push(x_19, x_182); +x_184 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_184, 0, x_21); +lean_ctor_set(x_184, 1, x_25); +lean_ctor_set(x_184, 2, x_183); +x_185 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__17; +x_186 = lean_array_push(x_185, x_184); +x_187 = lean_array_push(x_186, x_29); +x_188 = lean_array_push(x_187, x_29); +x_189 = lean_array_push(x_188, x_29); +x_190 = lean_array_push(x_189, x_29); x_191 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_191, 0, x_21); -lean_ctor_set(x_191, 1, x_134); +lean_ctor_set(x_191, 1, x_31); lean_ctor_set(x_191, 2, x_190); -x_192 = lean_array_push(x_40, x_9); -x_193 = lean_array_push(x_192, x_29); -x_194 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_194, 0, x_21); -lean_ctor_set(x_194, 1, x_43); -lean_ctor_set(x_194, 2, x_193); -x_195 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__114; +x_192 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__114; +lean_inc(x_14); +x_193 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_193, 0, x_14); +lean_ctor_set(x_193, 1, x_192); +x_194 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__119; lean_inc(x_15); lean_inc(x_16); -x_196 = l_Lean_addMacroScope(x_16, x_195, x_15); -x_197 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__113; +x_195 = l_Lean_addMacroScope(x_16, x_194, x_15); +x_196 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__118; lean_inc(x_14); -x_198 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_198, 0, x_14); -lean_ctor_set(x_198, 1, x_197); -lean_ctor_set(x_198, 2, x_196); -lean_ctor_set(x_198, 3, x_37); +x_197 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_197, 0, x_14); +lean_ctor_set(x_197, 1, x_196); +lean_ctor_set(x_197, 2, x_195); +lean_ctor_set(x_197, 3, x_37); +x_198 = lean_array_push(x_40, x_197); lean_inc(x_198); -x_199 = lean_array_push(x_19, x_198); +x_199 = lean_array_push(x_198, x_29); x_200 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_200, 0, x_21); -lean_ctor_set(x_200, 1, x_25); +lean_ctor_set(x_200, 1, x_43); lean_ctor_set(x_200, 2, x_199); -x_201 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__118; -lean_inc(x_15); -lean_inc(x_16); -x_202 = l_Lean_addMacroScope(x_16, x_201, x_15); -x_203 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__117; -x_204 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__121; -lean_inc(x_14); -x_205 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_205, 0, x_14); -lean_ctor_set(x_205, 1, x_203); -lean_ctor_set(x_205, 2, x_202); -lean_ctor_set(x_205, 3, x_204); -lean_inc(x_60); -x_206 = lean_array_push(x_60, x_205); -x_207 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_207, 0, x_21); -lean_ctor_set(x_207, 1, x_25); -lean_ctor_set(x_207, 2, x_206); -x_208 = lean_array_push(x_66, x_200); -x_209 = lean_array_push(x_208, x_207); -x_210 = lean_array_push(x_209, x_29); -lean_inc(x_64); -x_211 = lean_array_push(x_210, x_64); +x_201 = lean_array_push(x_91, x_88); +x_202 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__121; +x_203 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_203, 0, x_21); +lean_ctor_set(x_203, 1, x_202); +lean_ctor_set(x_203, 2, x_201); +x_204 = lean_array_push(x_130, x_193); +x_205 = lean_array_push(x_204, x_200); +x_206 = lean_array_push(x_205, x_203); +x_207 = lean_array_push(x_206, x_29); +x_208 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115; +x_209 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_209, 0, x_21); +lean_ctor_set(x_209, 1, x_208); +lean_ctor_set(x_209, 2, x_207); +x_210 = lean_array_push(x_40, x_191); +x_211 = lean_array_push(x_210, x_209); x_212 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_212, 0, x_21); -lean_ctor_set(x_212, 1, x_71); +lean_ctor_set(x_212, 1, x_156); lean_ctor_set(x_212, 2, x_211); -x_213 = lean_array_push(x_19, x_212); -x_214 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_214, 0, x_21); -lean_ctor_set(x_214, 1, x_25); -lean_ctor_set(x_214, 2, x_213); -x_215 = lean_array_push(x_40, x_214); -x_216 = lean_array_push(x_215, x_90); -x_217 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_217, 0, x_21); -lean_ctor_set(x_217, 1, x_93); -lean_ctor_set(x_217, 2, x_216); -x_218 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__122; +x_213 = lean_array_push(x_40, x_9); +x_214 = lean_array_push(x_213, x_29); +x_215 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_215, 0, x_21); +lean_ctor_set(x_215, 1, x_43); +lean_ctor_set(x_215, 2, x_214); +x_216 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__128; +lean_inc(x_15); +lean_inc(x_16); +x_217 = l_Lean_addMacroScope(x_16, x_216, x_15); +x_218 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__127; lean_inc(x_14); -x_219 = lean_alloc_ctor(2, 2, 0); +x_219 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_219, 0, x_14); lean_ctor_set(x_219, 1, x_218); -x_220 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__130; -lean_inc(x_14); -x_221 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_221, 0, x_14); -lean_ctor_set(x_221, 1, x_220); -x_222 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__137; +lean_ctor_set(x_219, 2, x_217); +lean_ctor_set(x_219, 3, x_37); +lean_inc(x_219); +x_220 = lean_array_push(x_19, x_219); +x_221 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_221, 0, x_21); +lean_ctor_set(x_221, 1, x_25); +lean_ctor_set(x_221, 2, x_220); +x_222 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__132; lean_inc(x_15); lean_inc(x_16); x_223 = l_Lean_addMacroScope(x_16, x_222, x_15); -x_224 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__135; +x_224 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__131; +x_225 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__135; lean_inc(x_14); -x_225 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_225, 0, x_14); -lean_ctor_set(x_225, 1, x_224); -lean_ctor_set(x_225, 2, x_223); -lean_ctor_set(x_225, 3, x_37); -x_226 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__138; -x_227 = lean_array_push(x_226, x_225); -x_228 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__132; -x_229 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_229, 0, x_21); -lean_ctor_set(x_229, 1, x_228); -lean_ctor_set(x_229, 2, x_227); -x_230 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__139; +x_226 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_226, 0, x_14); +lean_ctor_set(x_226, 1, x_224); +lean_ctor_set(x_226, 2, x_223); +lean_ctor_set(x_226, 3, x_225); +lean_inc(x_60); +x_227 = lean_array_push(x_60, x_226); +x_228 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_228, 0, x_21); +lean_ctor_set(x_228, 1, x_25); +lean_ctor_set(x_228, 2, x_227); +x_229 = lean_array_push(x_66, x_221); +x_230 = lean_array_push(x_229, x_228); +x_231 = lean_array_push(x_230, x_29); +lean_inc(x_64); +x_232 = lean_array_push(x_231, x_64); +x_233 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_233, 0, x_21); +lean_ctor_set(x_233, 1, x_71); +lean_ctor_set(x_233, 2, x_232); +x_234 = lean_array_push(x_19, x_233); +x_235 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_235, 0, x_21); +lean_ctor_set(x_235, 1, x_25); +lean_ctor_set(x_235, 2, x_234); +x_236 = lean_array_push(x_40, x_235); +x_237 = lean_array_push(x_236, x_90); +x_238 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_238, 0, x_21); +lean_ctor_set(x_238, 1, x_93); +lean_ctor_set(x_238, 2, x_237); +x_239 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__136; lean_inc(x_14); -x_231 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_231, 0, x_14); -lean_ctor_set(x_231, 1, x_230); -x_232 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__142; +x_240 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_240, 0, x_14); +lean_ctor_set(x_240, 1, x_239); +x_241 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__144; lean_inc(x_14); -x_233 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_233, 0, x_14); -lean_ctor_set(x_233, 1, x_232); -x_234 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__145; -lean_inc(x_14); -x_235 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_235, 0, x_14); -lean_ctor_set(x_235, 1, x_234); -x_236 = lean_array_push(x_60, x_11); -x_237 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_237, 0, x_21); -lean_ctor_set(x_237, 1, x_25); -lean_ctor_set(x_237, 2, x_236); -x_238 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__149; -lean_inc(x_14); -x_239 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_239, 0, x_14); -lean_ctor_set(x_239, 1, x_238); -x_240 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__16; -lean_inc(x_235); -x_241 = lean_array_push(x_240, x_235); -x_242 = lean_array_push(x_241, x_29); -x_243 = lean_array_push(x_242, x_29); -x_244 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__148; -x_245 = lean_array_push(x_243, x_244); -lean_inc(x_245); -x_246 = lean_array_push(x_245, x_237); -lean_inc(x_239); -x_247 = lean_array_push(x_246, x_239); -x_248 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__144; -x_249 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_249, 0, x_21); -lean_ctor_set(x_249, 1, x_248); -lean_ctor_set(x_249, 2, x_247); -x_250 = lean_array_push(x_19, x_249); -x_251 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_251, 0, x_21); -lean_ctor_set(x_251, 1, x_25); -lean_ctor_set(x_251, 2, x_250); -x_252 = lean_array_push(x_40, x_233); -x_253 = lean_array_push(x_252, x_251); -x_254 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__141; -x_255 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_255, 0, x_21); -lean_ctor_set(x_255, 1, x_254); -lean_ctor_set(x_255, 2, x_253); -x_256 = lean_array_push(x_40, x_255); -x_257 = lean_array_push(x_256, x_29); -x_258 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__127; -x_259 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_259, 0, x_21); -lean_ctor_set(x_259, 1, x_258); -lean_ctor_set(x_259, 2, x_257); -x_260 = lean_array_push(x_19, x_259); -x_261 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_261, 0, x_21); -lean_ctor_set(x_261, 1, x_25); -lean_ctor_set(x_261, 2, x_260); -x_262 = lean_array_push(x_19, x_261); -x_263 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__125; -x_264 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_264, 0, x_21); -lean_ctor_set(x_264, 1, x_263); -lean_ctor_set(x_264, 2, x_262); -x_265 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__150; -lean_inc(x_14); -x_266 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_266, 0, x_14); -lean_ctor_set(x_266, 1, x_265); -x_267 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__153; -lean_inc(x_14); -x_268 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_268, 0, x_14); -lean_ctor_set(x_268, 1, x_267); -x_269 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__159; +x_242 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_242, 0, x_14); +lean_ctor_set(x_242, 1, x_241); +x_243 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__151; lean_inc(x_15); lean_inc(x_16); -x_270 = l_Lean_addMacroScope(x_16, x_269, x_15); -x_271 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__158; +x_244 = l_Lean_addMacroScope(x_16, x_243, x_15); +x_245 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__149; lean_inc(x_14); -x_272 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_272, 0, x_14); -lean_ctor_set(x_272, 1, x_271); -lean_ctor_set(x_272, 2, x_270); -lean_ctor_set(x_272, 3, x_37); -x_273 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__160; +x_246 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_246, 0, x_14); +lean_ctor_set(x_246, 1, x_245); +lean_ctor_set(x_246, 2, x_244); +lean_ctor_set(x_246, 3, x_37); +x_247 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__152; +x_248 = lean_array_push(x_247, x_246); +x_249 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__146; +x_250 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_250, 0, x_21); +lean_ctor_set(x_250, 1, x_249); +lean_ctor_set(x_250, 2, x_248); +x_251 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__153; lean_inc(x_14); -x_274 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_274, 0, x_14); -lean_ctor_set(x_274, 1, x_273); -x_275 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__168; +x_252 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_252, 0, x_14); +lean_ctor_set(x_252, 1, x_251); +x_253 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__156; +lean_inc(x_14); +x_254 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_254, 0, x_14); +lean_ctor_set(x_254, 1, x_253); +x_255 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__159; +lean_inc(x_14); +x_256 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_256, 0, x_14); +lean_ctor_set(x_256, 1, x_255); +x_257 = lean_array_push(x_60, x_11); +x_258 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_258, 0, x_21); +lean_ctor_set(x_258, 1, x_25); +lean_ctor_set(x_258, 2, x_257); +x_259 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__163; +lean_inc(x_14); +x_260 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_260, 0, x_14); +lean_ctor_set(x_260, 1, x_259); +x_261 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__16; +lean_inc(x_256); +x_262 = lean_array_push(x_261, x_256); +x_263 = lean_array_push(x_262, x_29); +x_264 = lean_array_push(x_263, x_29); +x_265 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__162; +x_266 = lean_array_push(x_264, x_265); +lean_inc(x_266); +x_267 = lean_array_push(x_266, x_258); +lean_inc(x_260); +x_268 = lean_array_push(x_267, x_260); +x_269 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__158; +x_270 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_270, 0, x_21); +lean_ctor_set(x_270, 1, x_269); +lean_ctor_set(x_270, 2, x_268); +x_271 = lean_array_push(x_19, x_270); +x_272 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_272, 0, x_21); +lean_ctor_set(x_272, 1, x_25); +lean_ctor_set(x_272, 2, x_271); +x_273 = lean_array_push(x_40, x_254); +x_274 = lean_array_push(x_273, x_272); +x_275 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__155; +x_276 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_276, 0, x_21); +lean_ctor_set(x_276, 1, x_275); +lean_ctor_set(x_276, 2, x_274); +x_277 = lean_array_push(x_40, x_276); +x_278 = lean_array_push(x_277, x_29); +x_279 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__141; +x_280 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_280, 0, x_21); +lean_ctor_set(x_280, 1, x_279); +lean_ctor_set(x_280, 2, x_278); +x_281 = lean_array_push(x_19, x_280); +x_282 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_282, 0, x_21); +lean_ctor_set(x_282, 1, x_25); +lean_ctor_set(x_282, 2, x_281); +x_283 = lean_array_push(x_19, x_282); +x_284 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__139; +x_285 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_285, 0, x_21); +lean_ctor_set(x_285, 1, x_284); +lean_ctor_set(x_285, 2, x_283); +x_286 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__164; +lean_inc(x_14); +x_287 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_287, 0, x_14); +lean_ctor_set(x_287, 1, x_286); +x_288 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__167; +lean_inc(x_14); +x_289 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_289, 0, x_14); +lean_ctor_set(x_289, 1, x_288); +x_290 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173; lean_inc(x_15); lean_inc(x_16); -x_276 = l_Lean_addMacroScope(x_16, x_275, x_15); -x_277 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__167; -x_278 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__171; +x_291 = l_Lean_addMacroScope(x_16, x_290, x_15); +x_292 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__172; lean_inc(x_14); -x_279 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_279, 0, x_14); -lean_ctor_set(x_279, 1, x_277); -lean_ctor_set(x_279, 2, x_276); -lean_ctor_set(x_279, 3, x_278); -x_280 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__172; +x_293 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_293, 0, x_14); +lean_ctor_set(x_293, 1, x_292); +lean_ctor_set(x_293, 2, x_291); +lean_ctor_set(x_293, 3, x_37); +x_294 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__174; lean_inc(x_14); -x_281 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_281, 0, x_14); -lean_ctor_set(x_281, 1, x_280); -x_282 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__176; +x_295 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_295, 0, x_14); +lean_ctor_set(x_295, 1, x_294); +x_296 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__182; lean_inc(x_15); lean_inc(x_16); -x_283 = l_Lean_addMacroScope(x_16, x_282, x_15); -x_284 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__175; -x_285 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__181; +x_297 = l_Lean_addMacroScope(x_16, x_296, x_15); +x_298 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__181; +x_299 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__185; lean_inc(x_14); -x_286 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_286, 0, x_14); -lean_ctor_set(x_286, 1, x_284); -lean_ctor_set(x_286, 2, x_283); -lean_ctor_set(x_286, 3, x_285); -x_287 = lean_array_push(x_40, x_235); -lean_inc(x_239); -x_288 = lean_array_push(x_287, x_239); -x_289 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__185; -x_290 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_290, 0, x_21); -lean_ctor_set(x_290, 1, x_289); -lean_ctor_set(x_290, 2, x_288); -x_291 = lean_array_push(x_245, x_29); -x_292 = lean_array_push(x_291, x_239); -x_293 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_293, 0, x_21); -lean_ctor_set(x_293, 1, x_248); -lean_ctor_set(x_293, 2, x_292); -x_294 = lean_array_push(x_40, x_290); -x_295 = lean_array_push(x_294, x_293); -x_296 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__183; -x_297 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_297, 0, x_21); -lean_ctor_set(x_297, 1, x_296); -lean_ctor_set(x_297, 2, x_295); -lean_inc(x_297); -x_298 = lean_array_push(x_40, x_297); -x_299 = lean_array_push(x_298, x_297); -x_300 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_300, 0, x_21); -lean_ctor_set(x_300, 1, x_25); -lean_ctor_set(x_300, 2, x_299); -x_301 = lean_array_push(x_40, x_286); -x_302 = lean_array_push(x_301, x_300); -x_303 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_303, 0, x_21); -lean_ctor_set(x_303, 1, x_84); -lean_ctor_set(x_303, 2, x_302); -x_304 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__189; +x_300 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_300, 0, x_14); +lean_ctor_set(x_300, 1, x_298); +lean_ctor_set(x_300, 2, x_297); +lean_ctor_set(x_300, 3, x_299); +x_301 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__186; +lean_inc(x_14); +x_302 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_302, 0, x_14); +lean_ctor_set(x_302, 1, x_301); +x_303 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__190; lean_inc(x_15); lean_inc(x_16); -x_305 = l_Lean_addMacroScope(x_16, x_304, x_15); -x_306 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__188; -x_307 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__192; +x_304 = l_Lean_addMacroScope(x_16, x_303, x_15); +x_305 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__189; +x_306 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__193; lean_inc(x_14); -x_308 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_308, 0, x_14); -lean_ctor_set(x_308, 1, x_306); -lean_ctor_set(x_308, 2, x_305); -lean_ctor_set(x_308, 3, x_307); -x_309 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__197; +x_307 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_307, 0, x_14); +lean_ctor_set(x_307, 1, x_305); +lean_ctor_set(x_307, 2, x_304); +lean_ctor_set(x_307, 3, x_306); +x_308 = lean_array_push(x_40, x_256); +lean_inc(x_260); +x_309 = lean_array_push(x_308, x_260); +x_310 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__197; +x_311 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_311, 0, x_21); +lean_ctor_set(x_311, 1, x_310); +lean_ctor_set(x_311, 2, x_309); +x_312 = lean_array_push(x_266, x_29); +x_313 = lean_array_push(x_312, x_260); +x_314 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_314, 0, x_21); +lean_ctor_set(x_314, 1, x_269); +lean_ctor_set(x_314, 2, x_313); +x_315 = lean_array_push(x_40, x_311); +x_316 = lean_array_push(x_315, x_314); +x_317 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__195; +x_318 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_318, 0, x_21); +lean_ctor_set(x_318, 1, x_317); +lean_ctor_set(x_318, 2, x_316); +lean_inc(x_318); +x_319 = lean_array_push(x_40, x_318); +x_320 = lean_array_push(x_319, x_318); +x_321 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_321, 0, x_21); +lean_ctor_set(x_321, 1, x_25); +lean_ctor_set(x_321, 2, x_320); +x_322 = lean_array_push(x_40, x_307); +x_323 = lean_array_push(x_322, x_321); +x_324 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_324, 0, x_21); +lean_ctor_set(x_324, 1, x_84); +lean_ctor_set(x_324, 2, x_323); +x_325 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__201; lean_inc(x_15); lean_inc(x_16); -x_310 = l_Lean_addMacroScope(x_16, x_309, x_15); -x_311 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__195; -x_312 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__200; +x_326 = l_Lean_addMacroScope(x_16, x_325, x_15); +x_327 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__200; +x_328 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__204; lean_inc(x_14); -x_313 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_313, 0, x_14); -lean_ctor_set(x_313, 1, x_311); -lean_ctor_set(x_313, 2, x_310); -lean_ctor_set(x_313, 3, x_312); -x_314 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__205; -lean_inc(x_15); -lean_inc(x_16); -x_315 = l_Lean_addMacroScope(x_16, x_314, x_15); -x_316 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__203; -x_317 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__208; -lean_inc(x_14); -x_318 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_318, 0, x_14); -lean_ctor_set(x_318, 1, x_316); -lean_ctor_set(x_318, 2, x_315); -lean_ctor_set(x_318, 3, x_317); -x_319 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__211; -lean_inc(x_14); -x_320 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_320, 0, x_14); -lean_ctor_set(x_320, 1, x_319); -x_321 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__214; -lean_inc(x_14); -x_322 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_322, 0, x_14); -lean_ctor_set(x_322, 1, x_321); -x_323 = lean_array_push(x_19, x_322); -x_324 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__213; -x_325 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_325, 0, x_21); -lean_ctor_set(x_325, 1, x_324); -lean_ctor_set(x_325, 2, x_323); -x_326 = lean_array_push(x_182, x_198); -lean_inc(x_320); -x_327 = lean_array_push(x_326, x_320); -x_328 = lean_array_push(x_327, x_325); -lean_inc(x_155); -x_329 = lean_array_push(x_328, x_155); +x_329 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_329, 0, x_14); +lean_ctor_set(x_329, 1, x_327); +lean_ctor_set(x_329, 2, x_326); +lean_ctor_set(x_329, 3, x_328); x_330 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__210; -x_331 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_331, 0, x_21); -lean_ctor_set(x_331, 1, x_330); -lean_ctor_set(x_331, 2, x_329); -x_332 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__215; -lean_inc(x_14); -x_333 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_333, 0, x_14); -lean_ctor_set(x_333, 1, x_332); -x_334 = lean_array_push(x_19, x_333); -x_335 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_335, 0, x_21); -lean_ctor_set(x_335, 1, x_324); -lean_ctor_set(x_335, 2, x_334); -x_336 = lean_array_push(x_182, x_331); -x_337 = lean_array_push(x_336, x_320); -x_338 = lean_array_push(x_337, x_335); -x_339 = lean_array_push(x_338, x_155); -x_340 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_340, 0, x_21); -lean_ctor_set(x_340, 1, x_330); -lean_ctor_set(x_340, 2, x_339); -x_341 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__222; lean_inc(x_15); lean_inc(x_16); -x_342 = l_Lean_addMacroScope(x_16, x_341, x_15); -x_343 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__220; -x_344 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__224; +x_331 = l_Lean_addMacroScope(x_16, x_330, x_15); +x_332 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__207; +x_333 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__213; lean_inc(x_14); -x_345 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_345, 0, x_14); -lean_ctor_set(x_345, 1, x_343); -lean_ctor_set(x_345, 2, x_342); -lean_ctor_set(x_345, 3, x_344); -x_346 = lean_array_push(x_19, x_109); -x_347 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_347, 0, x_21); -lean_ctor_set(x_347, 1, x_25); -lean_ctor_set(x_347, 2, x_346); -x_348 = lean_array_push(x_40, x_345); -x_349 = lean_array_push(x_348, x_347); -x_350 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_350, 0, x_21); -lean_ctor_set(x_350, 1, x_84); -lean_ctor_set(x_350, 2, x_349); -x_351 = lean_array_push(x_40, x_350); -x_352 = lean_array_push(x_351, x_29); -x_353 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_353, 0, x_21); -lean_ctor_set(x_353, 1, x_25); -lean_ctor_set(x_353, 2, x_352); -x_354 = lean_array_push(x_104, x_46); -x_355 = lean_array_push(x_354, x_353); -x_356 = lean_array_push(x_355, x_64); -x_357 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__217; -x_358 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_358, 0, x_21); -lean_ctor_set(x_358, 1, x_357); -lean_ctor_set(x_358, 2, x_356); -x_359 = lean_array_push(x_40, x_340); -x_360 = lean_array_push(x_359, x_358); +x_334 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_334, 0, x_14); +lean_ctor_set(x_334, 1, x_332); +lean_ctor_set(x_334, 2, x_331); +lean_ctor_set(x_334, 3, x_333); +x_335 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__218; +lean_inc(x_15); +lean_inc(x_16); +x_336 = l_Lean_addMacroScope(x_16, x_335, x_15); +x_337 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__216; +x_338 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__221; +lean_inc(x_14); +x_339 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_339, 0, x_14); +lean_ctor_set(x_339, 1, x_337); +lean_ctor_set(x_339, 2, x_336); +lean_ctor_set(x_339, 3, x_338); +x_340 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__224; +lean_inc(x_14); +x_341 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_341, 0, x_14); +lean_ctor_set(x_341, 1, x_340); +x_342 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__227; +lean_inc(x_14); +x_343 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_343, 0, x_14); +lean_ctor_set(x_343, 1, x_342); +x_344 = lean_array_push(x_19, x_343); +x_345 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__226; +x_346 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_346, 0, x_21); +lean_ctor_set(x_346, 1, x_345); +lean_ctor_set(x_346, 2, x_344); +x_347 = lean_array_push(x_130, x_219); +lean_inc(x_341); +x_348 = lean_array_push(x_347, x_341); +x_349 = lean_array_push(x_348, x_346); +lean_inc(x_177); +x_350 = lean_array_push(x_349, x_177); +x_351 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__223; +x_352 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_352, 0, x_21); +lean_ctor_set(x_352, 1, x_351); +lean_ctor_set(x_352, 2, x_350); +x_353 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__228; +lean_inc(x_14); +x_354 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_354, 0, x_14); +lean_ctor_set(x_354, 1, x_353); +x_355 = lean_array_push(x_19, x_354); +x_356 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_356, 0, x_21); +lean_ctor_set(x_356, 1, x_345); +lean_ctor_set(x_356, 2, x_355); +x_357 = lean_array_push(x_130, x_352); +x_358 = lean_array_push(x_357, x_341); +x_359 = lean_array_push(x_358, x_356); +x_360 = lean_array_push(x_359, x_177); x_361 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_361, 0, x_21); -lean_ctor_set(x_361, 1, x_25); +lean_ctor_set(x_361, 1, x_351); lean_ctor_set(x_361, 2, x_360); -x_362 = lean_array_push(x_40, x_318); -x_363 = lean_array_push(x_362, x_361); -x_364 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_364, 0, x_21); -lean_ctor_set(x_364, 1, x_84); -lean_ctor_set(x_364, 2, x_363); -x_365 = lean_array_push(x_19, x_364); -x_366 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__162; -x_367 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_367, 0, x_21); -lean_ctor_set(x_367, 1, x_366); -lean_ctor_set(x_367, 2, x_365); -lean_inc(x_272); -x_368 = lean_array_push(x_182, x_272); -x_369 = lean_array_push(x_368, x_29); -x_370 = lean_array_push(x_369, x_274); -lean_inc(x_370); -x_371 = lean_array_push(x_370, x_367); -x_372 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__155; -x_373 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_373, 0, x_21); -lean_ctor_set(x_373, 1, x_372); -lean_ctor_set(x_373, 2, x_371); -x_374 = lean_array_push(x_104, x_268); -x_375 = lean_array_push(x_374, x_29); -lean_inc(x_375); -x_376 = lean_array_push(x_375, x_373); -x_377 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__152; -x_378 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_378, 0, x_21); -lean_ctor_set(x_378, 1, x_377); -lean_ctor_set(x_378, 2, x_376); -x_379 = lean_array_push(x_40, x_378); -x_380 = lean_array_push(x_379, x_29); -x_381 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_381, 0, x_21); -lean_ctor_set(x_381, 1, x_258); -lean_ctor_set(x_381, 2, x_380); -x_382 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__229; +x_362 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__235; lean_inc(x_15); lean_inc(x_16); -x_383 = l_Lean_addMacroScope(x_16, x_382, x_15); -x_384 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__227; -x_385 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__232; +x_363 = l_Lean_addMacroScope(x_16, x_362, x_15); +x_364 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233; +x_365 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__237; lean_inc(x_14); -x_386 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_386, 0, x_14); -lean_ctor_set(x_386, 1, x_384); -lean_ctor_set(x_386, 2, x_383); -lean_ctor_set(x_386, 3, x_385); -x_387 = lean_array_push(x_19, x_386); +x_366 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_366, 0, x_14); +lean_ctor_set(x_366, 1, x_364); +lean_ctor_set(x_366, 2, x_363); +lean_ctor_set(x_366, 3, x_365); +x_367 = lean_array_push(x_19, x_129); +x_368 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_368, 0, x_21); +lean_ctor_set(x_368, 1, x_25); +lean_ctor_set(x_368, 2, x_367); +x_369 = lean_array_push(x_40, x_366); +x_370 = lean_array_push(x_369, x_368); +x_371 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_371, 0, x_21); +lean_ctor_set(x_371, 1, x_84); +lean_ctor_set(x_371, 2, x_370); +x_372 = lean_array_push(x_40, x_371); +x_373 = lean_array_push(x_372, x_29); +x_374 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_374, 0, x_21); +lean_ctor_set(x_374, 1, x_25); +lean_ctor_set(x_374, 2, x_373); +x_375 = lean_array_push(x_124, x_46); +x_376 = lean_array_push(x_375, x_374); +x_377 = lean_array_push(x_376, x_64); +x_378 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__230; +x_379 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_379, 0, x_21); +lean_ctor_set(x_379, 1, x_378); +lean_ctor_set(x_379, 2, x_377); +x_380 = lean_array_push(x_40, x_361); +x_381 = lean_array_push(x_380, x_379); +x_382 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_382, 0, x_21); +lean_ctor_set(x_382, 1, x_25); +lean_ctor_set(x_382, 2, x_381); +x_383 = lean_array_push(x_40, x_339); +x_384 = lean_array_push(x_383, x_382); +x_385 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_385, 0, x_21); +lean_ctor_set(x_385, 1, x_84); +lean_ctor_set(x_385, 2, x_384); +x_386 = lean_array_push(x_19, x_385); +x_387 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__176; x_388 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_388, 0, x_21); -lean_ctor_set(x_388, 1, x_366); -lean_ctor_set(x_388, 2, x_387); -x_389 = lean_array_push(x_40, x_388); +lean_ctor_set(x_388, 1, x_387); +lean_ctor_set(x_388, 2, x_386); +lean_inc(x_293); +x_389 = lean_array_push(x_130, x_293); x_390 = lean_array_push(x_389, x_29); -x_391 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_391, 0, x_21); -lean_ctor_set(x_391, 1, x_258); -lean_ctor_set(x_391, 2, x_390); -x_392 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__236; -x_393 = l_Lean_addMacroScope(x_16, x_392, x_15); -x_394 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__235; -x_395 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__239; -x_396 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_396, 0, x_14); -lean_ctor_set(x_396, 1, x_394); -lean_ctor_set(x_396, 2, x_393); -lean_ctor_set(x_396, 3, x_395); -x_397 = lean_array_push(x_19, x_272); -x_398 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_398, 0, x_21); -lean_ctor_set(x_398, 1, x_25); -lean_ctor_set(x_398, 2, x_397); -x_399 = lean_array_push(x_40, x_396); -lean_inc(x_398); -x_400 = lean_array_push(x_399, x_398); -x_401 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_401, 0, x_21); -lean_ctor_set(x_401, 1, x_84); -lean_ctor_set(x_401, 2, x_400); -x_402 = lean_array_push(x_19, x_401); -x_403 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_403, 0, x_21); -lean_ctor_set(x_403, 1, x_366); -lean_ctor_set(x_403, 2, x_402); -x_404 = lean_array_push(x_40, x_403); -x_405 = lean_array_push(x_404, x_29); -x_406 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_406, 0, x_21); -lean_ctor_set(x_406, 1, x_258); -lean_ctor_set(x_406, 2, x_405); -x_407 = lean_array_push(x_104, x_381); -x_408 = lean_array_push(x_407, x_391); -x_409 = lean_array_push(x_408, x_406); -x_410 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_410, 0, x_21); -lean_ctor_set(x_410, 1, x_25); -lean_ctor_set(x_410, 2, x_409); -x_411 = lean_array_push(x_19, x_410); +x_391 = lean_array_push(x_390, x_295); +lean_inc(x_391); +x_392 = lean_array_push(x_391, x_388); +x_393 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__169; +x_394 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_394, 0, x_21); +lean_ctor_set(x_394, 1, x_393); +lean_ctor_set(x_394, 2, x_392); +x_395 = lean_array_push(x_124, x_289); +x_396 = lean_array_push(x_395, x_29); +lean_inc(x_396); +x_397 = lean_array_push(x_396, x_394); +x_398 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__166; +x_399 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_399, 0, x_21); +lean_ctor_set(x_399, 1, x_398); +lean_ctor_set(x_399, 2, x_397); +x_400 = lean_array_push(x_40, x_399); +x_401 = lean_array_push(x_400, x_29); +x_402 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_402, 0, x_21); +lean_ctor_set(x_402, 1, x_279); +lean_ctor_set(x_402, 2, x_401); +x_403 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__242; +lean_inc(x_15); +lean_inc(x_16); +x_404 = l_Lean_addMacroScope(x_16, x_403, x_15); +x_405 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240; +x_406 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__245; +lean_inc(x_14); +x_407 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_407, 0, x_14); +lean_ctor_set(x_407, 1, x_405); +lean_ctor_set(x_407, 2, x_404); +lean_ctor_set(x_407, 3, x_406); +x_408 = lean_array_push(x_19, x_407); +x_409 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_409, 0, x_21); +lean_ctor_set(x_409, 1, x_387); +lean_ctor_set(x_409, 2, x_408); +x_410 = lean_array_push(x_40, x_409); +x_411 = lean_array_push(x_410, x_29); x_412 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_412, 0, x_21); -lean_ctor_set(x_412, 1, x_263); +lean_ctor_set(x_412, 1, x_279); lean_ctor_set(x_412, 2, x_411); -x_413 = lean_array_push(x_40, x_219); -lean_inc(x_413); -x_414 = lean_array_push(x_413, x_412); -x_415 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__123; -x_416 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_416, 0, x_21); -lean_ctor_set(x_416, 1, x_415); -lean_ctor_set(x_416, 2, x_414); -x_417 = lean_array_push(x_19, x_416); -x_418 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_418, 0, x_21); -lean_ctor_set(x_418, 1, x_25); -lean_ctor_set(x_418, 2, x_417); -x_419 = lean_array_push(x_40, x_313); -x_420 = lean_array_push(x_419, x_418); -x_421 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_421, 0, x_21); -lean_ctor_set(x_421, 1, x_84); -lean_ctor_set(x_421, 2, x_420); -x_422 = lean_array_push(x_104, x_308); -lean_inc(x_281); -x_423 = lean_array_push(x_422, x_281); -x_424 = lean_array_push(x_423, x_421); -x_425 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__164; -x_426 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_426, 0, x_21); -lean_ctor_set(x_426, 1, x_425); -lean_ctor_set(x_426, 2, x_424); -x_427 = lean_array_push(x_104, x_303); -lean_inc(x_281); -x_428 = lean_array_push(x_427, x_281); -x_429 = lean_array_push(x_428, x_426); -x_430 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_430, 0, x_21); -lean_ctor_set(x_430, 1, x_425); -lean_ctor_set(x_430, 2, x_429); -x_431 = lean_array_push(x_104, x_279); -x_432 = lean_array_push(x_431, x_281); -x_433 = lean_array_push(x_432, x_430); -x_434 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_434, 0, x_21); -lean_ctor_set(x_434, 1, x_425); -lean_ctor_set(x_434, 2, x_433); -x_435 = lean_array_push(x_19, x_434); -x_436 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_436, 0, x_21); -lean_ctor_set(x_436, 1, x_366); -lean_ctor_set(x_436, 2, x_435); -x_437 = lean_array_push(x_370, x_436); -x_438 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_438, 0, x_21); -lean_ctor_set(x_438, 1, x_372); -lean_ctor_set(x_438, 2, x_437); -x_439 = lean_array_push(x_375, x_438); -x_440 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_440, 0, x_21); -lean_ctor_set(x_440, 1, x_377); -lean_ctor_set(x_440, 2, x_439); -x_441 = lean_array_push(x_40, x_440); -x_442 = lean_array_push(x_441, x_29); -x_443 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_443, 0, x_21); -lean_ctor_set(x_443, 1, x_258); -lean_ctor_set(x_443, 2, x_442); -x_444 = lean_array_push(x_176, x_398); -x_445 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_445, 0, x_21); -lean_ctor_set(x_445, 1, x_84); -lean_ctor_set(x_445, 2, x_444); -x_446 = lean_array_push(x_19, x_445); +x_413 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__249; +x_414 = l_Lean_addMacroScope(x_16, x_413, x_15); +x_415 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__248; +x_416 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__252; +x_417 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_417, 0, x_14); +lean_ctor_set(x_417, 1, x_415); +lean_ctor_set(x_417, 2, x_414); +lean_ctor_set(x_417, 3, x_416); +x_418 = lean_array_push(x_19, x_293); +x_419 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_419, 0, x_21); +lean_ctor_set(x_419, 1, x_25); +lean_ctor_set(x_419, 2, x_418); +x_420 = lean_array_push(x_40, x_417); +lean_inc(x_419); +x_421 = lean_array_push(x_420, x_419); +x_422 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_422, 0, x_21); +lean_ctor_set(x_422, 1, x_84); +lean_ctor_set(x_422, 2, x_421); +x_423 = lean_array_push(x_19, x_422); +x_424 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_424, 0, x_21); +lean_ctor_set(x_424, 1, x_387); +lean_ctor_set(x_424, 2, x_423); +x_425 = lean_array_push(x_40, x_424); +x_426 = lean_array_push(x_425, x_29); +x_427 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_427, 0, x_21); +lean_ctor_set(x_427, 1, x_279); +lean_ctor_set(x_427, 2, x_426); +x_428 = lean_array_push(x_124, x_402); +x_429 = lean_array_push(x_428, x_412); +x_430 = lean_array_push(x_429, x_427); +x_431 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_431, 0, x_21); +lean_ctor_set(x_431, 1, x_25); +lean_ctor_set(x_431, 2, x_430); +x_432 = lean_array_push(x_19, x_431); +x_433 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_433, 0, x_21); +lean_ctor_set(x_433, 1, x_284); +lean_ctor_set(x_433, 2, x_432); +x_434 = lean_array_push(x_40, x_240); +lean_inc(x_434); +x_435 = lean_array_push(x_434, x_433); +x_436 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__137; +x_437 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_437, 0, x_21); +lean_ctor_set(x_437, 1, x_436); +lean_ctor_set(x_437, 2, x_435); +x_438 = lean_array_push(x_19, x_437); +x_439 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_439, 0, x_21); +lean_ctor_set(x_439, 1, x_25); +lean_ctor_set(x_439, 2, x_438); +x_440 = lean_array_push(x_40, x_334); +x_441 = lean_array_push(x_440, x_439); +x_442 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_442, 0, x_21); +lean_ctor_set(x_442, 1, x_84); +lean_ctor_set(x_442, 2, x_441); +x_443 = lean_array_push(x_124, x_329); +lean_inc(x_302); +x_444 = lean_array_push(x_443, x_302); +x_445 = lean_array_push(x_444, x_442); +x_446 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__178; x_447 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_447, 0, x_21); -lean_ctor_set(x_447, 1, x_366); -lean_ctor_set(x_447, 2, x_446); -x_448 = lean_array_push(x_40, x_447); -x_449 = lean_array_push(x_448, x_29); -x_450 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_450, 0, x_21); -lean_ctor_set(x_450, 1, x_258); -lean_ctor_set(x_450, 2, x_449); -x_451 = lean_array_push(x_40, x_443); -x_452 = lean_array_push(x_451, x_450); -x_453 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_453, 0, x_21); -lean_ctor_set(x_453, 1, x_25); -lean_ctor_set(x_453, 2, x_452); -x_454 = lean_array_push(x_19, x_453); +lean_ctor_set(x_447, 1, x_446); +lean_ctor_set(x_447, 2, x_445); +x_448 = lean_array_push(x_124, x_324); +lean_inc(x_302); +x_449 = lean_array_push(x_448, x_302); +x_450 = lean_array_push(x_449, x_447); +x_451 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_451, 0, x_21); +lean_ctor_set(x_451, 1, x_446); +lean_ctor_set(x_451, 2, x_450); +x_452 = lean_array_push(x_124, x_300); +x_453 = lean_array_push(x_452, x_302); +x_454 = lean_array_push(x_453, x_451); x_455 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_455, 0, x_21); -lean_ctor_set(x_455, 1, x_263); +lean_ctor_set(x_455, 1, x_446); lean_ctor_set(x_455, 2, x_454); -x_456 = lean_array_push(x_40, x_266); -x_457 = lean_array_push(x_456, x_455); -x_458 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_458, 0, x_21); -lean_ctor_set(x_458, 1, x_25); -lean_ctor_set(x_458, 2, x_457); -x_459 = lean_array_push(x_240, x_221); -x_460 = lean_array_push(x_459, x_229); -x_461 = lean_array_push(x_460, x_231); -x_462 = lean_array_push(x_461, x_264); +x_456 = lean_array_push(x_19, x_455); +x_457 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_457, 0, x_21); +lean_ctor_set(x_457, 1, x_387); +lean_ctor_set(x_457, 2, x_456); +x_458 = lean_array_push(x_391, x_457); +x_459 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_459, 0, x_21); +lean_ctor_set(x_459, 1, x_393); +lean_ctor_set(x_459, 2, x_458); +x_460 = lean_array_push(x_396, x_459); +x_461 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_461, 0, x_21); +lean_ctor_set(x_461, 1, x_398); +lean_ctor_set(x_461, 2, x_460); +x_462 = lean_array_push(x_40, x_461); x_463 = lean_array_push(x_462, x_29); -x_464 = lean_array_push(x_463, x_458); -x_465 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129; +x_464 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_464, 0, x_21); +lean_ctor_set(x_464, 1, x_279); +lean_ctor_set(x_464, 2, x_463); +x_465 = lean_array_push(x_198, x_419); x_466 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_466, 0, x_21); -lean_ctor_set(x_466, 1, x_465); -lean_ctor_set(x_466, 2, x_464); -x_467 = lean_array_push(x_40, x_466); -x_468 = lean_array_push(x_467, x_29); -x_469 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_469, 0, x_21); -lean_ctor_set(x_469, 1, x_258); -lean_ctor_set(x_469, 2, x_468); -x_470 = lean_array_push(x_19, x_469); +lean_ctor_set(x_466, 1, x_84); +lean_ctor_set(x_466, 2, x_465); +x_467 = lean_array_push(x_19, x_466); +x_468 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_468, 0, x_21); +lean_ctor_set(x_468, 1, x_387); +lean_ctor_set(x_468, 2, x_467); +x_469 = lean_array_push(x_40, x_468); +x_470 = lean_array_push(x_469, x_29); x_471 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_471, 0, x_21); -lean_ctor_set(x_471, 1, x_25); +lean_ctor_set(x_471, 1, x_279); lean_ctor_set(x_471, 2, x_470); -x_472 = lean_array_push(x_19, x_471); -x_473 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_473, 0, x_21); -lean_ctor_set(x_473, 1, x_263); -lean_ctor_set(x_473, 2, x_472); -x_474 = lean_array_push(x_413, x_473); -x_475 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_475, 0, x_21); -lean_ctor_set(x_475, 1, x_415); -lean_ctor_set(x_475, 2, x_474); -x_476 = lean_array_push(x_117, x_475); -x_477 = lean_array_push(x_476, x_29); -x_478 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_478, 0, x_21); -lean_ctor_set(x_478, 1, x_120); -lean_ctor_set(x_478, 2, x_477); -x_479 = lean_array_push(x_123, x_194); -x_480 = lean_array_push(x_479, x_217); -x_481 = lean_array_push(x_480, x_478); -x_482 = lean_array_push(x_481, x_29); -x_483 = lean_array_push(x_482, x_29); +x_472 = lean_array_push(x_40, x_464); +x_473 = lean_array_push(x_472, x_471); +x_474 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_474, 0, x_21); +lean_ctor_set(x_474, 1, x_25); +lean_ctor_set(x_474, 2, x_473); +x_475 = lean_array_push(x_19, x_474); +x_476 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_476, 0, x_21); +lean_ctor_set(x_476, 1, x_284); +lean_ctor_set(x_476, 2, x_475); +x_477 = lean_array_push(x_40, x_287); +x_478 = lean_array_push(x_477, x_476); +x_479 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_479, 0, x_21); +lean_ctor_set(x_479, 1, x_25); +lean_ctor_set(x_479, 2, x_478); +x_480 = lean_array_push(x_261, x_242); +x_481 = lean_array_push(x_480, x_250); +x_482 = lean_array_push(x_481, x_252); +x_483 = lean_array_push(x_482, x_285); x_484 = lean_array_push(x_483, x_29); -x_485 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_485, 0, x_21); -lean_ctor_set(x_485, 1, x_130); -lean_ctor_set(x_485, 2, x_484); -x_486 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240; -x_487 = lean_array_push(x_486, x_485); -x_488 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_488, 0, x_21); -lean_ctor_set(x_488, 1, x_134); -lean_ctor_set(x_488, 2, x_487); -x_489 = lean_array_push(x_104, x_135); -x_490 = lean_array_push(x_489, x_191); -x_491 = lean_array_push(x_490, x_488); +x_485 = lean_array_push(x_484, x_479); +x_486 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__143; +x_487 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_487, 0, x_21); +lean_ctor_set(x_487, 1, x_486); +lean_ctor_set(x_487, 2, x_485); +x_488 = lean_array_push(x_40, x_487); +x_489 = lean_array_push(x_488, x_29); +x_490 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_490, 0, x_21); +lean_ctor_set(x_490, 1, x_279); +lean_ctor_set(x_490, 2, x_489); +x_491 = lean_array_push(x_19, x_490); x_492 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_492, 0, x_21); lean_ctor_set(x_492, 1, x_25); lean_ctor_set(x_492, 2, x_491); -lean_ctor_set(x_12, 0, x_492); +x_493 = lean_array_push(x_19, x_492); +x_494 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_494, 0, x_21); +lean_ctor_set(x_494, 1, x_284); +lean_ctor_set(x_494, 2, x_493); +x_495 = lean_array_push(x_434, x_494); +x_496 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_496, 0, x_21); +lean_ctor_set(x_496, 1, x_436); +lean_ctor_set(x_496, 2, x_495); +x_497 = lean_array_push(x_139, x_496); +x_498 = lean_array_push(x_497, x_29); +x_499 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_499, 0, x_21); +lean_ctor_set(x_499, 1, x_142); +lean_ctor_set(x_499, 2, x_498); +x_500 = lean_array_push(x_145, x_215); +x_501 = lean_array_push(x_500, x_238); +x_502 = lean_array_push(x_501, x_499); +x_503 = lean_array_push(x_502, x_29); +x_504 = lean_array_push(x_503, x_29); +x_505 = lean_array_push(x_504, x_29); +x_506 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_506, 0, x_21); +lean_ctor_set(x_506, 1, x_152); +lean_ctor_set(x_506, 2, x_505); +x_507 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__253; +x_508 = lean_array_push(x_507, x_506); +x_509 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_509, 0, x_21); +lean_ctor_set(x_509, 1, x_156); +lean_ctor_set(x_509, 2, x_508); +x_510 = lean_array_push(x_124, x_157); +x_511 = lean_array_push(x_510, x_212); +x_512 = lean_array_push(x_511, x_509); +x_513 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_513, 0, x_21); +lean_ctor_set(x_513, 1, x_25); +lean_ctor_set(x_513, 2, x_512); +lean_ctor_set(x_12, 0, x_513); return x_12; } else { -lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; -x_493 = lean_ctor_get(x_12, 0); -x_494 = lean_ctor_get(x_12, 1); -lean_inc(x_494); -lean_inc(x_493); +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; +x_514 = lean_ctor_get(x_12, 0); +x_515 = lean_ctor_get(x_12, 1); +lean_inc(x_515); +lean_inc(x_514); lean_dec(x_12); -x_495 = lean_ctor_get(x_2, 2); -lean_inc(x_495); -x_496 = lean_ctor_get(x_2, 1); -lean_inc(x_496); +x_516 = lean_ctor_get(x_2, 2); +lean_inc(x_516); +x_517 = lean_ctor_get(x_2, 1); +lean_inc(x_517); lean_dec(x_2); -x_497 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__13; -lean_inc(x_493); -x_498 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_498, 0, x_493); -lean_ctor_set(x_498, 1, x_497); -x_499 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__15; -x_500 = lean_array_push(x_499, x_498); -x_501 = lean_box(2); -x_502 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__14; -x_503 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_503, 0, x_501); -lean_ctor_set(x_503, 1, x_502); -lean_ctor_set(x_503, 2, x_500); -x_504 = lean_array_push(x_499, x_503); -x_505 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__2; -x_506 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_506, 0, x_501); -lean_ctor_set(x_506, 1, x_505); -lean_ctor_set(x_506, 2, x_504); -x_507 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__20; -x_508 = lean_array_push(x_507, x_506); -x_509 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; -x_510 = lean_array_push(x_508, x_509); -x_511 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__10; -x_512 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_512, 0, x_501); -lean_ctor_set(x_512, 1, x_511); -lean_ctor_set(x_512, 2, x_510); -x_513 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__21; -lean_inc(x_493); -x_514 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_514, 0, x_493); -lean_ctor_set(x_514, 1, x_513); -x_515 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__28; -lean_inc(x_495); -lean_inc(x_496); -x_516 = l_Lean_addMacroScope(x_496, x_515, x_495); -x_517 = lean_box(0); -x_518 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__27; -lean_inc(x_493); -x_519 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_519, 0, x_493); +x_518 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__13; +lean_inc(x_514); +x_519 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_519, 0, x_514); lean_ctor_set(x_519, 1, x_518); -lean_ctor_set(x_519, 2, x_516); -lean_ctor_set(x_519, 3, x_517); -x_520 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__29; -lean_inc(x_519); +x_520 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__15; x_521 = lean_array_push(x_520, x_519); -x_522 = lean_array_push(x_521, x_509); -x_523 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__24; +x_522 = lean_box(2); +x_523 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__14; x_524 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_524, 0, x_501); +lean_ctor_set(x_524, 0, x_522); lean_ctor_set(x_524, 1, x_523); -lean_ctor_set(x_524, 2, x_522); -x_525 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__36; -lean_inc(x_493); -x_526 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_526, 0, x_493); -lean_ctor_set(x_526, 1, x_525); -x_527 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__40; -lean_inc(x_495); -lean_inc(x_496); -x_528 = l_Lean_addMacroScope(x_496, x_527, x_495); -x_529 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__39; -lean_inc(x_493); -x_530 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_530, 0, x_493); -lean_ctor_set(x_530, 1, x_529); -lean_ctor_set(x_530, 2, x_528); -lean_ctor_set(x_530, 3, x_517); -lean_inc(x_530); -x_531 = lean_array_push(x_499, x_530); -x_532 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_532, 0, x_501); -lean_ctor_set(x_532, 1, x_505); -lean_ctor_set(x_532, 2, x_531); -x_533 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__41; -lean_inc(x_493); -x_534 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_534, 0, x_493); -lean_ctor_set(x_534, 1, x_533); -x_535 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__45; -lean_inc(x_495); -lean_inc(x_496); -x_536 = l_Lean_addMacroScope(x_496, x_535, x_495); -x_537 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__44; -x_538 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__48; -lean_inc(x_493); -x_539 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_539, 0, x_493); -lean_ctor_set(x_539, 1, x_537); -lean_ctor_set(x_539, 2, x_536); -lean_ctor_set(x_539, 3, x_538); -x_540 = lean_array_push(x_520, x_534); +lean_ctor_set(x_524, 2, x_521); +x_525 = lean_array_push(x_520, x_524); +x_526 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__2; +x_527 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_527, 0, x_522); +lean_ctor_set(x_527, 1, x_526); +lean_ctor_set(x_527, 2, x_525); +x_528 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__20; +x_529 = lean_array_push(x_528, x_527); +x_530 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__12; +x_531 = lean_array_push(x_529, x_530); +x_532 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__10; +x_533 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_533, 0, x_522); +lean_ctor_set(x_533, 1, x_532); +lean_ctor_set(x_533, 2, x_531); +x_534 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__21; +lean_inc(x_514); +x_535 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_535, 0, x_514); +lean_ctor_set(x_535, 1, x_534); +x_536 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__28; +lean_inc(x_516); +lean_inc(x_517); +x_537 = l_Lean_addMacroScope(x_517, x_536, x_516); +x_538 = lean_box(0); +x_539 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__27; +lean_inc(x_514); +x_540 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_540, 0, x_514); +lean_ctor_set(x_540, 1, x_539); +lean_ctor_set(x_540, 2, x_537); +lean_ctor_set(x_540, 3, x_538); +x_541 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__29; lean_inc(x_540); -x_541 = lean_array_push(x_540, x_539); -x_542 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_542, 0, x_501); -lean_ctor_set(x_542, 1, x_505); -lean_ctor_set(x_542, 2, x_541); -x_543 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__49; -lean_inc(x_493); -x_544 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_544, 0, x_493); -lean_ctor_set(x_544, 1, x_543); -x_545 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__50; -lean_inc(x_526); -x_546 = lean_array_push(x_545, x_526); -lean_inc(x_546); -x_547 = lean_array_push(x_546, x_532); -x_548 = lean_array_push(x_547, x_542); -x_549 = lean_array_push(x_548, x_509); -lean_inc(x_544); -x_550 = lean_array_push(x_549, x_544); -x_551 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__35; -x_552 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_552, 0, x_501); -lean_ctor_set(x_552, 1, x_551); -lean_ctor_set(x_552, 2, x_550); -x_553 = lean_array_push(x_499, x_552); -x_554 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_554, 0, x_501); -lean_ctor_set(x_554, 1, x_505); -lean_ctor_set(x_554, 2, x_553); -x_555 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__58; -lean_inc(x_495); -lean_inc(x_496); -x_556 = l_Lean_addMacroScope(x_496, x_555, x_495); -x_557 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__57; -x_558 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__62; -lean_inc(x_493); -x_559 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_559, 0, x_493); -lean_ctor_set(x_559, 1, x_557); -lean_ctor_set(x_559, 2, x_556); -lean_ctor_set(x_559, 3, x_558); -lean_inc(x_11); -x_560 = lean_array_push(x_499, x_11); -x_561 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_561, 0, x_501); -lean_ctor_set(x_561, 1, x_505); -lean_ctor_set(x_561, 2, x_560); -x_562 = lean_array_push(x_520, x_559); -x_563 = lean_array_push(x_562, x_561); -x_564 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__54; -x_565 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_565, 0, x_501); +x_542 = lean_array_push(x_541, x_540); +x_543 = lean_array_push(x_542, x_530); +x_544 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__24; +x_545 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_545, 0, x_522); +lean_ctor_set(x_545, 1, x_544); +lean_ctor_set(x_545, 2, x_543); +x_546 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__36; +lean_inc(x_514); +x_547 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_547, 0, x_514); +lean_ctor_set(x_547, 1, x_546); +x_548 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__40; +lean_inc(x_516); +lean_inc(x_517); +x_549 = l_Lean_addMacroScope(x_517, x_548, x_516); +x_550 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__39; +lean_inc(x_514); +x_551 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_551, 0, x_514); +lean_ctor_set(x_551, 1, x_550); +lean_ctor_set(x_551, 2, x_549); +lean_ctor_set(x_551, 3, x_538); +lean_inc(x_551); +x_552 = lean_array_push(x_520, x_551); +x_553 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_553, 0, x_522); +lean_ctor_set(x_553, 1, x_526); +lean_ctor_set(x_553, 2, x_552); +x_554 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__41; +lean_inc(x_514); +x_555 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_555, 0, x_514); +lean_ctor_set(x_555, 1, x_554); +x_556 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__45; +lean_inc(x_516); +lean_inc(x_517); +x_557 = l_Lean_addMacroScope(x_517, x_556, x_516); +x_558 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__44; +x_559 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__48; +lean_inc(x_514); +x_560 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_560, 0, x_514); +lean_ctor_set(x_560, 1, x_558); +lean_ctor_set(x_560, 2, x_557); +lean_ctor_set(x_560, 3, x_559); +x_561 = lean_array_push(x_541, x_555); +lean_inc(x_561); +x_562 = lean_array_push(x_561, x_560); +x_563 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_563, 0, x_522); +lean_ctor_set(x_563, 1, x_526); +lean_ctor_set(x_563, 2, x_562); +x_564 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__49; +lean_inc(x_514); +x_565 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_565, 0, x_514); lean_ctor_set(x_565, 1, x_564); -lean_ctor_set(x_565, 2, x_563); -lean_inc(x_540); -x_566 = lean_array_push(x_540, x_565); -x_567 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__52; -x_568 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_568, 0, x_501); -lean_ctor_set(x_568, 1, x_567); -lean_ctor_set(x_568, 2, x_566); -lean_inc(x_568); -x_569 = lean_array_push(x_499, x_568); -x_570 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_570, 0, x_501); -lean_ctor_set(x_570, 1, x_505); -lean_ctor_set(x_570, 2, x_569); -x_571 = lean_array_push(x_520, x_554); -lean_inc(x_570); -lean_inc(x_571); -x_572 = lean_array_push(x_571, x_570); -x_573 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__31; -x_574 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_574, 0, x_501); -lean_ctor_set(x_574, 1, x_573); -lean_ctor_set(x_574, 2, x_572); -x_575 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__65; -lean_inc(x_493); -x_576 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_576, 0, x_493); -lean_ctor_set(x_576, 1, x_575); -x_577 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__71; -lean_inc(x_495); -lean_inc(x_496); -x_578 = l_Lean_addMacroScope(x_496, x_577, x_495); -x_579 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__68; -x_580 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__74; -lean_inc(x_493); -x_581 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_581, 0, x_493); -lean_ctor_set(x_581, 1, x_579); -lean_ctor_set(x_581, 2, x_578); -lean_ctor_set(x_581, 3, x_580); -x_582 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__77; -lean_inc(x_493); -x_583 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_583, 0, x_493); -lean_ctor_set(x_583, 1, x_582); -x_584 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__78; -lean_inc(x_583); -x_585 = lean_array_push(x_584, x_583); -x_586 = lean_array_push(x_585, x_583); +x_566 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__50; +lean_inc(x_547); +x_567 = lean_array_push(x_566, x_547); +lean_inc(x_567); +x_568 = lean_array_push(x_567, x_553); +x_569 = lean_array_push(x_568, x_563); +x_570 = lean_array_push(x_569, x_530); +lean_inc(x_565); +x_571 = lean_array_push(x_570, x_565); +x_572 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__35; +x_573 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_573, 0, x_522); +lean_ctor_set(x_573, 1, x_572); +lean_ctor_set(x_573, 2, x_571); +x_574 = lean_array_push(x_520, x_573); +x_575 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_575, 0, x_522); +lean_ctor_set(x_575, 1, x_526); +lean_ctor_set(x_575, 2, x_574); +x_576 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__58; +lean_inc(x_516); +lean_inc(x_517); +x_577 = l_Lean_addMacroScope(x_517, x_576, x_516); +x_578 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__57; +x_579 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__62; +lean_inc(x_514); +x_580 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_580, 0, x_514); +lean_ctor_set(x_580, 1, x_578); +lean_ctor_set(x_580, 2, x_577); +lean_ctor_set(x_580, 3, x_579); lean_inc(x_11); -x_587 = lean_array_push(x_586, x_11); -x_588 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__76; +x_581 = lean_array_push(x_520, x_11); +x_582 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_582, 0, x_522); +lean_ctor_set(x_582, 1, x_526); +lean_ctor_set(x_582, 2, x_581); +x_583 = lean_array_push(x_541, x_580); +x_584 = lean_array_push(x_583, x_582); +x_585 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__54; +x_586 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_586, 0, x_522); +lean_ctor_set(x_586, 1, x_585); +lean_ctor_set(x_586, 2, x_584); +lean_inc(x_561); +x_587 = lean_array_push(x_561, x_586); +x_588 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__52; x_589 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_589, 0, x_501); +lean_ctor_set(x_589, 0, x_522); lean_ctor_set(x_589, 1, x_588); lean_ctor_set(x_589, 2, x_587); -lean_inc(x_11); -x_590 = lean_array_push(x_584, x_11); lean_inc(x_589); -x_591 = lean_array_push(x_590, x_589); -x_592 = lean_array_push(x_591, x_530); -x_593 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_593, 0, x_501); -lean_ctor_set(x_593, 1, x_505); -lean_ctor_set(x_593, 2, x_592); -x_594 = lean_array_push(x_520, x_581); -x_595 = lean_array_push(x_594, x_593); -x_596 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_596, 0, x_501); -lean_ctor_set(x_596, 1, x_564); -lean_ctor_set(x_596, 2, x_595); -x_597 = lean_array_push(x_584, x_576); +x_590 = lean_array_push(x_520, x_589); +x_591 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_591, 0, x_522); +lean_ctor_set(x_591, 1, x_526); +lean_ctor_set(x_591, 2, x_590); +x_592 = lean_array_push(x_541, x_575); +lean_inc(x_591); +lean_inc(x_592); +x_593 = lean_array_push(x_592, x_591); +x_594 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__31; +x_595 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_595, 0, x_522); +lean_ctor_set(x_595, 1, x_594); +lean_ctor_set(x_595, 2, x_593); +x_596 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__65; +lean_inc(x_514); +x_597 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_597, 0, x_514); +lean_ctor_set(x_597, 1, x_596); +x_598 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__72; +lean_inc(x_516); +lean_inc(x_517); +x_599 = l_Lean_addMacroScope(x_517, x_598, x_516); +x_600 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__68; +x_601 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__76; +lean_inc(x_514); +x_602 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_602, 0, x_514); +lean_ctor_set(x_602, 1, x_600); +lean_ctor_set(x_602, 2, x_599); +lean_ctor_set(x_602, 3, x_601); +x_603 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__82; +lean_inc(x_516); +lean_inc(x_517); +x_604 = l_Lean_addMacroScope(x_517, x_603, x_516); +x_605 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__81; +lean_inc(x_514); +x_606 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_606, 0, x_514); +lean_ctor_set(x_606, 1, x_605); +lean_ctor_set(x_606, 2, x_604); +lean_ctor_set(x_606, 3, x_538); +x_607 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__85; +lean_inc(x_514); +x_608 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_608, 0, x_514); +lean_ctor_set(x_608, 1, x_607); +x_609 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__88; +lean_inc(x_516); +lean_inc(x_517); +x_610 = l_Lean_addMacroScope(x_517, x_609, x_516); +x_611 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__87; +lean_inc(x_514); +x_612 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_612, 0, x_514); +lean_ctor_set(x_612, 1, x_611); +lean_ctor_set(x_612, 2, x_610); +lean_ctor_set(x_612, 3, x_538); +x_613 = lean_array_push(x_541, x_608); +x_614 = lean_array_push(x_613, x_612); +x_615 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__84; +x_616 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_616, 0, x_522); +lean_ctor_set(x_616, 1, x_615); +lean_ctor_set(x_616, 2, x_614); +lean_inc(x_567); +x_617 = lean_array_push(x_567, x_606); lean_inc(x_597); -x_598 = lean_array_push(x_597, x_596); -x_599 = lean_array_push(x_598, x_509); -x_600 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__64; -x_601 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_601, 0, x_501); -lean_ctor_set(x_601, 1, x_600); -lean_ctor_set(x_601, 2, x_599); -x_602 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__79; -x_603 = lean_array_push(x_602, x_514); -lean_inc(x_603); -x_604 = lean_array_push(x_603, x_524); -x_605 = lean_array_push(x_604, x_574); -x_606 = lean_array_push(x_605, x_601); -x_607 = lean_array_push(x_606, x_509); -x_608 = lean_array_push(x_607, x_509); -x_609 = lean_array_push(x_608, x_509); -x_610 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__22; -x_611 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_611, 0, x_501); -lean_ctor_set(x_611, 1, x_610); -lean_ctor_set(x_611, 2, x_609); -x_612 = lean_array_push(x_520, x_512); -x_613 = lean_array_push(x_612, x_611); -x_614 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__8; -x_615 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_615, 0, x_501); -lean_ctor_set(x_615, 1, x_614); -lean_ctor_set(x_615, 2, x_613); -x_616 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__82; -lean_inc(x_493); -x_617 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_617, 0, x_493); -lean_ctor_set(x_617, 1, x_616); -x_618 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__96; -lean_inc(x_495); -lean_inc(x_496); -x_619 = l_Lean_addMacroScope(x_496, x_618, x_495); -x_620 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__95; -lean_inc(x_493); -x_621 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_621, 0, x_493); -lean_ctor_set(x_621, 1, x_620); -lean_ctor_set(x_621, 2, x_619); -lean_ctor_set(x_621, 3, x_517); -x_622 = lean_array_push(x_499, x_519); -x_623 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_623, 0, x_501); -lean_ctor_set(x_623, 1, x_505); -lean_ctor_set(x_623, 2, x_622); -x_624 = lean_array_push(x_520, x_621); -x_625 = lean_array_push(x_624, x_623); -x_626 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__92; -x_627 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_627, 0, x_501); -lean_ctor_set(x_627, 1, x_626); -lean_ctor_set(x_627, 2, x_625); -x_628 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__97; -x_629 = lean_array_push(x_628, x_627); -x_630 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__84; -x_631 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_631, 0, x_501); -lean_ctor_set(x_631, 1, x_630); -lean_ctor_set(x_631, 2, x_629); -x_632 = lean_array_push(x_499, x_631); -x_633 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_633, 0, x_501); -lean_ctor_set(x_633, 1, x_505); -lean_ctor_set(x_633, 2, x_632); -x_634 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__98; -lean_inc(x_493); -x_635 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_635, 0, x_493); -lean_ctor_set(x_635, 1, x_634); -x_636 = lean_array_push(x_584, x_617); -x_637 = lean_array_push(x_636, x_633); -lean_inc(x_635); -x_638 = lean_array_push(x_637, x_635); -x_639 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__81; -x_640 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_640, 0, x_501); -lean_ctor_set(x_640, 1, x_639); -lean_ctor_set(x_640, 2, x_638); -x_641 = lean_array_push(x_499, x_640); -x_642 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_642, 0, x_501); -lean_ctor_set(x_642, 1, x_505); -lean_ctor_set(x_642, 2, x_641); -x_643 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__17; -x_644 = lean_array_push(x_643, x_642); -x_645 = lean_array_push(x_644, x_509); -x_646 = lean_array_push(x_645, x_509); -x_647 = lean_array_push(x_646, x_509); -x_648 = lean_array_push(x_647, x_509); -x_649 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_649, 0, x_501); -lean_ctor_set(x_649, 1, x_511); -lean_ctor_set(x_649, 2, x_648); -x_650 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__99; -lean_inc(x_493); -x_651 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_651, 0, x_493); -lean_ctor_set(x_651, 1, x_650); -x_652 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__104; -lean_inc(x_495); -lean_inc(x_496); -x_653 = l_Lean_addMacroScope(x_496, x_652, x_495); -x_654 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__103; -lean_inc(x_493); -x_655 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_655, 0, x_493); -lean_ctor_set(x_655, 1, x_654); -lean_ctor_set(x_655, 2, x_653); -lean_ctor_set(x_655, 3, x_517); -x_656 = lean_array_push(x_520, x_655); -lean_inc(x_656); -x_657 = lean_array_push(x_656, x_509); +x_618 = lean_array_push(x_617, x_597); +x_619 = lean_array_push(x_618, x_616); +lean_inc(x_565); +x_620 = lean_array_push(x_619, x_565); +x_621 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__78; +x_622 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_622, 0, x_522); +lean_ctor_set(x_622, 1, x_621); +lean_ctor_set(x_622, 2, x_620); +x_623 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__91; +lean_inc(x_514); +x_624 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_624, 0, x_514); +lean_ctor_set(x_624, 1, x_623); +x_625 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__92; +lean_inc(x_624); +x_626 = lean_array_push(x_625, x_624); +x_627 = lean_array_push(x_626, x_624); +lean_inc(x_11); +x_628 = lean_array_push(x_627, x_11); +x_629 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__90; +x_630 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_630, 0, x_522); +lean_ctor_set(x_630, 1, x_629); +lean_ctor_set(x_630, 2, x_628); +x_631 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__93; +x_632 = lean_array_push(x_631, x_622); +lean_inc(x_11); +x_633 = lean_array_push(x_632, x_11); +lean_inc(x_630); +x_634 = lean_array_push(x_633, x_630); +x_635 = lean_array_push(x_634, x_551); +x_636 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_636, 0, x_522); +lean_ctor_set(x_636, 1, x_526); +lean_ctor_set(x_636, 2, x_635); +x_637 = lean_array_push(x_541, x_602); +x_638 = lean_array_push(x_637, x_636); +x_639 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_639, 0, x_522); +lean_ctor_set(x_639, 1, x_585); +lean_ctor_set(x_639, 2, x_638); +x_640 = lean_array_push(x_625, x_597); +lean_inc(x_640); +x_641 = lean_array_push(x_640, x_639); +x_642 = lean_array_push(x_641, x_530); +x_643 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__64; +x_644 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_644, 0, x_522); +lean_ctor_set(x_644, 1, x_643); +lean_ctor_set(x_644, 2, x_642); +x_645 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__94; +x_646 = lean_array_push(x_645, x_535); +lean_inc(x_646); +x_647 = lean_array_push(x_646, x_545); +x_648 = lean_array_push(x_647, x_595); +x_649 = lean_array_push(x_648, x_644); +x_650 = lean_array_push(x_649, x_530); +x_651 = lean_array_push(x_650, x_530); +x_652 = lean_array_push(x_651, x_530); +x_653 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__22; +x_654 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_654, 0, x_522); +lean_ctor_set(x_654, 1, x_653); +lean_ctor_set(x_654, 2, x_652); +x_655 = lean_array_push(x_541, x_533); +x_656 = lean_array_push(x_655, x_654); +x_657 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__8; x_658 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_658, 0, x_501); -lean_ctor_set(x_658, 1, x_523); -lean_ctor_set(x_658, 2, x_657); -x_659 = lean_array_push(x_571, x_568); -x_660 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__106; -x_661 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_661, 0, x_501); -lean_ctor_set(x_661, 1, x_660); -lean_ctor_set(x_661, 2, x_659); -x_662 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__107; -x_663 = lean_array_push(x_662, x_651); -x_664 = lean_array_push(x_663, x_658); -x_665 = lean_array_push(x_664, x_661); -x_666 = lean_array_push(x_665, x_509); -x_667 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__100; -x_668 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_668, 0, x_501); -lean_ctor_set(x_668, 1, x_667); -lean_ctor_set(x_668, 2, x_666); -x_669 = lean_array_push(x_520, x_649); -x_670 = lean_array_push(x_669, x_668); -x_671 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_671, 0, x_501); -lean_ctor_set(x_671, 1, x_614); -lean_ctor_set(x_671, 2, x_670); -x_672 = lean_array_push(x_520, x_9); -x_673 = lean_array_push(x_672, x_509); +lean_ctor_set(x_658, 0, x_522); +lean_ctor_set(x_658, 1, x_657); +lean_ctor_set(x_658, 2, x_656); +x_659 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__97; +lean_inc(x_514); +x_660 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_660, 0, x_514); +lean_ctor_set(x_660, 1, x_659); +x_661 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__111; +lean_inc(x_516); +lean_inc(x_517); +x_662 = l_Lean_addMacroScope(x_517, x_661, x_516); +x_663 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__110; +lean_inc(x_514); +x_664 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_664, 0, x_514); +lean_ctor_set(x_664, 1, x_663); +lean_ctor_set(x_664, 2, x_662); +lean_ctor_set(x_664, 3, x_538); +x_665 = lean_array_push(x_520, x_540); +x_666 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_666, 0, x_522); +lean_ctor_set(x_666, 1, x_526); +lean_ctor_set(x_666, 2, x_665); +x_667 = lean_array_push(x_541, x_664); +x_668 = lean_array_push(x_667, x_666); +x_669 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__107; +x_670 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_670, 0, x_522); +lean_ctor_set(x_670, 1, x_669); +lean_ctor_set(x_670, 2, x_668); +x_671 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__112; +x_672 = lean_array_push(x_671, x_670); +x_673 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__99; x_674 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_674, 0, x_501); -lean_ctor_set(x_674, 1, x_523); -lean_ctor_set(x_674, 2, x_673); -x_675 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__114; -lean_inc(x_495); -lean_inc(x_496); -x_676 = l_Lean_addMacroScope(x_496, x_675, x_495); +lean_ctor_set(x_674, 0, x_522); +lean_ctor_set(x_674, 1, x_673); +lean_ctor_set(x_674, 2, x_672); +x_675 = lean_array_push(x_520, x_674); +x_676 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_676, 0, x_522); +lean_ctor_set(x_676, 1, x_526); +lean_ctor_set(x_676, 2, x_675); x_677 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__113; -lean_inc(x_493); -x_678 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_678, 0, x_493); +lean_inc(x_514); +x_678 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_678, 0, x_514); lean_ctor_set(x_678, 1, x_677); -lean_ctor_set(x_678, 2, x_676); -lean_ctor_set(x_678, 3, x_517); +x_679 = lean_array_push(x_625, x_660); +x_680 = lean_array_push(x_679, x_676); lean_inc(x_678); -x_679 = lean_array_push(x_499, x_678); -x_680 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_680, 0, x_501); -lean_ctor_set(x_680, 1, x_505); -lean_ctor_set(x_680, 2, x_679); -x_681 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__118; -lean_inc(x_495); -lean_inc(x_496); -x_682 = l_Lean_addMacroScope(x_496, x_681, x_495); -x_683 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__117; -x_684 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__121; -lean_inc(x_493); -x_685 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_685, 0, x_493); -lean_ctor_set(x_685, 1, x_683); -lean_ctor_set(x_685, 2, x_682); -lean_ctor_set(x_685, 3, x_684); -lean_inc(x_540); -x_686 = lean_array_push(x_540, x_685); -x_687 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_687, 0, x_501); -lean_ctor_set(x_687, 1, x_505); -lean_ctor_set(x_687, 2, x_686); -x_688 = lean_array_push(x_546, x_680); -x_689 = lean_array_push(x_688, x_687); -x_690 = lean_array_push(x_689, x_509); -lean_inc(x_544); -x_691 = lean_array_push(x_690, x_544); +x_681 = lean_array_push(x_680, x_678); +x_682 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__96; +x_683 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_683, 0, x_522); +lean_ctor_set(x_683, 1, x_682); +lean_ctor_set(x_683, 2, x_681); +x_684 = lean_array_push(x_520, x_683); +x_685 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_685, 0, x_522); +lean_ctor_set(x_685, 1, x_526); +lean_ctor_set(x_685, 2, x_684); +x_686 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__17; +x_687 = lean_array_push(x_686, x_685); +x_688 = lean_array_push(x_687, x_530); +x_689 = lean_array_push(x_688, x_530); +x_690 = lean_array_push(x_689, x_530); +x_691 = lean_array_push(x_690, x_530); x_692 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_692, 0, x_501); -lean_ctor_set(x_692, 1, x_551); +lean_ctor_set(x_692, 0, x_522); +lean_ctor_set(x_692, 1, x_532); lean_ctor_set(x_692, 2, x_691); -x_693 = lean_array_push(x_499, x_692); -x_694 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_694, 0, x_501); -lean_ctor_set(x_694, 1, x_505); -lean_ctor_set(x_694, 2, x_693); -x_695 = lean_array_push(x_520, x_694); -x_696 = lean_array_push(x_695, x_570); -x_697 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_697, 0, x_501); -lean_ctor_set(x_697, 1, x_573); -lean_ctor_set(x_697, 2, x_696); -x_698 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__122; -lean_inc(x_493); -x_699 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_699, 0, x_493); -lean_ctor_set(x_699, 1, x_698); -x_700 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__130; -lean_inc(x_493); -x_701 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_701, 0, x_493); -lean_ctor_set(x_701, 1, x_700); -x_702 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__137; -lean_inc(x_495); -lean_inc(x_496); -x_703 = l_Lean_addMacroScope(x_496, x_702, x_495); -x_704 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__135; -lean_inc(x_493); -x_705 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_705, 0, x_493); -lean_ctor_set(x_705, 1, x_704); -lean_ctor_set(x_705, 2, x_703); -lean_ctor_set(x_705, 3, x_517); -x_706 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__138; -x_707 = lean_array_push(x_706, x_705); -x_708 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__132; -x_709 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_709, 0, x_501); -lean_ctor_set(x_709, 1, x_708); -lean_ctor_set(x_709, 2, x_707); -x_710 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__139; -lean_inc(x_493); -x_711 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_711, 0, x_493); -lean_ctor_set(x_711, 1, x_710); -x_712 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__142; -lean_inc(x_493); -x_713 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_713, 0, x_493); -lean_ctor_set(x_713, 1, x_712); -x_714 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__145; -lean_inc(x_493); -x_715 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_715, 0, x_493); -lean_ctor_set(x_715, 1, x_714); -x_716 = lean_array_push(x_540, x_11); -x_717 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_717, 0, x_501); -lean_ctor_set(x_717, 1, x_505); -lean_ctor_set(x_717, 2, x_716); -x_718 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__149; -lean_inc(x_493); -x_719 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_719, 0, x_493); -lean_ctor_set(x_719, 1, x_718); -x_720 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__16; -lean_inc(x_715); -x_721 = lean_array_push(x_720, x_715); -x_722 = lean_array_push(x_721, x_509); -x_723 = lean_array_push(x_722, x_509); -x_724 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__148; -x_725 = lean_array_push(x_723, x_724); -lean_inc(x_725); -x_726 = lean_array_push(x_725, x_717); -lean_inc(x_719); -x_727 = lean_array_push(x_726, x_719); -x_728 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__144; +x_693 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__114; +lean_inc(x_514); +x_694 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_694, 0, x_514); +lean_ctor_set(x_694, 1, x_693); +x_695 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__119; +lean_inc(x_516); +lean_inc(x_517); +x_696 = l_Lean_addMacroScope(x_517, x_695, x_516); +x_697 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__118; +lean_inc(x_514); +x_698 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_698, 0, x_514); +lean_ctor_set(x_698, 1, x_697); +lean_ctor_set(x_698, 2, x_696); +lean_ctor_set(x_698, 3, x_538); +x_699 = lean_array_push(x_541, x_698); +lean_inc(x_699); +x_700 = lean_array_push(x_699, x_530); +x_701 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_701, 0, x_522); +lean_ctor_set(x_701, 1, x_544); +lean_ctor_set(x_701, 2, x_700); +x_702 = lean_array_push(x_592, x_589); +x_703 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__121; +x_704 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_704, 0, x_522); +lean_ctor_set(x_704, 1, x_703); +lean_ctor_set(x_704, 2, x_702); +x_705 = lean_array_push(x_631, x_694); +x_706 = lean_array_push(x_705, x_701); +x_707 = lean_array_push(x_706, x_704); +x_708 = lean_array_push(x_707, x_530); +x_709 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__115; +x_710 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_710, 0, x_522); +lean_ctor_set(x_710, 1, x_709); +lean_ctor_set(x_710, 2, x_708); +x_711 = lean_array_push(x_541, x_692); +x_712 = lean_array_push(x_711, x_710); +x_713 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_713, 0, x_522); +lean_ctor_set(x_713, 1, x_657); +lean_ctor_set(x_713, 2, x_712); +x_714 = lean_array_push(x_541, x_9); +x_715 = lean_array_push(x_714, x_530); +x_716 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_716, 0, x_522); +lean_ctor_set(x_716, 1, x_544); +lean_ctor_set(x_716, 2, x_715); +x_717 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__128; +lean_inc(x_516); +lean_inc(x_517); +x_718 = l_Lean_addMacroScope(x_517, x_717, x_516); +x_719 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__127; +lean_inc(x_514); +x_720 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_720, 0, x_514); +lean_ctor_set(x_720, 1, x_719); +lean_ctor_set(x_720, 2, x_718); +lean_ctor_set(x_720, 3, x_538); +lean_inc(x_720); +x_721 = lean_array_push(x_520, x_720); +x_722 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_722, 0, x_522); +lean_ctor_set(x_722, 1, x_526); +lean_ctor_set(x_722, 2, x_721); +x_723 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__132; +lean_inc(x_516); +lean_inc(x_517); +x_724 = l_Lean_addMacroScope(x_517, x_723, x_516); +x_725 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__131; +x_726 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__135; +lean_inc(x_514); +x_727 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_727, 0, x_514); +lean_ctor_set(x_727, 1, x_725); +lean_ctor_set(x_727, 2, x_724); +lean_ctor_set(x_727, 3, x_726); +lean_inc(x_561); +x_728 = lean_array_push(x_561, x_727); x_729 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_729, 0, x_501); -lean_ctor_set(x_729, 1, x_728); -lean_ctor_set(x_729, 2, x_727); -x_730 = lean_array_push(x_499, x_729); -x_731 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_731, 0, x_501); -lean_ctor_set(x_731, 1, x_505); -lean_ctor_set(x_731, 2, x_730); -x_732 = lean_array_push(x_520, x_713); -x_733 = lean_array_push(x_732, x_731); -x_734 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__141; -x_735 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_735, 0, x_501); -lean_ctor_set(x_735, 1, x_734); -lean_ctor_set(x_735, 2, x_733); -x_736 = lean_array_push(x_520, x_735); -x_737 = lean_array_push(x_736, x_509); -x_738 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__127; +lean_ctor_set(x_729, 0, x_522); +lean_ctor_set(x_729, 1, x_526); +lean_ctor_set(x_729, 2, x_728); +x_730 = lean_array_push(x_567, x_722); +x_731 = lean_array_push(x_730, x_729); +x_732 = lean_array_push(x_731, x_530); +lean_inc(x_565); +x_733 = lean_array_push(x_732, x_565); +x_734 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_734, 0, x_522); +lean_ctor_set(x_734, 1, x_572); +lean_ctor_set(x_734, 2, x_733); +x_735 = lean_array_push(x_520, x_734); +x_736 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_736, 0, x_522); +lean_ctor_set(x_736, 1, x_526); +lean_ctor_set(x_736, 2, x_735); +x_737 = lean_array_push(x_541, x_736); +x_738 = lean_array_push(x_737, x_591); x_739 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_739, 0, x_501); -lean_ctor_set(x_739, 1, x_738); -lean_ctor_set(x_739, 2, x_737); -x_740 = lean_array_push(x_499, x_739); -x_741 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_741, 0, x_501); -lean_ctor_set(x_741, 1, x_505); -lean_ctor_set(x_741, 2, x_740); -x_742 = lean_array_push(x_499, x_741); -x_743 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__125; -x_744 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_744, 0, x_501); -lean_ctor_set(x_744, 1, x_743); -lean_ctor_set(x_744, 2, x_742); -x_745 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__150; -lean_inc(x_493); -x_746 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_746, 0, x_493); -lean_ctor_set(x_746, 1, x_745); -x_747 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__153; -lean_inc(x_493); -x_748 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_748, 0, x_493); -lean_ctor_set(x_748, 1, x_747); -x_749 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__159; -lean_inc(x_495); -lean_inc(x_496); -x_750 = l_Lean_addMacroScope(x_496, x_749, x_495); -x_751 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__158; -lean_inc(x_493); -x_752 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_752, 0, x_493); -lean_ctor_set(x_752, 1, x_751); -lean_ctor_set(x_752, 2, x_750); -lean_ctor_set(x_752, 3, x_517); -x_753 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__160; -lean_inc(x_493); -x_754 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_754, 0, x_493); -lean_ctor_set(x_754, 1, x_753); -x_755 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__168; -lean_inc(x_495); -lean_inc(x_496); -x_756 = l_Lean_addMacroScope(x_496, x_755, x_495); -x_757 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__167; -x_758 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__171; -lean_inc(x_493); -x_759 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_759, 0, x_493); -lean_ctor_set(x_759, 1, x_757); -lean_ctor_set(x_759, 2, x_756); -lean_ctor_set(x_759, 3, x_758); -x_760 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__172; -lean_inc(x_493); +lean_ctor_set(x_739, 0, x_522); +lean_ctor_set(x_739, 1, x_594); +lean_ctor_set(x_739, 2, x_738); +x_740 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__136; +lean_inc(x_514); +x_741 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_741, 0, x_514); +lean_ctor_set(x_741, 1, x_740); +x_742 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__144; +lean_inc(x_514); +x_743 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_743, 0, x_514); +lean_ctor_set(x_743, 1, x_742); +x_744 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__151; +lean_inc(x_516); +lean_inc(x_517); +x_745 = l_Lean_addMacroScope(x_517, x_744, x_516); +x_746 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__149; +lean_inc(x_514); +x_747 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_747, 0, x_514); +lean_ctor_set(x_747, 1, x_746); +lean_ctor_set(x_747, 2, x_745); +lean_ctor_set(x_747, 3, x_538); +x_748 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__152; +x_749 = lean_array_push(x_748, x_747); +x_750 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__146; +x_751 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_751, 0, x_522); +lean_ctor_set(x_751, 1, x_750); +lean_ctor_set(x_751, 2, x_749); +x_752 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__153; +lean_inc(x_514); +x_753 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_753, 0, x_514); +lean_ctor_set(x_753, 1, x_752); +x_754 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__156; +lean_inc(x_514); +x_755 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_755, 0, x_514); +lean_ctor_set(x_755, 1, x_754); +x_756 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__159; +lean_inc(x_514); +x_757 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_757, 0, x_514); +lean_ctor_set(x_757, 1, x_756); +x_758 = lean_array_push(x_561, x_11); +x_759 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_759, 0, x_522); +lean_ctor_set(x_759, 1, x_526); +lean_ctor_set(x_759, 2, x_758); +x_760 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__163; +lean_inc(x_514); x_761 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_761, 0, x_493); +lean_ctor_set(x_761, 0, x_514); lean_ctor_set(x_761, 1, x_760); -x_762 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__176; -lean_inc(x_495); -lean_inc(x_496); -x_763 = l_Lean_addMacroScope(x_496, x_762, x_495); -x_764 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__175; -x_765 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__181; -lean_inc(x_493); -x_766 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_766, 0, x_493); -lean_ctor_set(x_766, 1, x_764); -lean_ctor_set(x_766, 2, x_763); -lean_ctor_set(x_766, 3, x_765); -x_767 = lean_array_push(x_520, x_715); -lean_inc(x_719); -x_768 = lean_array_push(x_767, x_719); -x_769 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__185; -x_770 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_770, 0, x_501); -lean_ctor_set(x_770, 1, x_769); -lean_ctor_set(x_770, 2, x_768); -x_771 = lean_array_push(x_725, x_509); -x_772 = lean_array_push(x_771, x_719); +x_762 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__16; +lean_inc(x_757); +x_763 = lean_array_push(x_762, x_757); +x_764 = lean_array_push(x_763, x_530); +x_765 = lean_array_push(x_764, x_530); +x_766 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__162; +x_767 = lean_array_push(x_765, x_766); +lean_inc(x_767); +x_768 = lean_array_push(x_767, x_759); +lean_inc(x_761); +x_769 = lean_array_push(x_768, x_761); +x_770 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__158; +x_771 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_771, 0, x_522); +lean_ctor_set(x_771, 1, x_770); +lean_ctor_set(x_771, 2, x_769); +x_772 = lean_array_push(x_520, x_771); x_773 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_773, 0, x_501); -lean_ctor_set(x_773, 1, x_728); +lean_ctor_set(x_773, 0, x_522); +lean_ctor_set(x_773, 1, x_526); lean_ctor_set(x_773, 2, x_772); -x_774 = lean_array_push(x_520, x_770); +x_774 = lean_array_push(x_541, x_755); x_775 = lean_array_push(x_774, x_773); -x_776 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__183; +x_776 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__155; x_777 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_777, 0, x_501); +lean_ctor_set(x_777, 0, x_522); lean_ctor_set(x_777, 1, x_776); lean_ctor_set(x_777, 2, x_775); -lean_inc(x_777); -x_778 = lean_array_push(x_520, x_777); -x_779 = lean_array_push(x_778, x_777); -x_780 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_780, 0, x_501); -lean_ctor_set(x_780, 1, x_505); -lean_ctor_set(x_780, 2, x_779); -x_781 = lean_array_push(x_520, x_766); -x_782 = lean_array_push(x_781, x_780); +x_778 = lean_array_push(x_541, x_777); +x_779 = lean_array_push(x_778, x_530); +x_780 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__141; +x_781 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_781, 0, x_522); +lean_ctor_set(x_781, 1, x_780); +lean_ctor_set(x_781, 2, x_779); +x_782 = lean_array_push(x_520, x_781); x_783 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_783, 0, x_501); -lean_ctor_set(x_783, 1, x_564); +lean_ctor_set(x_783, 0, x_522); +lean_ctor_set(x_783, 1, x_526); lean_ctor_set(x_783, 2, x_782); -x_784 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__189; -lean_inc(x_495); -lean_inc(x_496); -x_785 = l_Lean_addMacroScope(x_496, x_784, x_495); -x_786 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__188; -x_787 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__192; -lean_inc(x_493); -x_788 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_788, 0, x_493); -lean_ctor_set(x_788, 1, x_786); -lean_ctor_set(x_788, 2, x_785); -lean_ctor_set(x_788, 3, x_787); -x_789 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__197; -lean_inc(x_495); -lean_inc(x_496); -x_790 = l_Lean_addMacroScope(x_496, x_789, x_495); -x_791 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__195; -x_792 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__200; -lean_inc(x_493); -x_793 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_793, 0, x_493); -lean_ctor_set(x_793, 1, x_791); -lean_ctor_set(x_793, 2, x_790); -lean_ctor_set(x_793, 3, x_792); -x_794 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__205; -lean_inc(x_495); -lean_inc(x_496); -x_795 = l_Lean_addMacroScope(x_496, x_794, x_495); -x_796 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__203; -x_797 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__208; -lean_inc(x_493); -x_798 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_798, 0, x_493); -lean_ctor_set(x_798, 1, x_796); -lean_ctor_set(x_798, 2, x_795); -lean_ctor_set(x_798, 3, x_797); -x_799 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__211; -lean_inc(x_493); -x_800 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_800, 0, x_493); -lean_ctor_set(x_800, 1, x_799); -x_801 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__214; -lean_inc(x_493); -x_802 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_802, 0, x_493); -lean_ctor_set(x_802, 1, x_801); -x_803 = lean_array_push(x_499, x_802); -x_804 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__213; -x_805 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_805, 0, x_501); -lean_ctor_set(x_805, 1, x_804); -lean_ctor_set(x_805, 2, x_803); -x_806 = lean_array_push(x_662, x_678); -lean_inc(x_800); -x_807 = lean_array_push(x_806, x_800); -x_808 = lean_array_push(x_807, x_805); -lean_inc(x_635); -x_809 = lean_array_push(x_808, x_635); -x_810 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__210; -x_811 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_811, 0, x_501); -lean_ctor_set(x_811, 1, x_810); -lean_ctor_set(x_811, 2, x_809); -x_812 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__215; -lean_inc(x_493); -x_813 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_813, 0, x_493); -lean_ctor_set(x_813, 1, x_812); -x_814 = lean_array_push(x_499, x_813); +x_784 = lean_array_push(x_520, x_783); +x_785 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__139; +x_786 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_786, 0, x_522); +lean_ctor_set(x_786, 1, x_785); +lean_ctor_set(x_786, 2, x_784); +x_787 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__164; +lean_inc(x_514); +x_788 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_788, 0, x_514); +lean_ctor_set(x_788, 1, x_787); +x_789 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__167; +lean_inc(x_514); +x_790 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_790, 0, x_514); +lean_ctor_set(x_790, 1, x_789); +x_791 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__173; +lean_inc(x_516); +lean_inc(x_517); +x_792 = l_Lean_addMacroScope(x_517, x_791, x_516); +x_793 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__172; +lean_inc(x_514); +x_794 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_794, 0, x_514); +lean_ctor_set(x_794, 1, x_793); +lean_ctor_set(x_794, 2, x_792); +lean_ctor_set(x_794, 3, x_538); +x_795 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__174; +lean_inc(x_514); +x_796 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_796, 0, x_514); +lean_ctor_set(x_796, 1, x_795); +x_797 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__182; +lean_inc(x_516); +lean_inc(x_517); +x_798 = l_Lean_addMacroScope(x_517, x_797, x_516); +x_799 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__181; +x_800 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__185; +lean_inc(x_514); +x_801 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_801, 0, x_514); +lean_ctor_set(x_801, 1, x_799); +lean_ctor_set(x_801, 2, x_798); +lean_ctor_set(x_801, 3, x_800); +x_802 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__186; +lean_inc(x_514); +x_803 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_803, 0, x_514); +lean_ctor_set(x_803, 1, x_802); +x_804 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__190; +lean_inc(x_516); +lean_inc(x_517); +x_805 = l_Lean_addMacroScope(x_517, x_804, x_516); +x_806 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__189; +x_807 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__193; +lean_inc(x_514); +x_808 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_808, 0, x_514); +lean_ctor_set(x_808, 1, x_806); +lean_ctor_set(x_808, 2, x_805); +lean_ctor_set(x_808, 3, x_807); +x_809 = lean_array_push(x_541, x_757); +lean_inc(x_761); +x_810 = lean_array_push(x_809, x_761); +x_811 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__197; +x_812 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_812, 0, x_522); +lean_ctor_set(x_812, 1, x_811); +lean_ctor_set(x_812, 2, x_810); +x_813 = lean_array_push(x_767, x_530); +x_814 = lean_array_push(x_813, x_761); x_815 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_815, 0, x_501); -lean_ctor_set(x_815, 1, x_804); +lean_ctor_set(x_815, 0, x_522); +lean_ctor_set(x_815, 1, x_770); lean_ctor_set(x_815, 2, x_814); -x_816 = lean_array_push(x_662, x_811); -x_817 = lean_array_push(x_816, x_800); -x_818 = lean_array_push(x_817, x_815); -x_819 = lean_array_push(x_818, x_635); -x_820 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_820, 0, x_501); -lean_ctor_set(x_820, 1, x_810); -lean_ctor_set(x_820, 2, x_819); -x_821 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__222; -lean_inc(x_495); -lean_inc(x_496); -x_822 = l_Lean_addMacroScope(x_496, x_821, x_495); -x_823 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__220; -x_824 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__224; -lean_inc(x_493); -x_825 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_825, 0, x_493); -lean_ctor_set(x_825, 1, x_823); -lean_ctor_set(x_825, 2, x_822); -lean_ctor_set(x_825, 3, x_824); -x_826 = lean_array_push(x_499, x_589); -x_827 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_827, 0, x_501); -lean_ctor_set(x_827, 1, x_505); -lean_ctor_set(x_827, 2, x_826); -x_828 = lean_array_push(x_520, x_825); -x_829 = lean_array_push(x_828, x_827); -x_830 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_830, 0, x_501); -lean_ctor_set(x_830, 1, x_564); -lean_ctor_set(x_830, 2, x_829); -x_831 = lean_array_push(x_520, x_830); -x_832 = lean_array_push(x_831, x_509); -x_833 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_833, 0, x_501); -lean_ctor_set(x_833, 1, x_505); -lean_ctor_set(x_833, 2, x_832); -x_834 = lean_array_push(x_584, x_526); -x_835 = lean_array_push(x_834, x_833); -x_836 = lean_array_push(x_835, x_544); -x_837 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__217; -x_838 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_838, 0, x_501); -lean_ctor_set(x_838, 1, x_837); -lean_ctor_set(x_838, 2, x_836); -x_839 = lean_array_push(x_520, x_820); -x_840 = lean_array_push(x_839, x_838); -x_841 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_841, 0, x_501); -lean_ctor_set(x_841, 1, x_505); -lean_ctor_set(x_841, 2, x_840); -x_842 = lean_array_push(x_520, x_798); -x_843 = lean_array_push(x_842, x_841); -x_844 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_844, 0, x_501); -lean_ctor_set(x_844, 1, x_564); -lean_ctor_set(x_844, 2, x_843); -x_845 = lean_array_push(x_499, x_844); -x_846 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__162; +x_816 = lean_array_push(x_541, x_812); +x_817 = lean_array_push(x_816, x_815); +x_818 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__195; +x_819 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_819, 0, x_522); +lean_ctor_set(x_819, 1, x_818); +lean_ctor_set(x_819, 2, x_817); +lean_inc(x_819); +x_820 = lean_array_push(x_541, x_819); +x_821 = lean_array_push(x_820, x_819); +x_822 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_822, 0, x_522); +lean_ctor_set(x_822, 1, x_526); +lean_ctor_set(x_822, 2, x_821); +x_823 = lean_array_push(x_541, x_808); +x_824 = lean_array_push(x_823, x_822); +x_825 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_825, 0, x_522); +lean_ctor_set(x_825, 1, x_585); +lean_ctor_set(x_825, 2, x_824); +x_826 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__201; +lean_inc(x_516); +lean_inc(x_517); +x_827 = l_Lean_addMacroScope(x_517, x_826, x_516); +x_828 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__200; +x_829 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__204; +lean_inc(x_514); +x_830 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_830, 0, x_514); +lean_ctor_set(x_830, 1, x_828); +lean_ctor_set(x_830, 2, x_827); +lean_ctor_set(x_830, 3, x_829); +x_831 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__210; +lean_inc(x_516); +lean_inc(x_517); +x_832 = l_Lean_addMacroScope(x_517, x_831, x_516); +x_833 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__207; +x_834 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__213; +lean_inc(x_514); +x_835 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_835, 0, x_514); +lean_ctor_set(x_835, 1, x_833); +lean_ctor_set(x_835, 2, x_832); +lean_ctor_set(x_835, 3, x_834); +x_836 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__218; +lean_inc(x_516); +lean_inc(x_517); +x_837 = l_Lean_addMacroScope(x_517, x_836, x_516); +x_838 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__216; +x_839 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__221; +lean_inc(x_514); +x_840 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_840, 0, x_514); +lean_ctor_set(x_840, 1, x_838); +lean_ctor_set(x_840, 2, x_837); +lean_ctor_set(x_840, 3, x_839); +x_841 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__224; +lean_inc(x_514); +x_842 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_842, 0, x_514); +lean_ctor_set(x_842, 1, x_841); +x_843 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__227; +lean_inc(x_514); +x_844 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_844, 0, x_514); +lean_ctor_set(x_844, 1, x_843); +x_845 = lean_array_push(x_520, x_844); +x_846 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__226; x_847 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_847, 0, x_501); +lean_ctor_set(x_847, 0, x_522); lean_ctor_set(x_847, 1, x_846); lean_ctor_set(x_847, 2, x_845); -lean_inc(x_752); -x_848 = lean_array_push(x_662, x_752); -x_849 = lean_array_push(x_848, x_509); -x_850 = lean_array_push(x_849, x_754); -lean_inc(x_850); -x_851 = lean_array_push(x_850, x_847); -x_852 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__155; +x_848 = lean_array_push(x_631, x_720); +lean_inc(x_842); +x_849 = lean_array_push(x_848, x_842); +x_850 = lean_array_push(x_849, x_847); +lean_inc(x_678); +x_851 = lean_array_push(x_850, x_678); +x_852 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__223; x_853 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_853, 0, x_501); +lean_ctor_set(x_853, 0, x_522); lean_ctor_set(x_853, 1, x_852); lean_ctor_set(x_853, 2, x_851); -x_854 = lean_array_push(x_584, x_748); -x_855 = lean_array_push(x_854, x_509); -lean_inc(x_855); -x_856 = lean_array_push(x_855, x_853); -x_857 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__152; -x_858 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_858, 0, x_501); -lean_ctor_set(x_858, 1, x_857); -lean_ctor_set(x_858, 2, x_856); -x_859 = lean_array_push(x_520, x_858); -x_860 = lean_array_push(x_859, x_509); -x_861 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_861, 0, x_501); -lean_ctor_set(x_861, 1, x_738); -lean_ctor_set(x_861, 2, x_860); -x_862 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__229; -lean_inc(x_495); -lean_inc(x_496); -x_863 = l_Lean_addMacroScope(x_496, x_862, x_495); -x_864 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__227; -x_865 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__232; -lean_inc(x_493); -x_866 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_866, 0, x_493); -lean_ctor_set(x_866, 1, x_864); -lean_ctor_set(x_866, 2, x_863); -lean_ctor_set(x_866, 3, x_865); -x_867 = lean_array_push(x_499, x_866); -x_868 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_868, 0, x_501); -lean_ctor_set(x_868, 1, x_846); -lean_ctor_set(x_868, 2, x_867); -x_869 = lean_array_push(x_520, x_868); -x_870 = lean_array_push(x_869, x_509); -x_871 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_871, 0, x_501); -lean_ctor_set(x_871, 1, x_738); -lean_ctor_set(x_871, 2, x_870); -x_872 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__236; -x_873 = l_Lean_addMacroScope(x_496, x_872, x_495); -x_874 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__235; -x_875 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__239; -x_876 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_876, 0, x_493); -lean_ctor_set(x_876, 1, x_874); -lean_ctor_set(x_876, 2, x_873); -lean_ctor_set(x_876, 3, x_875); -x_877 = lean_array_push(x_499, x_752); -x_878 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_878, 0, x_501); -lean_ctor_set(x_878, 1, x_505); -lean_ctor_set(x_878, 2, x_877); -x_879 = lean_array_push(x_520, x_876); -lean_inc(x_878); -x_880 = lean_array_push(x_879, x_878); -x_881 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_881, 0, x_501); -lean_ctor_set(x_881, 1, x_564); -lean_ctor_set(x_881, 2, x_880); -x_882 = lean_array_push(x_499, x_881); +x_854 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__228; +lean_inc(x_514); +x_855 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_855, 0, x_514); +lean_ctor_set(x_855, 1, x_854); +x_856 = lean_array_push(x_520, x_855); +x_857 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_857, 0, x_522); +lean_ctor_set(x_857, 1, x_846); +lean_ctor_set(x_857, 2, x_856); +x_858 = lean_array_push(x_631, x_853); +x_859 = lean_array_push(x_858, x_842); +x_860 = lean_array_push(x_859, x_857); +x_861 = lean_array_push(x_860, x_678); +x_862 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_862, 0, x_522); +lean_ctor_set(x_862, 1, x_852); +lean_ctor_set(x_862, 2, x_861); +x_863 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__235; +lean_inc(x_516); +lean_inc(x_517); +x_864 = l_Lean_addMacroScope(x_517, x_863, x_516); +x_865 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__233; +x_866 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__237; +lean_inc(x_514); +x_867 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_867, 0, x_514); +lean_ctor_set(x_867, 1, x_865); +lean_ctor_set(x_867, 2, x_864); +lean_ctor_set(x_867, 3, x_866); +x_868 = lean_array_push(x_520, x_630); +x_869 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_869, 0, x_522); +lean_ctor_set(x_869, 1, x_526); +lean_ctor_set(x_869, 2, x_868); +x_870 = lean_array_push(x_541, x_867); +x_871 = lean_array_push(x_870, x_869); +x_872 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_872, 0, x_522); +lean_ctor_set(x_872, 1, x_585); +lean_ctor_set(x_872, 2, x_871); +x_873 = lean_array_push(x_541, x_872); +x_874 = lean_array_push(x_873, x_530); +x_875 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_875, 0, x_522); +lean_ctor_set(x_875, 1, x_526); +lean_ctor_set(x_875, 2, x_874); +x_876 = lean_array_push(x_625, x_547); +x_877 = lean_array_push(x_876, x_875); +x_878 = lean_array_push(x_877, x_565); +x_879 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__230; +x_880 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_880, 0, x_522); +lean_ctor_set(x_880, 1, x_879); +lean_ctor_set(x_880, 2, x_878); +x_881 = lean_array_push(x_541, x_862); +x_882 = lean_array_push(x_881, x_880); x_883 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_883, 0, x_501); -lean_ctor_set(x_883, 1, x_846); +lean_ctor_set(x_883, 0, x_522); +lean_ctor_set(x_883, 1, x_526); lean_ctor_set(x_883, 2, x_882); -x_884 = lean_array_push(x_520, x_883); -x_885 = lean_array_push(x_884, x_509); +x_884 = lean_array_push(x_541, x_840); +x_885 = lean_array_push(x_884, x_883); x_886 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_886, 0, x_501); -lean_ctor_set(x_886, 1, x_738); +lean_ctor_set(x_886, 0, x_522); +lean_ctor_set(x_886, 1, x_585); lean_ctor_set(x_886, 2, x_885); -x_887 = lean_array_push(x_584, x_861); -x_888 = lean_array_push(x_887, x_871); -x_889 = lean_array_push(x_888, x_886); -x_890 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_890, 0, x_501); -lean_ctor_set(x_890, 1, x_505); -lean_ctor_set(x_890, 2, x_889); -x_891 = lean_array_push(x_499, x_890); -x_892 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_892, 0, x_501); -lean_ctor_set(x_892, 1, x_743); -lean_ctor_set(x_892, 2, x_891); -x_893 = lean_array_push(x_520, x_699); -lean_inc(x_893); -x_894 = lean_array_push(x_893, x_892); -x_895 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__123; -x_896 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_896, 0, x_501); -lean_ctor_set(x_896, 1, x_895); -lean_ctor_set(x_896, 2, x_894); -x_897 = lean_array_push(x_499, x_896); -x_898 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_898, 0, x_501); -lean_ctor_set(x_898, 1, x_505); -lean_ctor_set(x_898, 2, x_897); -x_899 = lean_array_push(x_520, x_793); -x_900 = lean_array_push(x_899, x_898); -x_901 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_901, 0, x_501); -lean_ctor_set(x_901, 1, x_564); -lean_ctor_set(x_901, 2, x_900); -x_902 = lean_array_push(x_584, x_788); -lean_inc(x_761); -x_903 = lean_array_push(x_902, x_761); -x_904 = lean_array_push(x_903, x_901); -x_905 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__164; -x_906 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_906, 0, x_501); -lean_ctor_set(x_906, 1, x_905); -lean_ctor_set(x_906, 2, x_904); -x_907 = lean_array_push(x_584, x_783); -lean_inc(x_761); -x_908 = lean_array_push(x_907, x_761); -x_909 = lean_array_push(x_908, x_906); +x_887 = lean_array_push(x_520, x_886); +x_888 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__176; +x_889 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_889, 0, x_522); +lean_ctor_set(x_889, 1, x_888); +lean_ctor_set(x_889, 2, x_887); +lean_inc(x_794); +x_890 = lean_array_push(x_631, x_794); +x_891 = lean_array_push(x_890, x_530); +x_892 = lean_array_push(x_891, x_796); +lean_inc(x_892); +x_893 = lean_array_push(x_892, x_889); +x_894 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__169; +x_895 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_895, 0, x_522); +lean_ctor_set(x_895, 1, x_894); +lean_ctor_set(x_895, 2, x_893); +x_896 = lean_array_push(x_625, x_790); +x_897 = lean_array_push(x_896, x_530); +lean_inc(x_897); +x_898 = lean_array_push(x_897, x_895); +x_899 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__166; +x_900 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_900, 0, x_522); +lean_ctor_set(x_900, 1, x_899); +lean_ctor_set(x_900, 2, x_898); +x_901 = lean_array_push(x_541, x_900); +x_902 = lean_array_push(x_901, x_530); +x_903 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_903, 0, x_522); +lean_ctor_set(x_903, 1, x_780); +lean_ctor_set(x_903, 2, x_902); +x_904 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__242; +lean_inc(x_516); +lean_inc(x_517); +x_905 = l_Lean_addMacroScope(x_517, x_904, x_516); +x_906 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240; +x_907 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__245; +lean_inc(x_514); +x_908 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_908, 0, x_514); +lean_ctor_set(x_908, 1, x_906); +lean_ctor_set(x_908, 2, x_905); +lean_ctor_set(x_908, 3, x_907); +x_909 = lean_array_push(x_520, x_908); x_910 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_910, 0, x_501); -lean_ctor_set(x_910, 1, x_905); +lean_ctor_set(x_910, 0, x_522); +lean_ctor_set(x_910, 1, x_888); lean_ctor_set(x_910, 2, x_909); -x_911 = lean_array_push(x_584, x_759); -x_912 = lean_array_push(x_911, x_761); -x_913 = lean_array_push(x_912, x_910); -x_914 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_914, 0, x_501); -lean_ctor_set(x_914, 1, x_905); -lean_ctor_set(x_914, 2, x_913); -x_915 = lean_array_push(x_499, x_914); -x_916 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_916, 0, x_501); -lean_ctor_set(x_916, 1, x_846); -lean_ctor_set(x_916, 2, x_915); -x_917 = lean_array_push(x_850, x_916); -x_918 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_918, 0, x_501); -lean_ctor_set(x_918, 1, x_852); -lean_ctor_set(x_918, 2, x_917); -x_919 = lean_array_push(x_855, x_918); +x_911 = lean_array_push(x_541, x_910); +x_912 = lean_array_push(x_911, x_530); +x_913 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_913, 0, x_522); +lean_ctor_set(x_913, 1, x_780); +lean_ctor_set(x_913, 2, x_912); +x_914 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__249; +x_915 = l_Lean_addMacroScope(x_517, x_914, x_516); +x_916 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__248; +x_917 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__252; +x_918 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_918, 0, x_514); +lean_ctor_set(x_918, 1, x_916); +lean_ctor_set(x_918, 2, x_915); +lean_ctor_set(x_918, 3, x_917); +x_919 = lean_array_push(x_520, x_794); x_920 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_920, 0, x_501); -lean_ctor_set(x_920, 1, x_857); +lean_ctor_set(x_920, 0, x_522); +lean_ctor_set(x_920, 1, x_526); lean_ctor_set(x_920, 2, x_919); -x_921 = lean_array_push(x_520, x_920); -x_922 = lean_array_push(x_921, x_509); +x_921 = lean_array_push(x_541, x_918); +lean_inc(x_920); +x_922 = lean_array_push(x_921, x_920); x_923 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_923, 0, x_501); -lean_ctor_set(x_923, 1, x_738); +lean_ctor_set(x_923, 0, x_522); +lean_ctor_set(x_923, 1, x_585); lean_ctor_set(x_923, 2, x_922); -x_924 = lean_array_push(x_656, x_878); +x_924 = lean_array_push(x_520, x_923); x_925 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_925, 0, x_501); -lean_ctor_set(x_925, 1, x_564); +lean_ctor_set(x_925, 0, x_522); +lean_ctor_set(x_925, 1, x_888); lean_ctor_set(x_925, 2, x_924); -x_926 = lean_array_push(x_499, x_925); -x_927 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_927, 0, x_501); -lean_ctor_set(x_927, 1, x_846); -lean_ctor_set(x_927, 2, x_926); -x_928 = lean_array_push(x_520, x_927); -x_929 = lean_array_push(x_928, x_509); -x_930 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_930, 0, x_501); -lean_ctor_set(x_930, 1, x_738); -lean_ctor_set(x_930, 2, x_929); -x_931 = lean_array_push(x_520, x_923); -x_932 = lean_array_push(x_931, x_930); -x_933 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_933, 0, x_501); -lean_ctor_set(x_933, 1, x_505); -lean_ctor_set(x_933, 2, x_932); -x_934 = lean_array_push(x_499, x_933); -x_935 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_935, 0, x_501); -lean_ctor_set(x_935, 1, x_743); -lean_ctor_set(x_935, 2, x_934); -x_936 = lean_array_push(x_520, x_746); -x_937 = lean_array_push(x_936, x_935); +x_926 = lean_array_push(x_541, x_925); +x_927 = lean_array_push(x_926, x_530); +x_928 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_928, 0, x_522); +lean_ctor_set(x_928, 1, x_780); +lean_ctor_set(x_928, 2, x_927); +x_929 = lean_array_push(x_625, x_903); +x_930 = lean_array_push(x_929, x_913); +x_931 = lean_array_push(x_930, x_928); +x_932 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_932, 0, x_522); +lean_ctor_set(x_932, 1, x_526); +lean_ctor_set(x_932, 2, x_931); +x_933 = lean_array_push(x_520, x_932); +x_934 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_934, 0, x_522); +lean_ctor_set(x_934, 1, x_785); +lean_ctor_set(x_934, 2, x_933); +x_935 = lean_array_push(x_541, x_741); +lean_inc(x_935); +x_936 = lean_array_push(x_935, x_934); +x_937 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__137; x_938 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_938, 0, x_501); -lean_ctor_set(x_938, 1, x_505); -lean_ctor_set(x_938, 2, x_937); -x_939 = lean_array_push(x_720, x_701); -x_940 = lean_array_push(x_939, x_709); -x_941 = lean_array_push(x_940, x_711); -x_942 = lean_array_push(x_941, x_744); -x_943 = lean_array_push(x_942, x_509); -x_944 = lean_array_push(x_943, x_938); -x_945 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__129; -x_946 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_946, 0, x_501); -lean_ctor_set(x_946, 1, x_945); -lean_ctor_set(x_946, 2, x_944); -x_947 = lean_array_push(x_520, x_946); -x_948 = lean_array_push(x_947, x_509); -x_949 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_949, 0, x_501); -lean_ctor_set(x_949, 1, x_738); -lean_ctor_set(x_949, 2, x_948); -x_950 = lean_array_push(x_499, x_949); -x_951 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_951, 0, x_501); -lean_ctor_set(x_951, 1, x_505); -lean_ctor_set(x_951, 2, x_950); -x_952 = lean_array_push(x_499, x_951); -x_953 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_953, 0, x_501); -lean_ctor_set(x_953, 1, x_743); -lean_ctor_set(x_953, 2, x_952); -x_954 = lean_array_push(x_893, x_953); -x_955 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_955, 0, x_501); -lean_ctor_set(x_955, 1, x_895); -lean_ctor_set(x_955, 2, x_954); -x_956 = lean_array_push(x_597, x_955); -x_957 = lean_array_push(x_956, x_509); +lean_ctor_set(x_938, 0, x_522); +lean_ctor_set(x_938, 1, x_937); +lean_ctor_set(x_938, 2, x_936); +x_939 = lean_array_push(x_520, x_938); +x_940 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_940, 0, x_522); +lean_ctor_set(x_940, 1, x_526); +lean_ctor_set(x_940, 2, x_939); +x_941 = lean_array_push(x_541, x_835); +x_942 = lean_array_push(x_941, x_940); +x_943 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_943, 0, x_522); +lean_ctor_set(x_943, 1, x_585); +lean_ctor_set(x_943, 2, x_942); +x_944 = lean_array_push(x_625, x_830); +lean_inc(x_803); +x_945 = lean_array_push(x_944, x_803); +x_946 = lean_array_push(x_945, x_943); +x_947 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__178; +x_948 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_948, 0, x_522); +lean_ctor_set(x_948, 1, x_947); +lean_ctor_set(x_948, 2, x_946); +x_949 = lean_array_push(x_625, x_825); +lean_inc(x_803); +x_950 = lean_array_push(x_949, x_803); +x_951 = lean_array_push(x_950, x_948); +x_952 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_952, 0, x_522); +lean_ctor_set(x_952, 1, x_947); +lean_ctor_set(x_952, 2, x_951); +x_953 = lean_array_push(x_625, x_801); +x_954 = lean_array_push(x_953, x_803); +x_955 = lean_array_push(x_954, x_952); +x_956 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_956, 0, x_522); +lean_ctor_set(x_956, 1, x_947); +lean_ctor_set(x_956, 2, x_955); +x_957 = lean_array_push(x_520, x_956); x_958 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_958, 0, x_501); -lean_ctor_set(x_958, 1, x_600); +lean_ctor_set(x_958, 0, x_522); +lean_ctor_set(x_958, 1, x_888); lean_ctor_set(x_958, 2, x_957); -x_959 = lean_array_push(x_603, x_674); -x_960 = lean_array_push(x_959, x_697); -x_961 = lean_array_push(x_960, x_958); -x_962 = lean_array_push(x_961, x_509); -x_963 = lean_array_push(x_962, x_509); -x_964 = lean_array_push(x_963, x_509); +x_959 = lean_array_push(x_892, x_958); +x_960 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_960, 0, x_522); +lean_ctor_set(x_960, 1, x_894); +lean_ctor_set(x_960, 2, x_959); +x_961 = lean_array_push(x_897, x_960); +x_962 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_962, 0, x_522); +lean_ctor_set(x_962, 1, x_899); +lean_ctor_set(x_962, 2, x_961); +x_963 = lean_array_push(x_541, x_962); +x_964 = lean_array_push(x_963, x_530); x_965 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_965, 0, x_501); -lean_ctor_set(x_965, 1, x_610); +lean_ctor_set(x_965, 0, x_522); +lean_ctor_set(x_965, 1, x_780); lean_ctor_set(x_965, 2, x_964); -x_966 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240; -x_967 = lean_array_push(x_966, x_965); -x_968 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_968, 0, x_501); -lean_ctor_set(x_968, 1, x_614); -lean_ctor_set(x_968, 2, x_967); -x_969 = lean_array_push(x_584, x_615); -x_970 = lean_array_push(x_969, x_671); -x_971 = lean_array_push(x_970, x_968); +x_966 = lean_array_push(x_699, x_920); +x_967 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_967, 0, x_522); +lean_ctor_set(x_967, 1, x_585); +lean_ctor_set(x_967, 2, x_966); +x_968 = lean_array_push(x_520, x_967); +x_969 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_969, 0, x_522); +lean_ctor_set(x_969, 1, x_888); +lean_ctor_set(x_969, 2, x_968); +x_970 = lean_array_push(x_541, x_969); +x_971 = lean_array_push(x_970, x_530); x_972 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_972, 0, x_501); -lean_ctor_set(x_972, 1, x_505); +lean_ctor_set(x_972, 0, x_522); +lean_ctor_set(x_972, 1, x_780); lean_ctor_set(x_972, 2, x_971); -x_973 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_973, 0, x_972); -lean_ctor_set(x_973, 1, x_494); -return x_973; +x_973 = lean_array_push(x_541, x_965); +x_974 = lean_array_push(x_973, x_972); +x_975 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_975, 0, x_522); +lean_ctor_set(x_975, 1, x_526); +lean_ctor_set(x_975, 2, x_974); +x_976 = lean_array_push(x_520, x_975); +x_977 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_977, 0, x_522); +lean_ctor_set(x_977, 1, x_785); +lean_ctor_set(x_977, 2, x_976); +x_978 = lean_array_push(x_541, x_788); +x_979 = lean_array_push(x_978, x_977); +x_980 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_980, 0, x_522); +lean_ctor_set(x_980, 1, x_526); +lean_ctor_set(x_980, 2, x_979); +x_981 = lean_array_push(x_762, x_743); +x_982 = lean_array_push(x_981, x_751); +x_983 = lean_array_push(x_982, x_753); +x_984 = lean_array_push(x_983, x_786); +x_985 = lean_array_push(x_984, x_530); +x_986 = lean_array_push(x_985, x_980); +x_987 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__143; +x_988 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_988, 0, x_522); +lean_ctor_set(x_988, 1, x_987); +lean_ctor_set(x_988, 2, x_986); +x_989 = lean_array_push(x_541, x_988); +x_990 = lean_array_push(x_989, x_530); +x_991 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_991, 0, x_522); +lean_ctor_set(x_991, 1, x_780); +lean_ctor_set(x_991, 2, x_990); +x_992 = lean_array_push(x_520, x_991); +x_993 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_993, 0, x_522); +lean_ctor_set(x_993, 1, x_526); +lean_ctor_set(x_993, 2, x_992); +x_994 = lean_array_push(x_520, x_993); +x_995 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_995, 0, x_522); +lean_ctor_set(x_995, 1, x_785); +lean_ctor_set(x_995, 2, x_994); +x_996 = lean_array_push(x_935, x_995); +x_997 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_997, 0, x_522); +lean_ctor_set(x_997, 1, x_937); +lean_ctor_set(x_997, 2, x_996); +x_998 = lean_array_push(x_640, x_997); +x_999 = lean_array_push(x_998, x_530); +x_1000 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1000, 0, x_522); +lean_ctor_set(x_1000, 1, x_643); +lean_ctor_set(x_1000, 2, x_999); +x_1001 = lean_array_push(x_646, x_716); +x_1002 = lean_array_push(x_1001, x_739); +x_1003 = lean_array_push(x_1002, x_1000); +x_1004 = lean_array_push(x_1003, x_530); +x_1005 = lean_array_push(x_1004, x_530); +x_1006 = lean_array_push(x_1005, x_530); +x_1007 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1007, 0, x_522); +lean_ctor_set(x_1007, 1, x_653); +lean_ctor_set(x_1007, 2, x_1006); +x_1008 = l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__253; +x_1009 = lean_array_push(x_1008, x_1007); +x_1010 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1010, 0, x_522); +lean_ctor_set(x_1010, 1, x_657); +lean_ctor_set(x_1010, 2, x_1009); +x_1011 = lean_array_push(x_625, x_658); +x_1012 = lean_array_push(x_1011, x_713); +x_1013 = lean_array_push(x_1012, x_1010); +x_1014 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1014, 0, x_522); +lean_ctor_set(x_1014, 1, x_526); +lean_ctor_set(x_1014, 2, x_1013); +x_1015 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1015, 0, x_1014); +lean_ctor_set(x_1015, 1, x_515); +return x_1015; } } } } lean_object* initialize_Init(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Eval(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Tactic_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_SyntheticMVars(uint8_t builtin, lean_object*); static bool _G_initialized = false; @@ -4883,6 +5119,9 @@ _G_initialized = true; res = initialize_Init(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Eval(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -5407,6 +5646,32 @@ l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__239); l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240(); lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__240); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__241 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__241(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__241); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__242 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__242(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__242); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__243 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__243(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__243); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__244 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__244(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__244); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__245 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__245(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__245); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__246); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__247 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__247(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__247); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__248 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__248(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__248); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__249 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__249(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__249); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__250 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__250(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__250); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__251 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__251(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__251); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__252 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__252(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__252); +l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__253 = _init_l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__253(); +lean_mark_persistent(l_Lean_Elab_Tactic___aux__Lean__Elab__Tactic__Config______macroRules__Lean__Elab__Tactic__commandDeclare__config__elab______1___closed__253); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c index 7c67958a3a..d6d1669a66 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c +++ b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c @@ -17,7 +17,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstance lean_object* l_Lean_Meta_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Elab_Tactic_evalRename___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyLikeTactic(lean_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_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyLikeTactic___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_Tactic_evalSpecialize_declRange___closed__2; @@ -41,6 +40,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Elab_T LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_refineCore___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_LocalDecl_userName(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide___closed__2; +lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_elabTermWithHoles___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithUnfoldingAll___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply_declRange___closed__6; @@ -158,7 +158,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTermWithHoles(lean_object*, lean lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Tactic_evalRename___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_addDecl___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_Lean_Elab_Tactic_evalDecide___rarg___lambda__2___closed__2; static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___closed__1; lean_object* l_Lean_Meta_rename(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -295,6 +294,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithUnfoldingAll___close uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalWithReducible___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_Tactic_evalApply_declRange___closed__5; +lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithUnfoldingAll(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply_declRange___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropToDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -10300,14 +10300,14 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_20); -x_21 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_21 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_13); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); lean_dec(x_21); -x_23 = l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +x_23 = l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__3(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_22); if (lean_obj_tag(x_23) == 0) { uint8_t x_24; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c index a03ee9957d..5bf1a7ce51 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Rewrite.c @@ -117,6 +117,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_rewriteTarget___lambda__1___boxed(le static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq_declRange___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_832_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_withRWRulesSeq___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_format_pretty(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabRewriteConfig___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,6 +143,7 @@ lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, le LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_rewriteLocalDecl___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_withRWRulesSeq___spec__10___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabRewriteConfig___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_832____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabRewriteConfig___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; @@ -190,7 +192,6 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabRewriteConfig___closed__1; static lean_object* l_Lean_Elab_Tactic_withRWRulesSeq___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRewriteSeq___closed__1; @@ -3076,10 +3077,21 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_832_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; lean_object* x_10; +lean_object* x_9; uint8_t x_10; lean_object* x_11; x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_832____closed__6; -x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; +x_10 = 0; +x_11 = l_Lean_Meta_evalExpr_x27___rarg(x_9, x_1, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_832____boxed(lean_object* x_1, lean_object* x_2, 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_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_832_(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabRewriteConfig___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -4680,6 +4692,8 @@ x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); x_19 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Rewrite___hyg_832_(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_3); +lean_dec(x_2); return x_19; } else diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index 69392b77c0..313b585e06 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -52,7 +52,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SimpKind_toCtorIdx(uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___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_EXPORT uint8_t l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371_(uint8_t, uint8_t); +LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374_(uint8_t, uint8_t); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTRAux___at_Lean_resolveGlobalConstCore___spec__2(lean_object*, lean_object*); extern lean_object* l_Std_Format_defWidth; @@ -125,13 +125,13 @@ static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__1; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__20; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__1___rarg(lean_object*); extern lean_object* l_Lean_LocalContext_empty; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp(lean_object*); @@ -144,6 +144,7 @@ static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__1; LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__7(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_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___closed__3; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374____boxed(lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_ElabSimpArgsResult_starArg___default; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -167,8 +168,8 @@ static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCtxCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__11(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_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__2; static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__8; -static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__2; lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpTheorem___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_SimpTheorems_isLemma(lean_object*, lean_object*); @@ -181,6 +182,7 @@ static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_ static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__12___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__13___closed__4; 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_EXPORT uint8_t l_Lean_Elab_Tactic_instInhabitedSimpKind; +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__1; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__10; static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__3___closed__2; uint8_t l_Lean_Expr_hasExprMVar(lean_object*); @@ -201,14 +203,15 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpCo LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimp_declRange___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__1; uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___closed__2; static lean_object* l_Lean_Elab_Tactic_instBEqSimpKind___closed__1; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__15___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_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___closed__4; lean_object* l_Lean_Syntax_getId(lean_object*); @@ -248,10 +251,10 @@ static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__1; 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*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__3; lean_object* l_Lean_Meta_SimpTheorems_eraseCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpContext___spec__3___at_Lean_Elab_Tactic_mkSimpContext___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__3; extern lean_object* l_Lean_Meta_instInhabitedSimpTheorems; static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -305,8 +308,8 @@ uint8_t l_Lean_Expr_hasMVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_tacticToDischarge___spec__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__2; lean_object* l_Lean_Syntax_getKind(lean_object*); -static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__2; lean_object* l_Lean_Meta_dsimpGoal(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__4; @@ -316,11 +319,12 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__8; static lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__4___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__7; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__12; -static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__1; +static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__2; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___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_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); @@ -338,7 +342,6 @@ static lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSi lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__17___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*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18___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_Tactic_getFVarIds(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_Tactic_tacticToDischarge___closed__13; @@ -383,8 +386,8 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__6; static lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__2; uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6_(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_go___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*); @@ -503,10 +506,21 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; lean_object* x_10; +lean_object* x_9; uint8_t x_10; lean_object* x_11; x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__8; -x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; +x_10 = 0; +x_11 = l_Lean_Meta_evalExpr_x27___rarg(x_9, x_1, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6_(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { @@ -2122,6 +2136,8 @@ x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); x_19 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6_(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_3); +lean_dec(x_2); return x_19; } else @@ -2343,7 +2359,7 @@ lean_dec(x_1); return x_9; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__1() { _start: { lean_object* x_1; @@ -2351,23 +2367,34 @@ x_1 = lean_mk_string_from_bytes("ConfigCtx", 9); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__6; -x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__1; +x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; lean_object* x_10; -x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__2; -x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__2; +x_10 = 0; +x_11 = l_Lean_Meta_evalExpr_x27___rarg(x_9, x_1, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____boxed(lean_object* x_1, lean_object* x_2, 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_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125_(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; } } static lean_object* _init_l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__1() { @@ -2375,7 +2402,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__2; +x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__2; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } @@ -2467,7 +2494,9 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124_(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +x_29 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125_(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_3); +lean_dec(x_2); return x_29; } else @@ -2525,7 +2554,7 @@ lean_dec(x_1); return x_9; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__1() { _start: { lean_object* x_1; @@ -2533,33 +2562,44 @@ x_1 = lean_mk_string_from_bytes("DSimp", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__4; -x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__1; +x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__3() { +static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__2; +x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__2; x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_6____closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; lean_object* x_10; -x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__3; -x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_10; +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__3; +x_10 = 0; +x_11 = l_Lean_Meta_evalExpr_x27___rarg(x_9, x_1, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____boxed(lean_object* x_1, lean_object* x_2, 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_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244_(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; } } static lean_object* _init_l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__1() { @@ -2567,7 +2607,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__3; +x_2 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__3; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } @@ -2651,7 +2691,9 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242_(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +x_29 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244_(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +lean_dec(x_3); +lean_dec(x_2); return x_29; } else @@ -2804,7 +2846,7 @@ x_1 = 0; return x_1; } } -LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371_(uint8_t x_1, uint8_t x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374_(uint8_t x_1, uint8_t x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -2816,7 +2858,7 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; @@ -2824,7 +2866,7 @@ x_3 = lean_unbox(x_1); lean_dec(x_1); x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371_(x_3, x_4); +x_5 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374_(x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -2833,7 +2875,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_instBEqSimpKind___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374____boxed), 2, 0); return x_1; } } @@ -4082,7 +4124,7 @@ _start: { uint8_t x_10; uint8_t x_11; x_10 = 2; -x_11 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371_(x_1, x_10); +x_11 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374_(x_1, x_10); if (x_11 == 0) { lean_object* x_12; @@ -11558,7 +11600,7 @@ _start: { uint8_t x_13; uint8_t x_14; x_13 = 2; -x_14 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371_(x_1, x_13); +x_14 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374_(x_1, x_13); if (x_14 == 0) { lean_object* x_15; lean_object* x_16; @@ -11640,7 +11682,7 @@ if (x_20 == 0) uint8_t x_21; uint8_t x_22; lean_dec(x_1); x_21 = 1; -x_22 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_371_(x_3, x_21); +x_22 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_beqSimpKind____x40_Lean_Elab_Tactic_Simp___hyg_374_(x_3, x_21); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; @@ -13389,22 +13431,22 @@ l_Lean_Elab_Tactic_elabSimpConfigCore___closed__2 = _init_l_Lean_Elab_Tactic_ela lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfigCore___closed__2); l_Lean_Elab_Tactic_elabSimpConfigCore___closed__3 = _init_l_Lean_Elab_Tactic_elabSimpConfigCore___closed__3(); lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfigCore___closed__3); -l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__1 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__1); -l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__2 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_124____closed__2); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__1 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__1); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__2 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_125____closed__2); l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__1 = _init_l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__1); l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__2 = _init_l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__2(); lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__2); l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__3 = _init_l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__3(); lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfigCtxCore___closed__3); -l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__1 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__1); -l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__2 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__2); -l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__3 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_242____closed__3); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__1 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__1); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__2 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__2); +l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__3 = _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_244____closed__3); l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__1 = _init_l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__1); l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__2 = _init_l_Lean_Elab_Tactic_elabDSimpConfigCore___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 0065c67b16..81b0548376 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -23,11 +23,11 @@ LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec_ LEAN_EXPORT lean_object* l_Lean_Elab_withoutModifyingStateWithInfoAndMessages(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_ContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM; -uint8_t l_Lean_isRecCore(lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__5; +LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__7; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -36,7 +36,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___l LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__1; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit(lean_object*); static lean_object* l_Lean_Elab_Term_instToStringMVarErrorKind___closed__3; @@ -47,7 +46,6 @@ size_t lean_usize_add(size_t, size_t); LEAN_EXPORT 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_instMonadBacktrackSavedStateTermElabM___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___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_EXPORT lean_object* l_Lean_Elab_Term_evalExpr___rarg___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_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__1; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__12; @@ -65,9 +63,9 @@ static lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f___closed__3; static lean_object* l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__1; static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__2; lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addTermInfo_x27___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_evalExpr___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_forM___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MessageData_isNest(lean_object*); @@ -88,6 +86,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_checkIfShadowingStructureField___at_Lean_El extern lean_object* l_Lean_Elab_relaxedAutoImplicit; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1; static lean_object* l_Lean_Elab_Term_collectUnassignedMVars_go___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveState___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__16; @@ -116,7 +115,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostpone___boxed(lean_object*, lean lean_object* lean_io_error_to_string(lean_object*); uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__2; -LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_setLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -182,6 +180,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_letRecsToLift___default; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7; static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_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_initFn____x40_Lean_Elab_Term___hyg_15362____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_collectUnassignedMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyResult___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withInfoContext_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,21 +207,21 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFn static lean_object* l_Lean_Elab_Term_instInhabitedState___closed__2; LEAN_EXPORT lean_object* l_Lean_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_Term_resolveName___closed__3; -uint8_t l_Lean_isCasesOnRecursor(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorHoleInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__10; static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__2; LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Elab_Term_isLetRecAuxMVar___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeAscription___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_withInfoContext_x27___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkCoe___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_ContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__13(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_throwErrorIfErrors___closed__2; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__14; @@ -260,11 +259,9 @@ lean_object* l_Lean_Meta_isMonad_x3f(lean_object*, lean_object*, lean_object*, l static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___closed__2; lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_collectUnassignedMVars_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__3; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___closed__1; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_ContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4(lean_object*, lean_object*, lean_object*); @@ -281,7 +278,6 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___ lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Elab_InfoTree_substitute(lean_object*, lean_object*); @@ -296,11 +292,12 @@ extern lean_object* l_Lean_Elab_autoImplicit; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___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_EXPORT lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__3; +static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__2; lean_object* l_Lean_Elab_Level_elabLevel(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___spec__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_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__2; -LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_evalExpr___spec__7___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_Tactic_instInhabitedSnapshot___closed__1; static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__2; static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; @@ -311,9 +308,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwMVarError___rarg(lean_object*, le static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__3; LEAN_EXPORT uint8_t l_List_foldr___at_Lean_Elab_Term_isLetRecAuxMVar___spec__1(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwMVarError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__5; LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___closed__2; @@ -328,6 +325,7 @@ static lean_object* l_Lean_Elab_Term_mkCoe___closed__2; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedTermElabM(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_collectUnassignedMVars_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_101_(uint8_t, uint8_t); @@ -342,7 +340,6 @@ lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean uint8_t l_Lean_NameMap_contains___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Elab_Term_resolveId_x3f___spec__3(lean_object*, lean_object*); -static lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__2; static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__13; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -371,17 +368,17 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___la LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___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_Term_mkTermElabAttributeUnsafe___closed__15; static lean_object* l_Lean_Elab_Term_instInhabitedMVarErrorKind___closed__2; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__3; +LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__7; static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_observing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1___rarg___closed__1; -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4(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_EXPORT 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_Term_initFn____x40_Lean_Elab_Term___hyg_5941____closed__4; static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__4; static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__16; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepth; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTacticOrPostponedHole_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__2; @@ -394,9 +391,7 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMe LEAN_EXPORT lean_object* l_Lean_Elab_Term_LVal_getRef___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedCacheKey___closed__1; -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint64_t l_Lean_Elab_Term_instInhabitedMVarErrorKind___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__14; @@ -414,10 +409,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDecl static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicitApp___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Elab_Term_evalExpr___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadTermElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -434,7 +425,6 @@ lean_object* l_List_mapTRAux___at_Lean_MessageData_instCoeListExprMessageData___ LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__1; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__12(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_Std_RBNode_setBlack___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__4; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__3; @@ -449,7 +439,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAu LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed__2; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5; -lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -457,7 +446,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__1 static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__6; static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1___closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addDecl___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_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__4; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__15; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___closed__1; @@ -487,7 +475,6 @@ LEAN_EXPORT lean_object* l_List_filterTRAux___at_Lean_Elab_Term_resolveId_x3f___ lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_removeSaveInfoAnnotation(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -506,7 +493,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLocalIdent_x3f___boxed(lean_object*, static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__3; lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__2(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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___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_mkExplicitBinder___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Level_collectMVars___spec__1(lean_object*, lean_object*, lean_object*); @@ -533,14 +519,12 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__1; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__3; -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_go(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_instMetaEvalTermElabM___rarg___closed__2; lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(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_mkExplicitBinder___closed__3; -lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_levelMVarToParam___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_get_x21___rarg(lean_object*, lean_object*, lean_object*); @@ -565,7 +549,6 @@ static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_T LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasExprMVar(lean_object*); LEAN_EXPORT 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*); @@ -598,7 +581,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_exceptionToSorry(lean_object*, lean_ob static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutSavingRecAppSyntax(lean_object*); @@ -610,7 +592,6 @@ lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_containsPendingMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__2(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_Tactic_instInhabitedCache___closed__1; @@ -653,12 +634,10 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_levelNames___default; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___lambda__1___boxed(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_Term_expandDeclId___spec__6___lambda__1___closed__4; -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed(lean_object*, lean_object*); -uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -LEAN_EXPORT 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_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___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_Lean_Elab_Term_mkExplicitBinder___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__3; @@ -674,8 +653,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambd extern lean_object* l_Lean_Elab_abortTermExceptionId; LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___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_array_to_list(lean_object*, lean_object*); -lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isAtomic(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey___boxed(lean_object*); @@ -691,8 +670,6 @@ uint64_t lean_uint64_of_nat(lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13252____closed__2; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___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_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__13; @@ -703,13 +680,13 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___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_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveName_process___closed__3; static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__2; lean_object* l_Lean_Meta_getMVarsAtDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_475_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___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_FileMap_toPosition(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_maxCoeSize; @@ -725,10 +702,8 @@ lean_object* l_Lean_LocalDecl_toExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; extern lean_object* l_Lean_firstFrontendMacroScope; -uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); static uint8_t l_Lean_Elab_Term_collectUnassignedMVars_go___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicitForbiddenPred(lean_object*); -static lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__3; extern lean_object* l_Lean_Meta_instAlternativeMetaM; lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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*); @@ -748,10 +723,10 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5964____closed__2; extern lean_object* l_Lean_Meta_instMonadMetaM; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkConst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_synthesizeCoeInstMVarCore___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTermEnsuringType___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_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -775,7 +750,6 @@ size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Elab_Term_mkCoe___closed__5; LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__12___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_InternalExceptionId_getName(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDelayedRoot(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -798,7 +772,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTer LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isImplicit(uint8_t); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalExpr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___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_EXPORT lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens___closed__2; @@ -814,20 +787,17 @@ LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_saveRecAppSyntax___default; static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__13; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Term_termElabAttribute; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__1(lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_sectionVars___default; static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__2; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11(lean_object*); lean_object* l_Std_PersistentArray_toList___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__7___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getDeclName_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -916,13 +886,11 @@ static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__6; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___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_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__15; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__2; static lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addDotCompletionInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___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* l_Lean_mkPrivateName(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_SavedState_restore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_universeConstraintsCheckpoint(lean_object*); @@ -939,7 +907,6 @@ static lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___closed__2; extern lean_object* l_Lean_KVMap_empty; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__13(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_Term_mkFreshBinderName___rarg___closed__2; static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5941____closed__1; @@ -952,7 +919,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, le lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__3; -LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_State_infoState___default___closed__2; @@ -962,7 +928,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplic LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyAttributes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveId_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addTermInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_assignLevel(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_syntheticMVars___default; static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__1; @@ -970,6 +935,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorCustomInfo(lean_objec LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTypeApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instToStringLVal___closed__2; LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__3; static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedMVarErrorKind___closed__3; @@ -979,7 +945,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_liftLevelM___rarg___boxed(lean_object* LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadTermElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedLetRecToLift; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___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*); -uint8_t lean_is_aux_recursor(lean_object*, lean_object*); lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5941____closed__2; static lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__2; @@ -1008,16 +973,13 @@ static lean_object* l_Lean_Elab_Term_State_infoState___default___closed__1; extern lean_object* l_Lean_Elab_pp_macroStack; static lean_object* l_Lean_Elab_Term_resolveName_x27___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__1___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; static lean_object* l_Lean_Elab_Term_mkConst___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTypeApp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_macroStack___default; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_levelMVarToParam___lambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSavedContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__2___closed__1; @@ -1028,7 +990,6 @@ lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean LEAN_EXPORT lean_object* l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl(lean_object*); -static lean_object* l_Lean_Elab_Term_evalExpr___rarg___closed__1; static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_ContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1066,8 +1027,6 @@ lean_object* l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit__ static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__9; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instBEqCacheKey; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1079,7 +1038,6 @@ LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_ignoreTCFailures___default; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName_process___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_initFn____x40_Lean_Elab_Term___hyg_15536____closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___closed__2; @@ -1113,12 +1071,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars_x3f___lambda__1( LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift___boxed(lean_object*); -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___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_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MonadEnv_0__Lean_mkAuxNameAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSavedContext(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addDotCompletionInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_instBEqExpr; @@ -1134,13 +1092,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorInfo___boxed(lean_obj LEAN_EXPORT lean_object* l_Lean_Elab_Term_TermElabM_toIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_contains___at_Lean_Elab_Term_collectUnassignedMVars_go___spec__1(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_evalExpr___rarg___closed__3; +LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_ContextInfo_save___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2(lean_object*); static lean_object* l_Lean_Elab_Term_resolveName___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_getMVarErrorInfo_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLevelNames___boxed(lean_object*); lean_object* l_Lean_mkPatternWithRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1170,11 +1127,9 @@ lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__17; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362_(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13(lean_object*); LEAN_EXPORT 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_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__11; lean_object* l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_623____boxed(lean_object*, lean_object*); @@ -1188,13 +1143,11 @@ static lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_ static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__3___closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__6; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; -LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermInfo___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_instMonadInfoTreeTermElabM___closed__3; lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f___closed__2; -static lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1; LEAN_EXPORT lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -1204,7 +1157,6 @@ static lean_object* l_Lean_Elab_Term_expandDeclId___closed__1; LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Elab_Term_resolveName_x27___spec__2(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_instInhabitedLetRecToLift___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___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_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); @@ -1232,13 +1184,11 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe__ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(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_Elab_isFreshInstanceName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwMVarError(lean_object*); -uint8_t l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(lean_object*, uint8_t); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_observing___rarg___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_Term_synthesizeInstMVarCore___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___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_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__10(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_instMetaEvalTermElabM___rarg___closed__9; static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__14; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___closed__4; @@ -1302,10 +1252,8 @@ lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*) LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Elab_Term_resolveName_x27___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getMVarErrorInfo_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__1; -static lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__3; size_t lean_usize_of_nat(lean_object*); -extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors; LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName_process___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1317,7 +1265,6 @@ lean_object* l_Lean_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec_ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___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_evalExpr___rarg___closed__4; static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__8; static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1337,8 +1284,6 @@ static lean_object* l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__9; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__8(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_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__3; LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock(lean_object*); -LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_evalExpr___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__2; @@ -1365,11 +1310,11 @@ static lean_object* l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1_ static lean_object* l_Lean_Elab_ContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___rarg___closed__2; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ContainsPendingMVar_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_mayPostpone___default; -lean_object* lean_add_decl(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2(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* _init_l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__1() { @@ -46731,2257 +46676,6 @@ x_8 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg(x_1, x_2, x_3, x_4, x_7, x_6 return x_8; } } -LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_6, 2); -lean_inc(x_9); -x_10 = l_Lean_KernelException_toMessageData(x_1, x_9); -x_11 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_9 = lean_st_ref_take(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_13 = lean_ctor_get(x_10, 4); -lean_dec(x_13); -x_14 = lean_ctor_get(x_10, 0); -lean_dec(x_14); -x_15 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__9; -lean_ctor_set(x_10, 4, x_15); -lean_ctor_set(x_10, 0, x_1); -x_16 = lean_st_ref_set(x_7, x_10, x_11); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = lean_st_ref_get(x_7, x_17); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_st_ref_take(x_5, 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; uint8_t x_27; -x_24 = lean_ctor_get(x_21, 1); -lean_dec(x_24); -x_25 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__19; -lean_ctor_set(x_21, 1, x_25); -x_26 = lean_st_ref_set(x_5, x_21, x_22); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -x_29 = lean_box(0); -lean_ctor_set(x_26, 0, x_29); -return x_26; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -x_31 = lean_box(0); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -else -{ -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; -x_33 = lean_ctor_get(x_21, 0); -x_34 = lean_ctor_get(x_21, 2); -x_35 = lean_ctor_get(x_21, 3); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_21); -x_36 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__19; -x_37 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_37, 2, x_34); -lean_ctor_set(x_37, 3, x_35); -x_38 = lean_st_ref_set(x_5, x_37, x_22); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_40 = x_38; -} else { - lean_dec_ref(x_38); - x_40 = lean_box(0); -} -x_41 = lean_box(0); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_39); -return x_42; -} -} -else -{ -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; -x_43 = lean_ctor_get(x_10, 1); -x_44 = lean_ctor_get(x_10, 2); -x_45 = lean_ctor_get(x_10, 3); -x_46 = lean_ctor_get(x_10, 5); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_10); -x_47 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__9; -x_48 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_48, 0, x_1); -lean_ctor_set(x_48, 1, x_43); -lean_ctor_set(x_48, 2, x_44); -lean_ctor_set(x_48, 3, x_45); -lean_ctor_set(x_48, 4, x_47); -lean_ctor_set(x_48, 5, x_46); -x_49 = lean_st_ref_set(x_7, x_48, x_11); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = lean_st_ref_get(x_7, x_50); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = lean_st_ref_take(x_5, x_52); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_ctor_get(x_54, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 2); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 3); -lean_inc(x_58); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - lean_ctor_release(x_54, 2); - lean_ctor_release(x_54, 3); - x_59 = x_54; -} else { - lean_dec_ref(x_54); - x_59 = lean_box(0); -} -x_60 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__19; -if (lean_is_scalar(x_59)) { - x_61 = lean_alloc_ctor(0, 4, 0); -} else { - x_61 = x_59; -} -lean_ctor_set(x_61, 0, x_56); -lean_ctor_set(x_61, 1, x_60); -lean_ctor_set(x_61, 2, x_57); -lean_ctor_set(x_61, 3, x_58); -x_62 = lean_st_ref_set(x_5, x_61, x_55); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_64 = x_62; -} else { - lean_dec_ref(x_62); - x_64 = lean_box(0); -} -x_65 = lean_box(0); -if (lean_is_scalar(x_64)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_64; -} -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_63); -return x_66; -} -} -} -LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___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; lean_object* x_14; -lean_dec(x_2); -x_10 = lean_st_ref_get(x_8, x_9); -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, 0); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_add_decl(x_13, x_1); -lean_dec(x_1); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 0); -lean_inc(x_17); -lean_dec(x_14); -x_18 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_18; -} -} -} -static lean_object* _init_l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("declaration uses 'sorry'", 24); -return x_1; -} -} -static lean_object* _init_l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 5); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_12); -if (x_13 == 0) -{ -uint8_t x_14; uint8_t x_15; -x_14 = 0; -lean_inc(x_1); -x_15 = l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(x_1, x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_box(0); -x_17 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___lambda__1(x_1, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_17; -} -else -{ -lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_18 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__3; -x_19 = 1; -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_20 = l_Lean_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_18, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -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_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___lambda__1(x_1, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_22); -return x_23; -} -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_box(0); -x_25 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___lambda__1(x_1, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_25; -} -} -} -LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 4) -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -lean_inc(x_3); -lean_inc(x_1); -x_4 = lean_is_aux_recursor(x_1, x_3); -if (x_4 == 0) -{ -uint8_t x_5; -lean_inc(x_3); -x_5 = l_Lean_isRecCore(x_1, x_3); -if (x_5 == 0) -{ -uint8_t x_6; -lean_dec(x_3); -x_6 = 0; -return x_6; -} -else -{ -lean_object* x_7; uint8_t x_8; -x_7 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; -x_8 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_7, x_3); -lean_dec(x_3); -if (x_8 == 0) -{ -uint8_t x_9; -x_9 = 1; -return x_9; -} -else -{ -uint8_t x_10; -x_10 = 0; -return x_10; -} -} -} -else -{ -uint8_t x_11; -lean_inc(x_3); -lean_inc(x_1); -x_11 = l_Lean_isCasesOnRecursor(x_1, x_3); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; -lean_dec(x_1); -x_12 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; -x_13 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_12, x_3); -lean_dec(x_3); -if (x_13 == 0) -{ -uint8_t x_14; -x_14 = 1; -return x_14; -} -else -{ -uint8_t x_15; -x_15 = 0; -return x_15; -} -} -else -{ -uint8_t x_16; -lean_inc(x_3); -x_16 = l_Lean_isRecCore(x_1, x_3); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_3); -x_17 = 0; -return x_17; -} -else -{ -lean_object* x_18; uint8_t x_19; -x_18 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; -x_19 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_18, x_3); -lean_dec(x_3); -if (x_19 == 0) -{ -uint8_t x_20; -x_20 = 1; -return x_20; -} -else -{ -uint8_t x_21; -x_21 = 0; -return x_21; -} -} -} -} -} -else -{ -uint8_t x_22; -lean_dec(x_2); -lean_dec(x_1); -x_22 = 0; -return x_22; -} -} -} -static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("code generator does not support recursor '", 42); -return x_1; -} -} -static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("' yet, consider using 'match ... with' and/or structural recursion", 66); -return x_1; -} -} -static lean_object* _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_11; -lean_dec(x_4); -lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_2); -lean_ctor_set(x_11, 1, x_10); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_2); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 1); -lean_inc(x_13); -lean_dec(x_3); -x_35 = lean_ctor_get(x_12, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_35, 2); -lean_inc(x_36); -lean_dec(x_35); -lean_inc(x_1); -x_37 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_37, 0, x_1); -x_38 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_37, x_36); -if (lean_obj_tag(x_38) == 0) -{ -x_14 = x_10; -goto block_34; -} -else -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -lean_dec(x_38); -if (lean_obj_tag(x_39) == 4) -{ -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; uint8_t x_47; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_1); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -lean_dec(x_39); -x_41 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_41, 0, x_40); -x_42 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_43 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_45 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -return x_46; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_46, 0); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_46); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -else -{ -lean_dec(x_39); -x_14 = x_10; -goto block_34; -} -} -block_34: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -lean_inc(x_1); -x_16 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_16, 0, x_1); -x_17 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_16, x_15); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; -x_18 = lean_box(0); -x_2 = x_18; -x_3 = x_13; -x_10 = x_14; -goto _start; -} -else -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_17, 0); -lean_inc(x_20); -lean_dec(x_17); -if (lean_obj_tag(x_20) == 4) -{ -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; -lean_dec(x_13); -lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___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_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -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_Term_throwErrorIfErrors___spec__1(x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -return x_27; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_27); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; -lean_dec(x_20); -x_32 = lean_box(0); -x_2 = x_32; -x_3 = x_13; -x_10 = x_14; -goto _start; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_11; -lean_dec(x_4); -lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_2); -lean_ctor_set(x_11, 1, x_10); -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_dec(x_2); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 1); -lean_inc(x_13); -lean_dec(x_3); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_1); -x_15 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_15, 0, x_1); -x_16 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_15, x_14); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -x_17 = lean_box(0); -x_2 = x_17; -x_3 = x_13; -goto _start; -} -else -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_16, 0); -lean_inc(x_19); -lean_dec(x_16); -if (lean_obj_tag(x_19) == 4) -{ -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_dec(x_13); -lean_dec(x_1); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_21, 0, x_20); -x_22 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_23 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -return x_26; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_26); -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; -} -} -else -{ -lean_object* x_31; -lean_dec(x_19); -x_31 = lean_box(0); -x_2 = x_31; -x_3 = x_13; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_11; -lean_dec(x_4); -lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_2); -lean_ctor_set(x_11, 1, x_10); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_23; lean_object* x_24; lean_object* x_25; -lean_dec(x_2); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 1); -lean_inc(x_13); -lean_dec(x_3); -x_23 = lean_ctor_get(x_12, 1); -lean_inc(x_23); -lean_inc(x_1); -x_24 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_24, 0, x_1); -x_25 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_24, x_23); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_12, 2); -lean_inc(x_26); -lean_dec(x_12); -x_27 = lean_box(0); -lean_inc(x_4); -lean_inc(x_1); -x_28 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__9(x_1, x_27, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_14 = x_28; -goto block_22; -} -else -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_25, 0); -lean_inc(x_29); -lean_dec(x_25); -if (lean_obj_tag(x_29) == 4) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -lean_dec(x_12); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -lean_inc(x_4); -x_36 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_35, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -x_14 = x_36; -goto block_22; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_36); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_14 = x_40; -goto block_22; -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_29); -x_41 = lean_ctor_get(x_12, 2); -lean_inc(x_41); -lean_dec(x_12); -x_42 = lean_box(0); -lean_inc(x_4); -lean_inc(x_1); -x_43 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__9(x_1, x_42, x_41, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_14 = x_43; -goto block_22; -} -} -block_22: -{ -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; -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_2 = x_15; -x_3 = x_13; -x_10 = x_16; -goto _start; -} -else -{ -uint8_t x_18; -lean_dec(x_13); -lean_dec(x_4); -lean_dec(x_1); -x_18 = !lean_is_exclusive(x_14); -if (x_18 == 0) -{ -return x_14; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_14, 0); -x_20 = lean_ctor_get(x_14, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_14); -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_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_evalExpr___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -switch (lean_obj_tag(x_2)) { -case 0: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_3); -x_11 = lean_ctor_get(x_2, 0); -lean_inc(x_11); -lean_dec(x_2); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_ctor_get(x_12, 2); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_14, 0, x_1); -x_15 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_14, x_13); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_4); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_10); -return x_17; -} -else -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_15, 0); -lean_inc(x_18); -lean_dec(x_15); -if (lean_obj_tag(x_18) == 4) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_18); -lean_dec(x_4); -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_10); -return x_27; -} -} -} -case 1: -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_48; lean_object* x_49; -lean_dec(x_3); -x_28 = lean_ctor_get(x_2, 0); -lean_inc(x_28); -lean_dec(x_2); -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, 2); -lean_inc(x_31); -lean_dec(x_29); -lean_inc(x_1); -x_48 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_48, 0, x_1); -x_49 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_48, x_31); -if (lean_obj_tag(x_49) == 0) -{ -x_32 = x_10; -goto block_47; -} -else -{ -lean_object* x_50; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -lean_dec(x_49); -if (lean_obj_tag(x_50) == 4) -{ -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; uint8_t x_58; -lean_dec(x_30); -lean_dec(x_1); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -lean_dec(x_50); -x_52 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_52, 0, x_51); -x_53 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_56 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_56, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_58 = !lean_is_exclusive(x_57); -if (x_58 == 0) -{ -return x_57; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 0); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_57); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -else -{ -lean_dec(x_50); -x_32 = x_10; -goto block_47; -} -} -block_47: -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_33, 0, x_1); -x_34 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_33, x_30); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; -lean_dec(x_4); -x_35 = lean_box(0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_32); -return x_36; -} -else -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_34, 0); -lean_inc(x_37); -lean_dec(x_34); -if (lean_obj_tag(x_37) == 4) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_39, 0, x_38); -x_40 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_43 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_43, x_4, x_5, x_6, x_7, x_8, x_9, x_32); -return x_44; -} -else -{ -lean_object* x_45; lean_object* x_46; -lean_dec(x_37); -lean_dec(x_4); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_32); -return x_46; -} -} -} -} -case 2: -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_82; lean_object* x_83; -lean_dec(x_3); -x_62 = lean_ctor_get(x_2, 0); -lean_inc(x_62); -lean_dec(x_2); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_ctor_get(x_63, 2); -lean_inc(x_65); -lean_dec(x_63); -lean_inc(x_1); -x_82 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_82, 0, x_1); -x_83 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_82, x_65); -if (lean_obj_tag(x_83) == 0) -{ -x_66 = x_10; -goto block_81; -} -else -{ -lean_object* x_84; -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -lean_dec(x_83); -if (lean_obj_tag(x_84) == 4) -{ -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; uint8_t x_92; -lean_dec(x_64); -lean_dec(x_1); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -lean_dec(x_84); -x_86 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_88 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -x_89 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_90 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -x_91 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_90, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) -{ -return x_91; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_91, 0); -x_94 = lean_ctor_get(x_91, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_91); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; -} -} -else -{ -lean_dec(x_84); -x_66 = x_10; -goto block_81; -} -} -block_81: -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_67, 0, x_1); -x_68 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_67, x_64); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; lean_object* x_70; -lean_dec(x_4); -x_69 = lean_box(0); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_66); -return x_70; -} -else -{ -lean_object* x_71; -x_71 = lean_ctor_get(x_68, 0); -lean_inc(x_71); -lean_dec(x_68); -if (lean_obj_tag(x_71) == 4) -{ -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; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -lean_dec(x_71); -x_73 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_73, 0, x_72); -x_74 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_75 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_73); -x_76 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_77 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_77, x_4, x_5, x_6, x_7, x_8, x_9, x_66); -return x_78; -} -else -{ -lean_object* x_79; lean_object* x_80; -lean_dec(x_71); -lean_dec(x_4); -x_79 = lean_box(0); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_66); -return x_80; -} -} -} -} -case 3: -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_116; lean_object* x_117; -lean_dec(x_3); -x_96 = lean_ctor_get(x_2, 0); -lean_inc(x_96); -lean_dec(x_2); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_ctor_get(x_97, 2); -lean_inc(x_99); -lean_dec(x_97); -lean_inc(x_1); -x_116 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_116, 0, x_1); -x_117 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_116, x_99); -if (lean_obj_tag(x_117) == 0) -{ -x_100 = x_10; -goto block_115; -} -else -{ -lean_object* x_118; -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -lean_dec(x_117); -if (lean_obj_tag(x_118) == 4) -{ -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; uint8_t x_126; -lean_dec(x_98); -lean_dec(x_1); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -lean_dec(x_118); -x_120 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_120, 0, x_119); -x_121 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_122 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_120); -x_123 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_124 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_124, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) -{ -return x_125; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_125, 0); -x_128 = lean_ctor_get(x_125, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_125); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; -} -} -else -{ -lean_dec(x_118); -x_100 = x_10; -goto block_115; -} -} -block_115: -{ -lean_object* x_101; lean_object* x_102; -x_101 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed), 2, 1); -lean_closure_set(x_101, 0, x_1); -x_102 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_101, x_98); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; lean_object* x_104; -lean_dec(x_4); -x_103 = lean_box(0); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_100); -return x_104; -} -else -{ -lean_object* x_105; -x_105 = lean_ctor_get(x_102, 0); -lean_inc(x_105); -lean_dec(x_102); -if (lean_obj_tag(x_105) == 4) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -lean_dec(x_105); -x_107 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_107, 0, x_106); -x_108 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2; -x_109 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -x_110 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4; -x_111 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -x_112 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_111, x_4, x_5, x_6, x_7, x_8, x_9, x_100); -return x_112; -} -else -{ -lean_object* x_113; lean_object* x_114; -lean_dec(x_105); -lean_dec(x_4); -x_113 = lean_box(0); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_100); -return x_114; -} -} -} -} -case 4: -{ -lean_object* x_130; -lean_dec(x_4); -lean_dec(x_1); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_3); -lean_ctor_set(x_130, 1, x_10); -return x_130; -} -case 5: -{ -lean_object* x_131; lean_object* x_132; -x_131 = lean_ctor_get(x_2, 0); -lean_inc(x_131); -lean_dec(x_2); -x_132 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8(x_1, x_3, x_131, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_132; -} -default: -{ -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_2, 2); -lean_inc(x_133); -lean_dec(x_2); -x_134 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__10(x_1, x_3, x_133, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_134; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Elab_Term_evalExpr___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_box(0); -x_14 = l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_evalExpr___spec__7(x_12, x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_6, 2); -lean_inc(x_13); -x_14 = lean_compile_decl(x_12, x_13, x_1); -lean_dec(x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -if (lean_obj_tag(x_15) == 11) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -lean_dec(x_15); -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_17 = l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Elab_Term_evalExpr___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_16); -x_20 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_20, 0, x_19); -x_21 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_18); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_21; -} -else -{ -uint8_t x_22; -lean_dec(x_16); -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_22 = !lean_is_exclusive(x_17); -if (x_22 == 0) -{ -return x_17; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_17, 0); -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_17); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -else -{ -lean_object* x_26; -lean_dec(x_1); -x_26 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_26; -} -} -else -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_1); -x_27 = lean_ctor_get(x_14, 0); -lean_inc(x_27); -lean_dec(x_14); -x_28 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_28; -} -} -} -LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_9 = l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = l_Lean_compileDecl___at_Lean_Elab_Term_evalExpr___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10); -return x_11; -} -else -{ -uint8_t x_12; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) -{ -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_9 = lean_ctor_get(x_6, 5); -x_10 = lean_ctor_get(x_2, 1); -lean_inc(x_10); -lean_inc(x_10); -x_11 = l_Lean_Elab_getBetterRef(x_9, x_10); -x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -lean_dec(x_2); -lean_dec(x_10); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_11); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_11); -lean_ctor_set(x_21, 1, x_19); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13___rarg___boxed), 8, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_9); -lean_dec(x_1); -x_10 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13___rarg(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_2); -x_13 = lean_ctor_get(x_1, 0); -lean_inc(x_13); -lean_dec(x_1); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_8); -return x_14; -} -} -} -LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12___rarg___boxed), 8, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_6, 2); -x_14 = lean_eval_const(x_12, x_13, x_1); -lean_dec(x_1); -lean_dec(x_12); -x_15 = l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12___rarg(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_15; -} -} -LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg___boxed), 8, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalExpr___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_4); -x_12 = lean_box(0); -lean_inc(x_1); -x_13 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_13, 0, x_1); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_13, 2, x_2); -lean_inc(x_1); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_1); -lean_ctor_set(x_14, 1, x_12); -x_15 = lean_box(0); -x_16 = 0; -x_17 = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(x_17, 0, x_13); -lean_ctor_set(x_17, 1, x_3); -lean_ctor_set(x_17, 2, x_15); -lean_ctor_set(x_17, 3, x_14); -lean_ctor_set_uint8(x_17, sizeof(void*)*4, x_16); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_17); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_18); -x_19 = l_Lean_Elab_Term_ensureNoUnassignedMVars(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -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_21 = l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__1(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_22); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -return x_23; -} -else -{ -uint8_t x_24; -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_1); -x_24 = !lean_is_exclusive(x_21); -if (x_24 == 0) -{ -return x_21; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_21, 0); -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_21); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -else -{ -uint8_t x_28; -lean_dec(x_18); -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_1); -x_28 = !lean_is_exclusive(x_19); -if (x_28 == 0) -{ -return x_19; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_19, 0); -x_30 = lean_ctor_get(x_19, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_19); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Term_evalExpr___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("_tmp", 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_evalExpr___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_Term_evalExpr___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_evalExpr___rarg___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("unexpected type at evalExpr", 27); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_evalExpr___rarg___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_evalExpr___rarg___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_10 = lean_st_ref_get(x_8, x_9); -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, 0); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Elab_Term_evalExpr___rarg___closed__2; -x_15 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_14, x_7, x_8, x_12); -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); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_2); -x_18 = lean_infer_type(x_2, 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_whnfD(x_19, 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; uint8_t x_24; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Expr_isConstOf(x_22, x_1); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_dec(x_16); -lean_dec(x_2); -x_25 = l_Lean_indentExpr(x_22); -x_26 = l_Lean_Elab_Term_evalExpr___rarg___closed__4; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; -x_29 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -lean_inc(x_3); -x_30 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_23); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_32); -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_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -lean_ctor_set_tag(x_33, 1); -lean_ctor_set(x_33, 0, x_31); -return x_33; -} -else -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -else -{ -lean_object* x_38; lean_object* x_39; -x_38 = 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_39 = l_Lean_Elab_Term_evalExpr___rarg___lambda__1(x_16, x_22, x_2, x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_23); -if (lean_obj_tag(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_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_41); -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_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -lean_object* x_44; -x_44 = lean_ctor_get(x_42, 0); -lean_dec(x_44); -lean_ctor_set(x_42, 0, x_40); -return x_42; -} -else -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_40); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_39, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_39, 1); -lean_inc(x_48); -lean_dec(x_39); -x_49 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_48); -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_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -lean_ctor_set_tag(x_49, 1); -lean_ctor_set(x_49, 0, x_47); -return x_49; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_49, 1); -lean_inc(x_52); -lean_dec(x_49); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_47); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -lean_dec(x_16); -lean_dec(x_2); -x_54 = lean_ctor_get(x_21, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_21, 1); -lean_inc(x_55); -lean_dec(x_21); -x_56 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_55); -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_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_16); -lean_dec(x_2); -x_61 = lean_ctor_get(x_18, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_18, 1); -lean_inc(x_62); -lean_dec(x_18); -x_63 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_62); -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_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; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalExpr(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_evalExpr___rarg___boxed), 9, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___lambda__1(x_1, x_2); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_11; -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___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, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_11; -} -} -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___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* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_evalExpr___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Declaration_foldExprM___at_Lean_Elab_Term_evalExpr___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_ofExcept___at_Lean_Elab_Term_evalExpr___spec__12___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_evalExpr___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_10; -} -} LEAN_EXPORT lean_object* l_Lean_Elab_Term_universeConstraintsCheckpoint___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -49728,6 +47422,194 @@ return x_37; } } } +LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_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* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_st_ref_take(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_13 = lean_ctor_get(x_10, 4); +lean_dec(x_13); +x_14 = lean_ctor_get(x_10, 0); +lean_dec(x_14); +x_15 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__9; +lean_ctor_set(x_10, 4, x_15); +lean_ctor_set(x_10, 0, x_1); +x_16 = lean_st_ref_set(x_7, x_10, x_11); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_st_ref_get(x_7, x_17); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_st_ref_take(x_5, 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; uint8_t x_27; +x_24 = lean_ctor_get(x_21, 1); +lean_dec(x_24); +x_25 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__19; +lean_ctor_set(x_21, 1, x_25); +x_26 = lean_st_ref_set(x_5, x_21, x_22); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +lean_dec(x_28); +x_29 = lean_box(0); +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_box(0); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +else +{ +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; +x_33 = lean_ctor_get(x_21, 0); +x_34 = lean_ctor_get(x_21, 2); +x_35 = lean_ctor_get(x_21, 3); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_21); +x_36 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__19; +x_37 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_34); +lean_ctor_set(x_37, 3, x_35); +x_38 = lean_st_ref_set(x_5, x_37, x_22); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_40 = x_38; +} else { + lean_dec_ref(x_38); + x_40 = lean_box(0); +} +x_41 = lean_box(0); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +return x_42; +} +} +else +{ +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; +x_43 = lean_ctor_get(x_10, 1); +x_44 = lean_ctor_get(x_10, 2); +x_45 = lean_ctor_get(x_10, 3); +x_46 = lean_ctor_get(x_10, 5); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_10); +x_47 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__9; +x_48 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_48, 0, x_1); +lean_ctor_set(x_48, 1, x_43); +lean_ctor_set(x_48, 2, x_44); +lean_ctor_set(x_48, 3, x_45); +lean_ctor_set(x_48, 4, x_47); +lean_ctor_set(x_48, 5, x_46); +x_49 = lean_st_ref_set(x_7, x_48, x_11); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_51 = lean_st_ref_get(x_7, x_50); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_st_ref_take(x_5, x_52); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_ctor_get(x_54, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_54, 2); +lean_inc(x_57); +x_58 = lean_ctor_get(x_54, 3); +lean_inc(x_58); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + lean_ctor_release(x_54, 2); + lean_ctor_release(x_54, 3); + x_59 = x_54; +} else { + lean_dec_ref(x_54); + x_59 = lean_box(0); +} +x_60 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__19; +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 4, 0); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_56); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_61, 2, x_57); +lean_ctor_set(x_61, 3, x_58); +x_62 = lean_st_ref_set(x_5, x_61, x_55); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_64 = x_62; +} else { + lean_dec_ref(x_62); + x_64 = lean_box(0); +} +x_65 = lean_box(0); +if (lean_is_scalar(x_64)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_64; +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_63); +return x_66; +} +} +} static lean_object* _init_l_Lean_Elab_applyVisibility___at_Lean_Elab_Term_expandDeclId___spec__5___closed__1() { _start: { @@ -49822,7 +47704,7 @@ lean_dec(x_22); x_25 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Term_expandDeclId___spec__5___closed__1; lean_inc(x_2); x_26 = l_Lean_TagDeclarationExtension_tag(x_25, x_24, x_2); -x_27 = l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__4(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_27 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_26, 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); @@ -49946,7 +47828,7 @@ return x_49; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_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* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -50100,7 +47982,7 @@ x_33 = lean_ctor_get(x_16, 1); lean_inc(x_33); lean_dec(x_16); x_34 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__1___closed__2; -x_35 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__7(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_33); +x_35 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__8(x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_33); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -50530,7 +48412,7 @@ return x_23; } } } -static lean_object* _init_l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1() { +static lean_object* _init_l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1() { _start: { lean_object* x_1; @@ -50538,7 +48420,7 @@ x_1 = l___private_Lean_DocString_0__Lean_docStringExt; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -50555,7 +48437,7 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_11, 0); x_15 = lean_ctor_get(x_11, 4); lean_dec(x_15); -x_16 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1; +x_16 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1; x_17 = l_Lean_MapDeclarationExtension_insert___rarg(x_16, x_14, x_1, x_2); x_18 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__9; lean_ctor_set(x_11, 4, x_18); @@ -50658,7 +48540,7 @@ lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); lean_dec(x_11); -x_51 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1; +x_51 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1; x_52 = l_Lean_MapDeclarationExtension_insert___rarg(x_51, x_46, x_1, x_2); x_53 = l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__9; x_54 = lean_alloc_ctor(0, 6, 0); @@ -50731,7 +48613,7 @@ return x_72; } } } -LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { if (lean_obj_tag(x_2) == 0) @@ -50750,12 +48632,12 @@ lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_2, 0); lean_inc(x_12); lean_dec(x_2); -x_13 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -50803,7 +48685,7 @@ return x_22; } } } -static lean_object* _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1() { +static lean_object* _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__1() { _start: { lean_object* x_1; @@ -50811,22 +48693,22 @@ x_1 = lean_mk_string_from_bytes("a universe level named '", 24); return x_1; } } -static lean_object* _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__2() { +static lean_object* _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1; +x_1 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_9 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_9, 0, x_1); -x_10 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__2; +x_10 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__2; x_11 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -50834,11 +48716,11 @@ x_12 = l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___sp x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_14 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_14; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__12(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__13(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; @@ -50875,7 +48757,7 @@ x_22 = l_Lean_replaceRef(x_13, x_21); lean_dec(x_21); lean_dec(x_13); lean_ctor_set(x_9, 5, x_22); -x_23 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_23 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_9); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) @@ -50937,7 +48819,7 @@ lean_ctor_set(x_40, 7, x_35); lean_ctor_set(x_40, 8, x_36); lean_ctor_set(x_40, 9, x_37); lean_ctor_set(x_40, 10, x_38); -x_41 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(x_14, x_5, x_6, x_7, x_8, x_40, x_10, x_11); +x_41 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11(x_14, x_5, x_6, x_7, x_8, x_40, x_10, x_11); lean_dec(x_40); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); @@ -51036,7 +48918,7 @@ x_31 = lean_ctor_get(x_3, 0); lean_inc(x_31); lean_dec(x_3); lean_inc(x_29); -x_32 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(x_29, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_32 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(x_29, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_28); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -51212,7 +49094,7 @@ x_29 = lean_usize_of_nat(x_23); lean_dec(x_23); lean_inc(x_9); lean_inc(x_5); -x_30 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__12(x_22, x_28, x_29, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_30 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__13(x_22, x_28, x_29, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_22); if (lean_obj_tag(x_30) == 0) { @@ -51529,6 +49411,20 @@ lean_dec(x_5); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_setEnv___at_Lean_Elab_Term_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* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Term_expandDeclId___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -51539,11 +49435,11 @@ x_11 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Term_expandDeclId___spec__5(x_ return x_11; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_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* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -51572,11 +49468,11 @@ x_17 = l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambd return x_17; } } -LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___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) { +LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Term_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* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10(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); @@ -51586,11 +49482,11 @@ lean_dec(x_3); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___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: { lean_object* x_10; -x_10 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_addDocString_x27___at_Lean_Elab_Term_expandDeclId___spec__9(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); @@ -51600,11 +49496,11 @@ lean_dec(x_3); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_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, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_throwError___at_Lean_Elab_Term_expandDeclId___spec__12(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); @@ -51613,11 +49509,11 @@ lean_dec(x_3); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_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* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_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, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11(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); @@ -51626,7 +49522,7 @@ lean_dec(x_3); return x_9; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___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, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -51634,7 +49530,7 @@ x_12 = lean_unbox_usize(x_2); lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); -x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__12(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__13(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -51690,7 +49586,7 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_withoutModifyingStateWithInfoAndMes return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -51700,7 +49596,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__2() { _start: { lean_object* x_1; @@ -51708,17 +49604,17 @@ x_1 = lean_mk_string_from_bytes("debug", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__2; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -51730,7 +49626,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__1; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -51738,7 +49634,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__3; +x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__3; x_9 = l_Lean_registerTraceClass(x_8, x_7); return x_9; } @@ -52670,28 +50566,6 @@ l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__15 = _init_l_Lean_Elab_T lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__15); l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__16 = _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__16(); lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__16); -l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__1 = _init_l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__1(); -lean_mark_persistent(l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__1); -l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__2 = _init_l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__2(); -lean_mark_persistent(l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__2); -l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__3 = _init_l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__3(); -lean_mark_persistent(l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__2___closed__3); -l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1 = _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1(); -lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__1); -l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2 = _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2(); -lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__2); -l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__3 = _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__3(); -lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__3); -l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4 = _init_l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4(); -lean_mark_persistent(l_List_foldlM___at_Lean_Elab_Term_evalExpr___spec__8___closed__4); -l_Lean_Elab_Term_evalExpr___rarg___closed__1 = _init_l_Lean_Elab_Term_evalExpr___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_evalExpr___rarg___closed__1); -l_Lean_Elab_Term_evalExpr___rarg___closed__2 = _init_l_Lean_Elab_Term_evalExpr___rarg___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_evalExpr___rarg___closed__2); -l_Lean_Elab_Term_evalExpr___rarg___closed__3 = _init_l_Lean_Elab_Term_evalExpr___rarg___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_evalExpr___rarg___closed__3); -l_Lean_Elab_Term_evalExpr___rarg___closed__4 = _init_l_Lean_Elab_Term_evalExpr___rarg___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_evalExpr___rarg___closed__4); l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__2(); @@ -52738,25 +50612,25 @@ l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__3 = lean_mark_persistent(l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__3); l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__4 = _init_l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__4(); lean_mark_persistent(l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__4); -l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1 = _init_l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1(); -lean_mark_persistent(l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__9___closed__1); -l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1 = _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1(); -lean_mark_persistent(l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1); -l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__2 = _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__2(); -lean_mark_persistent(l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___closed__2); +l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1 = _init_l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1(); +lean_mark_persistent(l_Lean_addDocString___at_Lean_Elab_Term_expandDeclId___spec__10___closed__1); +l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__1 = _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__1(); +lean_mark_persistent(l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__1); +l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__2 = _init_l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__2(); +lean_mark_persistent(l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__11___closed__2); l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___spec__1___closed__1 = _init_l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___spec__1___closed__1(); lean_mark_persistent(l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___spec__1___closed__1); l_Lean_Elab_Term_expandDeclId___closed__1 = _init_l_Lean_Elab_Term_expandDeclId___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_expandDeclId___closed__1); l_Lean_Elab_Term_expandDeclId___closed__2 = _init_l_Lean_Elab_Term_expandDeclId___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_expandDeclId___closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536____closed__3); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15536_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362____closed__3); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15362_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta.c b/stage0/stdlib/Lean/Meta.c index 27acbb1d1f..97bb61e404 100644 --- a/stage0/stdlib/Lean/Meta.c +++ b/stage0/stdlib/Lean/Meta.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta -// Imports: Init Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.CasesOn Lean.Meta.ExprLens Lean.Meta.ExprTraverse +// Imports: Init Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.CasesOn Lean.Meta.ExprLens Lean.Meta.ExprTraverse Lean.Meta.Eval #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -53,6 +53,7 @@ lean_object* initialize_Lean_Meta_Eqns(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_CasesOn(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_ExprLens(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_ExprTraverse(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Eval(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta(uint8_t builtin, lean_object* w) { lean_object * res; @@ -178,6 +179,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_ExprTraverse(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Eval(builtin, 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/Meta/Eval.c b/stage0/stdlib/Lean/Meta/Eval.c new file mode 100644 index 0000000000..74a92a5120 --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Eval.c @@ -0,0 +1,3229 @@ +// Lean compiler output +// Module: Lean.Meta.Eval +// Imports: Init Lean.Meta.Check +#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 +uint8_t l_Lean_isRecCore(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12(lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_name_mk_string(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_evalExprCore___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_isCasesOnRecursor(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27(lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_101_(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__1; +static lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_evalExpr___rarg___lambda__1___closed__1; +lean_object* l_Lean_replaceRef(lean_object*, lean_object*); +static lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(lean_object*, lean_object*); +lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_evalExprCore___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr(lean_object*); +static lean_object* l_Lean_Meta_evalExprCore___rarg___closed__2; +lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_evalExprCore(lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13(lean_object*); +uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); +static lean_object* l_Lean_Meta_evalExpr___rarg___lambda__1___closed__2; +static lean_object* l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_evalExprCore___rarg___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_evalExprCore___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__2; +static lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_evalExprCore___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_is_aux_recursor(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__3; +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Meta_evalExprCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Meta_evalExprCore___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14(lean_object*); +lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_compileDecl___at_Lean_Meta_evalExprCore___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Meta_evalExprCore___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); +uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); +uint8_t l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_indentExpr(lean_object*); +extern lean_object* l___private_Lean_MonadEnv_0__Lean_supportedRecursors; +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_add_decl(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_4, 2); +lean_inc(x_7); +x_8 = l_Lean_KernelException_toMessageData(x_1, x_7); +x_9 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_8, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +return x_9; +} +} +static lean_object* _init_l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("", 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_252; uint8_t x_253; +x_252 = 2; +x_253 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_101_(x_3, x_252); +if (x_253 == 0) +{ +lean_object* x_254; +x_254 = lean_box(0); +x_9 = x_254; +goto block_251; +} +else +{ +uint8_t x_255; +lean_inc(x_2); +x_255 = l_Lean_MessageData_hasSyntheticSorry(x_2); +if (x_255 == 0) +{ +lean_object* x_256; +x_256 = lean_box(0); +x_9 = x_256; +goto block_251; +} +else +{ +lean_object* x_257; lean_object* x_258; +lean_dec(x_2); +x_257 = lean_box(0); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_8); +return x_258; +} +} +block_251: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_9); +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +x_12 = lean_ctor_get(x_6, 5); +x_13 = lean_ctor_get(x_6, 6); +x_14 = lean_ctor_get(x_6, 7); +x_15 = l_Lean_replaceRef(x_1, x_12); +x_16 = 0; +x_17 = l_Lean_Syntax_getPos_x3f(x_15, x_16); +x_18 = l_Lean_Syntax_getTailPos_x3f(x_15, x_16); +if (lean_obj_tag(x_17) == 0) +{ +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; 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_19 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +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(0u); +x_23 = l_Lean_FileMap_toPosition(x_11, x_22); +lean_inc(x_23); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +lean_inc(x_14); +lean_inc(x_13); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_13); +lean_ctor_set(x_25, 1, x_14); +x_26 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_20); +x_27 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +lean_inc(x_10); +x_28 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_28, 0, x_10); +lean_ctor_set(x_28, 1, x_23); +lean_ctor_set(x_28, 2, x_24); +lean_ctor_set(x_28, 3, x_27); +lean_ctor_set(x_28, 4, x_26); +lean_ctor_set_uint8(x_28, sizeof(void*)*5, x_3); +x_29 = lean_st_ref_take(x_7, x_21); +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_is_exclusive(x_30); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = lean_ctor_get(x_30, 5); +x_34 = l_Std_PersistentArray_push___rarg(x_33, x_28); +lean_ctor_set(x_30, 5, x_34); +x_35 = lean_st_ref_set(x_7, x_30, x_31); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +x_38 = lean_box(0); +lean_ctor_set(x_35, 0, x_38); +return x_35; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +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; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_42 = lean_ctor_get(x_30, 0); +x_43 = lean_ctor_get(x_30, 1); +x_44 = lean_ctor_get(x_30, 2); +x_45 = lean_ctor_get(x_30, 3); +x_46 = lean_ctor_get(x_30, 4); +x_47 = lean_ctor_get(x_30, 5); +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_30); +x_48 = l_Std_PersistentArray_push___rarg(x_47, x_28); +x_49 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_49, 0, x_42); +lean_ctor_set(x_49, 1, x_43); +lean_ctor_set(x_49, 2, x_44); +lean_ctor_set(x_49, 3, x_45); +lean_ctor_set(x_49, 4, x_46); +lean_ctor_set(x_49, 5, x_48); +x_50 = lean_st_ref_set(x_7, x_49, x_31); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_52 = x_50; +} else { + lean_dec_ref(x_50); + x_52 = lean_box(0); +} +x_53 = lean_box(0); +if (lean_is_scalar(x_52)) { + x_54 = lean_alloc_ctor(0, 2, 0); +} else { + x_54 = x_52; +} +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_51); +return x_54; +} +} +else +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_18); +if (x_55 == 0) +{ +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; uint8_t x_70; +x_56 = lean_ctor_get(x_18, 0); +x_57 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +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_unsigned_to_nat(0u); +x_61 = l_Lean_FileMap_toPosition(x_11, x_60); +x_62 = l_Lean_FileMap_toPosition(x_11, x_56); +lean_dec(x_56); +lean_ctor_set(x_18, 0, x_62); +lean_inc(x_14); +lean_inc(x_13); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_13); +lean_ctor_set(x_63, 1, x_14); +x_64 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_58); +x_65 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +lean_inc(x_10); +x_66 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_66, 0, x_10); +lean_ctor_set(x_66, 1, x_61); +lean_ctor_set(x_66, 2, x_18); +lean_ctor_set(x_66, 3, x_65); +lean_ctor_set(x_66, 4, x_64); +lean_ctor_set_uint8(x_66, sizeof(void*)*5, x_3); +x_67 = lean_st_ref_take(x_7, x_59); +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); +x_70 = !lean_is_exclusive(x_68); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_71 = lean_ctor_get(x_68, 5); +x_72 = l_Std_PersistentArray_push___rarg(x_71, x_66); +lean_ctor_set(x_68, 5, x_72); +x_73 = lean_st_ref_set(x_7, x_68, x_69); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +x_76 = lean_box(0); +lean_ctor_set(x_73, 0, x_76); +return x_73; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_73, 1); +lean_inc(x_77); +lean_dec(x_73); +x_78 = lean_box(0); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_80 = lean_ctor_get(x_68, 0); +x_81 = lean_ctor_get(x_68, 1); +x_82 = lean_ctor_get(x_68, 2); +x_83 = lean_ctor_get(x_68, 3); +x_84 = lean_ctor_get(x_68, 4); +x_85 = lean_ctor_get(x_68, 5); +lean_inc(x_85); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_68); +x_86 = l_Std_PersistentArray_push___rarg(x_85, x_66); +x_87 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_87, 0, x_80); +lean_ctor_set(x_87, 1, x_81); +lean_ctor_set(x_87, 2, x_82); +lean_ctor_set(x_87, 3, x_83); +lean_ctor_set(x_87, 4, x_84); +lean_ctor_set(x_87, 5, x_86); +x_88 = lean_st_ref_set(x_7, x_87, x_69); +x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_90 = x_88; +} else { + lean_dec_ref(x_88); + x_90 = lean_box(0); +} +x_91 = lean_box(0); +if (lean_is_scalar(x_90)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_90; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_89); +return x_92; +} +} +else +{ +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; +x_93 = lean_ctor_get(x_18, 0); +lean_inc(x_93); +lean_dec(x_18); +x_94 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_unsigned_to_nat(0u); +x_98 = l_Lean_FileMap_toPosition(x_11, x_97); +x_99 = l_Lean_FileMap_toPosition(x_11, x_93); +lean_dec(x_93); +x_100 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_100, 0, x_99); +lean_inc(x_14); +lean_inc(x_13); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_13); +lean_ctor_set(x_101, 1, x_14); +x_102 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_95); +x_103 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +lean_inc(x_10); +x_104 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_104, 0, x_10); +lean_ctor_set(x_104, 1, x_98); +lean_ctor_set(x_104, 2, x_100); +lean_ctor_set(x_104, 3, x_103); +lean_ctor_set(x_104, 4, x_102); +lean_ctor_set_uint8(x_104, sizeof(void*)*5, x_3); +x_105 = lean_st_ref_take(x_7, x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_ctor_get(x_106, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_106, 1); +lean_inc(x_109); +x_110 = lean_ctor_get(x_106, 2); +lean_inc(x_110); +x_111 = lean_ctor_get(x_106, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_106, 4); +lean_inc(x_112); +x_113 = lean_ctor_get(x_106, 5); +lean_inc(x_113); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + lean_ctor_release(x_106, 2); + lean_ctor_release(x_106, 3); + lean_ctor_release(x_106, 4); + lean_ctor_release(x_106, 5); + x_114 = x_106; +} else { + lean_dec_ref(x_106); + x_114 = lean_box(0); +} +x_115 = l_Std_PersistentArray_push___rarg(x_113, x_104); +if (lean_is_scalar(x_114)) { + x_116 = lean_alloc_ctor(0, 6, 0); +} else { + x_116 = x_114; +} +lean_ctor_set(x_116, 0, x_108); +lean_ctor_set(x_116, 1, x_109); +lean_ctor_set(x_116, 2, x_110); +lean_ctor_set(x_116, 3, x_111); +lean_ctor_set(x_116, 4, x_112); +lean_ctor_set(x_116, 5, x_115); +x_117 = lean_st_ref_set(x_7, x_116, x_107); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_119 = x_117; +} else { + lean_dec_ref(x_117); + x_119 = lean_box(0); +} +x_120 = lean_box(0); +if (lean_is_scalar(x_119)) { + x_121 = lean_alloc_ctor(0, 2, 0); +} else { + x_121 = x_119; +} +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_118); +return x_121; +} +} +} +else +{ +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_122; +x_122 = !lean_is_exclusive(x_17); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_123 = lean_ctor_get(x_17, 0); +x_124 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +x_127 = l_Lean_FileMap_toPosition(x_11, x_123); +lean_dec(x_123); +lean_inc(x_127); +lean_ctor_set(x_17, 0, x_127); +lean_inc(x_14); +lean_inc(x_13); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_13); +lean_ctor_set(x_128, 1, x_14); +x_129 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +x_130 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +lean_inc(x_10); +x_131 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_131, 0, x_10); +lean_ctor_set(x_131, 1, x_127); +lean_ctor_set(x_131, 2, x_17); +lean_ctor_set(x_131, 3, x_130); +lean_ctor_set(x_131, 4, x_129); +lean_ctor_set_uint8(x_131, sizeof(void*)*5, x_3); +x_132 = lean_st_ref_take(x_7, x_126); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = !lean_is_exclusive(x_133); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; +x_136 = lean_ctor_get(x_133, 5); +x_137 = l_Std_PersistentArray_push___rarg(x_136, x_131); +lean_ctor_set(x_133, 5, x_137); +x_138 = lean_st_ref_set(x_7, x_133, x_134); +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) +{ +lean_object* x_140; lean_object* x_141; +x_140 = lean_ctor_get(x_138, 0); +lean_dec(x_140); +x_141 = lean_box(0); +lean_ctor_set(x_138, 0, x_141); +return x_138; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_138, 1); +lean_inc(x_142); +lean_dec(x_138); +x_143 = lean_box(0); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +return x_144; +} +} +else +{ +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_145 = lean_ctor_get(x_133, 0); +x_146 = lean_ctor_get(x_133, 1); +x_147 = lean_ctor_get(x_133, 2); +x_148 = lean_ctor_get(x_133, 3); +x_149 = lean_ctor_get(x_133, 4); +x_150 = lean_ctor_get(x_133, 5); +lean_inc(x_150); +lean_inc(x_149); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_133); +x_151 = l_Std_PersistentArray_push___rarg(x_150, x_131); +x_152 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_152, 0, x_145); +lean_ctor_set(x_152, 1, x_146); +lean_ctor_set(x_152, 2, x_147); +lean_ctor_set(x_152, 3, x_148); +lean_ctor_set(x_152, 4, x_149); +lean_ctor_set(x_152, 5, x_151); +x_153 = lean_st_ref_set(x_7, x_152, x_134); +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 +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_158 = lean_ctor_get(x_17, 0); +lean_inc(x_158); +lean_dec(x_17); +x_159 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +lean_dec(x_159); +x_162 = l_Lean_FileMap_toPosition(x_11, x_158); +lean_dec(x_158); +lean_inc(x_162); +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_162); +lean_inc(x_14); +lean_inc(x_13); +x_164 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_164, 0, x_13); +lean_ctor_set(x_164, 1, x_14); +x_165 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_160); +x_166 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +lean_inc(x_10); +x_167 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_167, 0, x_10); +lean_ctor_set(x_167, 1, x_162); +lean_ctor_set(x_167, 2, x_163); +lean_ctor_set(x_167, 3, x_166); +lean_ctor_set(x_167, 4, x_165); +lean_ctor_set_uint8(x_167, sizeof(void*)*5, x_3); +x_168 = lean_st_ref_take(x_7, x_161); +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +lean_dec(x_168); +x_171 = lean_ctor_get(x_169, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_169, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_169, 2); +lean_inc(x_173); +x_174 = lean_ctor_get(x_169, 3); +lean_inc(x_174); +x_175 = lean_ctor_get(x_169, 4); +lean_inc(x_175); +x_176 = lean_ctor_get(x_169, 5); +lean_inc(x_176); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + lean_ctor_release(x_169, 2); + lean_ctor_release(x_169, 3); + lean_ctor_release(x_169, 4); + lean_ctor_release(x_169, 5); + x_177 = x_169; +} else { + lean_dec_ref(x_169); + x_177 = lean_box(0); +} +x_178 = l_Std_PersistentArray_push___rarg(x_176, x_167); +if (lean_is_scalar(x_177)) { + x_179 = lean_alloc_ctor(0, 6, 0); +} else { + x_179 = x_177; +} +lean_ctor_set(x_179, 0, x_171); +lean_ctor_set(x_179, 1, x_172); +lean_ctor_set(x_179, 2, x_173); +lean_ctor_set(x_179, 3, x_174); +lean_ctor_set(x_179, 4, x_175); +lean_ctor_set(x_179, 5, x_178); +x_180 = lean_st_ref_set(x_7, x_179, x_170); +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); +} +x_183 = lean_box(0); +if (lean_is_scalar(x_182)) { + x_184 = lean_alloc_ctor(0, 2, 0); +} else { + x_184 = x_182; +} +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_181); +return x_184; +} +} +else +{ +lean_object* x_185; uint8_t x_186; +x_185 = lean_ctor_get(x_17, 0); +lean_inc(x_185); +lean_dec(x_17); +x_186 = !lean_is_exclusive(x_18); +if (x_186 == 0) +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_187 = lean_ctor_get(x_18, 0); +x_188 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +lean_dec(x_188); +x_191 = l_Lean_FileMap_toPosition(x_11, x_185); +lean_dec(x_185); +x_192 = l_Lean_FileMap_toPosition(x_11, x_187); +lean_dec(x_187); +lean_ctor_set(x_18, 0, x_192); +lean_inc(x_14); +lean_inc(x_13); +x_193 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_193, 0, x_13); +lean_ctor_set(x_193, 1, x_14); +x_194 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_189); +x_195 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +lean_inc(x_10); +x_196 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_196, 0, x_10); +lean_ctor_set(x_196, 1, x_191); +lean_ctor_set(x_196, 2, x_18); +lean_ctor_set(x_196, 3, x_195); +lean_ctor_set(x_196, 4, x_194); +lean_ctor_set_uint8(x_196, sizeof(void*)*5, x_3); +x_197 = lean_st_ref_take(x_7, x_190); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = !lean_is_exclusive(x_198); +if (x_200 == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; +x_201 = lean_ctor_get(x_198, 5); +x_202 = l_Std_PersistentArray_push___rarg(x_201, x_196); +lean_ctor_set(x_198, 5, x_202); +x_203 = lean_st_ref_set(x_7, x_198, x_199); +x_204 = !lean_is_exclusive(x_203); +if (x_204 == 0) +{ +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_203, 0); +lean_dec(x_205); +x_206 = lean_box(0); +lean_ctor_set(x_203, 0, x_206); +return x_203; +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_203, 1); +lean_inc(x_207); +lean_dec(x_203); +x_208 = lean_box(0); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +} +else +{ +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; +x_210 = lean_ctor_get(x_198, 0); +x_211 = lean_ctor_get(x_198, 1); +x_212 = lean_ctor_get(x_198, 2); +x_213 = lean_ctor_get(x_198, 3); +x_214 = lean_ctor_get(x_198, 4); +x_215 = lean_ctor_get(x_198, 5); +lean_inc(x_215); +lean_inc(x_214); +lean_inc(x_213); +lean_inc(x_212); +lean_inc(x_211); +lean_inc(x_210); +lean_dec(x_198); +x_216 = l_Std_PersistentArray_push___rarg(x_215, x_196); +x_217 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_217, 0, x_210); +lean_ctor_set(x_217, 1, x_211); +lean_ctor_set(x_217, 2, x_212); +lean_ctor_set(x_217, 3, x_213); +lean_ctor_set(x_217, 4, x_214); +lean_ctor_set(x_217, 5, x_216); +x_218 = lean_st_ref_set(x_7, x_217, x_199); +x_219 = lean_ctor_get(x_218, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_218)) { + lean_ctor_release(x_218, 0); + lean_ctor_release(x_218, 1); + x_220 = x_218; +} else { + lean_dec_ref(x_218); + x_220 = lean_box(0); +} +x_221 = lean_box(0); +if (lean_is_scalar(x_220)) { + x_222 = lean_alloc_ctor(0, 2, 0); +} else { + x_222 = x_220; +} +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_219); +return x_222; +} +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_223 = lean_ctor_get(x_18, 0); +lean_inc(x_223); +lean_dec(x_18); +x_224 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +lean_dec(x_224); +x_227 = l_Lean_FileMap_toPosition(x_11, x_185); +lean_dec(x_185); +x_228 = l_Lean_FileMap_toPosition(x_11, x_223); +lean_dec(x_223); +x_229 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_229, 0, x_228); +lean_inc(x_14); +lean_inc(x_13); +x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_230, 0, x_13); +lean_ctor_set(x_230, 1, x_14); +x_231 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_225); +x_232 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +lean_inc(x_10); +x_233 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_233, 0, x_10); +lean_ctor_set(x_233, 1, x_227); +lean_ctor_set(x_233, 2, x_229); +lean_ctor_set(x_233, 3, x_232); +lean_ctor_set(x_233, 4, x_231); +lean_ctor_set_uint8(x_233, sizeof(void*)*5, x_3); +x_234 = lean_st_ref_take(x_7, x_226); +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); +lean_inc(x_236); +lean_dec(x_234); +x_237 = lean_ctor_get(x_235, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_235, 1); +lean_inc(x_238); +x_239 = lean_ctor_get(x_235, 2); +lean_inc(x_239); +x_240 = lean_ctor_get(x_235, 3); +lean_inc(x_240); +x_241 = lean_ctor_get(x_235, 4); +lean_inc(x_241); +x_242 = lean_ctor_get(x_235, 5); +lean_inc(x_242); +if (lean_is_exclusive(x_235)) { + lean_ctor_release(x_235, 0); + lean_ctor_release(x_235, 1); + lean_ctor_release(x_235, 2); + lean_ctor_release(x_235, 3); + lean_ctor_release(x_235, 4); + lean_ctor_release(x_235, 5); + x_243 = x_235; +} else { + lean_dec_ref(x_235); + x_243 = lean_box(0); +} +x_244 = l_Std_PersistentArray_push___rarg(x_242, x_233); +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(0, 6, 0); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_237); +lean_ctor_set(x_245, 1, x_238); +lean_ctor_set(x_245, 2, x_239); +lean_ctor_set(x_245, 3, x_240); +lean_ctor_set(x_245, 4, x_241); +lean_ctor_set(x_245, 5, x_244); +x_246 = lean_st_ref_set(x_7, x_245, x_236); +x_247 = lean_ctor_get(x_246, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_248 = x_246; +} else { + lean_dec_ref(x_246); + x_248 = lean_box(0); +} +x_249 = lean_box(0); +if (lean_is_scalar(x_248)) { + x_250 = lean_alloc_ctor(0, 2, 0); +} else { + x_250 = x_248; +} +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_247); +return x_250; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Meta_evalExprCore___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_5, 5); +lean_inc(x_8); +x_9 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5(x_8, 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_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___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_dec(x_2); +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_add_decl(x_11, x_1); +lean_dec(x_1); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___spec__3(x_13, x_3, x_4, x_5, x_6, x_10); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +x_16 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_15, x_3, x_4, x_5, x_6, x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_16; +} +} +} +static lean_object* _init_l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("declaration uses 'sorry'", 24); +return x_1; +} +} +static lean_object* _init_l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___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_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_st_ref_get(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_ctor_get(x_8, 5); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(x_10); +if (x_11 == 0) +{ +uint8_t x_12; uint8_t x_13; +x_12 = 0; +lean_inc(x_1); +x_13 = l_Lean_Declaration_foldExprM___at_Lean_Declaration_hasSorry___spec__1(x_1, x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___lambda__1(x_1, x_14, x_2, x_3, x_4, x_5, x_9); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_16 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__3; +x_17 = 1; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_18 = l_Lean_log___at_Lean_Meta_evalExprCore___spec__4(x_16, x_17, x_2, x_3, x_4, x_5, x_9); +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_addDecl___at_Lean_Meta_evalExprCore___spec__2___lambda__1(x_1, x_19, x_2, x_3, x_4, x_5, x_20); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___lambda__1(x_1, x_22, x_2, x_3, x_4, x_5, x_9); +return x_23; +} +} +} +LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 4) +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +lean_dec(x_2); +lean_inc(x_3); +lean_inc(x_1); +x_4 = lean_is_aux_recursor(x_1, x_3); +if (x_4 == 0) +{ +uint8_t x_5; +lean_inc(x_3); +x_5 = l_Lean_isRecCore(x_1, x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; +x_8 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_7, x_3); +lean_dec(x_3); +if (x_8 == 0) +{ +uint8_t x_9; +x_9 = 1; +return x_9; +} +else +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +} +} +else +{ +uint8_t x_11; +lean_inc(x_3); +lean_inc(x_1); +x_11 = l_Lean_isCasesOnRecursor(x_1, x_3); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +lean_dec(x_1); +x_12 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; +x_13 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_12, x_3); +lean_dec(x_3); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 1; +return x_14; +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +else +{ +uint8_t x_16; +lean_inc(x_3); +x_16 = l_Lean_isRecCore(x_1, x_3); +if (x_16 == 0) +{ +uint8_t x_17; +lean_dec(x_3); +x_17 = 0; +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = l___private_Lean_MonadEnv_0__Lean_supportedRecursors; +x_19 = l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(x_18, x_3); +lean_dec(x_3); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = 1; +return x_20; +} +else +{ +uint8_t x_21; +x_21 = 0; +return x_21; +} +} +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_2); +lean_dec(x_1); +x_22 = 0; +return x_22; +} +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("code generator does not support recursor '", 42); +return x_1; +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("' yet, consider using 'match ... with' and/or structural recursion", 66); +return x_1; +} +} +static lean_object* _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_9; +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_2); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_2); +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_3, 1); +lean_inc(x_11); +lean_dec(x_3); +x_33 = lean_ctor_get(x_10, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_33, 2); +lean_inc(x_34); +lean_dec(x_33); +lean_inc(x_1); +x_35 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_35, 0, x_1); +x_36 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_35, x_34); +if (lean_obj_tag(x_36) == 0) +{ +x_12 = x_8; +goto block_32; +} +else +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +if (lean_obj_tag(x_37) == 4) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_43, x_4, x_5, x_6, x_7, x_8); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +return x_44; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +else +{ +lean_dec(x_37); +x_12 = x_8; +goto block_32; +} +} +block_32: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +lean_inc(x_1); +x_14 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_14, 0, x_1); +x_15 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_14, x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_box(0); +x_2 = x_16; +x_3 = x_11; +x_8 = x_12; +goto _start; +} +else +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_18); +lean_dec(x_15); +if (lean_obj_tag(x_18) == 4) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_dec(x_11); +lean_dec(x_1); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_24, x_4, x_5, x_6, x_7, x_12); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_25; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +lean_object* x_30; +lean_dec(x_18); +x_30 = lean_box(0); +x_2 = x_30; +x_3 = x_11; +x_8 = x_12; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_9; +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_2); +lean_ctor_set(x_9, 1, x_8); +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_dec(x_2); +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_3, 1); +lean_inc(x_11); +lean_dec(x_3); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +lean_inc(x_1); +x_13 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_13, 0, x_1); +x_14 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_13, x_12); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_box(0); +x_2 = x_15; +x_3 = x_11; +goto _start; +} +else +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_17); +lean_dec(x_14); +if (lean_obj_tag(x_17) == 4) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_dec(x_11); +lean_dec(x_1); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_21 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_23, x_4, x_5, x_6, x_7, x_8); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +return x_24; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_24); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +lean_object* x_29; +lean_dec(x_17); +x_29 = lean_box(0); +x_2 = x_29; +x_3 = x_11; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_9; +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_2); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_2); +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_3, 1); +lean_inc(x_11); +lean_dec(x_3); +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); +lean_inc(x_1); +x_22 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_22, 0, x_1); +x_23 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_22, x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_10, 2); +lean_inc(x_24); +lean_dec(x_10); +x_25 = lean_box(0); +lean_inc(x_1); +x_26 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__10(x_1, x_25, x_24, x_4, x_5, x_6, x_7, x_8); +x_12 = x_26; +goto block_20; +} +else +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_23, 0); +lean_inc(x_27); +lean_dec(x_23); +if (lean_obj_tag(x_27) == 4) +{ +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; +lean_dec(x_10); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_33, x_4, x_5, x_6, x_7, x_8); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +x_12 = x_34; +goto block_20; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_12 = x_38; +goto block_20; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_27); +x_39 = lean_ctor_get(x_10, 2); +lean_inc(x_39); +lean_dec(x_10); +x_40 = lean_box(0); +lean_inc(x_1); +x_41 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__10(x_1, x_40, x_39, x_4, x_5, x_6, x_7, x_8); +x_12 = x_41; +goto block_20; +} +} +block_20: +{ +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +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_2 = x_13; +x_3 = x_11; +x_8 = x_14; +goto _start; +} +else +{ +uint8_t x_16; +lean_dec(x_11); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ +return x_12; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_12); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_evalExprCore___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_3); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_dec(x_2); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_10, 2); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_12, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +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_8); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_13, 0); +lean_inc(x_16); +lean_dec(x_13); +if (lean_obj_tag(x_16) == 4) +{ +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; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_22, x_4, x_5, x_6, x_7, x_8); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_16); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_8); +return x_25; +} +} +} +case 1: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_46; lean_object* x_47; +lean_dec(x_3); +x_26 = lean_ctor_get(x_2, 0); +lean_inc(x_26); +lean_dec(x_2); +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_ctor_get(x_27, 2); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_1); +x_46 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_46, 0, x_1); +x_47 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_46, x_29); +if (lean_obj_tag(x_47) == 0) +{ +x_30 = x_8; +goto block_45; +} +else +{ +lean_object* x_48; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +lean_dec(x_47); +if (lean_obj_tag(x_48) == 4) +{ +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; uint8_t x_56; +lean_dec(x_28); +lean_dec(x_1); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +lean_dec(x_48); +x_50 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +x_53 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_54, x_4, x_5, x_6, x_7, x_8); +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +return x_55; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_55, 0); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_55); +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 +{ +lean_dec(x_48); +x_30 = x_8; +goto block_45; +} +} +block_45: +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_31, 0, x_1); +x_32 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_31, x_28); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +return x_34; +} +else +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_32, 0); +lean_inc(x_35); +lean_dec(x_32); +if (lean_obj_tag(x_35) == 4) +{ +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_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_38 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_41, x_4, x_5, x_6, x_7, x_30); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_35); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_30); +return x_44; +} +} +} +} +case 2: +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_80; lean_object* x_81; +lean_dec(x_3); +x_60 = lean_ctor_get(x_2, 0); +lean_inc(x_60); +lean_dec(x_2); +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_ctor_get(x_61, 2); +lean_inc(x_63); +lean_dec(x_61); +lean_inc(x_1); +x_80 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_80, 0, x_1); +x_81 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_80, x_63); +if (lean_obj_tag(x_81) == 0) +{ +x_64 = x_8; +goto block_79; +} +else +{ +lean_object* x_82; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +lean_dec(x_81); +if (lean_obj_tag(x_82) == 4) +{ +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; +lean_dec(x_62); +lean_dec(x_1); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +lean_dec(x_82); +x_84 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_85 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_86 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_84); +x_87 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_88 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +x_89 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_88, x_4, x_5, x_6, x_7, x_8); +x_90 = !lean_is_exclusive(x_89); +if (x_90 == 0) +{ +return x_89; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_89, 0); +x_92 = lean_ctor_get(x_89, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_89); +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; +} +} +else +{ +lean_dec(x_82); +x_64 = x_8; +goto block_79; +} +} +block_79: +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_65, 0, x_1); +x_66 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_65, x_62); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_64); +return x_68; +} +else +{ +lean_object* x_69; +x_69 = lean_ctor_get(x_66, 0); +lean_inc(x_69); +lean_dec(x_66); +if (lean_obj_tag(x_69) == 4) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +lean_dec(x_69); +x_71 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_71, 0, x_70); +x_72 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_73 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_71); +x_74 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_75 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_75, x_4, x_5, x_6, x_7, x_64); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; +lean_dec(x_69); +x_77 = lean_box(0); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_64); +return x_78; +} +} +} +} +case 3: +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_114; lean_object* x_115; +lean_dec(x_3); +x_94 = lean_ctor_get(x_2, 0); +lean_inc(x_94); +lean_dec(x_2); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_ctor_get(x_95, 2); +lean_inc(x_97); +lean_dec(x_95); +lean_inc(x_1); +x_114 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_114, 0, x_1); +x_115 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_114, x_97); +if (lean_obj_tag(x_115) == 0) +{ +x_98 = x_8; +goto block_113; +} +else +{ +lean_object* x_116; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +lean_dec(x_115); +if (lean_obj_tag(x_116) == 4) +{ +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; uint8_t x_124; +lean_dec(x_96); +lean_dec(x_1); +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +lean_dec(x_116); +x_118 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_118, 0, x_117); +x_119 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_120 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); +x_121 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_122 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_122, x_4, x_5, x_6, x_7, x_8); +x_124 = !lean_is_exclusive(x_123); +if (x_124 == 0) +{ +return x_123; +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_123, 0); +x_126 = lean_ctor_get(x_123, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_123); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; +} +} +else +{ +lean_dec(x_116); +x_98 = x_8; +goto block_113; +} +} +block_113: +{ +lean_object* x_99; lean_object* x_100; +x_99 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed), 2, 1); +lean_closure_set(x_99, 0, x_1); +x_100 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_99, x_96); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_box(0); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_98); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_ctor_get(x_100, 0); +lean_inc(x_103); +lean_dec(x_100); +if (lean_obj_tag(x_103) == 4) +{ +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; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +lean_dec(x_103); +x_105 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_105, 0, x_104); +x_106 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2; +x_107 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_105); +x_108 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4; +x_109 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_109, x_4, x_5, x_6, x_7, x_98); +return x_110; +} +else +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_103); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_98); +return x_112; +} +} +} +} +case 4: +{ +lean_object* x_128; +lean_dec(x_1); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_3); +lean_ctor_set(x_128, 1, x_8); +return x_128; +} +case 5: +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_ctor_get(x_2, 0); +lean_inc(x_129); +lean_dec(x_2); +x_130 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9(x_1, x_3, x_129, x_4, x_5, x_6, x_7, x_8); +return x_130; +} +default: +{ +lean_object* x_131; lean_object* x_132; +x_131 = lean_ctor_get(x_2, 2); +lean_inc(x_131); +lean_dec(x_2); +x_132 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__11(x_1, x_3, x_131, x_4, x_5, x_6, x_7, x_8); +return x_132; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Meta_evalExprCore___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_st_ref_get(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_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_Declaration_foldExprM___at_Lean_Meta_evalExprCore___spec__8(x_10, x_1, x_11, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_compileDecl___at_Lean_Meta_evalExprCore___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_st_ref_get(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_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_ctor_get(x_4, 2); +lean_inc(x_11); +x_12 = lean_compile_decl(x_10, x_11, x_1); +lean_dec(x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +if (lean_obj_tag(x_13) == 11) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_15 = l___private_Lean_MonadEnv_0__Lean_checkUnsupported___at_Lean_Meta_evalExprCore___spec__7(x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(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_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_17, 0, x_14); +x_18 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_18, x_2, x_3, x_4, x_5, x_16); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +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 +{ +lean_object* x_24; +lean_dec(x_1); +x_24 = l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___spec__3(x_13, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_24; +} +} +else +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_1); +x_25 = lean_ctor_get(x_12, 0); +lean_inc(x_25); +lean_dec(x_12); +x_26 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_25, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_26; +} +} +} +LEAN_EXPORT lean_object* l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___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) { +_start: +{ +lean_object* x_7; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_7 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +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); +x_9 = l_Lean_compileDecl___at_Lean_Meta_evalExprCore___spec__6(x_1, x_2, x_3, x_4, x_5, x_8); +return x_9; +} +else +{ +uint8_t x_10; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +return x_7; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_7); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 5); +x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +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); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +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); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +lean_dec(x_1); +x_8 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_8, 0, x_7); +x_9 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14___rarg(x_9, x_2, x_3, x_4, x_5, x_6); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); +lean_dec(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_6); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_st_ref_get(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_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_ctor_get(x_4, 2); +x_12 = lean_eval_const(x_10, x_11, x_1); +lean_dec(x_1); +lean_dec(x_10); +x_13 = l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13___rarg(x_12, x_2, x_3, x_4, x_5, x_9); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12___rarg___boxed), 6, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_evalExprCore___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("_tmp", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_evalExprCore___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_Meta_evalExprCore___rarg___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExprCore___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Meta_evalExprCore___rarg___closed__2; +x_14 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_13, x_6, x_7, x_11); +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); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_17 = lean_infer_type(x_1, x_4, x_5, x_6, x_7, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_18); +x_20 = lean_apply_6(x_2, x_18, x_4, x_5, x_6, x_7, x_19); +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; lean_object* x_27; lean_object* x_28; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_box(0); +lean_inc(x_15); +x_23 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_23, 0, x_15); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 2, x_18); +lean_inc(x_15); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_15); +lean_ctor_set(x_24, 1, x_22); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_26, 1, x_1); +lean_ctor_set(x_26, 2, x_25); +lean_ctor_set(x_26, 3, x_24); +lean_ctor_set_uint8(x_26, sizeof(void*)*4, x_3); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_28 = l_Lean_addAndCompile___at_Lean_Meta_evalExprCore___spec__1(x_27, x_4, x_5, x_6, x_7, x_21); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12___rarg(x_15, x_4, x_5, x_6, x_7, x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_32); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_35); +lean_ctor_set(x_33, 0, x_31); +return x_33; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_31); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_30, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_30, 1); +lean_inc(x_39); +lean_dec(x_30); +x_40 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_39); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set_tag(x_40, 1); +lean_ctor_set(x_40, 0, x_38); +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_dec(x_15); +x_45 = lean_ctor_get(x_28, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_28, 1); +lean_inc(x_46); +lean_dec(x_28); +x_47 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_46); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +lean_object* x_49; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +lean_ctor_set_tag(x_47, 1); +lean_ctor_set(x_47, 0, x_45); +return x_47; +} +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_dec(x_47); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_45); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_1); +x_52 = lean_ctor_get(x_20, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_20, 1); +lean_inc(x_53); +lean_dec(x_20); +x_54 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_53); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +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_15); +lean_dec(x_2); +lean_dec(x_1); +x_59 = lean_ctor_get(x_17, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_17, 1); +lean_inc(x_60); +lean_dec(x_17); +x_61 = l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(x_12, x_4, x_5, x_6, x_7, x_60); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExprCore(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_evalExprCore___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Meta_evalExprCore___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) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5(x_1, x_2, x_9, 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_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Meta_evalExprCore___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) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_log___at_Lean_Meta_evalExprCore___spec__4(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___lambda__1(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___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) { +_start: +{ +lean_object* x_9; +x_9 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9(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); +return x_9; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___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) { +_start: +{ +lean_object* x_9; +x_9 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__10(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); +return x_9; +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_evalExprCore___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) { +_start: +{ +lean_object* x_9; +x_9 = l_List_foldlM___at_Lean_Meta_evalExprCore___spec__11(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); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Declaration_foldExprM___at_Lean_Meta_evalExprCore___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Declaration_foldExprM___at_Lean_Meta_evalExprCore___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at_Lean_Meta_evalExprCore___spec__14___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_ofExcept___at_Lean_Meta_evalExprCore___spec__13___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_evalConst___at_Lean_Meta_evalExprCore___spec__12___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExprCore___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_Meta_evalExprCore___rarg(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +static lean_object* _init_l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unexpected type at evalExpr", 27); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_8 = l_Lean_Meta_whnfD(x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = l_Lean_Expr_isConstOf(x_10, x_1); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_free_object(x_8); +x_13 = l_Lean_indentExpr(x_10); +x_14 = l_Lean_Meta_evalExpr_x27___rarg___lambda__1___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_Meta_evalExpr_x27___rarg___lambda__1___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_Meta_setInlineAttribute___spec__1(x_17, x_3, x_4, x_5, x_6, x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_18; +} +else +{ +lean_object* x_19; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_19 = lean_box(0); +lean_ctor_set(x_8, 0, x_19); +return x_8; +} +} +else +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_8); +x_22 = l_Lean_Expr_isConstOf(x_20, x_1); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_23 = l_Lean_indentExpr(x_20); +x_24 = l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__2; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__3; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_27, x_3, x_4, x_5, x_6, x_21); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_20); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_29 = lean_box(0); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_21); +return x_30; +} +} +} +else +{ +uint8_t x_31; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_8); +if (x_31 == 0) +{ +return x_8; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +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 = 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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_evalExpr_x27___rarg___lambda__1___boxed), 7, 1); +lean_closure_set(x_9, 0, x_1); +x_10 = l_Lean_Meta_evalExprCore___rarg(x_2, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_evalExpr_x27___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_evalExpr_x27___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr_x27___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_Meta_evalExpr_x27___rarg(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +static lean_object* _init_l_Lean_Meta_evalExpr___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("unexpected type at `evalExpr` ", 30); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_evalExpr___rarg___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_evalExpr___rarg___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +lean_inc(x_2); +x_8 = l_Lean_Meta_isExprDefEq(x_2, x_1, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_unbox(x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_dec(x_8); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_12 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_2, x_1, x_3, x_4, x_5, x_6, 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 = l_Lean_Meta_evalExpr___rarg___lambda__1___closed__2; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +x_17 = l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__3; +x_18 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_18, x_3, x_4, x_5, x_6, x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_8); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_8, 0); +lean_dec(x_21); +x_22 = lean_box(0); +lean_ctor_set(x_8, 0, x_22); +return x_8; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_dec(x_8); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_8); +if (x_26 == 0) +{ +return x_8; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_8, 0); +x_28 = lean_ctor_get(x_8, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_8); +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_EXPORT lean_object* l_Lean_Meta_evalExpr___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_evalExpr___rarg___lambda__1), 7, 1); +lean_closure_set(x_9, 0, x_1); +x_10 = l_Lean_Meta_evalExprCore___rarg(x_2, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_evalExpr___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_evalExpr___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); +lean_dec(x_3); +x_10 = l_Lean_Meta_evalExpr___rarg(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +lean_object* initialize_Init(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Check(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Eval(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Check(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1 = _init_l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1(); +lean_mark_persistent(l_Lean_logAt___at_Lean_Meta_evalExprCore___spec__5___closed__1); +l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__1 = _init_l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__1(); +lean_mark_persistent(l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__1); +l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__2 = _init_l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__2(); +lean_mark_persistent(l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__2); +l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__3 = _init_l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__3(); +lean_mark_persistent(l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2___closed__3); +l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__1 = _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__1(); +lean_mark_persistent(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__1); +l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2 = _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2(); +lean_mark_persistent(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__2); +l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__3 = _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__3(); +lean_mark_persistent(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__3); +l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4 = _init_l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4(); +lean_mark_persistent(l_List_foldlM___at_Lean_Meta_evalExprCore___spec__9___closed__4); +l_Lean_Meta_evalExprCore___rarg___closed__1 = _init_l_Lean_Meta_evalExprCore___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_evalExprCore___rarg___closed__1); +l_Lean_Meta_evalExprCore___rarg___closed__2 = _init_l_Lean_Meta_evalExprCore___rarg___closed__2(); +lean_mark_persistent(l_Lean_Meta_evalExprCore___rarg___closed__2); +l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__1 = _init_l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__1); +l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__2 = _init_l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__2); +l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__3 = _init_l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_evalExpr_x27___rarg___lambda__1___closed__3); +l_Lean_Meta_evalExpr___rarg___lambda__1___closed__1 = _init_l_Lean_Meta_evalExpr___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_evalExpr___rarg___lambda__1___closed__1); +l_Lean_Meta_evalExpr___rarg___lambda__1___closed__2 = _init_l_Lean_Meta_evalExpr___rarg___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_evalExpr___rarg___lambda__1___closed__2); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/IndPredBelow.c b/stage0/stdlib/Lean/Meta/IndPredBelow.c index f4cb6038ba..0a4f47c061 100644 --- a/stage0/stdlib/Lean/Meta/IndPredBelow.c +++ b/stage0/stdlib/Lean/Meta/IndPredBelow.c @@ -325,6 +325,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkContext_mkIndValConst(lean_o static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_7____closed__3; static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn___closed__1; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Meta_IndPredBelow_mkInductiveType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -428,6 +429,7 @@ static lean_object* l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatch static lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_newMotive___lambda__1___closed__1; static lean_object* l_Lean_Meta_IndPredBelow_getBelowIndices_loop___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkBrecOnDecl_mkType___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkCasesOn___at_Lean_Meta_IndPredBelow_mkBelow___spec__1___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_induction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -471,7 +473,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_IndPredBelow LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___closed__11; uint8_t l_Lean_Expr_binderInfo(lean_object*); -lean_object* l_Lean_throwKernelException___at_Lean_Meta_mkAuxDefinition___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkCasesOn___at_Lean_Meta_IndPredBelow_mkBelow___spec__1___closed__2; LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -527,7 +528,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_getBelowIndices___lambda__1(le lean_object* l_Lean_Expr_constName_x21(lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___closed__15; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Meta_mkAuxDefinition___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -22162,7 +22162,7 @@ lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); -x_13 = l_Lean_throwKernelException___at_Lean_Meta_mkAuxDefinition___spec__2(x_12, x_2, x_3, x_4, x_5, x_9); +x_13 = l_Lean_throwKernelException___at_Lean_Meta_evalExprCore___spec__3(x_12, x_2, x_3, x_4, x_5, x_9); return x_13; } else @@ -22427,7 +22427,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_58 = l_Lean_addDecl___at_Lean_Meta_mkAuxDefinition___spec__1(x_56, x_9, x_10, x_11, x_12, x_57); +x_58 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2(x_56, x_9, x_10, x_11, x_12, x_57); if (lean_obj_tag(x_58) == 0) { lean_object* x_59; lean_object* x_60; lean_object* x_61; @@ -23098,7 +23098,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_71 = l_Lean_addDecl___at_Lean_Meta_mkAuxDefinition___spec__1(x_69, x_2, x_3, x_4, x_5, x_70); +x_71 = l_Lean_addDecl___at_Lean_Meta_evalExprCore___spec__2(x_69, x_2, x_3, x_4, x_5, x_70); if (lean_obj_tag(x_71) == 0) { lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; diff --git a/stage0/stdlib/Lean/Server/AsyncList.c b/stage0/stdlib/Lean/Server/AsyncList.c index 843334586b..5a87f69175 100644 --- a/stage0/stdlib/Lean/Server/AsyncList.c +++ b/stage0/stdlib/Lean/Server/AsyncList.c @@ -13,15 +13,13 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_List_foldr___at_IO_AsyncList_ofList___spec__1___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_getAll___rarg(lean_object*); static lean_object* l_IO_AsyncList_getAll___rarg___closed__1; LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldr___at_IO_AsyncList_ofList___spec__1___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_IO_AsyncList_getFinishedPrefix(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_finishedPrefix(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_instInhabitedAsyncList(lean_object*, lean_object*); static lean_object* l_IO_AsyncList_waitFind_x3f___rarg___closed__2; LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync(lean_object*, lean_object*, lean_object*); @@ -30,7 +28,6 @@ LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg___lambda__1(lean_object*, static lean_object* l_IO_AsyncList_instAppendAsyncList___closed__1; static lean_object* l_IO_AsyncList_instCoeListAsyncList___closed__1; lean_object* l_Except_map___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitAll___rarg___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldr___at_IO_AsyncList_ofList___spec__1(lean_object*, lean_object*); @@ -40,18 +37,14 @@ LEAN_EXPORT uint8_t l_IO_AsyncList_waitHead_x3f___rarg___lambda__1(lean_object*) lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_instCoeListAsyncList(lean_object*, lean_object*); static lean_object* l_IO_AsyncList_waitAll___rarg___closed__1; -LEAN_EXPORT lean_object* l_IO_AsyncList_finishedPrefix___rarg___boxed(lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_updateFinishedPrefix(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_append___rarg___lambda__1(lean_object*, lean_object*); static lean_object* l_IO_AsyncList_waitFind_x3f___rarg___closed__1; extern lean_object* l_Task_Priority_default; lean_object* lean_io_has_finished(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_ofList___rarg(lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_updateFinishedPrefix___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync_step(lean_object*, lean_object*, lean_object*); lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_append(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_IO_AsyncList_finishedPrefix___rarg(lean_object*); static lean_object* l_IO_AsyncList_waitHead_x3f___rarg___closed__1; LEAN_EXPORT lean_object* l_IO_AsyncList_getAll(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync_step___rarg(lean_object*, lean_object*, lean_object*); @@ -59,11 +52,10 @@ LEAN_EXPORT lean_object* l_IO_AsyncList_instAppendAsyncList(lean_object*, lean_o LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_ofList(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux___rarg___boxed(lean_object*, lean_object*); -static lean_object* l_IO_AsyncList_updateFinishedPrefix___rarg___closed__1; lean_object* l_EIO_toBaseIO___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_unfoldAsync___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); +LEAN_EXPORT lean_object* l_IO_AsyncList_getFinishedPrefix___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitFind_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* lean_task_get_own(lean_object*); LEAN_EXPORT lean_object* l_IO_AsyncList_waitHead_x3f___rarg___lambda__1___boxed(lean_object*); @@ -892,439 +884,276 @@ x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_waitFind_x3f___rarg), 3, 0); return x_3; } } -static lean_object* _init_l_IO_AsyncList_updateFinishedPrefix___rarg___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(2); -x_2 = lean_box(0); -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_IO_AsyncList_updateFinishedPrefix___rarg(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_IO_AsyncList_getFinishedPrefix___rarg(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { case 0: { -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) +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 = l_IO_AsyncList_getFinishedPrefix___rarg(x_4, x_2); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = l_IO_AsyncList_updateFinishedPrefix___rarg(x_5, x_2); -if (lean_obj_tag(x_6) == 0) +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -uint8_t x_7; -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_5, 0); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) { -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_6, 0); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; -x_10 = lean_ctor_get(x_8, 0); -lean_ctor_set(x_1, 1, x_10); -lean_ctor_set(x_8, 0, x_1); -return x_6; +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_3); +lean_ctor_set(x_10, 1, x_9); +lean_ctor_set(x_7, 0, x_10); +return x_5; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_8, 0); -x_12 = lean_ctor_get(x_8, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); lean_inc(x_12); lean_inc(x_11); -lean_dec(x_8); -lean_ctor_set(x_1, 1, x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_1); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_6, 0, x_13); -return x_6; +lean_dec(x_7); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_3); +lean_ctor_set(x_13, 1, x_11); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +lean_ctor_set(x_5, 0, x_14); +return x_5; } } 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_6, 0); -x_15 = lean_ctor_get(x_6, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_6); -x_16 = lean_ctor_get(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; +x_15 = lean_ctor_get(x_5, 0); +x_16 = lean_ctor_get(x_5, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_5); +x_17 = lean_ctor_get(x_15, 0); lean_inc(x_17); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - x_18 = x_14; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + x_19 = x_15; } else { - lean_dec_ref(x_14); - x_18 = lean_box(0); + lean_dec_ref(x_15); + x_19 = lean_box(0); } -lean_ctor_set(x_1, 1, x_16); -if (lean_is_scalar(x_18)) { - x_19 = lean_alloc_ctor(0, 2, 0); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_3); +lean_ctor_set(x_20, 1, x_17); +if (lean_is_scalar(x_19)) { + x_21 = lean_alloc_ctor(0, 2, 0); } else { - x_19 = x_18; + x_21 = x_19; } -lean_ctor_set(x_19, 0, x_1); -lean_ctor_set(x_19, 1, x_17); -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; +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_16); +return x_22; } } else { -uint8_t x_21; -lean_free_object(x_1); -lean_dec(x_4); -x_21 = !lean_is_exclusive(x_6); -if (x_21 == 0) +uint8_t x_23; +lean_dec(x_3); +x_23 = !lean_is_exclusive(x_5); +if (x_23 == 0) { -return x_6; +return x_5; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_6, 0); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_6); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_1, 0); -x_26 = lean_ctor_get(x_1, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_5, 0); +x_25 = lean_ctor_get(x_5, 1); lean_inc(x_25); -lean_dec(x_1); -x_27 = l_IO_AsyncList_updateFinishedPrefix___rarg(x_26, x_2); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_30 = x_27; -} else { - lean_dec_ref(x_27); - x_30 = lean_box(0); -} -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_28, 1); -lean_inc(x_32); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - lean_ctor_release(x_28, 1); - x_33 = x_28; -} else { - lean_dec_ref(x_28); - x_33 = lean_box(0); -} -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_25); -lean_ctor_set(x_34, 1, x_31); -if (lean_is_scalar(x_33)) { - x_35 = lean_alloc_ctor(0, 2, 0); -} else { - x_35 = x_33; -} -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_32); -if (lean_is_scalar(x_30)) { - x_36 = lean_alloc_ctor(0, 2, 0); -} else { - x_36 = x_30; -} -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_29); -return x_36; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_25); -x_37 = lean_ctor_get(x_27, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_27, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_39 = x_27; -} else { - lean_dec_ref(x_27); - x_39 = lean_box(0); -} -if (lean_is_scalar(x_39)) { - x_40 = lean_alloc_ctor(1, 2, 0); -} else { - x_40 = x_39; -} -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_38); -return x_40; +lean_inc(x_24); +lean_dec(x_5); +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; } } } case 1: { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_1, 0); +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_1, 0); +lean_inc(x_27); +lean_dec(x_1); +x_28 = lean_io_has_finished(x_27, x_2); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +uint8_t x_31; +lean_dec(x_27); +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_28, 0); +lean_dec(x_32); +x_33 = l_IO_AsyncList_getAll___rarg___closed__1; +lean_ctor_set(x_28, 0, x_33); +return x_28; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +lean_dec(x_28); +x_35 = l_IO_AsyncList_getAll___rarg___closed__1; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +else +{ +uint8_t x_37; +x_37 = !lean_is_exclusive(x_28); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_28, 1); +x_39 = lean_ctor_get(x_28, 0); +lean_dec(x_39); +x_40 = lean_task_get_own(x_27); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -x_42 = lean_io_has_finished(x_41, x_2); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_unbox(x_43); -lean_dec(x_43); -if (x_44 == 0) -{ -uint8_t x_45; -lean_dec(x_41); -x_45 = !lean_is_exclusive(x_42); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 0); -lean_dec(x_46); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_1); -lean_ctor_set(x_48, 1, x_47); -lean_ctor_set(x_42, 0, x_48); -return x_42; +lean_dec(x_40); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_41); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +lean_ctor_set(x_28, 0, x_44); +return x_28; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_42, 1); +lean_object* x_45; +lean_free_object(x_28); +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +lean_dec(x_40); +x_1 = x_45; +x_2 = x_38; +goto _start; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_28, 1); +lean_inc(x_47); +lean_dec(x_28); +x_48 = lean_task_get_own(x_27); +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); -lean_dec(x_42); +lean_dec(x_48); x_50 = lean_box(0); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_1); -lean_ctor_set(x_51, 1, x_50); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_49); x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_49); -return x_52; +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_47); +return x_53; +} +else +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_48, 0); +lean_inc(x_54); +lean_dec(x_48); +x_1 = x_54; +x_2 = x_47; +goto _start; +} +} } } else { -uint8_t x_53; -lean_dec(x_1); -x_53 = !lean_is_exclusive(x_42); -if (x_53 == 0) +uint8_t x_56; +lean_dec(x_27); +x_56 = !lean_is_exclusive(x_28); +if (x_56 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_42, 1); -x_55 = lean_ctor_get(x_42, 0); -lean_dec(x_55); -x_56 = lean_task_get_own(x_41); -if (lean_obj_tag(x_56) == 0) +return x_28; +} +else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 0); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_28, 0); +x_58 = lean_ctor_get(x_28, 1); +lean_inc(x_58); lean_inc(x_57); -lean_dec(x_56); -x_58 = lean_box(2); -x_59 = lean_alloc_ctor(1, 1, 0); +lean_dec(x_28); +x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_57); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_42, 0, x_60); -return x_42; -} -else -{ -lean_object* x_61; -lean_free_object(x_42); -x_61 = lean_ctor_get(x_56, 0); -lean_inc(x_61); -lean_dec(x_56); -x_1 = x_61; -x_2 = x_54; -goto _start; -} -} -else -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_42, 1); -lean_inc(x_63); -lean_dec(x_42); -x_64 = lean_task_get_own(x_41); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -lean_dec(x_64); -x_66 = lean_box(2); -x_67 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_67, 0, x_65); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_63); -return x_69; -} -else -{ -lean_object* x_70; -x_70 = lean_ctor_get(x_64, 0); -lean_inc(x_70); -lean_dec(x_64); -x_1 = x_70; -x_2 = x_63; -goto _start; -} -} -} -} -else -{ -uint8_t x_72; -lean_dec(x_41); -lean_dec(x_1); -x_72 = !lean_is_exclusive(x_42); -if (x_72 == 0) -{ -return x_42; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_42, 0); -x_74 = lean_ctor_get(x_42, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_42); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } default: { -lean_object* x_76; lean_object* x_77; -x_76 = l_IO_AsyncList_updateFinishedPrefix___rarg___closed__1; -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_2); -return x_77; +lean_object* x_60; lean_object* x_61; +x_60 = l_IO_AsyncList_getAll___rarg___closed__1; +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_2); +return x_61; } } } } -LEAN_EXPORT lean_object* l_IO_AsyncList_updateFinishedPrefix(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_IO_AsyncList_getFinishedPrefix(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_updateFinishedPrefix___rarg), 2, 0); +x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_getFinishedPrefix___rarg), 2, 0); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_3); -x_5 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_5, 0, x_3); -lean_ctor_set(x_5, 1, x_1); -x_1 = x_5; -x_2 = x_4; -goto _start; -} -else -{ -return x_1; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux___rarg___boxed), 2, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux___rarg___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux___rarg(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_IO_AsyncList_finishedPrefix___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = lean_box(0); -x_3 = l___private_Lean_Server_AsyncList_0__IO_AsyncList_finishedPrefixAux___rarg(x_2, x_1); -x_4 = l_List_reverse___rarg(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l_IO_AsyncList_finishedPrefix(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_IO_AsyncList_finishedPrefix___rarg___boxed), 1, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l_IO_AsyncList_finishedPrefix___rarg___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_IO_AsyncList_finishedPrefix___rarg(x_1); -lean_dec(x_1); -return x_2; -} -} LEAN_EXPORT uint8_t l_IO_AsyncList_waitHead_x3f___rarg___lambda__1(lean_object* x_1) { _start: { @@ -1393,8 +1222,6 @@ l_IO_AsyncList_waitFind_x3f___rarg___closed__1 = _init_l_IO_AsyncList_waitFind_x lean_mark_persistent(l_IO_AsyncList_waitFind_x3f___rarg___closed__1); l_IO_AsyncList_waitFind_x3f___rarg___closed__2 = _init_l_IO_AsyncList_waitFind_x3f___rarg___closed__2(); lean_mark_persistent(l_IO_AsyncList_waitFind_x3f___rarg___closed__2); -l_IO_AsyncList_updateFinishedPrefix___rarg___closed__1 = _init_l_IO_AsyncList_updateFinishedPrefix___rarg___closed__1(); -lean_mark_persistent(l_IO_AsyncList_updateFinishedPrefix___rarg___closed__1); l_IO_AsyncList_waitHead_x3f___rarg___closed__1 = _init_l_IO_AsyncList_waitHead_x3f___rarg___closed__1(); lean_mark_persistent(l_IO_AsyncList_waitHead_x3f___rarg___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Server/Completion.c b/stage0/stdlib/Lean/Server/Completion.c index 115973148a..987c616689 100644 --- a/stage0/stdlib/Lean/Server/Completion.c +++ b/stage0/stdlib/Lean/Server/Completion.c @@ -113,9 +113,7 @@ lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___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*); -static lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2___closed__1; static lean_object* l_Lean_Server_Completion_completeNamespaces___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_Completion_completeNamespaces___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_Completion_completeNamespaces___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -186,6 +184,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Compl lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_optionCompletion___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedProjectionFunctionInfo; +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_forM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -215,6 +214,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Compl lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Parser_getCategory___spec__1(lean_object*, lean_object*); uint8_t lean_is_matcher(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_format_pretty(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_forM___at_Lean_Server_Completion_completeNamespaces___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -263,7 +263,8 @@ uint8_t l_Lean_Expr_isForall(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_Completion_addToBlackList___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_unfoldeDefinitionGuarded_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_isProjectionFn___at___private_Lean_Server_Completion_0__Lean_Server_Completion_getCompletionKindForDecl___spec__1___closed__1; static lean_object* l_Lean_getConstInfo___at___private_Lean_Server_Completion_0__Lean_Server_Completion_getCompletionKindForDecl___spec__3___closed__2; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); @@ -318,6 +319,7 @@ static lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__3___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FuzzyMatching_fuzzyMatchScoreWithThreshold_x3f(lean_object*, lean_object*, double); static lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_tacticCompletion___lambda__1___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_matchAtomic(lean_object*, lean_object*); @@ -378,7 +380,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Compl LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__36___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_List_allM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_getCompletionKindForDecl___spec__5___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__29(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Server_Completion_0__Lean_Server_Completion_truncate_go___spec__1(lean_object*); uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -16303,6 +16305,181 @@ x_9 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletion( return x_9; } } +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_unfoldeDefinitionGuarded_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_unfoldDefinition_x3f(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 0); +lean_dec(x_9); +x_10 = lean_box(0); +lean_ctor_set_tag(x_7, 0); +lean_ctor_set(x_7, 0, x_10); +return x_7; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_dec(x_7); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___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_dec(x_3); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_unfoldeDefinitionGuarded_x3f(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = 0; +x_14 = lean_box(x_13); +lean_ctor_set(x_9, 0, x_14); +return x_9; +} +else +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_dec(x_9); +x_16 = 0; +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_15); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_dec(x_9); +x_20 = lean_ctor_get(x_10, 0); +lean_inc(x_20); +lean_dec(x_10); +x_21 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf(x_20, x_2, x_4, x_5, x_6, x_7, x_19); +return x_21; +} +} +else +{ +uint8_t x_22; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_22 = !lean_is_exclusive(x_9); +if (x_22 == 0) +{ +return x_9; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_9, 0); +x_24 = lean_ctor_get(x_9, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_9); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf(lean_object* x_1, 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 = l_Lean_Expr_getAppFn(x_1); +x_9 = l_Lean_Expr_isConstOf(x_8, x_2); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___lambda__1(x_1, x_2, x_10, x_3, x_4, x_5, x_6, x_7); +return x_11; +} +else +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_12 = 1; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_7); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf___boxed(lean_object* x_1, 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___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +return x_8; +} +} static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1___closed__1() { _start: { @@ -16323,6 +16500,9 @@ x_12 = lean_usize_dec_lt(x_5, x_4); if (x_12 == 0) { lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); x_13 = lean_alloc_ctor(0, 2, 0); @@ -16340,32 +16520,41 @@ lean_inc(x_7); x_16 = l_Lean_Meta_getLocalDecl(x_15, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_16) == 0) { -uint8_t x_17; -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) +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_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_LocalDecl_type(x_17); +lean_dec(x_17); +x_20 = l_Lean_Expr_consumeMData(x_19); +lean_dec(x_19); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_21 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDefEqToAppOf(x_20, x_1, x_7, x_8, x_9, x_10, x_18); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -x_20 = l_Lean_LocalDecl_type(x_18); -lean_dec(x_18); -x_21 = l_Lean_Expr_consumeMData(x_20); -lean_dec(x_20); -x_22 = l_Lean_Expr_getAppFn(x_21); -lean_dec(x_21); -x_23 = l_Lean_Expr_isConstOf(x_22, x_1); +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_unbox(x_22); lean_dec(x_22); if (x_23 == 0) { -size_t x_24; size_t x_25; -lean_free_object(x_16); -x_24 = 1; -x_25 = lean_usize_add(x_5, x_24); +lean_object* x_24; size_t x_25; size_t x_26; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = 1; +x_26 = lean_usize_add(x_5, x_25); lean_inc(x_2); { -size_t _tmp_4 = x_25; +size_t _tmp_4 = x_26; lean_object* _tmp_5 = x_2; -lean_object* _tmp_10 = x_19; +lean_object* _tmp_10 = x_24; x_5 = _tmp_4; x_6 = _tmp_5; x_11 = _tmp_10; @@ -16374,81 +16563,89 @@ goto _start; } else { -lean_object* x_27; +uint8_t x_28; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); -x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1___closed__1; -lean_ctor_set(x_16, 0, x_27); -return x_16; -} +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 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1___closed__1; +lean_ctor_set(x_21, 0, x_30); +return x_21; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_28 = lean_ctor_get(x_16, 0); -x_29 = lean_ctor_get(x_16, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_16); -x_30 = l_Lean_LocalDecl_type(x_28); -lean_dec(x_28); -x_31 = l_Lean_Expr_consumeMData(x_30); -lean_dec(x_30); -x_32 = l_Lean_Expr_getAppFn(x_31); -lean_dec(x_31); -x_33 = l_Lean_Expr_isConstOf(x_32, x_1); -lean_dec(x_32); -if (x_33 == 0) -{ -size_t x_34; size_t x_35; -x_34 = 1; -x_35 = lean_usize_add(x_5, x_34); -lean_inc(x_2); -{ -size_t _tmp_4 = x_35; -lean_object* _tmp_5 = x_2; -lean_object* _tmp_10 = x_29; -x_5 = _tmp_4; -x_6 = _tmp_5; -x_11 = _tmp_10; -} -goto _start; -} -else -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_7); -lean_dec(x_2); -x_37 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1___closed__1; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_29); -return x_38; +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 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1___closed__1; +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_39; +uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); -x_39 = !lean_is_exclusive(x_16); -if (x_39 == 0) +x_34 = !lean_is_exclusive(x_21); +if (x_34 == 0) +{ +return x_21; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_21, 0); +x_36 = lean_ctor_get(x_21, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_21); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_16); +if (x_38 == 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_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_16, 0); +x_40 = lean_ctor_get(x_16, 1); lean_inc(x_40); +lean_inc(x_39); 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; +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; } } } @@ -16483,6 +16680,9 @@ x_10 = lean_usize_of_nat(x_9); lean_dec(x_9); x_11 = 0; x_12 = l_Lean_Server_Completion_completeNamespaces___lambda__3___closed__1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); lean_inc(x_4); x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1(x_1, x_12, x_2, x_10, x_11, x_12, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_13) == 0) @@ -16587,9 +16787,6 @@ lean_dec(x_4); x_13 = lean_unbox_usize(x_5); lean_dec(x_5); x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1(x_1, x_2, x_3, x_12, x_13, 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_3); lean_dec(x_1); return x_14; @@ -16671,74 +16868,93 @@ goto _start; } } } -LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___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_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___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: { -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); +lean_object* x_9; lean_dec(x_2); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_1, 0); -lean_inc(x_10); -lean_dec(x_1); -x_11 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit(x_10, x_2, x_3, x_4, x_5, x_6, x_7); -return x_11; -} -} -} -static lean_object* _init_l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__1), 7, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_10 = l_Lean_Meta_unfoldDefinition_x3f(x_1, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_unfoldeDefinitionGuarded_x3f(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -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_apply_7(x_9, x_11, x_3, x_4, x_5, x_6, x_7, x_12); -return x_13; +uint8_t x_11; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_9, 0, x_13); +return x_9; } else { lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_10, 1); +x_14 = lean_ctor_get(x_9, 1); lean_inc(x_14); -lean_dec(x_10); +lean_dec(x_9); x_15 = lean_box(0); -x_16 = lean_apply_7(x_9, x_15, x_3, x_4, x_5, x_6, x_7, x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); return x_16; } } +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit(x_18, x_3, x_4, x_5, x_6, x_7, x_17); +return x_19; +} +} +else +{ +uint8_t x_20; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) +{ +return x_9; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_9); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} } LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit(lean_object* x_1, 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: @@ -16783,7 +16999,7 @@ if (x_23 == 0) { lean_object* x_24; lean_dec(x_9); -x_24 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2(x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_21); +x_24 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__1(x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_21); return x_24; } else @@ -16808,7 +17024,7 @@ lean_dec(x_29); x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); lean_dec(x_33); -x_35 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2(x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_34); +x_35 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__1(x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_34); return x_35; } } @@ -16848,15 +17064,6 @@ lean_dec(x_1); return x_13; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___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) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; -} -} LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames(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: { @@ -20763,8 +20970,6 @@ l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Co lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___spec__1___closed__1); l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___lambda__2___closed__1 = _init_l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Server_Completion_0__Lean_Server_Completion_isDotCompletionMethod___lambda__2___closed__1); -l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2___closed__1 = _init_l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2___closed__1(); -lean_mark_persistent(l___private_Lean_Server_Completion_0__Lean_Server_Completion_getDotCompletionTypeNames_visit___lambda__2___closed__1); l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2___closed__1 = _init_l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2___closed__1); l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2___closed__2 = _init_l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2___closed__2(); diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index 7279d7d9e9..d6a6d69bbf 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -314,7 +314,6 @@ static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_ini LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_parseParams___at_Lean_Server_FileWorker_handleRequest___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_environment(uint32_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__5; -lean_object* l_IO_AsyncList_updateFinishedPrefix___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__14; uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_lakeSetupSearchPath___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -335,7 +334,6 @@ LEAN_EXPORT lean_object* lean_server_worker_main(lean_object*, lean_object*); lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_queueRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_parseParams___rarg___closed__2; -lean_object* l_IO_AsyncList_finishedPrefix___rarg(lean_object*); lean_object* l___private_Lean_Util_Paths_0__Lean_fromJsonLeanPaths____x40_Lean_Util_Paths___hyg_90_(lean_object*); static lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__10; static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__56; @@ -460,6 +458,7 @@ lean_object* l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentHighlight lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object*, lean_object*); +lean_object* l_IO_AsyncList_getFinishedPrefix___rarg(lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__62; LEAN_EXPORT lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_FileWorker_mainLoop___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_FileWorker_initAndRunWorker___spec__2___closed__33; @@ -6130,22 +6129,22 @@ x_14 = lean_ctor_get(x_1, 2); x_15 = l_Lean_Server_FileWorker_CancelToken_set(x_14, x_13); if (lean_obj_tag(x_12) == 0) { -lean_object* x_241; lean_object* x_242; -x_241 = l_Lean_Server_FileWorker_updateDocument___lambda__3___closed__4; -x_242 = l_panic___at_Lean_Server_FileWorker_updateDocument___spec__2(x_241); -x_16 = x_242; -goto block_240; +lean_object* x_239; lean_object* x_240; +x_239 = l_Lean_Server_FileWorker_updateDocument___lambda__3___closed__4; +x_240 = l_panic___at_Lean_Server_FileWorker_updateDocument___spec__2(x_239); +x_16 = x_240; +goto block_238; } else { -lean_object* x_243; -x_243 = lean_ctor_get(x_12, 0); -lean_inc(x_243); +lean_object* x_241; +x_241 = lean_ctor_get(x_12, 0); +lean_inc(x_241); lean_dec(x_12); -x_16 = x_243; -goto block_240; +x_16 = x_241; +goto block_238; } -block_240: +block_238: { lean_object* x_17; uint8_t x_18; x_17 = lean_ctor_get(x_15, 1); @@ -6154,7 +6153,7 @@ lean_dec(x_15); x_18 = !lean_is_exclusive(x_16); if (x_18 == 0) { -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; uint8_t x_37; +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; uint8_t x_36; x_19 = lean_ctor_get(x_16, 2); lean_dec(x_19); x_20 = lean_ctor_get(x_16, 1); @@ -6171,7 +6170,7 @@ lean_inc(x_25); lean_dec(x_24); x_26 = l_String_firstDiffPos(x_23, x_25); lean_dec(x_25); -x_27 = l_IO_AsyncList_updateFinishedPrefix___rarg(x_5, x_17); +x_27 = l_IO_AsyncList_getFinishedPrefix___rarg(x_5, x_17); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -6182,312 +6181,310 @@ lean_inc(x_30); lean_dec(x_28); x_31 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_updateDocument___lambda__1___boxed), 2, 1); lean_closure_set(x_31, 0, x_26); -x_32 = l_IO_AsyncList_finishedPrefix___rarg(x_30); -lean_dec(x_30); -x_33 = l_List_takeWhile___rarg(x_31, x_32); -x_34 = lean_unsigned_to_nat(0u); -x_35 = l_List_lengthTRAux___rarg(x_33, x_34); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_dec_le(x_35, x_36); -if (x_37 == 0) +x_32 = l_List_takeWhile___rarg(x_31, x_30); +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_List_lengthTRAux___rarg(x_32, x_33); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_dec_le(x_34, x_35); +if (x_36 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_38 = l_Lean_Server_Snapshots_instInhabitedSnapshot; -lean_inc(x_33); -x_39 = l_List_getLast_x21___rarg(x_38, x_33); -x_40 = lean_unsigned_to_nat(2u); -x_41 = lean_nat_dec_le(x_40, x_35); -if (x_41 == 0) +lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_37 = l_Lean_Server_Snapshots_instInhabitedSnapshot; +lean_inc(x_32); +x_38 = l_List_getLast_x21___rarg(x_37, x_32); +x_39 = lean_unsigned_to_nat(2u); +x_40 = lean_nat_dec_le(x_39, x_34); +if (x_40 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -lean_dec(x_35); -x_42 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_16, x_29); -x_43 = lean_ctor_get(x_42, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_dec(x_34); +x_41 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_16, x_29); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_dec(x_41); +x_44 = lean_ctor_get(x_38, 1); lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_ctor_get(x_39, 1); -lean_inc(x_45); -lean_dec(x_39); -x_46 = l_Lean_Syntax_structEq(x_43, x_45); -if (x_46 == 0) +lean_dec(x_38); +x_45 = l_Lean_Syntax_structEq(x_42, x_44); +if (x_45 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = l_List_dropLast___rarg(x_33); -x_48 = lean_box(0); -x_49 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_47, x_48, x_44); -if (lean_obj_tag(x_49) == 0) +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = l_List_dropLast___rarg(x_32); +x_47 = lean_box(0); +x_48 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_46, x_47, x_43); +if (lean_obj_tag(x_48) == 0) { -uint8_t x_50; -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) +uint8_t x_49; +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) { -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_49, 0); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_49, 0, x_52); -return x_49; +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_48, 0); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_48, 0, x_51); +return x_48; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_49, 0); -x_54 = lean_ctor_get(x_49, 1); -lean_inc(x_54); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_48, 0); +x_53 = lean_ctor_get(x_48, 1); lean_inc(x_53); -lean_dec(x_49); -x_55 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_55, 0, x_53); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_54); -return x_56; +lean_inc(x_52); +lean_dec(x_48); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, 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_53); +return x_55; } } else { -uint8_t x_57; -x_57 = !lean_is_exclusive(x_49); -if (x_57 == 0) +uint8_t x_56; +x_56 = !lean_is_exclusive(x_48); +if (x_56 == 0) { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_49, 0); -x_59 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set_tag(x_49, 0); -lean_ctor_set(x_49, 0, x_59); -return x_49; +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_48, 0); +x_58 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set_tag(x_48, 0); +lean_ctor_set(x_48, 0, x_58); +return x_48; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_60 = lean_ctor_get(x_49, 0); -x_61 = lean_ctor_get(x_49, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_48, 0); +x_60 = lean_ctor_get(x_48, 1); lean_inc(x_60); -lean_dec(x_49); -x_62 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_62, 0, x_60); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -return x_63; +lean_inc(x_59); +lean_dec(x_48); +x_61 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_61, 0, x_59); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +return x_62; } } } else { -lean_object* x_64; lean_object* x_65; -x_64 = lean_box(0); -x_65 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_33, x_64, x_44); -if (lean_obj_tag(x_65) == 0) +lean_object* x_63; lean_object* x_64; +x_63 = lean_box(0); +x_64 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_32, x_63, x_43); +if (lean_obj_tag(x_64) == 0) { -uint8_t x_66; -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) +uint8_t x_65; +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) { -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_65, 0); -x_68 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_65, 0, x_68); -return x_65; +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_64, 0); +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_64, 0, x_67); +return x_64; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_65, 0); -x_70 = lean_ctor_get(x_65, 1); -lean_inc(x_70); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_64, 0); +x_69 = lean_ctor_get(x_64, 1); lean_inc(x_69); -lean_dec(x_65); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_69); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_inc(x_68); +lean_dec(x_64); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_68); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } else { -uint8_t x_73; -x_73 = !lean_is_exclusive(x_65); -if (x_73 == 0) +uint8_t x_72; +x_72 = !lean_is_exclusive(x_64); +if (x_72 == 0) { -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_65, 0); -x_75 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set_tag(x_65, 0); -lean_ctor_set(x_65, 0, x_75); -return x_65; +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_64, 0); +x_74 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set_tag(x_64, 0); +lean_ctor_set(x_64, 0, x_74); +return x_64; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_76 = lean_ctor_get(x_65, 0); -x_77 = lean_ctor_get(x_65, 1); -lean_inc(x_77); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_64, 0); +x_76 = lean_ctor_get(x_64, 1); lean_inc(x_76); -lean_dec(x_65); -x_78 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_78, 0, x_76); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -return x_79; +lean_inc(x_75); +lean_dec(x_64); +x_77 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_77, 0, x_75); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_76); +return x_78; } } } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +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; lean_dec(x_16); -x_80 = lean_nat_sub(x_35, x_40); -lean_dec(x_35); -x_81 = l_List_get_x21___rarg(x_38, x_33, x_80); -x_82 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_81, x_29); -x_83 = lean_ctor_get(x_82, 0); +x_79 = lean_nat_sub(x_34, x_39); +lean_dec(x_34); +x_80 = l_List_get_x21___rarg(x_37, x_32, x_79); +x_81 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_80, x_29); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); +lean_dec(x_81); +x_84 = lean_ctor_get(x_38, 1); lean_inc(x_84); -lean_dec(x_82); -x_85 = lean_ctor_get(x_39, 1); -lean_inc(x_85); -lean_dec(x_39); -x_86 = l_Lean_Syntax_structEq(x_83, x_85); -if (x_86 == 0) +lean_dec(x_38); +x_85 = l_Lean_Syntax_structEq(x_82, x_84); +if (x_85 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = l_List_dropLast___rarg(x_33); -x_88 = lean_box(0); -x_89 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_87, x_88, x_84); -if (lean_obj_tag(x_89) == 0) +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = l_List_dropLast___rarg(x_32); +x_87 = lean_box(0); +x_88 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_86, x_87, x_83); +if (lean_obj_tag(x_88) == 0) { -uint8_t x_90; -x_90 = !lean_is_exclusive(x_89); -if (x_90 == 0) +uint8_t x_89; +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) { -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_89, 0); -x_92 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_89, 0, x_92); -return x_89; +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_88, 0); +x_91 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_88, 0, x_91); +return x_88; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_93 = lean_ctor_get(x_89, 0); -x_94 = lean_ctor_get(x_89, 1); -lean_inc(x_94); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_88, 0); +x_93 = lean_ctor_get(x_88, 1); lean_inc(x_93); -lean_dec(x_89); -x_95 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_95, 0, x_93); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -return x_96; +lean_inc(x_92); +lean_dec(x_88); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_92); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } else { -uint8_t x_97; -x_97 = !lean_is_exclusive(x_89); -if (x_97 == 0) +uint8_t x_96; +x_96 = !lean_is_exclusive(x_88); +if (x_96 == 0) { -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_89, 0); -x_99 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set_tag(x_89, 0); -lean_ctor_set(x_89, 0, x_99); -return x_89; +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_88, 0); +x_98 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set_tag(x_88, 0); +lean_ctor_set(x_88, 0, x_98); +return x_88; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_100 = lean_ctor_get(x_89, 0); -x_101 = lean_ctor_get(x_89, 1); -lean_inc(x_101); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_99 = lean_ctor_get(x_88, 0); +x_100 = lean_ctor_get(x_88, 1); lean_inc(x_100); -lean_dec(x_89); -x_102 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_102, 0, x_100); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -return x_103; +lean_inc(x_99); +lean_dec(x_88); +x_101 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_101, 0, x_99); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +return x_102; } } } else { -lean_object* x_104; lean_object* x_105; -x_104 = lean_box(0); -x_105 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_33, x_104, x_84); -if (lean_obj_tag(x_105) == 0) +lean_object* x_103; lean_object* x_104; +x_103 = lean_box(0); +x_104 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_32, x_103, x_83); +if (lean_obj_tag(x_104) == 0) { -uint8_t x_106; -x_106 = !lean_is_exclusive(x_105); -if (x_106 == 0) +uint8_t x_105; +x_105 = !lean_is_exclusive(x_104); +if (x_105 == 0) { -lean_object* x_107; lean_object* x_108; -x_107 = lean_ctor_get(x_105, 0); -x_108 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_105, 0, x_108); -return x_105; +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_104, 0); +x_107 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_104, 0, x_107); +return x_104; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_109 = lean_ctor_get(x_105, 0); -x_110 = lean_ctor_get(x_105, 1); -lean_inc(x_110); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_104, 0); +x_109 = lean_ctor_get(x_104, 1); lean_inc(x_109); -lean_dec(x_105); -x_111 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_111, 0, x_109); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_110); -return x_112; +lean_inc(x_108); +lean_dec(x_104); +x_110 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_110, 0, x_108); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_109); +return x_111; } } else { -uint8_t x_113; -x_113 = !lean_is_exclusive(x_105); -if (x_113 == 0) +uint8_t x_112; +x_112 = !lean_is_exclusive(x_104); +if (x_112 == 0) { -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_105, 0); -x_115 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set_tag(x_105, 0); -lean_ctor_set(x_105, 0, x_115); -return x_105; +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_104, 0); +x_114 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set_tag(x_104, 0); +lean_ctor_set(x_104, 0, x_114); +return x_104; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_116 = lean_ctor_get(x_105, 0); -x_117 = lean_ctor_get(x_105, 1); -lean_inc(x_117); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_115 = lean_ctor_get(x_104, 0); +x_116 = lean_ctor_get(x_104, 1); lean_inc(x_116); -lean_dec(x_105); -x_118 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_118, 0, x_116); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_inc(x_115); +lean_dec(x_104); +x_117 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_117, 0, x_115); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +return x_118; } } } @@ -6495,468 +6492,466 @@ return x_119; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_35); -lean_dec(x_33); +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_34); +lean_dec(x_32); lean_dec(x_8); -x_120 = lean_box(0); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_16); -lean_ctor_set(x_121, 1, x_120); -x_122 = lean_box(0); -x_123 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_121, x_122, x_29); -if (lean_obj_tag(x_123) == 0) +x_119 = lean_box(0); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_16); +lean_ctor_set(x_120, 1, x_119); +x_121 = lean_box(0); +x_122 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_120, x_121, x_29); +if (lean_obj_tag(x_122) == 0) { -uint8_t x_124; -x_124 = !lean_is_exclusive(x_123); -if (x_124 == 0) +uint8_t x_123; +x_123 = !lean_is_exclusive(x_122); +if (x_123 == 0) { -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_123, 0); -x_126 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_123, 0, x_126); -return x_123; +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_122, 0); +x_125 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_122, 0, x_125); +return x_122; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_127 = lean_ctor_get(x_123, 0); -x_128 = lean_ctor_get(x_123, 1); -lean_inc(x_128); +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_126 = lean_ctor_get(x_122, 0); +x_127 = lean_ctor_get(x_122, 1); lean_inc(x_127); -lean_dec(x_123); -x_129 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_129, 0, x_127); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_128); -return x_130; +lean_inc(x_126); +lean_dec(x_122); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_126); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +return x_129; } } else { -uint8_t x_131; -x_131 = !lean_is_exclusive(x_123); -if (x_131 == 0) +uint8_t x_130; +x_130 = !lean_is_exclusive(x_122); +if (x_130 == 0) { -lean_object* x_132; lean_object* x_133; -x_132 = lean_ctor_get(x_123, 0); -x_133 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set_tag(x_123, 0); -lean_ctor_set(x_123, 0, x_133); -return x_123; +lean_object* x_131; lean_object* x_132; +x_131 = lean_ctor_get(x_122, 0); +x_132 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set_tag(x_122, 0); +lean_ctor_set(x_122, 0, x_132); +return x_122; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_134 = lean_ctor_get(x_123, 0); -x_135 = lean_ctor_get(x_123, 1); -lean_inc(x_135); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_133 = lean_ctor_get(x_122, 0); +x_134 = lean_ctor_get(x_122, 1); lean_inc(x_134); -lean_dec(x_123); -x_136 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_136, 0, x_134); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -return x_137; +lean_inc(x_133); +lean_dec(x_122); +x_135 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_135, 0, x_133); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_134); +return x_136; } } } } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; -x_138 = lean_ctor_get(x_16, 0); -x_139 = lean_ctor_get(x_16, 3); -x_140 = lean_ctor_get(x_16, 4); -x_141 = lean_ctor_get(x_16, 5); -lean_inc(x_141); +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; uint8_t x_157; +x_137 = lean_ctor_get(x_16, 0); +x_138 = lean_ctor_get(x_16, 3); +x_139 = lean_ctor_get(x_16, 4); +x_140 = lean_ctor_get(x_16, 5); lean_inc(x_140); lean_inc(x_139); lean_inc(x_138); +lean_inc(x_137); lean_dec(x_16); -x_142 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_142, 0, x_138); -lean_ctor_set(x_142, 1, x_2); -lean_ctor_set(x_142, 2, x_3); -lean_ctor_set(x_142, 3, x_139); -lean_ctor_set(x_142, 4, x_140); -lean_ctor_set(x_142, 5, x_141); -x_143 = lean_ctor_get(x_1, 0); -x_144 = lean_ctor_get(x_143, 2); -x_145 = lean_ctor_get(x_144, 0); -x_146 = lean_ctor_get(x_4, 2); +x_141 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_141, 0, x_137); +lean_ctor_set(x_141, 1, x_2); +lean_ctor_set(x_141, 2, x_3); +lean_ctor_set(x_141, 3, x_138); +lean_ctor_set(x_141, 4, x_139); +lean_ctor_set(x_141, 5, x_140); +x_142 = lean_ctor_get(x_1, 0); +x_143 = lean_ctor_get(x_142, 2); +x_144 = lean_ctor_get(x_143, 0); +x_145 = lean_ctor_get(x_4, 2); +lean_inc(x_145); +x_146 = lean_ctor_get(x_145, 0); lean_inc(x_146); -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); +lean_dec(x_145); +x_147 = l_String_firstDiffPos(x_144, x_146); lean_dec(x_146); -x_148 = l_String_firstDiffPos(x_145, x_147); -lean_dec(x_147); -x_149 = l_IO_AsyncList_updateFinishedPrefix___rarg(x_5, x_17); -x_150 = lean_ctor_get(x_149, 0); +x_148 = l_IO_AsyncList_getFinishedPrefix___rarg(x_5, x_17); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); +lean_dec(x_148); +x_151 = lean_ctor_get(x_149, 0); lean_inc(x_151); lean_dec(x_149); -x_152 = lean_ctor_get(x_150, 0); -lean_inc(x_152); -lean_dec(x_150); -x_153 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_updateDocument___lambda__1___boxed), 2, 1); -lean_closure_set(x_153, 0, x_148); -x_154 = l_IO_AsyncList_finishedPrefix___rarg(x_152); -lean_dec(x_152); -x_155 = l_List_takeWhile___rarg(x_153, x_154); -x_156 = lean_unsigned_to_nat(0u); -x_157 = l_List_lengthTRAux___rarg(x_155, x_156); -x_158 = lean_unsigned_to_nat(1u); -x_159 = lean_nat_dec_le(x_157, x_158); -if (x_159 == 0) +x_152 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_updateDocument___lambda__1___boxed), 2, 1); +lean_closure_set(x_152, 0, x_147); +x_153 = l_List_takeWhile___rarg(x_152, x_151); +x_154 = lean_unsigned_to_nat(0u); +x_155 = l_List_lengthTRAux___rarg(x_153, x_154); +x_156 = lean_unsigned_to_nat(1u); +x_157 = lean_nat_dec_le(x_155, x_156); +if (x_157 == 0) { -lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_160 = l_Lean_Server_Snapshots_instInhabitedSnapshot; -lean_inc(x_155); -x_161 = l_List_getLast_x21___rarg(x_160, x_155); -x_162 = lean_unsigned_to_nat(2u); -x_163 = lean_nat_dec_le(x_162, x_157); -if (x_163 == 0) +lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; +x_158 = l_Lean_Server_Snapshots_instInhabitedSnapshot; +lean_inc(x_153); +x_159 = l_List_getLast_x21___rarg(x_158, x_153); +x_160 = lean_unsigned_to_nat(2u); +x_161 = lean_nat_dec_le(x_160, x_155); +if (x_161 == 0) { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; -lean_dec(x_157); -x_164 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_142, x_151); -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_161, 1); -lean_inc(x_167); -lean_dec(x_161); -x_168 = l_Lean_Syntax_structEq(x_165, x_167); -if (x_168 == 0) -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = l_List_dropLast___rarg(x_155); -x_170 = lean_box(0); -x_171 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_169, x_170, x_166); -if (lean_obj_tag(x_171) == 0) -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_171, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - x_174 = x_171; -} else { - lean_dec_ref(x_171); - x_174 = lean_box(0); -} -x_175 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_175, 0, x_172); -if (lean_is_scalar(x_174)) { - x_176 = lean_alloc_ctor(0, 2, 0); -} else { - x_176 = x_174; -} -lean_ctor_set(x_176, 0, x_175); -lean_ctor_set(x_176, 1, x_173); -return x_176; -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_177 = lean_ctor_get(x_171, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_171, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - x_179 = x_171; -} else { - lean_dec_ref(x_171); - x_179 = lean_box(0); -} -x_180 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_180, 0, x_177); -if (lean_is_scalar(x_179)) { - x_181 = lean_alloc_ctor(0, 2, 0); -} else { - x_181 = x_179; - lean_ctor_set_tag(x_181, 0); -} -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_178); -return x_181; -} -} -else -{ -lean_object* x_182; lean_object* x_183; -x_182 = lean_box(0); -x_183 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_155, x_182, x_166); -if (lean_obj_tag(x_183) == 0) -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_186 = x_183; -} else { - lean_dec_ref(x_183); - x_186 = lean_box(0); -} -x_187 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_187, 0, x_184); -if (lean_is_scalar(x_186)) { - x_188 = lean_alloc_ctor(0, 2, 0); -} else { - x_188 = x_186; -} -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_185); -return x_188; -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_189 = lean_ctor_get(x_183, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_183, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_191 = x_183; -} else { - lean_dec_ref(x_183); - x_191 = lean_box(0); -} -x_192 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_192, 0, x_189); -if (lean_is_scalar(x_191)) { - x_193 = lean_alloc_ctor(0, 2, 0); -} else { - x_193 = x_191; - lean_ctor_set_tag(x_193, 0); -} -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_190); -return x_193; -} -} -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; -lean_dec(x_142); -x_194 = lean_nat_sub(x_157, x_162); -lean_dec(x_157); -x_195 = l_List_get_x21___rarg(x_160, x_155, x_194); -x_196 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_195, x_151); -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -lean_dec(x_196); -x_199 = lean_ctor_get(x_161, 1); -lean_inc(x_199); -lean_dec(x_161); -x_200 = l_Lean_Syntax_structEq(x_197, x_199); -if (x_200 == 0) -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = l_List_dropLast___rarg(x_155); -x_202 = lean_box(0); -x_203 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_201, x_202, x_198); -if (lean_obj_tag(x_203) == 0) -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_206 = x_203; -} else { - lean_dec_ref(x_203); - x_206 = lean_box(0); -} -x_207 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_207, 0, x_204); -if (lean_is_scalar(x_206)) { - x_208 = lean_alloc_ctor(0, 2, 0); -} else { - x_208 = x_206; -} -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_205); -return x_208; -} -else -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_209 = lean_ctor_get(x_203, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_203, 1); -lean_inc(x_210); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_211 = x_203; -} else { - lean_dec_ref(x_203); - x_211 = lean_box(0); -} -x_212 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_212, 0, x_209); -if (lean_is_scalar(x_211)) { - x_213 = lean_alloc_ctor(0, 2, 0); -} else { - x_213 = x_211; - lean_ctor_set_tag(x_213, 0); -} -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_210); -return x_213; -} -} -else -{ -lean_object* x_214; lean_object* x_215; -x_214 = lean_box(0); -x_215 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_155, x_214, x_198); -if (lean_obj_tag(x_215) == 0) -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_218 = x_215; -} else { - lean_dec_ref(x_215); - x_218 = lean_box(0); -} -x_219 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_219, 0, x_216); -if (lean_is_scalar(x_218)) { - x_220 = lean_alloc_ctor(0, 2, 0); -} else { - x_220 = x_218; -} -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_217); -return x_220; -} -else -{ -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_221 = lean_ctor_get(x_215, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 1); -lean_inc(x_222); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_223 = x_215; -} else { - lean_dec_ref(x_215); - x_223 = lean_box(0); -} -x_224 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_224, 0, x_221); -if (lean_is_scalar(x_223)) { - x_225 = lean_alloc_ctor(0, 2, 0); -} else { - x_225 = x_223; - lean_ctor_set_tag(x_225, 0); -} -lean_ctor_set(x_225, 0, x_224); -lean_ctor_set(x_225, 1, x_222); -return x_225; -} -} -} -} -else -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -lean_dec(x_157); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_dec(x_155); +x_162 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_141, x_150); +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 = lean_ctor_get(x_159, 1); +lean_inc(x_165); +lean_dec(x_159); +x_166 = l_Lean_Syntax_structEq(x_163, x_165); +if (x_166 == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = l_List_dropLast___rarg(x_153); +x_168 = lean_box(0); +x_169 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_167, x_168, x_164); +if (lean_obj_tag(x_169) == 0) +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_170 = lean_ctor_get(x_169, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_169, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + x_172 = x_169; +} else { + lean_dec_ref(x_169); + x_172 = lean_box(0); +} +x_173 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_173, 0, x_170); +if (lean_is_scalar(x_172)) { + x_174 = lean_alloc_ctor(0, 2, 0); +} else { + x_174 = x_172; +} +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_171); +return x_174; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_175 = lean_ctor_get(x_169, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_169, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + x_177 = x_169; +} else { + lean_dec_ref(x_169); + x_177 = lean_box(0); +} +x_178 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_178, 0, x_175); +if (lean_is_scalar(x_177)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_177; + lean_ctor_set_tag(x_179, 0); +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_176); +return x_179; +} +} +else +{ +lean_object* x_180; lean_object* x_181; +x_180 = lean_box(0); +x_181 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_153, x_180, x_164); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + lean_ctor_release(x_181, 1); + x_184 = x_181; +} else { + lean_dec_ref(x_181); + x_184 = lean_box(0); +} +x_185 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_185, 0, x_182); +if (lean_is_scalar(x_184)) { + x_186 = lean_alloc_ctor(0, 2, 0); +} else { + x_186 = x_184; +} +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_186, 1, x_183); +return x_186; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_187 = lean_ctor_get(x_181, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_181, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + lean_ctor_release(x_181, 1); + x_189 = x_181; +} else { + lean_dec_ref(x_181); + x_189 = lean_box(0); +} +x_190 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_190, 0, x_187); +if (lean_is_scalar(x_189)) { + x_191 = lean_alloc_ctor(0, 2, 0); +} else { + x_191 = x_189; + lean_ctor_set_tag(x_191, 0); +} +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_188); +return x_191; +} +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; +lean_dec(x_141); +x_192 = lean_nat_sub(x_155, x_160); +lean_dec(x_155); +x_193 = l_List_get_x21___rarg(x_158, x_153, x_192); +x_194 = l_Lean_Server_Snapshots_parseNextCmd(x_8, x_193, x_150); +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +x_197 = lean_ctor_get(x_159, 1); +lean_inc(x_197); +lean_dec(x_159); +x_198 = l_Lean_Syntax_structEq(x_195, x_197); +if (x_198 == 0) +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_199 = l_List_dropLast___rarg(x_153); +x_200 = lean_box(0); +x_201 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_199, x_200, x_196); +if (lean_obj_tag(x_201) == 0) +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_204 = x_201; +} else { + lean_dec_ref(x_201); + x_204 = lean_box(0); +} +x_205 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_205, 0, x_202); +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; +x_207 = lean_ctor_get(x_201, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_201, 1); +lean_inc(x_208); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_209 = x_201; +} else { + lean_dec_ref(x_201); + x_209 = lean_box(0); +} +x_210 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_210, 0, x_207); +if (lean_is_scalar(x_209)) { + x_211 = lean_alloc_ctor(0, 2, 0); +} else { + x_211 = x_209; + lean_ctor_set_tag(x_211, 0); +} +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_208); +return x_211; +} +} +else +{ +lean_object* x_212; lean_object* x_213; +x_212 = lean_box(0); +x_213 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_153, x_212, x_196); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +x_215 = lean_ctor_get(x_213, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_216 = x_213; +} else { + lean_dec_ref(x_213); + x_216 = lean_box(0); +} +x_217 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_217, 0, x_214); +if (lean_is_scalar(x_216)) { + x_218 = lean_alloc_ctor(0, 2, 0); +} else { + x_218 = x_216; +} +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_215); +return x_218; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_219 = lean_ctor_get(x_213, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_213, 1); +lean_inc(x_220); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_221 = x_213; +} else { + lean_dec_ref(x_213); + x_221 = lean_box(0); +} +x_222 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_222, 0, x_219); +if (lean_is_scalar(x_221)) { + x_223 = lean_alloc_ctor(0, 2, 0); +} else { + x_223 = x_221; + lean_ctor_set_tag(x_223, 0); +} +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_220); +return x_223; +} +} +} +} +else +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_155); +lean_dec(x_153); lean_dec(x_8); +x_224 = lean_box(0); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_141); +lean_ctor_set(x_225, 1, x_224); x_226 = lean_box(0); -x_227 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_227, 0, x_142); -lean_ctor_set(x_227, 1, x_226); -x_228 = lean_box(0); -x_229 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_227, x_228, x_151); -if (lean_obj_tag(x_229) == 0) +x_227 = l_Lean_Server_FileWorker_updateDocument___lambda__2(x_4, x_6, x_7, x_225, x_226, x_150); +if (lean_obj_tag(x_227) == 0) { -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_230 = lean_ctor_get(x_229, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_229, 1); -lean_inc(x_231); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - x_232 = x_229; +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_227, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_230 = x_227; } else { - lean_dec_ref(x_229); - x_232 = lean_box(0); + lean_dec_ref(x_227); + x_230 = lean_box(0); } -x_233 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_233, 0, x_230); -if (lean_is_scalar(x_232)) { - x_234 = lean_alloc_ctor(0, 2, 0); +x_231 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_231, 0, x_228); +if (lean_is_scalar(x_230)) { + x_232 = lean_alloc_ctor(0, 2, 0); } else { - x_234 = x_232; + x_232 = x_230; } -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_231); -return x_234; +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_229); +return x_232; } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_235 = lean_ctor_get(x_229, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_229, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - x_237 = x_229; +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_233 = lean_ctor_get(x_227, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_227, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_235 = x_227; } else { - lean_dec_ref(x_229); - x_237 = lean_box(0); + lean_dec_ref(x_227); + x_235 = lean_box(0); } -x_238 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_238, 0, x_235); -if (lean_is_scalar(x_237)) { - x_239 = lean_alloc_ctor(0, 2, 0); +x_236 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_236, 0, x_233); +if (lean_is_scalar(x_235)) { + x_237 = lean_alloc_ctor(0, 2, 0); } else { - x_239 = x_237; - lean_ctor_set_tag(x_239, 0); + x_237 = x_235; + lean_ctor_set_tag(x_237, 0); } -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_236); -return x_239; +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_234); +return x_237; } } } @@ -6964,7 +6959,7 @@ return x_239; } else { -uint8_t x_244; +uint8_t x_242; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6972,31 +6967,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_244 = !lean_is_exclusive(x_11); -if (x_244 == 0) +x_242 = !lean_is_exclusive(x_11); +if (x_242 == 0) { -lean_object* x_245; lean_object* x_246; -x_245 = lean_ctor_get(x_11, 0); -x_246 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_246, 0, x_245); +lean_object* x_243; lean_object* x_244; +x_243 = lean_ctor_get(x_11, 0); +x_244 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_244, 0, x_243); lean_ctor_set_tag(x_11, 0); -lean_ctor_set(x_11, 0, x_246); +lean_ctor_set(x_11, 0, x_244); return x_11; } else { -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_247 = lean_ctor_get(x_11, 0); -x_248 = lean_ctor_get(x_11, 1); -lean_inc(x_248); -lean_inc(x_247); +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_245 = lean_ctor_get(x_11, 0); +x_246 = lean_ctor_get(x_11, 1); +lean_inc(x_246); +lean_inc(x_245); lean_dec(x_11); -x_249 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_249, 0, x_247); -x_250 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_250, 0, x_249); -lean_ctor_set(x_250, 1, x_248); -return x_250; +x_247 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_247, 0, x_245); +x_248 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_246); +return x_248; } } } diff --git a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c index ddd1da54c9..2001c0d92b 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c +++ b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c @@ -380,7 +380,6 @@ LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileW static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____closed__11; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__3; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); -lean_object* l_IO_AsyncList_updateFinishedPrefix___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__27(lean_object*, lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); @@ -400,7 +399,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_init LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__34___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_IO_AsyncList_finishedPrefix___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_9653____spec__10___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2___closed__4; lean_object* l_Lean_Lsp_ModuleRefs_findAt(lean_object*, lean_object*); @@ -590,6 +588,7 @@ LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocum static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; static lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1___lambda__1___closed__1; +lean_object* l_IO_AsyncList_getFinishedPrefix___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRangeFromSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withPPInaccessibleNames___at_Lean_Server_FileWorker_getInteractiveGoals___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -8263,136 +8262,132 @@ lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = lean_ctor_get(x_1, 1); lean_inc(x_9); lean_dec(x_1); -x_10 = l_IO_AsyncList_updateFinishedPrefix___rarg(x_9, x_8); +x_10 = l_IO_AsyncList_getFinishedPrefix___rarg(x_9, x_8); x_11 = !lean_is_exclusive(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_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; uint8_t 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; size_t x_31; lean_object* x_32; uint8_t x_33; +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; size_t x_19; size_t x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; size_t x_30; lean_object* x_31; uint8_t x_32; x_12 = lean_ctor_get(x_10, 0); x_13 = lean_ctor_get(x_10, 1); x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); lean_dec(x_12); -x_15 = l_IO_AsyncList_finishedPrefix___rarg(x_14); -lean_dec(x_14); -x_16 = l_List_redLength___rarg(x_15); -x_17 = lean_mk_empty_array_with_capacity(x_16); -lean_dec(x_16); -x_18 = l_List_toArrayAux___rarg(x_15, x_17); -x_19 = lean_array_get_size(x_18); -x_20 = lean_usize_of_nat(x_19); -lean_dec(x_19); -x_21 = 0; -x_22 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1(x_20, x_21, x_18); -x_23 = 1; +x_15 = l_List_redLength___rarg(x_14); +x_16 = lean_mk_empty_array_with_capacity(x_15); +lean_dec(x_15); +x_17 = l_List_toArrayAux___rarg(x_14, x_16); +x_18 = lean_array_get_size(x_17); +x_19 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_20 = 0; +x_21 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1(x_19, x_20, x_17); +x_22 = 1; lean_inc(x_3); -x_24 = l_Lean_Server_findModuleRefs(x_3, x_22, x_23); -lean_dec(x_22); -x_25 = l_Std_HashMap_toList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__1(x_24); -x_26 = lean_box(0); -x_27 = l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2(x_21, x_25, x_26); -x_28 = l_Std_HashMap_ofList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__5(x_27); -lean_inc(x_28); -x_29 = l_Lean_Lsp_ModuleRefs_findAt(x_28, x_5); -x_30 = lean_array_get_size(x_29); -x_31 = lean_usize_of_nat(x_30); -lean_dec(x_30); -lean_inc(x_2); -x_32 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3(x_28, x_29, x_31, x_21, x_2); +x_23 = l_Lean_Server_findModuleRefs(x_3, x_21, x_22); +lean_dec(x_21); +x_24 = l_Std_HashMap_toList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__1(x_23); +x_25 = lean_box(0); +x_26 = l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2(x_20, x_24, x_25); +x_27 = l_Std_HashMap_ofList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__5(x_26); +lean_inc(x_27); +x_28 = l_Lean_Lsp_ModuleRefs_findAt(x_27, x_5); +x_29 = lean_array_get_size(x_28); +x_30 = lean_usize_of_nat(x_29); lean_dec(x_29); -x_33 = l_Array_isEmpty___rarg(x_32); -if (x_33 == 0) +lean_inc(x_2); +x_31 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3(x_27, x_28, x_30, x_20, x_2); +lean_dec(x_28); +x_32 = l_Array_isEmpty___rarg(x_31); +if (x_32 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_34 = lean_box(0); -x_35 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2(x_32, x_21, x_34); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -lean_dec(x_35); -lean_ctor_set(x_10, 0, x_36); +x_33 = lean_box(0); +x_34 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2(x_31, x_20, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +lean_ctor_set(x_10, 0, x_35); return x_10; } else { -lean_object* x_37; lean_object* x_38; -lean_dec(x_32); +lean_object* x_36; lean_object* x_37; +lean_dec(x_31); lean_free_object(x_10); -x_37 = lean_box(0); -x_38 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__1(x_2, x_6, x_3, x_4, x_37, x_7, x_13); +x_36 = lean_box(0); +x_37 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__1(x_2, x_6, x_3, x_4, x_36, x_7, x_13); lean_dec(x_7); lean_dec(x_3); -return x_38; +return x_37; } } else { -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; size_t x_47; size_t 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; size_t x_58; lean_object* x_59; uint8_t x_60; -x_39 = lean_ctor_get(x_10, 0); -x_40 = lean_ctor_get(x_10, 1); -lean_inc(x_40); +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; size_t x_45; size_t x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; size_t x_56; lean_object* x_57; uint8_t x_58; +x_38 = lean_ctor_get(x_10, 0); +x_39 = lean_ctor_get(x_10, 1); lean_inc(x_39); +lean_inc(x_38); lean_dec(x_10); -x_41 = lean_ctor_get(x_39, 0); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_IO_AsyncList_finishedPrefix___rarg(x_41); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_List_redLength___rarg(x_40); +x_42 = lean_mk_empty_array_with_capacity(x_41); lean_dec(x_41); -x_43 = l_List_redLength___rarg(x_42); -x_44 = lean_mk_empty_array_with_capacity(x_43); -lean_dec(x_43); -x_45 = l_List_toArrayAux___rarg(x_42, x_44); -x_46 = lean_array_get_size(x_45); -x_47 = lean_usize_of_nat(x_46); -lean_dec(x_46); -x_48 = 0; -x_49 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1(x_47, x_48, x_45); -x_50 = 1; +x_43 = l_List_toArrayAux___rarg(x_40, x_42); +x_44 = lean_array_get_size(x_43); +x_45 = lean_usize_of_nat(x_44); +lean_dec(x_44); +x_46 = 0; +x_47 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1(x_45, x_46, x_43); +x_48 = 1; lean_inc(x_3); -x_51 = l_Lean_Server_findModuleRefs(x_3, x_49, x_50); -lean_dec(x_49); -x_52 = l_Std_HashMap_toList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__1(x_51); -x_53 = lean_box(0); -x_54 = l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2(x_48, x_52, x_53); -x_55 = l_Std_HashMap_ofList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__5(x_54); -lean_inc(x_55); -x_56 = l_Lean_Lsp_ModuleRefs_findAt(x_55, x_5); -x_57 = lean_array_get_size(x_56); -x_58 = lean_usize_of_nat(x_57); -lean_dec(x_57); +x_49 = l_Lean_Server_findModuleRefs(x_3, x_47, x_48); +lean_dec(x_47); +x_50 = l_Std_HashMap_toList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__1(x_49); +x_51 = lean_box(0); +x_52 = l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2(x_46, x_50, x_51); +x_53 = l_Std_HashMap_ofList___at_Lean_Server_ModuleRefs_instCoeModuleRefsModuleRefs___spec__5(x_52); +lean_inc(x_53); +x_54 = l_Lean_Lsp_ModuleRefs_findAt(x_53, x_5); +x_55 = lean_array_get_size(x_54); +x_56 = lean_usize_of_nat(x_55); +lean_dec(x_55); lean_inc(x_2); -x_59 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3(x_55, x_56, x_58, x_48, x_2); -lean_dec(x_56); -x_60 = l_Array_isEmpty___rarg(x_59); -if (x_60 == 0) +x_57 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3(x_53, x_54, x_56, x_46, x_2); +lean_dec(x_54); +x_58 = l_Array_isEmpty___rarg(x_57); +if (x_58 == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_61 = lean_box(0); -x_62 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2(x_59, x_48, x_61); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -lean_dec(x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_40); -return x_64; +x_59 = lean_box(0); +x_60 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2(x_57, x_46, x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_39); +return x_62; } else { -lean_object* x_65; lean_object* x_66; -lean_dec(x_59); -x_65 = lean_box(0); -x_66 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__1(x_2, x_6, x_3, x_4, x_65, x_7, x_40); +lean_object* x_63; lean_object* x_64; +lean_dec(x_57); +x_63 = lean_box(0); +x_64 = l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__1(x_2, x_6, x_3, x_4, x_63, x_7, x_39); lean_dec(x_7); lean_dec(x_3); -return x_66; +return x_64; } } } @@ -12878,105 +12873,103 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_3); -x_6 = l_IO_AsyncList_updateFinishedPrefix___rarg(x_1, x_5); +x_6 = l_IO_AsyncList_getFinishedPrefix___rarg(x_1, x_5); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); 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; lean_object* x_15; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_9 = lean_ctor_get(x_6, 1); lean_inc(x_9); lean_dec(x_6); x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); lean_dec(x_7); -x_11 = l_IO_AsyncList_finishedPrefix___rarg(x_10); -lean_dec(x_10); -x_12 = lean_box(0); -lean_inc(x_11); -x_13 = l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentSymbol___spec__1(x_11, x_12); -x_14 = lean_box(0); -x_15 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1(x_11, x_2, x_13, x_14, x_4, x_9); +x_11 = lean_box(0); +lean_inc(x_10); +x_12 = l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentSymbol___spec__1(x_10, x_11); +x_13 = lean_box(0); +x_14 = l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1(x_10, x_2, x_12, x_13, x_4, x_9); lean_dec(x_4); -return x_15; +return x_14; } else { -lean_object* x_16; +lean_object* x_15; lean_dec(x_7); lean_dec(x_4); lean_dec(x_2); -x_16 = lean_ctor_get(x_8, 0); -lean_inc(x_16); +x_15 = lean_ctor_get(x_8, 0); +lean_inc(x_15); lean_dec(x_8); -if (lean_obj_tag(x_16) == 0) +if (lean_obj_tag(x_15) == 0) { -uint8_t x_17; -x_17 = !lean_is_exclusive(x_6); -if (x_17 == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_6); +if (x_16 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_6, 0); -lean_dec(x_18); -x_19 = l_Lean_Server_RequestError_fileChanged; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_6, 0); +lean_dec(x_17); +x_18 = l_Lean_Server_RequestError_fileChanged; lean_ctor_set_tag(x_6, 1); -lean_ctor_set(x_6, 0, x_19); +lean_ctor_set(x_6, 0, x_18); return x_6; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_6, 1); -lean_inc(x_20); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_6, 1); +lean_inc(x_19); lean_dec(x_6); -x_21 = l_Lean_Server_RequestError_fileChanged; -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; +x_20 = l_Lean_Server_RequestError_fileChanged; +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; } } else { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_6); -if (x_23 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_6); +if (x_22 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_6, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_16, 0); -lean_inc(x_25); -lean_dec(x_16); -x_26 = lean_io_error_to_string(x_25); -x_27 = 4; -x_28 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_6, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_15, 0); +lean_inc(x_24); +lean_dec(x_15); +x_25 = lean_io_error_to_string(x_24); +x_26 = 4; +x_27 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_26); lean_ctor_set_tag(x_6, 1); -lean_ctor_set(x_6, 0, x_28); +lean_ctor_set(x_6, 0, x_27); return x_6; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_6, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; +x_28 = lean_ctor_get(x_6, 1); +lean_inc(x_28); +lean_dec(x_6); +x_29 = lean_ctor_get(x_15, 0); lean_inc(x_29); -lean_dec(x_6); -x_30 = lean_ctor_get(x_16, 0); -lean_inc(x_30); -lean_dec(x_16); -x_31 = lean_io_error_to_string(x_30); -x_32 = 4; -x_33 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set_uint8(x_33, sizeof(void*)*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; +lean_dec(x_15); +x_30 = lean_io_error_to_string(x_29); +x_31 = 4; +x_32 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_28); +return x_33; } } } diff --git a/stage0/stdlib/Lean/Server/Rpc/Deriving.c b/stage0/stdlib/Lean/Server/Rpc/Deriving.c index 0600607bff..17efde5f03 100644 --- a/stage0/stdlib/Lean/Server/Rpc/Deriving.c +++ b/stage0/stdlib/Lean/Server/Rpc/Deriving.c @@ -43,7 +43,6 @@ lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_WHNF_0__Lean_Meta_ LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__207; -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__101; lean_object* lean_nat_div(lean_object*, lean_object*); @@ -403,6 +402,7 @@ static lean_object* l_Lean_Meta_withLocalDecls_loop___at___private_Lean_Server_R static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__32___closed__6; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__35___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__4___lambda__1___closed__2; +lean_object* l_Lean_Meta_evalExpr_x27___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__62; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -689,7 +689,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_Rpc lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__21; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__222; -lean_object* l_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__170; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__199; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_isOptField___boxed(lean_object*); @@ -20310,46 +20309,44 @@ 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; lean_object* x_15; +lean_object* x_13; lean_object* x_14; uint8_t 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 = l_Lean_Elab_Term_evalExpr___rarg(x_3, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_14); -return x_15; +x_15 = 1; +x_16 = l_Lean_Meta_evalExpr_x27___rarg(x_3, x_13, x_15, x_6, x_7, x_8, x_9, x_14); +return x_16; } else { -uint8_t x_16; +uint8_t x_17; 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_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) { return x_12; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); lean_inc(x_18); -lean_inc(x_17); lean_dec(x_12); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } @@ -20453,7 +20450,7 @@ lean_dec(x_12); lean_ctor_set(x_2, 0, x_13); x_15 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__7; x_16 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__5; -x_17 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__2___boxed), 10, 3); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__2), 10, 3); lean_closure_set(x_17, 0, x_10); lean_closure_set(x_17, 1, x_15); lean_closure_set(x_17, 2, x_16); @@ -20545,7 +20542,7 @@ x_36 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_36, 0, x_34); x_37 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__7; x_38 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__5; -x_39 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__2___boxed), 10, 3); +x_39 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__2), 10, 3); lean_closure_set(x_39, 0, x_31); lean_closure_set(x_39, 1, x_37); lean_closure_set(x_39, 2, x_38); @@ -20664,15 +20661,6 @@ lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___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_3); -return x_11; -} -} LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___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) { _start: {