From 8e151599733e614febff2189669ad64ff9e56a3d Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sun, 22 Nov 2020 09:33:53 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab/App.lean | 49 +- stage0/src/Lean/Elab/Binders.lean | 29 +- stage0/src/Lean/Elab/Command.lean | 8 +- stage0/src/Lean/Elab/Inductive.lean | 20 +- stage0/src/Lean/Elab/MutualDef.lean | 31 +- stage0/src/Lean/Elab/Term.lean | 21 +- stage0/src/Lean/Expr.lean | 4 + stage0/src/Lean/Meta/ExprDefEq.lean | 5 +- stage0/src/Lean/ProjFns.lean | 7 + stage0/stdlib/Lean/Elab/App.c | 3006 +++++----- stage0/stdlib/Lean/Elab/Binders.c | 1204 ++-- stage0/stdlib/Lean/Elab/Command.c | 500 +- stage0/stdlib/Lean/Elab/Declaration.c | 63 +- stage0/stdlib/Lean/Elab/Inductive.c | 1592 ++++-- stage0/stdlib/Lean/Elab/LetRec.c | 144 +- stage0/stdlib/Lean/Elab/Match.c | 4 +- stage0/stdlib/Lean/Elab/MutualDef.c | 166 +- stage0/stdlib/Lean/Elab/PreDefinition/Main.c | 156 +- stage0/stdlib/Lean/Elab/Structure.c | 1687 +++--- stage0/stdlib/Lean/Elab/Syntax.c | 1152 ++-- stage0/stdlib/Lean/Elab/Term.c | 5405 ++++++++++-------- stage0/stdlib/Lean/Expr.c | 135 +- stage0/stdlib/Lean/Meta/ExprDefEq.c | 313 +- stage0/stdlib/Lean/Meta/Match/Match.c | 76 +- stage0/stdlib/Lean/ProjFns.c | 95 + 25 files changed, 8599 insertions(+), 7273 deletions(-) diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 457040d41d..ab1403fc0b 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -264,19 +264,42 @@ private def propagateExpectedType : M Unit := do match s.expectedType? with | none => pure () | some expectedType => - let numRemainingArgs := s.args.length - trace[Elab.app.propagateExpectedType]! "etaArgs.size: {s.etaArgs.size}, numRemainingArgs: {numRemainingArgs}, fType: {s.fType}" - match getForallBody numRemainingArgs s.namedArgs s.fType with - | none => pure () - | some fTypeBody => - unless fTypeBody.hasLooseBVars do - let hasTypeMVar := (fTypeBody.findMVar? fun mvarId => s.typeMVars.contains mvarId).isSome - let hasOnlyTypeMVar := (fTypeBody.findMVar? fun mvarId => !s.typeMVars.contains mvarId).isNone - if hasTypeMVar && hasOnlyTypeMVar then - unless (← hasOptAutoParams fTypeBody) do - trace[Elab.app.propagateExpectedType]! "{expectedType} =?= {fTypeBody}" - isDefEq expectedType fTypeBody - pure () + /- We don't propagate `Prop` because we often use `Prop` as a more general "Bool" (e.g., `if-then-else`). + If we propagate `expectedType == Prop` in the following examples, the elaborator would fail + ``` + def f1 (s : Nat × Bool) : Bool := if s.2 then false else true + + def f2 (s : List Bool) : Bool := if s.head! then false else true + + def f3 (s : List Bool) : Bool := if List.head! (s.map not) then false else true + ``` + They would all fail for the same reason. So, let's focus on the first one. + We would elaborate `s.2` with `expectedType == Prop`. + Before we elaborate `s`, this method would be invoked, and `s.fType` is `?α × ?β → ?β` and after + propagation we would have `?α × Prop → Prop`. Then, when we would try to elaborate `s`, and + get a type error because `?α × Prop` cannot be unified with `Nat × Bool` + Most users would have a hard time trying to understand why these examples failed. + + Here is a possible alternative workarounds. We give up the idea of using `Prop` at `if-then-else`. + Drawback: users use `if-then-else` with conditions that are not Decidable. + So, users would have to embrace `propDecidable` and `choice`. + This may not be that bad since the developers and users don't seem to care about constructivism. + + We currently use a different workaround, we just don't propagate the expected type when it is `Prop`. -/ + unless expectedType.isProp do + let numRemainingArgs := s.args.length + trace[Elab.app.propagateExpectedType]! "etaArgs.size: {s.etaArgs.size}, numRemainingArgs: {numRemainingArgs}, fType: {s.fType}" + match getForallBody numRemainingArgs s.namedArgs s.fType with + | none => pure () + | some fTypeBody => + unless fTypeBody.hasLooseBVars do + let hasTypeMVar := (fTypeBody.findMVar? fun mvarId => s.typeMVars.contains mvarId).isSome + let hasOnlyTypeMVar := (fTypeBody.findMVar? fun mvarId => !s.typeMVars.contains mvarId).isNone + if hasTypeMVar && hasOnlyTypeMVar then + unless (← hasOptAutoParams fTypeBody) do + trace[Elab.app.propagateExpectedType]! "{expectedType} =?= {fTypeBody}" + isDefEq expectedType fTypeBody + pure () /- Create a fresh local variable with the current binder name and argument type, add it to `etaArgs` and `f`, diff --git a/stage0/src/Lean/Elab/Binders.lean b/stage0/src/Lean/Elab/Binders.lean index 96a49ad6bf..acc51a8a37 100644 --- a/stage0/src/Lean/Elab/Binders.lean +++ b/stage0/src/Lean/Elab/Binders.lean @@ -142,24 +142,31 @@ private def matchBinder (stx : Syntax) : TermElabM (Array BinderView) := private def registerFailedToInferBinderTypeInfo (type : Expr) (ref : Syntax) : TermElabM Unit := registerCustomErrorIfMVar type ref "failed to infer binder type" -private partial def elabBinderViews {α} (binderViews : Array BinderView) (fvars : Array Expr) (k : Array Expr → TermElabM α) : TermElabM α := - let rec loop (i : Nat) (fvars : Array Expr) : TermElabM α := +private partial def elabBinderViews {α} (binderViews : Array BinderView) (catchUnboundImplicit : Bool) (fvars : Array Expr) (k : Array Expr → TermElabM α) + : TermElabM α := + let rec loop (i : Nat) (fvars : Array Expr) : TermElabM α := do if h : i < binderViews.size then let binderView := binderViews.get ⟨i, h⟩ - elabTypeWithUnboundImplicit binderView.type fun unboundImplicitFVars type => do + if catchUnboundImplicit then + elabTypeWithUnboundImplicit binderView.type fun unboundImplicitFVars type => do + registerFailedToInferBinderTypeInfo type binderView.type + let fvars := fvars ++ unboundImplicitFVars + withLocalDecl binderView.id.getId binderView.bi type fun fvar => + loop (i+1) (fvars.push fvar) + else + let type ← elabType binderView.type registerFailedToInferBinderTypeInfo type binderView.type - let fvars := fvars ++ unboundImplicitFVars withLocalDecl binderView.id.getId binderView.bi type fun fvar => loop (i+1) (fvars.push fvar) - else + else k fvars loop 0 fvars -private partial def elabBindersAux {α} (binders : Array Syntax) (k : Array Expr → TermElabM α) : TermElabM α := +private partial def elabBindersAux {α} (binders : Array Syntax) (catchUnboundImplicit : Bool) (k : Array Expr → TermElabM α) : TermElabM α := let rec loop (i : Nat) (fvars : Array Expr) : TermElabM α := do if h : i < binders.size then let binderViews ← matchBinder (binders.get ⟨i, h⟩) - elabBinderViews binderViews fvars <| loop (i+1) + elabBinderViews binderViews catchUnboundImplicit fvars <| loop (i+1) else k fvars loop 0 #[] @@ -168,15 +175,15 @@ private partial def elabBindersAux {α} (binders : Array Syntax) (k : Array Expr Elaborate the given binders (i.e., `Syntax` objects for `simpleBinder <|> bracketedBinder`), update the local context, set of local instances, reset instance chache (if needed), and then execute `x` with the updated context. -/ -def elabBinders {α} (binders : Array Syntax) (k : Array Expr → TermElabM α) : TermElabM α := +def elabBinders {α} (binders : Array Syntax) (k : Array Expr → TermElabM α) (catchUnboundImplicit := false) : TermElabM α := withoutPostponingUniverseConstraints do if binders.isEmpty then k #[] else - elabBindersAux binders k + elabBindersAux binders catchUnboundImplicit k -@[inline] def elabBinder {α} (binder : Syntax) (x : Expr → TermElabM α) : TermElabM α := - elabBinders #[binder] (fun fvars => x (fvars.get! 0)) +@[inline] def elabBinder {α} (binder : Syntax) (x : Expr → TermElabM α) (catchUnboundImplicit := false) : TermElabM α := + elabBinders #[binder] (catchUnboundImplicit := catchUnboundImplicit) (fun fvars => x (fvars.get! 0)) @[builtinTermElab «forall»] def elabForall : TermElab := fun stx _ => match_syntax stx with diff --git a/stage0/src/Lean/Elab/Command.lean b/stage0/src/Lean/Elab/Command.lean index 98a344ca47..61d1dcd74c 100644 --- a/stage0/src/Lean/Elab/Command.lean +++ b/stage0/src/Lean/Elab/Command.lean @@ -300,7 +300,7 @@ def liftTermElabM {α} (declName? : Option Name) (x : TermElabM α) : CommandEla -- We don't want to store messages produced when elaborating `(getVarDecls s)` because they have already been saved when we elaborated the `variable`(s) command. -- So, we use `Term.resetMessageLog`. Term.withUnboundImplicitLocal <| - Term.elabBinders (getVarDecls s) fun xs => do + Term.elabBinders (getVarDecls s) (catchUnboundImplicit := true) fun xs => do Term.resetMessageLog Term.withUnboundImplicitLocal (flag := false) <| elabFn xs @@ -507,14 +507,16 @@ def elabOpenRenaming (n : SyntaxNode) : CommandElabM Unit := do -- `variable` bracketedBinder let binder := n[1] -- Try to elaborate `binder` for sanity checking - runTermElabM none fun _ => Term.withUnboundImplicitLocal <| Term.elabBinder binder fun _ => pure () + runTermElabM none fun _ => Term.withUnboundImplicitLocal <| + Term.elabBinder binder (catchUnboundImplicit := true) fun _ => pure () modifyScope fun scope => { scope with varDecls := scope.varDecls.push binder } @[builtinCommandElab «variables»] def elabVariables : CommandElab := fun n => do -- `variables` bracketedBinder+ let binders := n[1].getArgs -- Try to elaborate `binders` for sanity checking - runTermElabM none fun _ => Term.withUnboundImplicitLocal <| Term.elabBinders binders $ fun _ => pure () + runTermElabM none fun _ => Term.withUnboundImplicitLocal <| + Term.elabBinders binders (catchUnboundImplicit := true) fun _ => pure () modifyScope fun scope => { scope with varDecls := scope.varDecls ++ binders } open Meta diff --git a/stage0/src/Lean/Elab/Inductive.lean b/stage0/src/Lean/Elab/Inductive.lean index 7454d035eb..d45d3772c1 100644 --- a/stage0/src/Lean/Elab/Inductive.lean +++ b/stage0/src/Lean/Elab/Inductive.lean @@ -71,22 +71,22 @@ structure ElabHeaderResult := instance : Inhabited ElabHeaderResult := ⟨{ view := arbitrary _, lctx := arbitrary _, localInsts := arbitrary _, params := #[], type := arbitrary _ }⟩ -private partial def elabHeaderAux (views : Array InductiveView) (i : Nat) (acc : Array ElabHeaderResult) : TermElabM (Array ElabHeaderResult) := +private partial def elabHeaderAux (views : Array InductiveView) (i : Nat) (acc : Array ElabHeaderResult) : TermElabM (Array ElabHeaderResult) := do if h : i < views.size then - let view := views.get ⟨i, h⟩; - Term.elabBinders view.binders.getArgs fun params => do - let lctx ← getLCtx - let localInsts ← getLocalInstances + let view := views.get ⟨i, h⟩ + let acc ← Term.withUnboundImplicitLocal <| Term.elabBinders view.binders.getArgs (catchUnboundImplicit := true) fun params => do match view.type? with | none => let u ← mkFreshLevelMVar let type := mkSort u - elabHeaderAux views (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) + pure <| acc.push { lctx := (← getLCtx), localInsts := (← getLocalInstances), params := params, type := type, view := view } | some typeStx => - let type ← Term.elabTerm typeStx none - unless (← isTypeFormerType type) do - throwErrorAt typeStx "invalid inductive type, resultant type is not a sort" - elabHeaderAux views (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) + Term.elabTypeWithUnboundImplicit typeStx fun unboundImplicitFVars type => do + unless (← isTypeFormerType type) do + throwErrorAt typeStx "invalid inductive type, resultant type is not a sort" + trace[Meta.debug]! "type: {type}, params: {params}, unboundImplicitFVars: {unboundImplicitFVars}" + pure <| acc.push { lctx := (← getLCtx), localInsts := (← getLocalInstances), params := params ++ unboundImplicitFVars, type := type, view := view } + elabHeaderAux views (i+1) acc else pure acc diff --git a/stage0/src/Lean/Elab/MutualDef.lean b/stage0/src/Lean/Elab/MutualDef.lean index bc7119982d..adda72e1dd 100644 --- a/stage0/src/Lean/Elab/MutualDef.lean +++ b/stage0/src/Lean/Elab/MutualDef.lean @@ -94,21 +94,22 @@ private def elabHeaders (views : Array DefView) : TermElabM (Array DefViewElabHe let newHeader ← withRef view.ref do let ⟨shortDeclName, declName, levelNames⟩ ← expandDeclId (← getCurrNamespace) (← getLevelNames) view.declId view.modifiers applyAttributesAt declName view.modifiers.attrs AttributeApplicationTime.beforeElaboration - withUnboundImplicitLocal <| withLevelNames levelNames <| elabBinders view.binders.getArgs fun xs => do - let refForElabFunType := view.value - elabFunType refForElabFunType xs view fun xs type => do - let newHeader := { - ref := view.ref, - modifiers := view.modifiers, - kind := view.kind, - shortDeclName := shortDeclName, - declName := declName, - levelNames := levelNames, - numParams := xs.size, - type := type, - valueStx := view.value : DefViewElabHeader } - check headers newHeader - pure newHeader + withUnboundImplicitLocal <| withLevelNames levelNames <| + elabBinders (catchUnboundImplicit := true) view.binders.getArgs fun xs => do + let refForElabFunType := view.value + elabFunType refForElabFunType xs view fun xs type => do + let newHeader := { + ref := view.ref, + modifiers := view.modifiers, + kind := view.kind, + shortDeclName := shortDeclName, + declName := declName, + levelNames := levelNames, + numParams := xs.size, + type := type, + valueStx := view.value : DefViewElabHeader } + check headers newHeader + pure newHeader headers := headers.push newHeader pure headers diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index 994a25621d..a6742698d6 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -620,11 +620,14 @@ def synthesizeInst (type : Expr) : TermElabM Expr := do | LOption.undef => throwError! "failed to synthesize instance{indentExpr type}" | LOption.none => throwError! "failed to synthesize instance{indentExpr type}" +def isMonadApp (type : Expr) : TermElabM Bool := do + let some (m, _) ← isTypeApp? type | pure false + return (← isMonad? m) |>.isSome + /-- Try to coerce `a : α` into `m β` by first coercing `a : α` into ‵β`, and then using `pure`. - The method is only applied if one of the following cases hold: - - Head of `α` and head of ‵β` are not metavariables. - - Head of `α` is not a metavariable, and it is not a Monad. + The method is only applied if `α` is not monadic (e.g., `Nat → IO Unit`), and the head symbol + of the resulting type is not a metavariable (e.g., `?m Unit` or `Bool → ?m Nat`). The main limitation of the approach above is polymorphic code. As usual, coercions and polymorphism do not interact well. In the example above, the lift is successfully applied to `true`, `false` and `!y` @@ -649,13 +652,11 @@ private def tryPureCoe? (errorMsgHeader? : Option String) (m β α a : Expr) : T pure (some aNew) catch _ => pure none - let αHead := α.getAppFn - if !β.getAppFn.isMVar && !αHead.isMVar then - doIt -- case 1 - else - let αIsMonad? ← isMonad? α - if !αHead.isMVar && αIsMonad?.isNone then - doIt -- case 2 + forallTelescope α fun _ α => do + if (← isMonadApp α) then + pure none + else if !α.getAppFn.isMVar then + doIt else pure none diff --git a/stage0/src/Lean/Expr.lean b/stage0/src/Lean/Expr.lean index 33fa2e721e..c572b21870 100644 --- a/stage0/src/Lean/Expr.lean +++ b/stage0/src/Lean/Expr.lean @@ -390,6 +390,10 @@ def isSort : Expr → Bool | sort _ _ => true | _ => false +def isProp : Expr → Bool + | sort (Level.zero ..) _ => true + | _ => false + def isBVar : Expr → Bool | bvar _ _ => true | _ => false diff --git a/stage0/src/Lean/Meta/ExprDefEq.lean b/stage0/src/Lean/Meta/ExprDefEq.lean index 403ebb2a59..1e89ef46c3 100644 --- a/stage0/src/Lean/Meta/ExprDefEq.lean +++ b/stage0/src/Lean/Meta/ExprDefEq.lean @@ -905,9 +905,8 @@ private def unfoldReducibeDefEq (tInfo sInfo : ConstantInfo) (t s : Expr) : Meta Auxiliary method for isDefEqDelta -/ private def unfoldNonProjFnDefEq (tInfo sInfo : ConstantInfo) (t s : Expr) : MetaM LBool := do - let env ← getEnv - let tProj? := env.isProjectionFn tInfo.name - let sProj? := env.isProjectionFn sInfo.name + let tProj? ← isProjectionFn tInfo.name + let sProj? ← isProjectionFn sInfo.name if tProj? && !sProj? then unfold s (unfoldDefEq tInfo sInfo t s) $ fun s => isDefEqRight sInfo.name t s else if !tProj? && sProj? then diff --git a/stage0/src/Lean/ProjFns.lean b/stage0/src/Lean/ProjFns.lean index 818f71cee9..9b1eb70762 100644 --- a/stage0/src/Lean/ProjFns.lean +++ b/stage0/src/Lean/ProjFns.lean @@ -62,4 +62,11 @@ def getProjectionStructureName? (env : Environment) (projName : Name) : Option N | _ => none end Environment + +def isProjectionFn [MonadEnv m] [Monad m] (declName : Name) : m Bool := + return (← getEnv).isProjectionFn declName + +def getProjectionFnInfo? [MonadEnv m] [Monad m] (declName : Name) : m (Option ProjectionFunctionInfo) := + return (← getEnv).getProjectionFnInfo? declName + end Lean diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 3d32616090..449f1e281e 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -34,7 +34,6 @@ lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__1; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_8168____closed__9; lean_object* l_List_tail_x21___rarg(lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___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*); extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,6 +71,7 @@ extern lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkLambdaLet___cl lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop_match__3(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__3; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isProp(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); @@ -99,6 +99,7 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddN extern lean_object* l_Lean_identKind___closed__2; lean_object* l_Lean_Elab_Term_NamedArg_ref___default; lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_fmt___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__2(uint8_t); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_match__2(lean_object*); lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -579,7 +580,7 @@ lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Ter lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__1; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7550_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7555_(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_8168____closed__12; lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); @@ -13411,7 +13412,7 @@ 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; uint8_t x_165; lean_object* x_166; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; x_33 = lean_ctor_get(x_25, 1); lean_inc(x_33); if (lean_is_exclusive(x_25)) { @@ -13425,60 +13426,64 @@ if (lean_is_exclusive(x_25)) { x_35 = lean_ctor_get(x_26, 0); lean_inc(x_35); lean_dec(x_26); -x_36 = lean_ctor_get(x_11, 2); -lean_inc(x_36); -x_37 = lean_unsigned_to_nat(0u); -x_38 = l_List_lengthAux___rarg(x_36, x_37); -lean_dec(x_36); -x_188 = lean_st_ref_get(x_7, x_33); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_189, 3); -lean_inc(x_190); -lean_dec(x_189); -x_191 = lean_ctor_get_uint8(x_190, sizeof(void*)*1); -lean_dec(x_190); -if (x_191 == 0) +x_36 = l_Lean_Expr_isProp(x_35); +if (x_36 == 0) { -lean_object* x_192; uint8_t x_193; -x_192 = lean_ctor_get(x_188, 1); -lean_inc(x_192); -lean_dec(x_188); -x_193 = 0; -x_165 = x_193; -x_166 = x_192; -goto block_187; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_166; lean_object* x_167; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; +x_37 = lean_ctor_get(x_11, 2); +lean_inc(x_37); +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_List_lengthAux___rarg(x_37, x_38); +lean_dec(x_37); +x_189 = lean_st_ref_get(x_7, x_33); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_190, 3); +lean_inc(x_191); +lean_dec(x_190); +x_192 = lean_ctor_get_uint8(x_191, sizeof(void*)*1); +lean_dec(x_191); +if (x_192 == 0) +{ +lean_object* x_193; uint8_t x_194; +x_193 = lean_ctor_get(x_189, 1); +lean_inc(x_193); +lean_dec(x_189); +x_194 = 0; +x_166 = x_194; +x_167 = x_193; +goto block_188; } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; -x_194 = lean_ctor_get(x_188, 1); -lean_inc(x_194); -lean_dec(x_188); -x_195 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_196 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_195, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_194); -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); +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_195 = lean_ctor_get(x_189, 1); +lean_inc(x_195); +lean_dec(x_189); +x_196 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_197 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_196, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_195); +x_198 = lean_ctor_get(x_197, 0); lean_inc(x_198); -lean_dec(x_196); -x_199 = lean_unbox(x_197); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); lean_dec(x_197); -x_165 = x_199; -x_166 = x_198; -goto block_187; +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_166 = x_200; +x_167 = x_199; +goto block_188; } -block_164: +block_165: { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_11, 3); -lean_inc(x_40); -x_41 = lean_ctor_get(x_11, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_11, 3); lean_inc(x_41); -x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_38, x_40, x_41); -if (lean_obj_tag(x_42) == 0) +x_42 = lean_ctor_get(x_11, 1); +lean_inc(x_42); +x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_39, x_41, x_42); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; +lean_object* x_44; lean_object* x_45; lean_dec(x_35); lean_dec(x_18); lean_dec(x_11); @@ -13489,33 +13494,33 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = lean_box(0); +x_44 = lean_box(0); if (lean_is_scalar(x_34)) { - x_44 = lean_alloc_ctor(0, 2, 0); + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_34; + x_45 = x_34; } -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_39); -return x_44; +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_40); +return x_45; } else { -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_42, 0); -lean_inc(x_45); -lean_dec(x_42); -x_46 = l_Lean_Expr_hasLooseBVars(x_45); -if (x_46 == 0) +lean_object* x_46; uint8_t x_47; +x_46 = lean_ctor_get(x_43, 0); +lean_inc(x_46); +lean_dec(x_43); +x_47 = l_Lean_Expr_hasLooseBVars(x_46); +if (x_47 == 0) { -lean_object* x_47; lean_object* x_48; -x_47 = lean_box(0); -lean_inc(x_45); -x_48 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_11, x_45, x_47); -if (lean_obj_tag(x_48) == 0) +lean_object* x_48; lean_object* x_49; +x_48 = lean_box(0); +lean_inc(x_46); +x_49 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_11, x_46, x_48); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_49; lean_object* x_50; -lean_dec(x_45); +lean_object* x_50; lean_object* x_51; +lean_dec(x_46); lean_dec(x_35); lean_dec(x_18); lean_dec(x_7); @@ -13525,27 +13530,27 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_49 = lean_box(0); +x_50 = lean_box(0); if (lean_is_scalar(x_34)) { - x_50 = lean_alloc_ctor(0, 2, 0); + x_51 = lean_alloc_ctor(0, 2, 0); } else { - x_50 = x_34; + x_51 = x_34; } -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_39); -return x_50; +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_40); +return x_51; } else { -lean_object* x_51; -lean_dec(x_48); -lean_inc(x_45); -x_51 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_18, x_45, x_47); -if (lean_obj_tag(x_51) == 0) +lean_object* x_52; +lean_dec(x_49); +lean_inc(x_46); +x_52 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_18, x_46, x_48); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_52; lean_object* x_53; +lean_object* x_53; lean_object* x_54; lean_dec(x_34); -x_52 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +x_53 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); @@ -13553,66 +13558,66 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -lean_inc(x_45); -x_53 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_45, x_52, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_39); -if (lean_obj_tag(x_53) == 0) +lean_inc(x_46); +x_54 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_46, x_53, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_40); +if (lean_obj_tag(x_54) == 0) { -uint8_t x_54; -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) +uint8_t x_55; +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) { -lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; uint8_t x_93; -x_55 = lean_ctor_get(x_53, 0); -x_56 = lean_ctor_get(x_53, 1); -x_93 = lean_unbox(x_55); -lean_dec(x_55); -if (x_93 == 0) +lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; uint8_t x_94; +x_56 = lean_ctor_get(x_54, 0); +x_57 = lean_ctor_get(x_54, 1); +x_94 = lean_unbox(x_56); +lean_dec(x_56); +if (x_94 == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; -lean_free_object(x_53); -x_94 = lean_st_ref_get(x_7, x_56); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_95, 3); +lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; +lean_free_object(x_54); +x_95 = lean_st_ref_get(x_7, x_57); +x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); -lean_dec(x_95); -x_97 = lean_ctor_get_uint8(x_96, sizeof(void*)*1); +x_97 = lean_ctor_get(x_96, 3); +lean_inc(x_97); lean_dec(x_96); -if (x_97 == 0) +x_98 = lean_ctor_get_uint8(x_97, sizeof(void*)*1); +lean_dec(x_97); +if (x_98 == 0) { -lean_object* x_98; uint8_t x_99; -x_98 = lean_ctor_get(x_94, 1); -lean_inc(x_98); -lean_dec(x_94); -x_99 = 0; -x_57 = x_99; -x_58 = x_98; -goto block_92; +lean_object* x_99; uint8_t x_100; +x_99 = lean_ctor_get(x_95, 1); +lean_inc(x_99); +lean_dec(x_95); +x_100 = 0; +x_58 = x_100; +x_59 = x_99; +goto block_93; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_100 = lean_ctor_get(x_94, 1); -lean_inc(x_100); -lean_dec(x_94); -x_101 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_102 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_101, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_100); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_101 = lean_ctor_get(x_95, 1); +lean_inc(x_101); +lean_dec(x_95); +x_102 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_103 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_102, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_101); +x_104 = lean_ctor_get(x_103, 0); lean_inc(x_104); -lean_dec(x_102); -x_105 = lean_unbox(x_103); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); lean_dec(x_103); -x_57 = x_105; -x_58 = x_104; -goto block_92; +x_106 = lean_unbox(x_104); +lean_dec(x_104); +x_58 = x_106; +x_59 = x_105; +goto block_93; } } else { -lean_object* x_106; -lean_dec(x_45); +lean_object* x_107; +lean_dec(x_46); lean_dec(x_35); lean_dec(x_7); lean_dec(x_6); @@ -13621,146 +13626,146 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_106 = lean_box(0); -lean_ctor_set(x_53, 0, x_106); -return x_53; +x_107 = lean_box(0); +lean_ctor_set(x_54, 0, x_107); +return x_54; } -block_92: +block_93: { -if (x_57 == 0) +if (x_58 == 0) { -lean_object* x_59; -x_59 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_45, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_58); +lean_object* x_60; +x_60 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_46, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_59); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_obj_tag(x_59) == 0) +if (lean_obj_tag(x_60) == 0) { -uint8_t x_60; -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_59, 0); -lean_dec(x_61); -x_62 = lean_box(0); -lean_ctor_set(x_59, 0, x_62); -return x_59; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_60, 0); +lean_dec(x_62); +x_63 = lean_box(0); +lean_ctor_set(x_60, 0, x_63); +return x_60; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_59, 1); -lean_inc(x_63); -lean_dec(x_59); -x_64 = lean_box(0); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -return x_65; +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_60, 1); +lean_inc(x_64); +lean_dec(x_60); +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +return x_66; } } else { -uint8_t x_66; -x_66 = !lean_is_exclusive(x_59); -if (x_66 == 0) +uint8_t x_67; +x_67 = !lean_is_exclusive(x_60); +if (x_67 == 0) { -return x_59; +return x_60; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_59, 0); -x_68 = lean_ctor_get(x_59, 1); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_60, 0); +x_69 = lean_ctor_get(x_60, 1); +lean_inc(x_69); lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_59); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +lean_dec(x_60); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_object* x_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_inc(x_35); -x_70 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_70, 0, x_35); -x_71 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -x_72 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_70); -x_73 = l_Lean_Meta_isLevelDefEqAux___closed__6; -x_74 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -lean_inc(x_45); -x_75 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_75, 0, x_45); -x_76 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); +x_71 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_71, 0, x_35); +x_72 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +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_Lean_Meta_isLevelDefEqAux___closed__6; +x_75 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +lean_inc(x_46); +x_76 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_76, 0, x_46); x_77 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_71); -x_78 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_79 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_78, x_77, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_58); -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec(x_79); -x_81 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_45, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_80); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +x_78 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_72); +x_79 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_80 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_79, x_78, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_59); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_82 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_46, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_81); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_obj_tag(x_81) == 0) +if (lean_obj_tag(x_82) == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_81); -if (x_82 == 0) +uint8_t x_83; +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_81, 0); -lean_dec(x_83); -x_84 = lean_box(0); -lean_ctor_set(x_81, 0, x_84); -return x_81; +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_82, 0); +lean_dec(x_84); +x_85 = lean_box(0); +lean_ctor_set(x_82, 0, x_85); +return x_82; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_81, 1); -lean_inc(x_85); -lean_dec(x_81); -x_86 = lean_box(0); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_85); -return x_87; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_82, 1); +lean_inc(x_86); +lean_dec(x_82); +x_87 = lean_box(0); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +return x_88; } } else { -uint8_t x_88; -x_88 = !lean_is_exclusive(x_81); -if (x_88 == 0) +uint8_t x_89; +x_89 = !lean_is_exclusive(x_82); +if (x_89 == 0) { -return x_81; +return x_82; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_81, 0); -x_90 = lean_ctor_get(x_81, 1); +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_82, 0); +x_91 = lean_ctor_get(x_82, 1); +lean_inc(x_91); lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_81); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +lean_dec(x_82); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; } } } @@ -13768,60 +13773,60 @@ return x_91; } else { -lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; uint8_t x_141; -x_107 = lean_ctor_get(x_53, 0); -x_108 = lean_ctor_get(x_53, 1); +lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; uint8_t x_142; +x_108 = lean_ctor_get(x_54, 0); +x_109 = lean_ctor_get(x_54, 1); +lean_inc(x_109); lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_53); -x_141 = lean_unbox(x_107); -lean_dec(x_107); -if (x_141 == 0) +lean_dec(x_54); +x_142 = lean_unbox(x_108); +lean_dec(x_108); +if (x_142 == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; -x_142 = lean_st_ref_get(x_7, x_108); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_143, 3); +lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; +x_143 = lean_st_ref_get(x_7, x_109); +x_144 = lean_ctor_get(x_143, 0); lean_inc(x_144); -lean_dec(x_143); -x_145 = lean_ctor_get_uint8(x_144, sizeof(void*)*1); +x_145 = lean_ctor_get(x_144, 3); +lean_inc(x_145); lean_dec(x_144); -if (x_145 == 0) +x_146 = lean_ctor_get_uint8(x_145, sizeof(void*)*1); +lean_dec(x_145); +if (x_146 == 0) { -lean_object* x_146; uint8_t x_147; -x_146 = lean_ctor_get(x_142, 1); -lean_inc(x_146); -lean_dec(x_142); -x_147 = 0; -x_109 = x_147; -x_110 = x_146; -goto block_140; +lean_object* x_147; uint8_t x_148; +x_147 = lean_ctor_get(x_143, 1); +lean_inc(x_147); +lean_dec(x_143); +x_148 = 0; +x_110 = x_148; +x_111 = x_147; +goto block_141; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_148 = lean_ctor_get(x_142, 1); -lean_inc(x_148); -lean_dec(x_142); -x_149 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_150 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_149, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_148); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; +x_149 = lean_ctor_get(x_143, 1); +lean_inc(x_149); +lean_dec(x_143); +x_150 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_151 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_150, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_149); +x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); -lean_dec(x_150); -x_153 = lean_unbox(x_151); +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); lean_dec(x_151); -x_109 = x_153; -x_110 = x_152; -goto block_140; +x_154 = lean_unbox(x_152); +lean_dec(x_152); +x_110 = x_154; +x_111 = x_153; +goto block_141; } } else { -lean_object* x_154; lean_object* x_155; -lean_dec(x_45); +lean_object* x_155; lean_object* x_156; +lean_dec(x_46); lean_dec(x_35); lean_dec(x_7); lean_dec(x_6); @@ -13830,147 +13835,147 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_154 = lean_box(0); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_108); -return x_155; +x_155 = lean_box(0); +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_109); +return x_156; } -block_140: +block_141: { -if (x_109 == 0) +if (x_110 == 0) { -lean_object* x_111; -x_111 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_45, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_110); +lean_object* x_112; +x_112 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_46, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_111); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_obj_tag(x_111) == 0) +if (lean_obj_tag(x_112) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_113 = x_111; +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_111); - x_113 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -x_114 = lean_box(0); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 0); +x_115 = lean_box(0); +if (lean_is_scalar(x_114)) { + x_116 = lean_alloc_ctor(0, 2, 0); } else { - x_115 = x_113; + x_116 = x_114; } -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_112); -return x_115; +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_113); +return x_116; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_116 = lean_ctor_get(x_111, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_111, 1); +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_117 = lean_ctor_get(x_112, 0); lean_inc(x_117); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_118 = x_111; +x_118 = lean_ctor_get(x_112, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_119 = x_112; } else { - lean_dec_ref(x_111); - x_118 = lean_box(0); + lean_dec_ref(x_112); + x_119 = lean_box(0); } -if (lean_is_scalar(x_118)) { - x_119 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(1, 2, 0); } else { - x_119 = x_118; + x_120 = x_119; } -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_118); +return x_120; } } else { -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_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_inc(x_35); -x_120 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_120, 0, x_35); -x_121 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -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_Lean_Meta_isLevelDefEqAux___closed__6; -x_124 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -lean_inc(x_45); -x_125 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_125, 0, x_45); -x_126 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); +x_121 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_121, 0, x_35); +x_122 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_123 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_121); +x_124 = l_Lean_Meta_isLevelDefEqAux___closed__6; +x_125 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +lean_inc(x_46); +x_126 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_126, 0, x_46); x_127 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_121); -x_128 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_129 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_128, x_127, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_110); -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -lean_dec(x_129); -x_131 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_45, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_130); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +x_128 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_122); +x_129 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_130 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_129, x_128, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_111); +x_131 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +lean_dec(x_130); +x_132 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_35, x_46, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_131); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_obj_tag(x_131) == 0) +if (lean_obj_tag(x_132) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_133 = x_131; +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_134 = x_132; } else { - lean_dec_ref(x_131); - x_133 = lean_box(0); + lean_dec_ref(x_132); + x_134 = lean_box(0); } -x_134 = lean_box(0); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(0, 2, 0); +x_135 = lean_box(0); +if (lean_is_scalar(x_134)) { + x_136 = lean_alloc_ctor(0, 2, 0); } else { - x_135 = x_133; + x_136 = x_134; } -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_132); -return x_135; +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_133); +return x_136; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_136 = lean_ctor_get(x_131, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 1); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_137 = lean_ctor_get(x_132, 0); lean_inc(x_137); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_138 = x_131; +x_138 = lean_ctor_get(x_132, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_139 = x_132; } else { - lean_dec_ref(x_131); - x_138 = lean_box(0); + lean_dec_ref(x_132); + x_139 = lean_box(0); } -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(1, 2, 0); } else { - x_139 = x_138; + x_140 = x_139; } -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; +lean_ctor_set(x_140, 0, x_137); +lean_ctor_set(x_140, 1, x_138); +return x_140; } } } @@ -13978,8 +13983,8 @@ return x_139; } else { -uint8_t x_156; -lean_dec(x_45); +uint8_t x_157; +lean_dec(x_46); lean_dec(x_35); lean_dec(x_7); lean_dec(x_6); @@ -13988,31 +13993,31 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_156 = !lean_is_exclusive(x_53); -if (x_156 == 0) +x_157 = !lean_is_exclusive(x_54); +if (x_157 == 0) { -return x_53; +return x_54; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_53, 0); -x_158 = lean_ctor_get(x_53, 1); +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_54, 0); +x_159 = lean_ctor_get(x_54, 1); +lean_inc(x_159); lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_53); -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_157); -lean_ctor_set(x_159, 1, x_158); -return x_159; +lean_dec(x_54); +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_158); +lean_ctor_set(x_160, 1, x_159); +return x_160; } } } else { -lean_object* x_160; lean_object* x_161; -lean_dec(x_51); -lean_dec(x_45); +lean_object* x_161; lean_object* x_162; +lean_dec(x_52); +lean_dec(x_46); lean_dec(x_35); lean_dec(x_7); lean_dec(x_6); @@ -14021,22 +14026,22 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_160 = lean_box(0); +x_161 = lean_box(0); if (lean_is_scalar(x_34)) { - x_161 = lean_alloc_ctor(0, 2, 0); + x_162 = lean_alloc_ctor(0, 2, 0); } else { - x_161 = x_34; + x_162 = x_34; } -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_39); -return x_161; +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_40); +return x_162; } } } else { -lean_object* x_162; lean_object* x_163; -lean_dec(x_45); +lean_object* x_163; lean_object* x_164; +lean_dec(x_46); lean_dec(x_35); lean_dec(x_18); lean_dec(x_11); @@ -14047,119 +14052,144 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_162 = lean_box(0); +x_163 = lean_box(0); if (lean_is_scalar(x_34)) { - x_163 = lean_alloc_ctor(0, 2, 0); + x_164 = lean_alloc_ctor(0, 2, 0); } else { - x_163 = x_34; + x_164 = x_34; } -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_39); -return x_163; +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_40); +return x_164; } } } -block_187: +block_188: { -if (x_165 == 0) +if (x_166 == 0) { lean_dec(x_14); -x_39 = x_166; -goto block_164; +x_40 = x_167; +goto block_165; } else { -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; -x_167 = lean_array_get_size(x_14); +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; +x_168 = lean_array_get_size(x_14); lean_dec(x_14); -x_168 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_167); -x_169 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_169, 0, x_168); -x_170 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; -x_171 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_169); -x_172 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; -x_173 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_173, 0, x_171); -lean_ctor_set(x_173, 1, x_172); -lean_inc(x_38); -x_174 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_38); -x_175 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_175, 0, x_174); -x_176 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_176, 0, x_173); -lean_ctor_set(x_176, 1, x_175); -x_177 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; -x_178 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_178, 0, x_176); -lean_ctor_set(x_178, 1, x_177); -x_179 = lean_ctor_get(x_11, 1); -lean_inc(x_179); -x_180 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_180, 0, x_179); -x_181 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_180); -x_182 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -x_183 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_183, 0, x_181); -lean_ctor_set(x_183, 1, x_182); -x_184 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_185 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_184, x_183, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_166); -x_186 = lean_ctor_get(x_185, 1); -lean_inc(x_186); -lean_dec(x_185); -x_39 = x_186; -goto block_164; -} +x_169 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_168); +x_170 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_170, 0, x_169); +x_171 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; +x_172 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_170); +x_173 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; +x_174 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_174, 0, x_172); +lean_ctor_set(x_174, 1, x_173); +lean_inc(x_39); +x_175 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_39); +x_176 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_176, 0, x_175); +x_177 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_176); +x_178 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; +x_179 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +x_180 = lean_ctor_get(x_11, 1); +lean_inc(x_180); +x_181 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_181, 0, x_180); +x_182 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_181); +x_183 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_184 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +x_185 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_186 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_185, x_184, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_167); +x_187 = lean_ctor_get(x_186, 1); +lean_inc(x_187); +lean_dec(x_186); +x_40 = x_187; +goto block_165; } } } else { -uint8_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_200 = lean_ctor_get_uint8(x_21, sizeof(void*)*9); -x_201 = lean_ctor_get(x_21, 0); -x_202 = lean_ctor_get(x_21, 1); -x_203 = lean_ctor_get(x_21, 2); -x_204 = lean_ctor_get(x_21, 3); -x_205 = lean_ctor_get_uint8(x_21, sizeof(void*)*9 + 1); -x_206 = lean_ctor_get(x_21, 4); -x_207 = lean_ctor_get(x_21, 5); -x_208 = lean_ctor_get(x_21, 6); -x_209 = lean_ctor_get(x_21, 7); -x_210 = lean_ctor_get(x_21, 8); +lean_object* x_201; lean_object* x_202; +lean_dec(x_35); +lean_dec(x_18); +lean_dec(x_14); +lean_dec(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); +lean_dec(x_1); +x_201 = lean_box(0); +if (lean_is_scalar(x_34)) { + x_202 = lean_alloc_ctor(0, 2, 0); +} else { + x_202 = x_34; +} +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_33); +return x_202; +} +} +} +else +{ +uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_203 = lean_ctor_get_uint8(x_21, sizeof(void*)*9); +x_204 = lean_ctor_get(x_21, 0); +x_205 = lean_ctor_get(x_21, 1); +x_206 = lean_ctor_get(x_21, 2); +x_207 = lean_ctor_get(x_21, 3); +x_208 = lean_ctor_get_uint8(x_21, sizeof(void*)*9 + 1); +x_209 = lean_ctor_get(x_21, 4); +x_210 = lean_ctor_get(x_21, 5); +x_211 = lean_ctor_get(x_21, 6); +x_212 = lean_ctor_get(x_21, 7); +x_213 = lean_ctor_get(x_21, 8); +lean_inc(x_213); +lean_inc(x_212); +lean_inc(x_211); lean_inc(x_210); lean_inc(x_209); -lean_inc(x_208); lean_inc(x_207); lean_inc(x_206); +lean_inc(x_205); lean_inc(x_204); -lean_inc(x_203); -lean_inc(x_202); -lean_inc(x_201); lean_dec(x_21); -x_211 = 1; -x_212 = lean_alloc_ctor(0, 9, 3); -lean_ctor_set(x_212, 0, x_201); -lean_ctor_set(x_212, 1, x_202); -lean_ctor_set(x_212, 2, x_203); -lean_ctor_set(x_212, 3, x_204); -lean_ctor_set(x_212, 4, x_206); -lean_ctor_set(x_212, 5, x_207); -lean_ctor_set(x_212, 6, x_208); -lean_ctor_set(x_212, 7, x_209); -lean_ctor_set(x_212, 8, x_210); -lean_ctor_set_uint8(x_212, sizeof(void*)*9, x_200); -lean_ctor_set_uint8(x_212, sizeof(void*)*9 + 1, x_205); -lean_ctor_set_uint8(x_212, sizeof(void*)*9 + 2, x_211); -x_213 = lean_st_ref_set(x_1, x_212, x_22); -x_214 = lean_ctor_get(x_11, 4); -lean_inc(x_214); -if (lean_obj_tag(x_214) == 0) +x_214 = 1; +x_215 = lean_alloc_ctor(0, 9, 3); +lean_ctor_set(x_215, 0, x_204); +lean_ctor_set(x_215, 1, x_205); +lean_ctor_set(x_215, 2, x_206); +lean_ctor_set(x_215, 3, x_207); +lean_ctor_set(x_215, 4, x_209); +lean_ctor_set(x_215, 5, x_210); +lean_ctor_set(x_215, 6, x_211); +lean_ctor_set(x_215, 7, x_212); +lean_ctor_set(x_215, 8, x_213); +lean_ctor_set_uint8(x_215, sizeof(void*)*9, x_203); +lean_ctor_set_uint8(x_215, sizeof(void*)*9 + 1, x_208); +lean_ctor_set_uint8(x_215, sizeof(void*)*9 + 2, x_214); +x_216 = lean_st_ref_set(x_1, x_215, x_22); +x_217 = lean_ctor_get(x_11, 4); +lean_inc(x_217); +if (lean_obj_tag(x_217) == 0) { -lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_dec(x_18); lean_dec(x_14); lean_dec(x_11); @@ -14170,97 +14200,101 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -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; +x_218 = lean_ctor_get(x_216, 1); +lean_inc(x_218); +if (lean_is_exclusive(x_216)) { + lean_ctor_release(x_216, 0); + lean_ctor_release(x_216, 1); + x_219 = x_216; } else { - lean_dec_ref(x_213); - x_216 = lean_box(0); + lean_dec_ref(x_216); + x_219 = lean_box(0); } -x_217 = lean_box(0); -if (lean_is_scalar(x_216)) { - x_218 = lean_alloc_ctor(0, 2, 0); +x_220 = lean_box(0); +if (lean_is_scalar(x_219)) { + x_221 = lean_alloc_ctor(0, 2, 0); } else { - x_218 = x_216; + x_221 = x_219; } -lean_ctor_set(x_218, 0, x_217); -lean_ctor_set(x_218, 1, x_215); -return x_218; +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_218); +return x_221; } else { -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; uint8_t x_299; lean_object* x_300; lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; -x_219 = lean_ctor_get(x_213, 1); -lean_inc(x_219); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_220 = x_213; -} else { - lean_dec_ref(x_213); - x_220 = lean_box(0); -} -x_221 = lean_ctor_get(x_214, 0); -lean_inc(x_221); -lean_dec(x_214); -x_222 = lean_ctor_get(x_11, 2); +lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; +x_222 = lean_ctor_get(x_216, 1); lean_inc(x_222); -x_223 = lean_unsigned_to_nat(0u); -x_224 = l_List_lengthAux___rarg(x_222, x_223); -lean_dec(x_222); -x_322 = lean_st_ref_get(x_7, x_219); -x_323 = lean_ctor_get(x_322, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_323, 3); -lean_inc(x_324); -lean_dec(x_323); -x_325 = lean_ctor_get_uint8(x_324, sizeof(void*)*1); -lean_dec(x_324); -if (x_325 == 0) +if (lean_is_exclusive(x_216)) { + lean_ctor_release(x_216, 0); + lean_ctor_release(x_216, 1); + x_223 = x_216; +} else { + lean_dec_ref(x_216); + x_223 = lean_box(0); +} +x_224 = lean_ctor_get(x_217, 0); +lean_inc(x_224); +lean_dec(x_217); +x_225 = l_Lean_Expr_isProp(x_224); +if (x_225 == 0) { -lean_object* x_326; uint8_t x_327; -x_326 = lean_ctor_get(x_322, 1); -lean_inc(x_326); -lean_dec(x_322); -x_327 = 0; -x_299 = x_327; -x_300 = x_326; -goto block_321; +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_303; lean_object* x_304; lean_object* x_326; lean_object* x_327; lean_object* x_328; uint8_t x_329; +x_226 = lean_ctor_get(x_11, 2); +lean_inc(x_226); +x_227 = lean_unsigned_to_nat(0u); +x_228 = l_List_lengthAux___rarg(x_226, x_227); +lean_dec(x_226); +x_326 = lean_st_ref_get(x_7, x_222); +x_327 = lean_ctor_get(x_326, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_327, 3); +lean_inc(x_328); +lean_dec(x_327); +x_329 = lean_ctor_get_uint8(x_328, sizeof(void*)*1); +lean_dec(x_328); +if (x_329 == 0) +{ +lean_object* x_330; uint8_t x_331; +x_330 = lean_ctor_get(x_326, 1); +lean_inc(x_330); +lean_dec(x_326); +x_331 = 0; +x_303 = x_331; +x_304 = x_330; +goto block_325; } else { -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; -x_328 = lean_ctor_get(x_322, 1); -lean_inc(x_328); -lean_dec(x_322); -x_329 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_330 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_329, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_328); -x_331 = lean_ctor_get(x_330, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_330, 1); +lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; +x_332 = lean_ctor_get(x_326, 1); lean_inc(x_332); -lean_dec(x_330); -x_333 = lean_unbox(x_331); -lean_dec(x_331); -x_299 = x_333; -x_300 = x_332; -goto block_321; +lean_dec(x_326); +x_333 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_334 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_333, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_332); +x_335 = lean_ctor_get(x_334, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_334, 1); +lean_inc(x_336); +lean_dec(x_334); +x_337 = lean_unbox(x_335); +lean_dec(x_335); +x_303 = x_337; +x_304 = x_336; +goto block_325; } -block_298: +block_302: { -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_11, 3); -lean_inc(x_226); -x_227 = lean_ctor_get(x_11, 1); -lean_inc(x_227); -x_228 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_224, x_226, x_227); -if (lean_obj_tag(x_228) == 0) +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_11, 3); +lean_inc(x_230); +x_231 = lean_ctor_get(x_11, 1); +lean_inc(x_231); +x_232 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_228, x_230, x_231); +if (lean_obj_tag(x_232) == 0) { -lean_object* x_229; lean_object* x_230; -lean_dec(x_221); +lean_object* x_233; lean_object* x_234; +lean_dec(x_224); lean_dec(x_18); lean_dec(x_11); lean_dec(x_7); @@ -14270,34 +14304,34 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_229 = lean_box(0); -if (lean_is_scalar(x_220)) { - x_230 = lean_alloc_ctor(0, 2, 0); +x_233 = lean_box(0); +if (lean_is_scalar(x_223)) { + x_234 = lean_alloc_ctor(0, 2, 0); } else { - x_230 = x_220; + x_234 = x_223; } -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_225); -return x_230; +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_229); +return x_234; } else { -lean_object* x_231; uint8_t x_232; -x_231 = lean_ctor_get(x_228, 0); -lean_inc(x_231); -lean_dec(x_228); -x_232 = l_Lean_Expr_hasLooseBVars(x_231); -if (x_232 == 0) +lean_object* x_235; uint8_t x_236; +x_235 = lean_ctor_get(x_232, 0); +lean_inc(x_235); +lean_dec(x_232); +x_236 = l_Lean_Expr_hasLooseBVars(x_235); +if (x_236 == 0) { -lean_object* x_233; lean_object* x_234; -x_233 = lean_box(0); -lean_inc(x_231); -x_234 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_11, x_231, x_233); -if (lean_obj_tag(x_234) == 0) +lean_object* x_237; lean_object* x_238; +x_237 = lean_box(0); +lean_inc(x_235); +x_238 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_11, x_235, x_237); +if (lean_obj_tag(x_238) == 0) { -lean_object* x_235; lean_object* x_236; -lean_dec(x_231); -lean_dec(x_221); +lean_object* x_239; lean_object* x_240; +lean_dec(x_235); +lean_dec(x_224); lean_dec(x_18); lean_dec(x_7); lean_dec(x_6); @@ -14306,27 +14340,27 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_235 = lean_box(0); -if (lean_is_scalar(x_220)) { - x_236 = lean_alloc_ctor(0, 2, 0); +x_239 = lean_box(0); +if (lean_is_scalar(x_223)) { + x_240 = lean_alloc_ctor(0, 2, 0); } else { - x_236 = x_220; + x_240 = x_223; } -lean_ctor_set(x_236, 0, x_235); -lean_ctor_set(x_236, 1, x_225); -return x_236; +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_229); +return x_240; } else { -lean_object* x_237; -lean_dec(x_234); -lean_inc(x_231); -x_237 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_18, x_231, x_233); -if (lean_obj_tag(x_237) == 0) +lean_object* x_241; +lean_dec(x_238); +lean_inc(x_235); +x_241 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_18, x_235, x_237); +if (lean_obj_tag(x_241) == 0) { -lean_object* x_238; lean_object* x_239; -lean_dec(x_220); -x_238 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +lean_object* x_242; lean_object* x_243; +lean_dec(x_223); +x_242 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); @@ -14334,269 +14368,234 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -lean_inc(x_231); -x_239 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_231, x_238, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_225); -if (lean_obj_tag(x_239) == 0) +lean_inc(x_235); +x_243 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_235, x_242, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_229); +if (lean_obj_tag(x_243) == 0) { -lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; lean_object* x_244; uint8_t x_275; -x_240 = lean_ctor_get(x_239, 0); -lean_inc(x_240); -x_241 = lean_ctor_get(x_239, 1); -lean_inc(x_241); -if (lean_is_exclusive(x_239)) { - lean_ctor_release(x_239, 0); - lean_ctor_release(x_239, 1); - x_242 = x_239; +lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; lean_object* x_248; uint8_t x_279; +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_246 = x_243; } else { - lean_dec_ref(x_239); - x_242 = lean_box(0); + lean_dec_ref(x_243); + x_246 = lean_box(0); } -x_275 = lean_unbox(x_240); -lean_dec(x_240); -if (x_275 == 0) -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; -lean_dec(x_242); -x_276 = lean_st_ref_get(x_7, x_241); -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_277, 3); -lean_inc(x_278); -lean_dec(x_277); -x_279 = lean_ctor_get_uint8(x_278, sizeof(void*)*1); -lean_dec(x_278); +x_279 = lean_unbox(x_244); +lean_dec(x_244); if (x_279 == 0) { -lean_object* x_280; uint8_t x_281; -x_280 = lean_ctor_get(x_276, 1); -lean_inc(x_280); -lean_dec(x_276); -x_281 = 0; -x_243 = x_281; -x_244 = x_280; -goto block_274; -} -else -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; -x_282 = lean_ctor_get(x_276, 1); +lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; +lean_dec(x_246); +x_280 = lean_st_ref_get(x_7, x_245); +x_281 = lean_ctor_get(x_280, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_281, 3); lean_inc(x_282); -lean_dec(x_276); -x_283 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_284 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_283, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_282); -x_285 = lean_ctor_get(x_284, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_284, 1); +lean_dec(x_281); +x_283 = lean_ctor_get_uint8(x_282, sizeof(void*)*1); +lean_dec(x_282); +if (x_283 == 0) +{ +lean_object* x_284; uint8_t x_285; +x_284 = lean_ctor_get(x_280, 1); +lean_inc(x_284); +lean_dec(x_280); +x_285 = 0; +x_247 = x_285; +x_248 = x_284; +goto block_278; +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; +x_286 = lean_ctor_get(x_280, 1); lean_inc(x_286); -lean_dec(x_284); -x_287 = lean_unbox(x_285); -lean_dec(x_285); -x_243 = x_287; -x_244 = x_286; -goto block_274; -} -} -else -{ -lean_object* x_288; lean_object* x_289; -lean_dec(x_231); -lean_dec(x_221); -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_288 = lean_box(0); -if (lean_is_scalar(x_242)) { - x_289 = lean_alloc_ctor(0, 2, 0); -} else { - x_289 = x_242; -} -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_241); -return x_289; -} -block_274: -{ -if (x_243 == 0) -{ -lean_object* x_245; -x_245 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_221, x_231, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_244); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -if (lean_obj_tag(x_245) == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_246 = lean_ctor_get(x_245, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - lean_ctor_release(x_245, 1); - x_247 = x_245; -} else { - lean_dec_ref(x_245); - x_247 = lean_box(0); -} -x_248 = lean_box(0); -if (lean_is_scalar(x_247)) { - x_249 = lean_alloc_ctor(0, 2, 0); -} else { - x_249 = x_247; -} -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_246); -return x_249; -} -else -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_250 = lean_ctor_get(x_245, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_245, 1); -lean_inc(x_251); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - lean_ctor_release(x_245, 1); - x_252 = x_245; -} else { - lean_dec_ref(x_245); - x_252 = lean_box(0); -} -if (lean_is_scalar(x_252)) { - x_253 = lean_alloc_ctor(1, 2, 0); -} else { - x_253 = x_252; -} -lean_ctor_set(x_253, 0, x_250); -lean_ctor_set(x_253, 1, x_251); -return x_253; -} -} -else -{ -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_inc(x_221); -x_254 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_254, 0, x_221); -x_255 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -x_256 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_256, 0, x_255); -lean_ctor_set(x_256, 1, x_254); -x_257 = l_Lean_Meta_isLevelDefEqAux___closed__6; -x_258 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_258, 0, x_256); -lean_ctor_set(x_258, 1, x_257); -lean_inc(x_231); -x_259 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_259, 0, x_231); -x_260 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -x_261 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_255); -x_262 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_263 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_262, x_261, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_244); -x_264 = lean_ctor_get(x_263, 1); -lean_inc(x_264); -lean_dec(x_263); -x_265 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_221, x_231, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_264); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -if (lean_obj_tag(x_265) == 0) -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} -x_268 = lean_box(0); -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(0, 2, 0); -} else { - x_269 = x_267; -} -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_266); -return x_269; -} -else -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_270 = lean_ctor_get(x_265, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_265, 1); -lean_inc(x_271); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_272 = x_265; -} else { - lean_dec_ref(x_265); - x_272 = lean_box(0); -} -if (lean_is_scalar(x_272)) { - x_273 = lean_alloc_ctor(1, 2, 0); -} else { - x_273 = x_272; -} -lean_ctor_set(x_273, 0, x_270); -lean_ctor_set(x_273, 1, x_271); -return x_273; -} -} -} -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -lean_dec(x_231); -lean_dec(x_221); -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_290 = lean_ctor_get(x_239, 0); +lean_dec(x_280); +x_287 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_288 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_287, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_286); +x_289 = lean_ctor_get(x_288, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_288, 1); lean_inc(x_290); -x_291 = lean_ctor_get(x_239, 1); -lean_inc(x_291); -if (lean_is_exclusive(x_239)) { - lean_ctor_release(x_239, 0); - lean_ctor_release(x_239, 1); - x_292 = x_239; -} else { - lean_dec_ref(x_239); - x_292 = lean_box(0); +lean_dec(x_288); +x_291 = lean_unbox(x_289); +lean_dec(x_289); +x_247 = x_291; +x_248 = x_290; +goto block_278; } -if (lean_is_scalar(x_292)) { - x_293 = lean_alloc_ctor(1, 2, 0); -} else { - x_293 = x_292; } -lean_ctor_set(x_293, 0, x_290); -lean_ctor_set(x_293, 1, x_291); +else +{ +lean_object* x_292; lean_object* x_293; +lean_dec(x_235); +lean_dec(x_224); +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_292 = lean_box(0); +if (lean_is_scalar(x_246)) { + x_293 = lean_alloc_ctor(0, 2, 0); +} else { + x_293 = x_246; +} +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_245); return x_293; } +block_278: +{ +if (x_247 == 0) +{ +lean_object* x_249; +x_249 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_224, x_235, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_248); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_obj_tag(x_249) == 0) +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_250 = lean_ctor_get(x_249, 1); +lean_inc(x_250); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_251 = x_249; +} else { + lean_dec_ref(x_249); + x_251 = lean_box(0); +} +x_252 = lean_box(0); +if (lean_is_scalar(x_251)) { + x_253 = lean_alloc_ctor(0, 2, 0); +} else { + x_253 = x_251; +} +lean_ctor_set(x_253, 0, x_252); +lean_ctor_set(x_253, 1, x_250); +return x_253; } else { -lean_object* x_294; lean_object* x_295; -lean_dec(x_237); -lean_dec(x_231); -lean_dec(x_221); +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_254 = lean_ctor_get(x_249, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_249, 1); +lean_inc(x_255); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_256 = x_249; +} else { + lean_dec_ref(x_249); + x_256 = lean_box(0); +} +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(1, 2, 0); +} else { + x_257 = x_256; +} +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); +return x_257; +} +} +else +{ +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_inc(x_224); +x_258 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_258, 0, x_224); +x_259 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_260 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_258); +x_261 = l_Lean_Meta_isLevelDefEqAux___closed__6; +x_262 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_262, 0, x_260); +lean_ctor_set(x_262, 1, x_261); +lean_inc(x_235); +x_263 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_263, 0, x_235); +x_264 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +x_265 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_259); +x_266 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_267 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_266, x_265, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_248); +x_268 = lean_ctor_get(x_267, 1); +lean_inc(x_268); +lean_dec(x_267); +x_269 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_224, x_235, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_268); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_obj_tag(x_269) == 0) +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_270 = lean_ctor_get(x_269, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_271 = x_269; +} else { + lean_dec_ref(x_269); + x_271 = lean_box(0); +} +x_272 = lean_box(0); +if (lean_is_scalar(x_271)) { + x_273 = lean_alloc_ctor(0, 2, 0); +} else { + x_273 = x_271; +} +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_270); +return x_273; +} +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +x_274 = lean_ctor_get(x_269, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_269, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_276 = x_269; +} else { + lean_dec_ref(x_269); + x_276 = lean_box(0); +} +if (lean_is_scalar(x_276)) { + x_277 = lean_alloc_ctor(1, 2, 0); +} else { + x_277 = x_276; +} +lean_ctor_set(x_277, 0, x_274); +lean_ctor_set(x_277, 1, x_275); +return x_277; +} +} +} +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_dec(x_235); +lean_dec(x_224); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -14604,105 +14603,139 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_294 = lean_box(0); -if (lean_is_scalar(x_220)) { - x_295 = lean_alloc_ctor(0, 2, 0); +x_294 = lean_ctor_get(x_243, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_243, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_296 = x_243; } else { - x_295 = x_220; + lean_dec_ref(x_243); + x_296 = lean_box(0); } -lean_ctor_set(x_295, 0, x_294); -lean_ctor_set(x_295, 1, x_225); -return x_295; -} -} -} -else -{ -lean_object* x_296; lean_object* x_297; -lean_dec(x_231); -lean_dec(x_221); -lean_dec(x_18); -lean_dec(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); -lean_dec(x_1); -x_296 = lean_box(0); -if (lean_is_scalar(x_220)) { - x_297 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_296)) { + x_297 = lean_alloc_ctor(1, 2, 0); } else { - x_297 = x_220; + x_297 = x_296; } -lean_ctor_set(x_297, 0, x_296); -lean_ctor_set(x_297, 1, x_225); +lean_ctor_set(x_297, 0, x_294); +lean_ctor_set(x_297, 1, x_295); return x_297; } } +else +{ +lean_object* x_298; lean_object* x_299; +lean_dec(x_241); +lean_dec(x_235); +lean_dec(x_224); +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_298 = lean_box(0); +if (lean_is_scalar(x_223)) { + x_299 = lean_alloc_ctor(0, 2, 0); +} else { + x_299 = x_223; +} +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_229); +return x_299; +} } -block_321: -{ -if (x_299 == 0) -{ -lean_dec(x_14); -x_225 = x_300; -goto block_298; } else { -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_301 = lean_array_get_size(x_14); +lean_object* x_300; lean_object* x_301; +lean_dec(x_235); +lean_dec(x_224); +lean_dec(x_18); +lean_dec(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); +lean_dec(x_1); +x_300 = lean_box(0); +if (lean_is_scalar(x_223)) { + x_301 = lean_alloc_ctor(0, 2, 0); +} else { + x_301 = x_223; +} +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_229); +return x_301; +} +} +} +block_325: +{ +if (x_303 == 0) +{ lean_dec(x_14); -x_302 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_301); -x_303 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_303, 0, x_302); -x_304 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; -x_305 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_305, 0, x_304); -lean_ctor_set(x_305, 1, x_303); -x_306 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; -x_307 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_307, 0, x_305); -lean_ctor_set(x_307, 1, x_306); -lean_inc(x_224); -x_308 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_224); -x_309 = lean_alloc_ctor(0, 1, 0); +x_229 = x_304; +goto block_302; +} +else +{ +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; +x_305 = lean_array_get_size(x_14); +lean_dec(x_14); +x_306 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_305); +x_307 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_307, 0, x_306); +x_308 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; +x_309 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_309, 0, x_308); -x_310 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_310, 0, x_307); -lean_ctor_set(x_310, 1, x_309); -x_311 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; -x_312 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_312, 0, x_310); -lean_ctor_set(x_312, 1, x_311); -x_313 = lean_ctor_get(x_11, 1); -lean_inc(x_313); -x_314 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_314, 0, x_313); -x_315 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_315, 0, x_312); -lean_ctor_set(x_315, 1, x_314); -x_316 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -x_317 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_317, 0, x_315); -lean_ctor_set(x_317, 1, x_316); -x_318 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_319 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_318, x_317, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_300); -x_320 = lean_ctor_get(x_319, 1); -lean_inc(x_320); -lean_dec(x_319); -x_225 = x_320; -goto block_298; -} -} +lean_ctor_set(x_309, 1, x_307); +x_310 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; +x_311 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_311, 0, x_309); +lean_ctor_set(x_311, 1, x_310); +lean_inc(x_228); +x_312 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_228); +x_313 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_313, 0, x_312); +x_314 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_314, 0, x_311); +lean_ctor_set(x_314, 1, x_313); +x_315 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; +x_316 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_316, 0, x_314); +lean_ctor_set(x_316, 1, x_315); +x_317 = lean_ctor_get(x_11, 1); +lean_inc(x_317); +x_318 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_318, 0, x_317); +x_319 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_319, 0, x_316); +lean_ctor_set(x_319, 1, x_318); +x_320 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_321 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_321, 0, x_319); +lean_ctor_set(x_321, 1, x_320); +x_322 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_323 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_322, x_321, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_304); +x_324 = lean_ctor_get(x_323, 1); +lean_inc(x_324); +lean_dec(x_323); +x_229 = x_324; +goto block_302; } } } else { -lean_object* x_334; +lean_object* x_338; lean_object* x_339; +lean_dec(x_224); lean_dec(x_18); lean_dec(x_14); lean_dec(x_11); @@ -14713,14 +14746,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_334 = lean_box(0); -lean_ctor_set(x_9, 0, x_334); -return x_9; +x_338 = lean_box(0); +if (lean_is_scalar(x_223)) { + x_339 = lean_alloc_ctor(0, 2, 0); +} else { + x_339 = x_223; +} +lean_ctor_set(x_339, 0, x_338); +lean_ctor_set(x_339, 1, x_222); +return x_339; +} +} } } else { -lean_object* x_335; +lean_object* x_340; +lean_dec(x_18); lean_dec(x_14); lean_dec(x_11); lean_dec(x_7); @@ -14730,14 +14772,14 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_335 = lean_box(0); -lean_ctor_set(x_9, 0, x_335); +x_340 = lean_box(0); +lean_ctor_set(x_9, 0, x_340); return x_9; } } else { -lean_object* x_336; +lean_object* x_341; lean_dec(x_14); lean_dec(x_11); lean_dec(x_7); @@ -14747,29 +14789,16 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_336 = lean_box(0); -lean_ctor_set(x_9, 0, x_336); +x_341 = lean_box(0); +lean_ctor_set(x_9, 0, x_341); return x_9; } } -} else { -lean_object* x_337; lean_object* x_338; uint8_t x_339; lean_object* x_340; uint8_t x_341; -x_337 = lean_ctor_get(x_9, 0); -x_338 = lean_ctor_get(x_9, 1); -lean_inc(x_338); -lean_inc(x_337); -lean_dec(x_9); -x_339 = lean_ctor_get_uint8(x_337, sizeof(void*)*9); -x_340 = lean_ctor_get(x_337, 5); -lean_inc(x_340); -x_341 = l_Array_isEmpty___rarg(x_340); -if (x_341 == 0) -{ -lean_object* x_342; lean_object* x_343; -lean_dec(x_340); -lean_dec(x_337); +lean_object* x_342; +lean_dec(x_14); +lean_dec(x_11); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -14778,94 +14807,28 @@ lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); x_342 = lean_box(0); -x_343 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_343, 0, x_342); -lean_ctor_set(x_343, 1, x_338); -return x_343; +lean_ctor_set(x_9, 0, x_342); +return x_9; +} +} } else { -if (x_339 == 0) +lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; uint8_t x_347; +x_343 = lean_ctor_get(x_9, 0); +x_344 = lean_ctor_get(x_9, 1); +lean_inc(x_344); +lean_inc(x_343); +lean_dec(x_9); +x_345 = lean_ctor_get_uint8(x_343, sizeof(void*)*9); +x_346 = lean_ctor_get(x_343, 5); +lean_inc(x_346); +x_347 = l_Array_isEmpty___rarg(x_346); +if (x_347 == 0) { -uint8_t x_344; -x_344 = lean_ctor_get_uint8(x_337, sizeof(void*)*9 + 2); -if (x_344 == 0) -{ -lean_object* x_345; uint8_t x_346; -x_345 = lean_ctor_get(x_337, 8); -lean_inc(x_345); -x_346 = l_Array_isEmpty___rarg(x_345); -if (x_346 == 0) -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; uint8_t x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; uint8_t 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; uint8_t x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_347 = lean_st_ref_take(x_1, x_338); -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_350 = lean_ctor_get_uint8(x_348, sizeof(void*)*9); -x_351 = lean_ctor_get(x_348, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_348, 1); -lean_inc(x_352); -x_353 = lean_ctor_get(x_348, 2); -lean_inc(x_353); -x_354 = lean_ctor_get(x_348, 3); -lean_inc(x_354); -x_355 = lean_ctor_get_uint8(x_348, sizeof(void*)*9 + 1); -x_356 = lean_ctor_get(x_348, 4); -lean_inc(x_356); -x_357 = lean_ctor_get(x_348, 5); -lean_inc(x_357); -x_358 = lean_ctor_get(x_348, 6); -lean_inc(x_358); -x_359 = lean_ctor_get(x_348, 7); -lean_inc(x_359); -x_360 = lean_ctor_get(x_348, 8); -lean_inc(x_360); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - lean_ctor_release(x_348, 2); - lean_ctor_release(x_348, 3); - lean_ctor_release(x_348, 4); - lean_ctor_release(x_348, 5); - lean_ctor_release(x_348, 6); - lean_ctor_release(x_348, 7); - lean_ctor_release(x_348, 8); - x_361 = x_348; -} else { - lean_dec_ref(x_348); - x_361 = lean_box(0); -} -x_362 = 1; -if (lean_is_scalar(x_361)) { - x_363 = lean_alloc_ctor(0, 9, 3); -} else { - x_363 = x_361; -} -lean_ctor_set(x_363, 0, x_351); -lean_ctor_set(x_363, 1, x_352); -lean_ctor_set(x_363, 2, x_353); -lean_ctor_set(x_363, 3, x_354); -lean_ctor_set(x_363, 4, x_356); -lean_ctor_set(x_363, 5, x_357); -lean_ctor_set(x_363, 6, x_358); -lean_ctor_set(x_363, 7, x_359); -lean_ctor_set(x_363, 8, x_360); -lean_ctor_set_uint8(x_363, sizeof(void*)*9, x_350); -lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 1, x_355); -lean_ctor_set_uint8(x_363, sizeof(void*)*9 + 2, x_362); -x_364 = lean_st_ref_set(x_1, x_363, x_349); -x_365 = lean_ctor_get(x_337, 4); -lean_inc(x_365); -if (lean_obj_tag(x_365) == 0) -{ -lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; -lean_dec(x_345); -lean_dec(x_340); -lean_dec(x_337); +lean_object* x_348; lean_object* x_349; +lean_dec(x_346); +lean_dec(x_343); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -14873,163 +14836,263 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_366 = lean_ctor_get(x_364, 1); +x_348 = lean_box(0); +x_349 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_349, 0, x_348); +lean_ctor_set(x_349, 1, x_344); +return x_349; +} +else +{ +if (x_345 == 0) +{ +uint8_t x_350; +x_350 = lean_ctor_get_uint8(x_343, sizeof(void*)*9 + 2); +if (x_350 == 0) +{ +lean_object* x_351; uint8_t x_352; +x_351 = lean_ctor_get(x_343, 8); +lean_inc(x_351); +x_352 = l_Array_isEmpty___rarg(x_351); +if (x_352 == 0) +{ +lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t 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; uint8_t x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +x_353 = lean_st_ref_take(x_1, x_344); +x_354 = lean_ctor_get(x_353, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_353, 1); +lean_inc(x_355); +lean_dec(x_353); +x_356 = lean_ctor_get_uint8(x_354, sizeof(void*)*9); +x_357 = lean_ctor_get(x_354, 0); +lean_inc(x_357); +x_358 = lean_ctor_get(x_354, 1); +lean_inc(x_358); +x_359 = lean_ctor_get(x_354, 2); +lean_inc(x_359); +x_360 = lean_ctor_get(x_354, 3); +lean_inc(x_360); +x_361 = lean_ctor_get_uint8(x_354, sizeof(void*)*9 + 1); +x_362 = lean_ctor_get(x_354, 4); +lean_inc(x_362); +x_363 = lean_ctor_get(x_354, 5); +lean_inc(x_363); +x_364 = lean_ctor_get(x_354, 6); +lean_inc(x_364); +x_365 = lean_ctor_get(x_354, 7); +lean_inc(x_365); +x_366 = lean_ctor_get(x_354, 8); lean_inc(x_366); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - lean_ctor_release(x_364, 1); - x_367 = x_364; +if (lean_is_exclusive(x_354)) { + lean_ctor_release(x_354, 0); + lean_ctor_release(x_354, 1); + lean_ctor_release(x_354, 2); + lean_ctor_release(x_354, 3); + lean_ctor_release(x_354, 4); + lean_ctor_release(x_354, 5); + lean_ctor_release(x_354, 6); + lean_ctor_release(x_354, 7); + lean_ctor_release(x_354, 8); + x_367 = x_354; } else { - lean_dec_ref(x_364); + lean_dec_ref(x_354); x_367 = lean_box(0); } -x_368 = lean_box(0); +x_368 = 1; if (lean_is_scalar(x_367)) { - x_369 = lean_alloc_ctor(0, 2, 0); + x_369 = lean_alloc_ctor(0, 9, 3); } else { x_369 = x_367; } -lean_ctor_set(x_369, 0, x_368); -lean_ctor_set(x_369, 1, x_366); -return x_369; -} -else +lean_ctor_set(x_369, 0, x_357); +lean_ctor_set(x_369, 1, x_358); +lean_ctor_set(x_369, 2, x_359); +lean_ctor_set(x_369, 3, x_360); +lean_ctor_set(x_369, 4, x_362); +lean_ctor_set(x_369, 5, x_363); +lean_ctor_set(x_369, 6, x_364); +lean_ctor_set(x_369, 7, x_365); +lean_ctor_set(x_369, 8, x_366); +lean_ctor_set_uint8(x_369, sizeof(void*)*9, x_356); +lean_ctor_set_uint8(x_369, sizeof(void*)*9 + 1, x_361); +lean_ctor_set_uint8(x_369, sizeof(void*)*9 + 2, x_368); +x_370 = lean_st_ref_set(x_1, x_369, x_355); +x_371 = lean_ctor_get(x_343, 4); +lean_inc(x_371); +if (lean_obj_tag(x_371) == 0) { -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; uint8_t x_450; lean_object* x_451; lean_object* x_473; lean_object* x_474; lean_object* x_475; uint8_t x_476; -x_370 = lean_ctor_get(x_364, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - lean_ctor_release(x_364, 1); - x_371 = x_364; -} else { - lean_dec_ref(x_364); - x_371 = lean_box(0); -} -x_372 = lean_ctor_get(x_365, 0); +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +lean_dec(x_351); +lean_dec(x_346); +lean_dec(x_343); +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_372 = lean_ctor_get(x_370, 1); lean_inc(x_372); -lean_dec(x_365); -x_373 = lean_ctor_get(x_337, 2); -lean_inc(x_373); -x_374 = lean_unsigned_to_nat(0u); -x_375 = l_List_lengthAux___rarg(x_373, x_374); -lean_dec(x_373); -x_473 = lean_st_ref_get(x_7, x_370); -x_474 = lean_ctor_get(x_473, 0); -lean_inc(x_474); -x_475 = lean_ctor_get(x_474, 3); -lean_inc(x_475); -lean_dec(x_474); -x_476 = lean_ctor_get_uint8(x_475, sizeof(void*)*1); -lean_dec(x_475); -if (x_476 == 0) -{ -lean_object* x_477; uint8_t x_478; -x_477 = lean_ctor_get(x_473, 1); -lean_inc(x_477); -lean_dec(x_473); -x_478 = 0; -x_450 = x_478; -x_451 = x_477; -goto block_472; +if (lean_is_exclusive(x_370)) { + lean_ctor_release(x_370, 0); + lean_ctor_release(x_370, 1); + x_373 = x_370; +} else { + lean_dec_ref(x_370); + x_373 = lean_box(0); +} +x_374 = lean_box(0); +if (lean_is_scalar(x_373)) { + x_375 = lean_alloc_ctor(0, 2, 0); +} else { + x_375 = x_373; +} +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_372); +return x_375; } else { -lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; uint8_t x_484; -x_479 = lean_ctor_get(x_473, 1); -lean_inc(x_479); -lean_dec(x_473); -x_480 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_481 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_480, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_479); -x_482 = lean_ctor_get(x_481, 0); -lean_inc(x_482); -x_483 = lean_ctor_get(x_481, 1); -lean_inc(x_483); -lean_dec(x_481); -x_484 = lean_unbox(x_482); -lean_dec(x_482); -x_450 = x_484; -x_451 = x_483; -goto block_472; +lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_379; +x_376 = lean_ctor_get(x_370, 1); +lean_inc(x_376); +if (lean_is_exclusive(x_370)) { + lean_ctor_release(x_370, 0); + lean_ctor_release(x_370, 1); + x_377 = x_370; +} else { + lean_dec_ref(x_370); + x_377 = lean_box(0); } -block_449: -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_377 = lean_ctor_get(x_337, 3); -lean_inc(x_377); -x_378 = lean_ctor_get(x_337, 1); +x_378 = lean_ctor_get(x_371, 0); lean_inc(x_378); -x_379 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_375, x_377, x_378); -if (lean_obj_tag(x_379) == 0) -{ -lean_object* x_380; lean_object* x_381; -lean_dec(x_372); -lean_dec(x_345); -lean_dec(x_337); -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_380 = lean_box(0); -if (lean_is_scalar(x_371)) { - x_381 = lean_alloc_ctor(0, 2, 0); -} else { - x_381 = x_371; -} -lean_ctor_set(x_381, 0, x_380); -lean_ctor_set(x_381, 1, x_376); -return x_381; -} -else -{ -lean_object* x_382; uint8_t x_383; -x_382 = lean_ctor_get(x_379, 0); -lean_inc(x_382); -lean_dec(x_379); -x_383 = l_Lean_Expr_hasLooseBVars(x_382); -if (x_383 == 0) -{ -lean_object* x_384; lean_object* x_385; -x_384 = lean_box(0); -lean_inc(x_382); -x_385 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_337, x_382, x_384); -if (lean_obj_tag(x_385) == 0) -{ -lean_object* x_386; lean_object* x_387; -lean_dec(x_382); -lean_dec(x_372); -lean_dec(x_345); -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_386 = lean_box(0); -if (lean_is_scalar(x_371)) { - x_387 = lean_alloc_ctor(0, 2, 0); -} else { - x_387 = x_371; -} -lean_ctor_set(x_387, 0, x_386); -lean_ctor_set(x_387, 1, x_376); -return x_387; -} -else -{ -lean_object* x_388; -lean_dec(x_385); -lean_inc(x_382); -x_388 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_345, x_382, x_384); -if (lean_obj_tag(x_388) == 0) -{ -lean_object* x_389; lean_object* x_390; lean_dec(x_371); -x_389 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +x_379 = l_Lean_Expr_isProp(x_378); +if (x_379 == 0) +{ +lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; uint8_t x_457; lean_object* x_458; lean_object* x_480; lean_object* x_481; lean_object* x_482; uint8_t x_483; +x_380 = lean_ctor_get(x_343, 2); +lean_inc(x_380); +x_381 = lean_unsigned_to_nat(0u); +x_382 = l_List_lengthAux___rarg(x_380, x_381); +lean_dec(x_380); +x_480 = lean_st_ref_get(x_7, x_376); +x_481 = lean_ctor_get(x_480, 0); +lean_inc(x_481); +x_482 = lean_ctor_get(x_481, 3); +lean_inc(x_482); +lean_dec(x_481); +x_483 = lean_ctor_get_uint8(x_482, sizeof(void*)*1); +lean_dec(x_482); +if (x_483 == 0) +{ +lean_object* x_484; uint8_t x_485; +x_484 = lean_ctor_get(x_480, 1); +lean_inc(x_484); +lean_dec(x_480); +x_485 = 0; +x_457 = x_485; +x_458 = x_484; +goto block_479; +} +else +{ +lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; uint8_t x_491; +x_486 = lean_ctor_get(x_480, 1); +lean_inc(x_486); +lean_dec(x_480); +x_487 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_488 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_487, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_486); +x_489 = lean_ctor_get(x_488, 0); +lean_inc(x_489); +x_490 = lean_ctor_get(x_488, 1); +lean_inc(x_490); +lean_dec(x_488); +x_491 = lean_unbox(x_489); +lean_dec(x_489); +x_457 = x_491; +x_458 = x_490; +goto block_479; +} +block_456: +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; +x_384 = lean_ctor_get(x_343, 3); +lean_inc(x_384); +x_385 = lean_ctor_get(x_343, 1); +lean_inc(x_385); +x_386 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_382, x_384, x_385); +if (lean_obj_tag(x_386) == 0) +{ +lean_object* x_387; lean_object* x_388; +lean_dec(x_378); +lean_dec(x_351); +lean_dec(x_343); +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_387 = lean_box(0); +if (lean_is_scalar(x_377)) { + x_388 = lean_alloc_ctor(0, 2, 0); +} else { + x_388 = x_377; +} +lean_ctor_set(x_388, 0, x_387); +lean_ctor_set(x_388, 1, x_383); +return x_388; +} +else +{ +lean_object* x_389; uint8_t x_390; +x_389 = lean_ctor_get(x_386, 0); +lean_inc(x_389); +lean_dec(x_386); +x_390 = l_Lean_Expr_hasLooseBVars(x_389); +if (x_390 == 0) +{ +lean_object* x_391; lean_object* x_392; +x_391 = lean_box(0); +lean_inc(x_389); +x_392 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_343, x_389, x_391); +if (lean_obj_tag(x_392) == 0) +{ +lean_object* x_393; lean_object* x_394; +lean_dec(x_389); +lean_dec(x_378); +lean_dec(x_351); +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_393 = lean_box(0); +if (lean_is_scalar(x_377)) { + x_394 = lean_alloc_ctor(0, 2, 0); +} else { + x_394 = x_377; +} +lean_ctor_set(x_394, 0, x_393); +lean_ctor_set(x_394, 1, x_383); +return x_394; +} +else +{ +lean_object* x_395; +lean_dec(x_392); +lean_inc(x_389); +x_395 = l_Lean_FindMVar_main___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_351, x_389, x_391); +if (lean_obj_tag(x_395) == 0) +{ +lean_object* x_396; lean_object* x_397; +lean_dec(x_377); +x_396 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); @@ -15037,73 +15100,73 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -lean_inc(x_382); -x_390 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_382, x_389, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_376); -if (lean_obj_tag(x_390) == 0) +lean_inc(x_389); +x_397 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_389, x_396, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_383); +if (lean_obj_tag(x_397) == 0) { -lean_object* x_391; lean_object* x_392; lean_object* x_393; uint8_t x_394; lean_object* x_395; uint8_t x_426; -x_391 = lean_ctor_get(x_390, 0); -lean_inc(x_391); -x_392 = lean_ctor_get(x_390, 1); -lean_inc(x_392); -if (lean_is_exclusive(x_390)) { - lean_ctor_release(x_390, 0); - lean_ctor_release(x_390, 1); - x_393 = x_390; +lean_object* x_398; lean_object* x_399; lean_object* x_400; uint8_t x_401; lean_object* x_402; uint8_t x_433; +x_398 = lean_ctor_get(x_397, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_397, 1); +lean_inc(x_399); +if (lean_is_exclusive(x_397)) { + lean_ctor_release(x_397, 0); + lean_ctor_release(x_397, 1); + x_400 = x_397; } else { - lean_dec_ref(x_390); - x_393 = lean_box(0); + lean_dec_ref(x_397); + x_400 = lean_box(0); } -x_426 = lean_unbox(x_391); -lean_dec(x_391); -if (x_426 == 0) +x_433 = lean_unbox(x_398); +lean_dec(x_398); +if (x_433 == 0) { -lean_object* x_427; lean_object* x_428; lean_object* x_429; uint8_t x_430; -lean_dec(x_393); -x_427 = lean_st_ref_get(x_7, x_392); -x_428 = lean_ctor_get(x_427, 0); -lean_inc(x_428); -x_429 = lean_ctor_get(x_428, 3); -lean_inc(x_429); -lean_dec(x_428); -x_430 = lean_ctor_get_uint8(x_429, sizeof(void*)*1); -lean_dec(x_429); -if (x_430 == 0) -{ -lean_object* x_431; uint8_t x_432; -x_431 = lean_ctor_get(x_427, 1); -lean_inc(x_431); -lean_dec(x_427); -x_432 = 0; -x_394 = x_432; -x_395 = x_431; -goto block_425; -} -else -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; -x_433 = lean_ctor_get(x_427, 1); -lean_inc(x_433); -lean_dec(x_427); -x_434 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_435 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_434, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_433); -x_436 = lean_ctor_get(x_435, 0); +lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; +lean_dec(x_400); +x_434 = lean_st_ref_get(x_7, x_399); +x_435 = lean_ctor_get(x_434, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_435, 3); lean_inc(x_436); -x_437 = lean_ctor_get(x_435, 1); -lean_inc(x_437); lean_dec(x_435); -x_438 = lean_unbox(x_436); +x_437 = lean_ctor_get_uint8(x_436, sizeof(void*)*1); lean_dec(x_436); -x_394 = x_438; -x_395 = x_437; -goto block_425; +if (x_437 == 0) +{ +lean_object* x_438; uint8_t x_439; +x_438 = lean_ctor_get(x_434, 1); +lean_inc(x_438); +lean_dec(x_434); +x_439 = 0; +x_401 = x_439; +x_402 = x_438; +goto block_432; +} +else +{ +lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; +x_440 = lean_ctor_get(x_434, 1); +lean_inc(x_440); +lean_dec(x_434); +x_441 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_442 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__7(x_441, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_440); +x_443 = lean_ctor_get(x_442, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_442, 1); +lean_inc(x_444); +lean_dec(x_442); +x_445 = lean_unbox(x_443); +lean_dec(x_443); +x_401 = x_445; +x_402 = x_444; +goto block_432; } } else { -lean_object* x_439; lean_object* x_440; -lean_dec(x_382); -lean_dec(x_372); +lean_object* x_446; lean_object* x_447; +lean_dec(x_389); +lean_dec(x_378); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15111,160 +15174,160 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_439 = lean_box(0); -if (lean_is_scalar(x_393)) { - x_440 = lean_alloc_ctor(0, 2, 0); +x_446 = lean_box(0); +if (lean_is_scalar(x_400)) { + x_447 = lean_alloc_ctor(0, 2, 0); } else { - x_440 = x_393; + x_447 = x_400; } -lean_ctor_set(x_440, 0, x_439); -lean_ctor_set(x_440, 1, x_392); -return x_440; +lean_ctor_set(x_447, 0, x_446); +lean_ctor_set(x_447, 1, x_399); +return x_447; } -block_425: +block_432: { -if (x_394 == 0) +if (x_401 == 0) { -lean_object* x_396; -x_396 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_372, x_382, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_395); +lean_object* x_403; +x_403 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_378, x_389, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_402); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -if (lean_obj_tag(x_396) == 0) +if (lean_obj_tag(x_403) == 0) { -lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_397 = lean_ctor_get(x_396, 1); -lean_inc(x_397); -if (lean_is_exclusive(x_396)) { - lean_ctor_release(x_396, 0); - lean_ctor_release(x_396, 1); - x_398 = x_396; +lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; +x_404 = lean_ctor_get(x_403, 1); +lean_inc(x_404); +if (lean_is_exclusive(x_403)) { + lean_ctor_release(x_403, 0); + lean_ctor_release(x_403, 1); + x_405 = x_403; } else { - lean_dec_ref(x_396); - x_398 = lean_box(0); + lean_dec_ref(x_403); + x_405 = lean_box(0); } -x_399 = lean_box(0); -if (lean_is_scalar(x_398)) { - x_400 = lean_alloc_ctor(0, 2, 0); +x_406 = lean_box(0); +if (lean_is_scalar(x_405)) { + x_407 = lean_alloc_ctor(0, 2, 0); } else { - x_400 = x_398; + x_407 = x_405; } -lean_ctor_set(x_400, 0, x_399); -lean_ctor_set(x_400, 1, x_397); -return x_400; -} -else -{ -lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; -x_401 = lean_ctor_get(x_396, 0); -lean_inc(x_401); -x_402 = lean_ctor_get(x_396, 1); -lean_inc(x_402); -if (lean_is_exclusive(x_396)) { - lean_ctor_release(x_396, 0); - lean_ctor_release(x_396, 1); - x_403 = x_396; -} else { - lean_dec_ref(x_396); - x_403 = lean_box(0); -} -if (lean_is_scalar(x_403)) { - x_404 = lean_alloc_ctor(1, 2, 0); -} else { - x_404 = x_403; -} -lean_ctor_set(x_404, 0, x_401); -lean_ctor_set(x_404, 1, x_402); -return x_404; -} -} -else -{ -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_inc(x_372); -x_405 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_405, 0, x_372); -x_406 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -x_407 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_407, 0, x_406); -lean_ctor_set(x_407, 1, x_405); -x_408 = l_Lean_Meta_isLevelDefEqAux___closed__6; -x_409 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_409, 0, x_407); -lean_ctor_set(x_409, 1, x_408); -lean_inc(x_382); -x_410 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_410, 0, x_382); -x_411 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_411, 0, x_409); -lean_ctor_set(x_411, 1, x_410); -x_412 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_406); -x_413 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_414 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_413, x_412, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_395); -x_415 = lean_ctor_get(x_414, 1); -lean_inc(x_415); -lean_dec(x_414); -x_416 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_372, x_382, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_415); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -if (lean_obj_tag(x_416) == 0) -{ -lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_417 = lean_ctor_get(x_416, 1); -lean_inc(x_417); -if (lean_is_exclusive(x_416)) { - lean_ctor_release(x_416, 0); - lean_ctor_release(x_416, 1); - x_418 = x_416; -} else { - lean_dec_ref(x_416); - x_418 = lean_box(0); -} -x_419 = lean_box(0); -if (lean_is_scalar(x_418)) { - x_420 = lean_alloc_ctor(0, 2, 0); -} else { - x_420 = x_418; -} -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_417); -return x_420; +lean_ctor_set(x_407, 1, x_404); +return x_407; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_421 = lean_ctor_get(x_416, 0); -lean_inc(x_421); -x_422 = lean_ctor_get(x_416, 1); +lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; +x_408 = lean_ctor_get(x_403, 0); +lean_inc(x_408); +x_409 = lean_ctor_get(x_403, 1); +lean_inc(x_409); +if (lean_is_exclusive(x_403)) { + lean_ctor_release(x_403, 0); + lean_ctor_release(x_403, 1); + x_410 = x_403; +} else { + lean_dec_ref(x_403); + x_410 = lean_box(0); +} +if (lean_is_scalar(x_410)) { + x_411 = lean_alloc_ctor(1, 2, 0); +} else { + x_411 = x_410; +} +lean_ctor_set(x_411, 0, x_408); +lean_ctor_set(x_411, 1, x_409); +return x_411; +} +} +else +{ +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_inc(x_378); +x_412 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_412, 0, x_378); +x_413 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_414 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_414, 0, x_413); +lean_ctor_set(x_414, 1, x_412); +x_415 = l_Lean_Meta_isLevelDefEqAux___closed__6; +x_416 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_416, 0, x_414); +lean_ctor_set(x_416, 1, x_415); +lean_inc(x_389); +x_417 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_417, 0, x_389); +x_418 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_418, 0, x_416); +lean_ctor_set(x_418, 1, x_417); +x_419 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_419, 0, x_418); +lean_ctor_set(x_419, 1, x_413); +x_420 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_421 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_420, x_419, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_402); +x_422 = lean_ctor_get(x_421, 1); lean_inc(x_422); -if (lean_is_exclusive(x_416)) { - lean_ctor_release(x_416, 0); - lean_ctor_release(x_416, 1); - x_423 = x_416; +lean_dec(x_421); +x_423 = l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__3(x_378, x_389, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_422); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_obj_tag(x_423) == 0) +{ +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +x_424 = lean_ctor_get(x_423, 1); +lean_inc(x_424); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_425 = x_423; } else { - lean_dec_ref(x_416); - x_423 = lean_box(0); + lean_dec_ref(x_423); + x_425 = lean_box(0); } -if (lean_is_scalar(x_423)) { - x_424 = lean_alloc_ctor(1, 2, 0); +x_426 = lean_box(0); +if (lean_is_scalar(x_425)) { + x_427 = lean_alloc_ctor(0, 2, 0); } else { - x_424 = x_423; + x_427 = x_425; } -lean_ctor_set(x_424, 0, x_421); -lean_ctor_set(x_424, 1, x_422); -return x_424; +lean_ctor_set(x_427, 0, x_426); +lean_ctor_set(x_427, 1, x_424); +return x_427; +} +else +{ +lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; +x_428 = lean_ctor_get(x_423, 0); +lean_inc(x_428); +x_429 = lean_ctor_get(x_423, 1); +lean_inc(x_429); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_430 = x_423; +} else { + lean_dec_ref(x_423); + x_430 = lean_box(0); +} +if (lean_is_scalar(x_430)) { + x_431 = lean_alloc_ctor(1, 2, 0); +} else { + x_431 = x_430; +} +lean_ctor_set(x_431, 0, x_428); +lean_ctor_set(x_431, 1, x_429); +return x_431; } } } } else { -lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; -lean_dec(x_382); -lean_dec(x_372); +lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; +lean_dec(x_389); +lean_dec(x_378); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15272,34 +15335,34 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_441 = lean_ctor_get(x_390, 0); -lean_inc(x_441); -x_442 = lean_ctor_get(x_390, 1); -lean_inc(x_442); -if (lean_is_exclusive(x_390)) { - lean_ctor_release(x_390, 0); - lean_ctor_release(x_390, 1); - x_443 = x_390; +x_448 = lean_ctor_get(x_397, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_397, 1); +lean_inc(x_449); +if (lean_is_exclusive(x_397)) { + lean_ctor_release(x_397, 0); + lean_ctor_release(x_397, 1); + x_450 = x_397; } else { - lean_dec_ref(x_390); - x_443 = lean_box(0); + lean_dec_ref(x_397); + x_450 = lean_box(0); } -if (lean_is_scalar(x_443)) { - x_444 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_450)) { + x_451 = lean_alloc_ctor(1, 2, 0); } else { - x_444 = x_443; + x_451 = x_450; } -lean_ctor_set(x_444, 0, x_441); -lean_ctor_set(x_444, 1, x_442); -return x_444; +lean_ctor_set(x_451, 0, x_448); +lean_ctor_set(x_451, 1, x_449); +return x_451; } } else { -lean_object* x_445; lean_object* x_446; -lean_dec(x_388); -lean_dec(x_382); -lean_dec(x_372); +lean_object* x_452; lean_object* x_453; +lean_dec(x_395); +lean_dec(x_389); +lean_dec(x_378); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15307,25 +15370,25 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_445 = lean_box(0); -if (lean_is_scalar(x_371)) { - x_446 = lean_alloc_ctor(0, 2, 0); +x_452 = lean_box(0); +if (lean_is_scalar(x_377)) { + x_453 = lean_alloc_ctor(0, 2, 0); } else { - x_446 = x_371; + x_453 = x_377; } -lean_ctor_set(x_446, 0, x_445); -lean_ctor_set(x_446, 1, x_376); -return x_446; +lean_ctor_set(x_453, 0, x_452); +lean_ctor_set(x_453, 1, x_383); +return x_453; } } } else { -lean_object* x_447; lean_object* x_448; -lean_dec(x_382); -lean_dec(x_372); -lean_dec(x_345); -lean_dec(x_337); +lean_object* x_454; lean_object* x_455; +lean_dec(x_389); +lean_dec(x_378); +lean_dec(x_351); +lean_dec(x_343); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15333,81 +15396,81 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_447 = lean_box(0); -if (lean_is_scalar(x_371)) { - x_448 = lean_alloc_ctor(0, 2, 0); +x_454 = lean_box(0); +if (lean_is_scalar(x_377)) { + x_455 = lean_alloc_ctor(0, 2, 0); } else { - x_448 = x_371; + x_455 = x_377; } -lean_ctor_set(x_448, 0, x_447); -lean_ctor_set(x_448, 1, x_376); -return x_448; +lean_ctor_set(x_455, 0, x_454); +lean_ctor_set(x_455, 1, x_383); +return x_455; } } } -block_472: +block_479: { -if (x_450 == 0) +if (x_457 == 0) { -lean_dec(x_340); -x_376 = x_451; -goto block_449; +lean_dec(x_346); +x_383 = x_458; +goto block_456; } else { -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; -x_452 = lean_array_get_size(x_340); -lean_dec(x_340); -x_453 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_452); -x_454 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_454, 0, x_453); -x_455 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; -x_456 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_456, 0, x_455); -lean_ctor_set(x_456, 1, x_454); -x_457 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; -x_458 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_458, 0, x_456); -lean_ctor_set(x_458, 1, x_457); -lean_inc(x_375); -x_459 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_375); -x_460 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_460, 0, x_459); -x_461 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_461, 0, x_458); -lean_ctor_set(x_461, 1, x_460); -x_462 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; +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; +x_459 = lean_array_get_size(x_346); +lean_dec(x_346); +x_460 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_459); +x_461 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_461, 0, x_460); +x_462 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; x_463 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_463, 0, x_461); -lean_ctor_set(x_463, 1, x_462); -x_464 = lean_ctor_get(x_337, 1); -lean_inc(x_464); -x_465 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_465, 0, x_464); -x_466 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_466, 0, x_463); -lean_ctor_set(x_466, 1, x_465); -x_467 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +lean_ctor_set(x_463, 0, x_462); +lean_ctor_set(x_463, 1, x_461); +x_464 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; +x_465 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_465, 0, x_463); +lean_ctor_set(x_465, 1, x_464); +lean_inc(x_382); +x_466 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_382); +x_467 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_467, 0, x_466); x_468 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_468, 0, x_466); +lean_ctor_set(x_468, 0, x_465); lean_ctor_set(x_468, 1, x_467); -x_469 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; -x_470 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_469, x_468, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_451); -x_471 = lean_ctor_get(x_470, 1); +x_469 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; +x_470 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_470, 0, x_468); +lean_ctor_set(x_470, 1, x_469); +x_471 = lean_ctor_get(x_343, 1); lean_inc(x_471); -lean_dec(x_470); -x_376 = x_471; -goto block_449; -} +x_472 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_472, 0, x_471); +x_473 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_473, 0, x_470); +lean_ctor_set(x_473, 1, x_472); +x_474 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_475 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_475, 0, x_473); +lean_ctor_set(x_475, 1, x_474); +x_476 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__3; +x_477 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__6(x_476, x_475, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_458); +x_478 = lean_ctor_get(x_477, 1); +lean_inc(x_478); +lean_dec(x_477); +x_383 = x_478; +goto block_456; } } } else { -lean_object* x_485; lean_object* x_486; -lean_dec(x_345); -lean_dec(x_340); -lean_dec(x_337); +lean_object* x_492; lean_object* x_493; +lean_dec(x_378); +lean_dec(x_351); +lean_dec(x_346); +lean_dec(x_343); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15415,18 +15478,24 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_485 = lean_box(0); -x_486 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_486, 0, x_485); -lean_ctor_set(x_486, 1, x_338); -return x_486; +x_492 = lean_box(0); +if (lean_is_scalar(x_377)) { + x_493 = lean_alloc_ctor(0, 2, 0); +} else { + x_493 = x_377; +} +lean_ctor_set(x_493, 0, x_492); +lean_ctor_set(x_493, 1, x_376); +return x_493; +} } } else { -lean_object* x_487; lean_object* x_488; -lean_dec(x_340); -lean_dec(x_337); +lean_object* x_494; lean_object* x_495; +lean_dec(x_351); +lean_dec(x_346); +lean_dec(x_343); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15434,18 +15503,18 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_487 = lean_box(0); -x_488 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_488, 0, x_487); -lean_ctor_set(x_488, 1, x_338); -return x_488; +x_494 = lean_box(0); +x_495 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_495, 0, x_494); +lean_ctor_set(x_495, 1, x_344); +return x_495; } } else { -lean_object* x_489; lean_object* x_490; -lean_dec(x_340); -lean_dec(x_337); +lean_object* x_496; lean_object* x_497; +lean_dec(x_346); +lean_dec(x_343); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15453,11 +15522,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_489 = lean_box(0); -x_490 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_490, 0, x_489); -lean_ctor_set(x_490, 1, x_338); -return x_490; +x_496 = lean_box(0); +x_497 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_497, 0, x_496); +lean_ctor_set(x_497, 1, x_344); +return x_497; +} +} +else +{ +lean_object* x_498; lean_object* x_499; +lean_dec(x_346); +lean_dec(x_343); +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_498 = lean_box(0); +x_499 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_499, 0, x_498); +lean_ctor_set(x_499, 1, x_344); +return x_499; } } } @@ -26507,7 +26595,7 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0_ _start: { lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_10, 0, x_2); lean_closure_set(x_10, 1, x_3); lean_closure_set(x_10, 2, x_4); @@ -36173,7 +36261,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_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2; -x_3 = lean_unsigned_to_nat(802u); +x_3 = lean_unsigned_to_nat(825u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Syntax_strLitToAtom___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -36461,7 +36549,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_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1; -x_3 = lean_unsigned_to_nat(820u); +x_3 = lean_unsigned_to_nat(843u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Syntax_strLitToAtom___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -38373,7 +38461,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7550_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7555_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -38712,7 +38800,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabArrayRef___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7550_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_7555_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 9d4a986716..0e0249b62e 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -25,7 +25,6 @@ size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Elab_Term_elabLetDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__3; extern lean_object* l_Lean_expandExplicitBindersAux_loop___closed__5; -lean_object* l_Lean_Meta_forallBoundedTelescope___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*); extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___closed__3; @@ -51,7 +50,7 @@ extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011__ lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow___closed__1; extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__8; lean_object* l_Array_append___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; extern lean_object* l_Lean_Parser_Tactic___kind_tactic____x40_Init_Notation___hyg_11327____closed__4; lean_object* l___regBuiltin_Lean_Elab_Term_elabLetStarDecl___closed__1; @@ -60,7 +59,7 @@ lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunB lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__3; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_intro___closed__4; -lean_object* l_Lean_Elab_Term_elabBinder___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinder___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Term_elabFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -70,9 +69,11 @@ extern lean_object* l_Lean_identKind___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_5739____closed__19; extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11609____closed__5; lean_object* l_Lean_Meta_setPostponed___at_Lean_Elab_Term_elabBinders___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__24; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___closed__2; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__10; +lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___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* l_Lean_Elab_Term_expandFunBinders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__1; @@ -96,6 +97,7 @@ lean_object* l_Lean_Elab_Term_elabFunBinders___rarg(lean_object*, lean_object*, lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__2; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__18; +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_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_object*); lean_object* l_Lean_Elab_Term_elabFun_match__1(lean_object*); lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__6; lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,7 +109,7 @@ lean_object* l_Lean_Elab_Term_expandFunBinders_loop_match__2___rarg(lean_object* lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Term_expandLetEqnsDecl(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_5739____closed__11; lean_object* l___regBuiltin_Lean_Elab_Term_elabFun(lean_object*); @@ -121,7 +123,7 @@ lean_object* l_Lean_Meta_mkLambdaFVars___at_Lean_Elab_Term_elabLetDeclAux___spec extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_331____closed__5; lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__3; lean_object* lean_string_utf8_byte_size(lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_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_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___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* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); @@ -133,11 +135,11 @@ lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatchTactic(lean_object*, lean_ lean_object* l_Lean_Elab_Term_expandFunBinders_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_8168____closed__8; lean_object* l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); 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*); lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__2; -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*); +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_elabFunBinders___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_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*); @@ -200,7 +202,7 @@ lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hy lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getFunBinderIds_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_5739____closed__15; -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_4572_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_4621_(lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__8; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandLetEqnsDeclVal_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -236,6 +238,7 @@ extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_ lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__10; 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*); extern lean_object* l_Lean_Parser_Tactic_let___closed__1; +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__1; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -255,7 +258,7 @@ lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__7; lean_object* l___private_Init_Meta_0__Lean_quoteName(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabForall(lean_object*); lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*); -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_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_object*); extern lean_object* l_Lean_Parser_Tactic_intro___closed__7; lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__19; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_quoteAutoTactic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -301,6 +304,7 @@ lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore_ lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__13; extern lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__6; +lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getFunBinderIds_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandOptType___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; @@ -405,18 +409,18 @@ lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__5; lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__3; extern lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__1; lean_object* l_Lean_Meta_getPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getNumPostponed___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabFun_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1; -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkLetIdDeclView(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___closed__10; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___boxed__const__1; @@ -457,6 +461,7 @@ lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__8; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_elabLetDeclCore(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_getFunBinderIds_x3f_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinder___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1___closed__4; lean_object* l_Lean_Elab_Term_FunBinders_State_fvars___default; @@ -472,6 +477,7 @@ lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__4; lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__1; lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__4; +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__1___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__1; @@ -482,7 +488,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders_0__Lean_Ela lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__13; extern lean_object* l___kind_term____x40_Init_Notation___hyg_6289____closed__6; extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11379____closed__6; -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_isClassImp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__9; lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatch(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); @@ -4593,163 +4599,106 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_add(x_1, x_13); -x_15 = lean_array_push(x_2, x_5); -x_16 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(x_3, x_4, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_16; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_1, x_14); +x_16 = lean_array_push(x_2, x_6); +x_17 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(x_3, x_4, x_5, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_17; } } -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_16 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo(x_8, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Array_append___rarg(x_2, x_7); -x_19 = lean_ctor_get(x_3, 0); -x_20 = l_Lean_Syntax_getId(x_19); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); -x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1___boxed), 12, 4); -lean_closure_set(x_22, 0, x_4); -lean_closure_set(x_22, 1, x_18); -lean_closure_set(x_22, 2, x_5); -lean_closure_set(x_22, 3, x_6); -x_23 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_20, x_21, x_8, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_17); -return x_23; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_17 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo(x_9, x_1, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Array_append___rarg(x_2, x_8); +x_20 = lean_ctor_get(x_3, 0); +x_21 = l_Lean_Syntax_getId(x_20); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); +x_23 = lean_box(x_6); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1___boxed), 13, 5); +lean_closure_set(x_24, 0, x_4); +lean_closure_set(x_24, 1, x_19); +lean_closure_set(x_24, 2, x_5); +lean_closure_set(x_24, 3, x_23); +lean_closure_set(x_24, 4, x_7); +x_25 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_21, x_22, x_9, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_18); +return x_25; } } -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_1); -x_13 = lean_nat_dec_lt(x_3, x_12); -lean_dec(x_12); -if (x_13 == 0) +lean_object* x_13; uint8_t x_14; +x_13 = lean_array_get_size(x_1); +x_14 = lean_nat_dec_lt(x_4, x_13); +lean_dec(x_13); +if (x_14 == 0) { -lean_object* x_14; -lean_dec(x_3); +lean_object* x_15; +lean_dec(x_4); lean_dec(x_1); -x_14 = lean_apply_8(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_14; +x_15 = lean_apply_8(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_array_fget(x_1, x_3); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_inc(x_16); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2___boxed), 15, 6); -lean_closure_set(x_17, 0, x_16); -lean_closure_set(x_17, 1, x_4); -lean_closure_set(x_17, 2, x_15); -lean_closure_set(x_17, 3, x_3); -lean_closure_set(x_17, 4, x_1); -lean_closure_set(x_17, 5, x_2); -x_18 = l_Lean_Elab_Term_elabTypeWithUnboundImplicit___rarg(x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_18; -} -} -} -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg), 11, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___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, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_1); -return x_13; -} -} -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ lean_object* x_16; -x_16 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_7); -lean_dec(x_3); -return x_16; -} -} -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: +x_16 = lean_array_fget(x_1, x_4); +if (x_2 == 0) { -lean_object* x_11; lean_object* x_12; -x_11 = lean_unsigned_to_nat(0u); -x_12 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(x_1, x_3, x_11, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg), 10, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_1); -x_13 = lean_nat_dec_lt(x_3, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_1); -x_14 = lean_apply_8(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_array_fget(x_1, x_3); +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -x_16 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); +x_18 = l_Lean_Elab_Term_elabType(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo(x_19, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_ctor_get(x_16, 0); +lean_inc(x_23); +x_24 = l_Lean_Syntax_getId(x_23); +lean_dec(x_23); +x_25 = lean_ctor_get_uint8(x_16, sizeof(void*)*2); lean_dec(x_16); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_3, x_19); -x_21 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg___boxed), 11, 3); -lean_closure_set(x_21, 0, x_1); -lean_closure_set(x_21, 1, x_2); -lean_closure_set(x_21, 2, x_20); -x_22 = lean_unsigned_to_nat(0u); -x_23 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(x_17, x_21, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); -return x_23; +x_26 = lean_box(x_2); +x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1___boxed), 13, 5); +lean_closure_set(x_27, 0, x_4); +lean_closure_set(x_27, 1, x_5); +lean_closure_set(x_27, 2, x_1); +lean_closure_set(x_27, 3, x_26); +lean_closure_set(x_27, 4, x_3); +x_28 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_24, x_25, x_19, x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +return x_28; } else { -uint8_t x_24; +uint8_t x_29; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -4757,25 +4706,192 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); +lean_dec(x_3); lean_dec(x_1); -x_24 = !lean_is_exclusive(x_16); -if (x_24 == 0) +x_29 = !lean_is_exclusive(x_18); +if (x_29 == 0) { -return x_16; +return x_18; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_16, 0); -x_26 = lean_ctor_get(x_16, 1); -lean_inc(x_26); -lean_inc(x_25); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_16, 1); +lean_inc(x_33); +x_34 = lean_box(x_2); +lean_inc(x_33); +x_35 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2___boxed), 16, 7); +lean_closure_set(x_35, 0, x_33); +lean_closure_set(x_35, 1, x_5); +lean_closure_set(x_35, 2, x_16); +lean_closure_set(x_35, 3, x_4); +lean_closure_set(x_35, 4, x_1); +lean_closure_set(x_35, 5, x_34); +lean_closure_set(x_35, 6, x_3); +x_36 = l_Lean_Elab_Term_elabTypeWithUnboundImplicit___rarg(x_33, x_35, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_36; +} +} +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___boxed), 12, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___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, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_4); +lean_dec(x_4); +x_15 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__1(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_1); +return x_15; +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +uint8_t x_17; lean_object* x_18; +x_17 = lean_unbox(x_6); +lean_dec(x_6); +x_18 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_8); +lean_dec(x_3); +return x_18; +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___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, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg(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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_unsigned_to_nat(0u); +x_13 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(x_1, x_2, x_4, x_12, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg___boxed), 11, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___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, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_2); +lean_dec(x_2); +x_13 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_array_get_size(x_1); +x_14 = lean_nat_dec_lt(x_4, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_1); +x_15 = lean_apply_8(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_array_fget(x_1, x_4); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_17 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_matchBinder(x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_16); -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; +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_4, x_20); +x_22 = lean_box(x_2); +x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg___boxed), 12, 4); +lean_closure_set(x_23, 0, x_1); +lean_closure_set(x_23, 1, x_22); +lean_closure_set(x_23, 2, x_3); +lean_closure_set(x_23, 3, x_21); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBinderViews_loop___rarg(x_18, x_2, x_23, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +return x_25; +} +else +{ +uint8_t x_26; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_17); +if (x_26 == 0) +{ +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 0); +x_28 = lean_ctor_get(x_17, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_17); +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; } } } @@ -4785,37 +4901,49 @@ lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg___boxed), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg___boxed), 12, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___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, lean_object* x_11) { +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___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, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; -x_12 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(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_3); -return x_12; +uint8_t x_13; lean_object* x_14; +x_13 = lean_unbox(x_2); +lean_dec(x_2); +x_14 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_4); +return x_14; } } -lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg(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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_empty___closed__1; -x_12 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_12; +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_unsigned_to_nat(0u); +x_12 = l_Array_empty___closed__1; +x_13 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux_loop___rarg(x_1, x_2, x_3, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; } } lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg___boxed), 10, 0); return x_2; } } +lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___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_2); +lean_dec(x_2); +x_12 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} lean_object* l_Lean_Meta_setPostponed___at_Lean_Elab_Term_elabBinders___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: { @@ -4922,188 +5050,188 @@ return x_13; } } } -lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___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_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed(x_5, x_6, x_7, x_8, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed(x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); -x_13 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_13) == 0) +x_14 = l___private_Lean_Elab_Binders_0__Lean_Elab_Term_elabBindersAux___rarg(x_1, x_3, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +lean_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); -lean_dec(x_13); -x_16 = 0; +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); -x_17 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponed(x_16, x_5, x_6, x_7, x_8, x_15); -if (lean_obj_tag(x_17) == 0) +x_18 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponed(x_17, x_6, x_7, x_8, x_9, x_16); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_unbox(x_18); +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (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; 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_dec(x_15); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); lean_dec(x_18); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -lean_dec(x_14); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = l_Lean_Meta_getPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getNumPostponed___spec__1___rarg(x_6, x_7, x_8, x_20); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +x_22 = l_Lean_Meta_getPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getNumPostponed___spec__1___rarg(x_7, x_8, x_9, x_21); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_MessageData_nil; -x_25 = l_Std_PersistentArray_forIn___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponedToMessageData___spec__1(x_22, x_24); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); lean_dec(x_22); -x_26 = lean_unsigned_to_nat(2u); -x_27 = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__15; -x_29 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -x_30 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -x_31 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_981____spec__1___rarg(x_31, x_5, x_6, x_7, x_8, x_23); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); +x_25 = l_Lean_MessageData_nil; +x_26 = l_Std_PersistentArray_forIn___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponedToMessageData___spec__1(x_23, x_25); +lean_dec(x_23); +x_27 = lean_unsigned_to_nat(2u); +x_28 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__15; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +x_32 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_981____spec__1___rarg(x_32, x_6, x_7, x_8, x_9, x_24); +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(x_11, x_5, x_6, x_7, x_8, x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(x_12, x_6, x_7, x_8, x_9, x_35); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -lean_object* x_37; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -lean_ctor_set_tag(x_35, 1); -lean_ctor_set(x_35, 0, x_33); -return x_35; +lean_object* x_38; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +lean_ctor_set_tag(x_36, 1); +lean_ctor_set(x_36, 0, x_34); +return x_36; } else { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_33); -lean_ctor_set(x_39, 1, x_38); -return x_39; +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_34); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_17, 1); -lean_inc(x_40); -lean_dec(x_17); -x_41 = lean_box(0); -x_42 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg___lambda__1(x_11, x_14, x_41, x_5, x_6, x_7, x_8, x_40); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_18, 1); +lean_inc(x_41); +lean_dec(x_18); +x_42 = lean_box(0); +x_43 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg___lambda__1(x_12, x_15, x_42, x_6, x_7, x_8, x_9, x_41); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -return x_42; +return x_43; } } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -lean_dec(x_14); -x_43 = lean_ctor_get(x_17, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_17, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_dec(x_15); +x_44 = lean_ctor_get(x_18, 0); lean_inc(x_44); -lean_dec(x_17); -x_45 = l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(x_11, x_5, x_6, x_7, x_8, x_44); +x_45 = lean_ctor_get(x_18, 1); +lean_inc(x_45); +lean_dec(x_18); +x_46 = l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(x_12, x_6, x_7, x_8, x_9, x_45); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -lean_object* x_47; -x_47 = lean_ctor_get(x_45, 0); -lean_dec(x_47); -lean_ctor_set_tag(x_45, 1); -lean_ctor_set(x_45, 0, x_43); -return x_45; +lean_object* x_48; +x_48 = lean_ctor_get(x_46, 0); +lean_dec(x_48); +lean_ctor_set_tag(x_46, 1); +lean_ctor_set(x_46, 0, x_44); +return x_46; } else { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_43); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_dec(x_46); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_44); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_50 = lean_ctor_get(x_13, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_13, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_51 = lean_ctor_get(x_14, 0); lean_inc(x_51); -lean_dec(x_13); -x_52 = l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(x_11, x_5, x_6, x_7, x_8, x_51); +x_52 = lean_ctor_get(x_14, 1); +lean_inc(x_52); +lean_dec(x_14); +x_53 = l_Lean_Meta_setPostponed___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_getResetPostponed___spec__1(x_12, x_6, x_7, x_8, x_9, x_52); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) { -lean_object* x_54; -x_54 = lean_ctor_get(x_52, 0); -lean_dec(x_54); -lean_ctor_set_tag(x_52, 1); -lean_ctor_set(x_52, 0, x_50); -return x_52; +lean_object* x_55; +x_55 = lean_ctor_get(x_53, 0); +lean_dec(x_55); +lean_ctor_set_tag(x_53, 1); +lean_ctor_set(x_53, 0, x_51); +return x_53; } else { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_50); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_51); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } @@ -5112,113 +5240,113 @@ lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_ _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg___boxed), 10, 0); return x_2; } } -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Elab_Term_elabBinders___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: { -uint8_t x_10; -x_10 = l_Array_isEmpty___rarg(x_1); -if (x_10 == 0) +uint8_t x_11; +x_11 = l_Array_isEmpty___rarg(x_1); +if (x_11 == 0) { -lean_object* x_11; -x_11 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) +lean_object* x_12; +x_12 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -return x_11; +return x_12; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) { -return x_11; +return x_12; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 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_11); -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_dec(x_12); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_dec(x_1); -x_20 = l_Array_empty___closed__1; -x_21 = lean_apply_3(x_2, x_20, x_3, x_4); -x_22 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg(x_21, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_22) == 0) +x_21 = l_Array_empty___closed__1; +x_22 = lean_apply_3(x_2, x_21, x_4, x_5); +x_23 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg(x_22, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_23) == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -return x_22; +return x_23; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_22, 1); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_22); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 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_27; -x_27 = !lean_is_exclusive(x_22); -if (x_27 == 0) +uint8_t x_28; +x_28 = !lean_is_exclusive(x_23); +if (x_28 == 0) { -return x_22; +return x_23; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_22, 0); -x_29 = lean_ctor_get(x_22, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_22); -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; +lean_dec(x_23); +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; } } } @@ -5228,7 +5356,7 @@ lean_object* l_Lean_Elab_Term_elabBinders(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 0); return x_2; } } @@ -5257,6 +5385,26 @@ lean_dec(x_3); return x_9; } } +lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Meta_withoutPostponingUniverseConstraintsImp___at_Lean_Elab_Term_elabBinders___spec__1___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* l_Lean_Elab_Term_elabBinders___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_elabBinders___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* l_Lean_Elab_Term_elabBinder___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -5268,23 +5416,23 @@ x_13 = lean_apply_8(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } } -lean_object* l_Lean_Elab_Term_elabBinder___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Elab_Term_elabBinder___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_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = l_Lean_mkOptionalNode___closed__2; -x_11 = lean_array_push(x_10, x_1); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinder___rarg___lambda__1___boxed), 9, 1); -lean_closure_set(x_12, 0, x_2); -x_13 = l_Lean_Elab_Term_elabBinders___rarg(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_13; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_mkOptionalNode___closed__2; +x_12 = lean_array_push(x_11, x_1); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinder___rarg___lambda__1___boxed), 9, 1); +lean_closure_set(x_13, 0, x_2); +x_14 = l_Lean_Elab_Term_elabBinders___rarg(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_14; } } lean_object* l_Lean_Elab_Term_elabBinder(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinder___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinder___rarg___boxed), 10, 0); return x_2; } } @@ -5297,6 +5445,16 @@ lean_dec(x_2); return x_10; } } +lean_object* l_Lean_Elab_Term_elabBinder___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_elabBinder___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* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object* x_1) { _start: { @@ -5646,7 +5804,7 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; x_18 = lean_unsigned_to_nat(1u); x_19 = l_Lean_Syntax_getArg(x_1, x_18); x_20 = lean_unsigned_to_nat(3u); @@ -5656,8 +5814,9 @@ x_22 = l_Lean_Syntax_getArgs(x_19); lean_dec(x_19); x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForall___lambda__1), 9, 1); lean_closure_set(x_23, 0, x_21); -x_24 = l_Lean_Elab_Term_elabBinders___rarg(x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_24; +x_24 = 0; +x_25 = l_Lean_Elab_Term_elabBinders___rarg(x_22, x_23, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_25; } } } @@ -5970,7 +6129,7 @@ return x_5; lean_object* l_Lean_Elab_Term_elabDepArrow(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; x_10 = lean_unsigned_to_nat(0u); x_11 = l_Lean_Syntax_getArg(x_1, x_10); x_12 = lean_unsigned_to_nat(2u); @@ -5979,8 +6138,9 @@ x_14 = l_Lean_mkOptionalNode___closed__2; x_15 = lean_array_push(x_14, x_11); x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForall___lambda__1), 9, 1); lean_closure_set(x_16, 0, x_13); -x_17 = l_Lean_Elab_Term_elabBinders___rarg(x_15, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_17; +x_17 = 0; +x_18 = l_Lean_Elab_Term_elabBinders___rarg(x_15, x_16, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_18; } } lean_object* l_Lean_Elab_Term_elabDepArrow___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) { @@ -18445,19 +18605,11 @@ return x_75; } } } -lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = lean_apply_9(x_1, x_4, x_5, x_2, x_3, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_11, 0, x_3); lean_closure_set(x_11, 1, x_4); lean_closure_set(x_11, 2, x_5); @@ -19357,63 +19509,63 @@ return x_3; lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; x_16 = lean_box(x_8); lean_inc(x_4); x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed), 11, 3); lean_closure_set(x_17, 0, x_3); lean_closure_set(x_17, 1, x_16); lean_closure_set(x_17, 2, x_4); +x_18 = 0; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_18 = l_Lean_Elab_Term_elabBinders___rarg(x_2, x_17, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Lean_Elab_Term_elabBinders___rarg(x_2, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_19) == 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; uint8_t x_47; lean_object* x_48; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 1); +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_48; lean_object* x_49; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); +x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); lean_inc(x_22); lean_dec(x_19); x_23 = lean_ctor_get(x_20, 0); lean_inc(x_23); -x_24 = lean_ctor_get(x_20, 1); -lean_inc(x_24); lean_dec(x_20); -x_65 = lean_st_ref_get(x_14, x_21); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_66, 3); +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_66 = lean_st_ref_get(x_14, x_22); +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_66); -x_68 = lean_ctor_get_uint8(x_67, sizeof(void*)*1); +x_68 = lean_ctor_get(x_67, 3); +lean_inc(x_68); lean_dec(x_67); -if (x_68 == 0) +x_69 = lean_ctor_get_uint8(x_68, sizeof(void*)*1); +lean_dec(x_68); +if (x_69 == 0) { -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_65, 1); -lean_inc(x_69); -lean_dec(x_65); -x_70 = 0; -x_47 = x_70; -x_48 = x_69; -goto block_64; +lean_object* x_70; +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +lean_dec(x_66); +x_48 = x_18; +x_49 = x_70; +goto block_65; } else { lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_71 = lean_ctor_get(x_65, 1); +x_71 = lean_ctor_get(x_66, 1); lean_inc(x_71); -lean_dec(x_65); +lean_dec(x_66); x_72 = l_Lean_Elab_Term_elabLetDeclAux___closed__3; x_73 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_72, x_9, x_10, x_11, x_12, x_13, x_14, x_71); x_74 = lean_ctor_get(x_73, 0); @@ -19423,46 +19575,46 @@ lean_inc(x_75); lean_dec(x_73); x_76 = lean_unbox(x_74); lean_dec(x_74); -x_47 = x_76; -x_48 = x_75; -goto block_64; +x_48 = x_76; +x_49 = x_75; +goto block_65; } -block_46: +block_47: { if (x_7 == 0) { -lean_object* x_26; uint8_t x_27; lean_object* x_28; -x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__4), 10, 2); -lean_closure_set(x_26, 0, x_5); -lean_closure_set(x_26, 1, x_6); -x_27 = 0; +lean_object* x_27; uint8_t x_28; lean_object* x_29; +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__4), 10, 2); +lean_closure_set(x_27, 0, x_5); +lean_closure_set(x_27, 1, x_6); +x_28 = 0; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_22); -x_28 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_1, x_27, x_22, x_26, x_9, x_10, x_11, x_12, x_13, x_14, x_25); -if (lean_obj_tag(x_28) == 0) +lean_inc(x_23); +x_29 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_1, x_28, x_23, x_27, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -lean_inc(x_23); -x_31 = l_Lean_mkApp(x_29, x_23); -x_32 = l_Lean_Elab_Term_elabLetDeclAux___lambda__3(x_8, x_24, x_4, x_23, x_22, x_31, x_9, x_10, x_11, x_12, x_13, x_14, x_30); -return x_32; +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_24); +x_32 = l_Lean_mkApp(x_30, x_24); +x_33 = l_Lean_Elab_Term_elabLetDeclAux___lambda__3(x_8, x_25, x_4, x_24, x_23, x_32, x_9, x_10, x_11, x_12, x_13, x_14, x_31); +return x_33; } else { -uint8_t x_33; +uint8_t x_34; +lean_dec(x_25); lean_dec(x_24); lean_dec(x_23); -lean_dec(x_22); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -19470,58 +19622,58 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); -x_33 = !lean_is_exclusive(x_28); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) { -return x_28; +return x_29; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_28, 0); -x_35 = lean_ctor_get(x_28, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_28); -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; +lean_dec(x_29); +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 { -lean_object* x_37; lean_object* x_38; -x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__4), 10, 2); -lean_closure_set(x_37, 0, x_5); -lean_closure_set(x_37, 1, x_6); +lean_object* x_38; lean_object* x_39; +x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__4), 10, 2); +lean_closure_set(x_38, 0, x_5); +lean_closure_set(x_38, 1, x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -x_38 = l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_1, x_22, x_23, x_37, x_9, x_10, x_11, x_12, x_13, x_14, x_25); -if (lean_obj_tag(x_38) == 0) +x_39 = l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__3___rarg(x_1, x_23, x_24, x_38, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Elab_Term_elabLetDeclAux___lambda__3(x_8, x_24, x_4, x_23, x_22, x_39, x_9, x_10, x_11, x_12, x_13, x_14, x_40); -return x_41; +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_Lean_Elab_Term_elabLetDeclAux___lambda__3(x_8, x_25, x_4, x_24, x_23, x_40, x_9, x_10, x_11, x_12, x_13, x_14, x_41); +return x_42; } else { -uint8_t x_42; +uint8_t x_43; +lean_dec(x_25); lean_dec(x_24); lean_dec(x_23); -lean_dec(x_22); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -19529,74 +19681,74 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); -x_42 = !lean_is_exclusive(x_38); -if (x_42 == 0) +x_43 = !lean_is_exclusive(x_39); +if (x_43 == 0) { -return x_38; +return x_39; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_38, 0); -x_44 = lean_ctor_get(x_38, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_39, 0); +x_45 = lean_ctor_get(x_39, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_38); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_dec(x_39); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } } -block_64: +block_65: { -if (x_47 == 0) +if (x_48 == 0) { -x_25 = x_48; -goto block_46; +x_26 = x_49; +goto block_47; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_object* x_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_inc(x_1); -x_49 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_49, 0, x_1); -x_50 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -x_51 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -x_52 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__7; -x_53 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -lean_inc(x_22); -x_54 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_54, 0, x_22); -x_55 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -x_56 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__8; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); +x_50 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_50, 0, x_1); +x_51 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +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___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__7; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); lean_inc(x_23); -x_58 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_58, 0, x_23); -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); +x_55 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_55, 0, x_23); +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__8; +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +lean_inc(x_24); +x_59 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_59, 0, x_24); x_60 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_50); -x_61 = l_Lean_Elab_Term_elabLetDeclAux___closed__3; -x_62 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_61, x_60, x_9, x_10, x_11, x_12, x_13, x_14, x_48); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_25 = x_63; -goto block_46; +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_51); +x_62 = l_Lean_Elab_Term_elabLetDeclAux___closed__3; +x_63 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_62, x_61, x_9, x_10, x_11, x_12, x_13, x_14, x_49); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_26 = x_64; +goto block_47; } } } @@ -19613,19 +19765,19 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_77 = !lean_is_exclusive(x_18); +x_77 = !lean_is_exclusive(x_19); if (x_77 == 0) { -return x_18; +return x_19; } else { lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_18, 0); -x_79 = lean_ctor_get(x_18, 1); +x_78 = lean_ctor_get(x_19, 0); +x_79 = lean_ctor_get(x_19, 1); lean_inc(x_79); lean_inc(x_78); -lean_dec(x_18); +lean_dec(x_19); x_80 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_80, 0, x_78); lean_ctor_set(x_80, 1, x_79); @@ -20240,7 +20392,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Elab_Term_quoteAutoTactic___closed__1; x_2 = l_Lean_Elab_Term_elabLetDeclCore___closed__5; -x_3 = lean_unsigned_to_nat(503u); +x_3 = lean_unsigned_to_nat(510u); x_4 = lean_unsigned_to_nat(24u); x_5 = l_Lean_Syntax_strLitToAtom___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -21010,7 +21162,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_4572_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_4621_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -21267,7 +21419,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetStarDecl___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabLetStarDecl(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_Binders___hyg_4572_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Binders___hyg_4621_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 06b5a8f35e..6859d591f9 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -99,7 +99,6 @@ lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___lambda__1___boxe lean_object* l_Lean_Elab_Command_elabCommand___lambda__1___closed__3; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute; -lean_object* l_Lean_Elab_Term_elabBinder___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getScope___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabUniverse(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; @@ -530,6 +529,7 @@ lean_object* l_Lean_Elab_Command_elabOpenHiding(lean_object*, lean_object*, lean lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabChoiceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd(lean_object*); @@ -700,7 +700,6 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth(lean_object*); lean_object* l_Lean_Elab_Command_instInhabitedCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabVariable___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand_match__1(lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Core_instInhabitedState___closed__1; @@ -772,6 +771,7 @@ lean_object* l_Lean_Elab_Command_liftTermElabM_match__2(lean_object*, lean_objec lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6; lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__3; lean_object* l_Lean_Elab_Command_elabVariable___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinder___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_object*); @@ -10284,7 +10284,7 @@ return x_14; lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_6 = lean_st_ref_get(x_4, x_5); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); @@ -10295,16 +10295,18 @@ x_9 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(x_7); lean_dec(x_7); x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Command_runTermElabM___rarg___lambda__1), 9, 1); lean_closure_set(x_10, 0, x_2); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_11, 0, x_9); -lean_closure_set(x_11, 1, x_10); -x_12 = 1; -x_13 = lean_box(x_12); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_14, 0, x_11); -lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Elab_Command_liftTermElabM___rarg(x_1, x_14, x_3, x_4, x_8); -return x_15; +x_11 = 1; +x_12 = lean_box(x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_13, 0, x_9); +lean_closure_set(x_13, 1, x_10); +lean_closure_set(x_13, 2, x_12); +x_14 = lean_box(x_11); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_14); +x_16 = l_Lean_Elab_Command_liftTermElabM___rarg(x_1, x_15, x_3, x_4, x_8); +return x_16; } } lean_object* l_Lean_Elab_Command_runTermElabM(lean_object* x_1) { @@ -16481,29 +16483,31 @@ return x_1; lean_object* l_Lean_Elab_Command_elabVariable___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; x_10 = l_Lean_Elab_Term_resetMessageLog(x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); x_12 = l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinder___rarg), 9, 2); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_12); -x_14 = 1; -x_15 = lean_box(x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_16, 0, x_13); -lean_closure_set(x_16, 1, x_15); -x_17 = 0; -x_18 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_16, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -return x_18; +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinder___rarg___boxed), 10, 3); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_14); +x_16 = lean_box(x_13); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_17, 0, x_15); +lean_closure_set(x_17, 1, x_16); +x_18 = 0; +x_19 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_17, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +return x_19; } } lean_object* l_Lean_Elab_Command_elabVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +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; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = lean_box(0); @@ -16518,48 +16522,50 @@ lean_dec(x_9); lean_inc(x_6); x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___lambda__2___boxed), 9, 1); lean_closure_set(x_12, 0, x_6); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_13, 0, x_11); -lean_closure_set(x_13, 1, x_12); -x_14 = 1; -x_15 = lean_box(x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_16, 0, x_13); -lean_closure_set(x_16, 1, x_15); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_15, 0, x_11); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_14); +x_16 = lean_box(x_13); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_17, 0, x_15); +lean_closure_set(x_17, 1, x_16); lean_inc(x_2); -x_17 = l_Lean_Elab_Command_liftTermElabM___rarg(x_7, x_16, x_2, x_3, x_10); -if (lean_obj_tag(x_17) == 0) +x_18 = l_Lean_Elab_Command_liftTermElabM___rarg(x_7, x_17, x_2, x_3, x_10); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_6, x_2, x_3, x_18); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1(x_6, x_2, x_3, x_19); lean_dec(x_2); -return x_19; +return x_20; } else { -uint8_t x_20; +uint8_t x_21; lean_dec(x_6); lean_dec(x_2); -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) { -return x_17; +return x_18; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_17, 0); -x_22 = lean_ctor_get(x_17, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_18, 0); +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_17); -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_dec(x_18); +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; } } } @@ -17024,29 +17030,31 @@ return x_107; lean_object* l_Lean_Elab_Command_elabVariables___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; uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; x_10 = l_Lean_Elab_Term_resetMessageLog(x_3, x_4, x_5, x_6, x_7, x_8, x_9); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); x_12 = l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_12); -x_14 = 1; -x_15 = lean_box(x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_16, 0, x_13); -lean_closure_set(x_16, 1, x_15); -x_17 = 0; -x_18 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_16, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_11); -return x_18; +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_14); +x_16 = lean_box(x_13); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_17, 0, x_15); +lean_closure_set(x_17, 1, x_16); +x_18 = 0; +x_19 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_17, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +return x_19; } } lean_object* l_Lean_Elab_Command_elabVariables(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = l_Lean_Syntax_getArgs(x_6); @@ -17063,49 +17071,51 @@ lean_dec(x_10); lean_inc(x_7); x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariables___lambda__1___boxed), 9, 1); lean_closure_set(x_13, 0, x_7); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = 1; -x_16 = lean_box(x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_17, 0, x_14); -lean_closure_set(x_17, 1, x_16); +x_14 = 1; +x_15 = lean_box(x_14); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_16, 0, x_12); +lean_closure_set(x_16, 1, x_13); +lean_closure_set(x_16, 2, x_15); +x_17 = lean_box(x_14); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_18, 0, x_16); +lean_closure_set(x_18, 1, x_17); lean_inc(x_2); -x_18 = l_Lean_Elab_Command_liftTermElabM___rarg(x_8, x_17, x_2, x_3, x_11); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Lean_Elab_Command_liftTermElabM___rarg(x_8, x_18, x_2, x_3, x_11); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_7, x_2, x_3, x_19); +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_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(x_7, x_2, x_3, x_20); lean_dec(x_2); lean_dec(x_7); -return x_20; +return x_21; } else { -uint8_t x_21; +uint8_t x_22; lean_dec(x_7); lean_dec(x_2); -x_21 = !lean_is_exclusive(x_18); -if (x_21 == 0) +x_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) { -return x_18; +return x_19; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_19, 0); +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_18); -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; +lean_dec(x_19); +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; } } } @@ -17362,7 +17372,7 @@ return x_2; lean_object* l_Lean_Elab_Command_elabCheck(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; 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; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 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_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = lean_st_ref_get(x_3, x_4); @@ -17384,78 +17394,80 @@ x_14 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(x_12); lean_dec(x_12); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheck___lambda__2___boxed), 9, 1); lean_closure_set(x_15, 0, x_6); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = 1; -x_18 = lean_box(x_17); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_19, 0, x_16); -lean_closure_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Command_elabCheck___closed__3; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_18, 0, x_14); +lean_closure_set(x_18, 1, x_15); +lean_closure_set(x_18, 2, x_17); +x_19 = lean_box(x_16); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_20, 0, x_18); +lean_closure_set(x_20, 1, x_19); +x_21 = l_Lean_Elab_Command_elabCheck___closed__3; lean_inc(x_2); -x_21 = l_Lean_Elab_Command_liftTermElabM___rarg(x_20, x_19, x_2, x_3, x_13); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Lean_Elab_Command_liftTermElabM___rarg(x_21, x_20, x_2, x_3, x_13); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_24); lean_dec(x_2); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -lean_object* x_26; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -lean_ctor_set(x_24, 0, x_22); -return x_24; +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_23); +return x_25; } else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_22); -lean_ctor_set(x_28, 1, x_27); -return x_28; +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_21, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_21, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_22, 0); lean_inc(x_30); -lean_dec(x_21); -x_31 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_30); +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_dec(x_22); +x_32 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_31); lean_dec(x_2); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -lean_ctor_set_tag(x_31, 1); -lean_ctor_set(x_31, 0, x_29); -return x_31; +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set_tag(x_32, 1); +lean_ctor_set(x_32, 0, x_30); +return x_32; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_34); -return x_35; +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } @@ -19795,7 +19807,7 @@ x_11 = l_Lean_Elab_Command_elabEvalUnsafe___closed__5; x_12 = l_Lean_Environment_contains(x_10, x_11); 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; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; x_13 = lean_st_ref_get(x_3, x_9); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); @@ -19810,46 +19822,50 @@ x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3 lean_closure_set(x_19, 0, x_6); lean_closure_set(x_19, 1, x_17); lean_closure_set(x_19, 2, x_18); -x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_20, 0, x_16); -lean_closure_set(x_20, 1, x_19); -x_21 = 1; -x_22 = lean_box(x_21); -x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_23, 0, x_20); -lean_closure_set(x_23, 1, x_22); -x_24 = l_Lean_Elab_Command_elabEvalUnsafe___closed__3; -x_25 = l_Lean_Elab_Command_liftTermElabM___rarg(x_24, x_23, x_2, x_3, x_15); -return x_25; +x_20 = 1; +x_21 = lean_box(x_20); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_22, 0, x_16); +lean_closure_set(x_22, 1, x_19); +lean_closure_set(x_22, 2, x_21); +x_23 = lean_box(x_20); +x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_24, 0, x_22); +lean_closure_set(x_24, 1, x_23); +x_25 = l_Lean_Elab_Command_elabEvalUnsafe___closed__3; +x_26 = l_Lean_Elab_Command_liftTermElabM___rarg(x_25, x_24, x_2, x_3, x_15); +return x_26; } else { -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_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_26 = lean_st_ref_get(x_3, x_9); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +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_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_27 = lean_st_ref_get(x_3, x_9); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(x_27); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); lean_dec(x_27); -x_30 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; -x_31 = l_Lean_Elab_Command_elabEvalUnsafe___closed__2; -x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed), 11, 3); -lean_closure_set(x_32, 0, x_6); -lean_closure_set(x_32, 1, x_30); -lean_closure_set(x_32, 2, x_31); -x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_33, 0, x_29); -lean_closure_set(x_33, 1, x_32); +x_30 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(x_28); +lean_dec(x_28); +x_31 = l_myMacro____x40_Init_Notation___hyg_38____closed__2; +x_32 = l_Lean_Elab_Command_elabEvalUnsafe___closed__2; +x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed), 11, 3); +lean_closure_set(x_33, 0, x_6); +lean_closure_set(x_33, 1, x_31); +lean_closure_set(x_33, 2, x_32); x_34 = 1; x_35 = lean_box(x_34); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_36, 0, x_33); -lean_closure_set(x_36, 1, x_35); -x_37 = l_Lean_Elab_Command_elabEvalUnsafe___closed__3; -x_38 = l_Lean_Elab_Command_liftTermElabM___rarg(x_37, x_36, x_2, x_3, x_28); -return x_38; +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_36, 0, x_30); +lean_closure_set(x_36, 1, x_33); +lean_closure_set(x_36, 2, x_35); +x_37 = lean_box(x_34); +x_38 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_38, 0, x_36); +lean_closure_set(x_38, 1, x_37); +x_39 = l_Lean_Elab_Command_elabEvalUnsafe___closed__3; +x_40 = l_Lean_Elab_Command_liftTermElabM___rarg(x_39, x_38, x_2, x_3, x_29); +return x_40; } } } @@ -20275,7 +20291,7 @@ return x_2; lean_object* l_Lean_Elab_Command_elabSynth(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 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_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = lean_st_ref_get(x_3, x_4); @@ -20297,78 +20313,80 @@ x_14 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(x_12); lean_dec(x_12); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___lambda__2___boxed), 9, 1); lean_closure_set(x_15, 0, x_6); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = 1; -x_18 = lean_box(x_17); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_19, 0, x_16); -lean_closure_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Command_elabSynth___closed__3; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_18, 0, x_14); +lean_closure_set(x_18, 1, x_15); +lean_closure_set(x_18, 2, x_17); +x_19 = lean_box(x_16); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_20, 0, x_18); +lean_closure_set(x_20, 1, x_19); +x_21 = l_Lean_Elab_Command_elabSynth___closed__3; lean_inc(x_2); -x_21 = l_Lean_Elab_Command_liftTermElabM___rarg(x_20, x_19, x_2, x_3, x_13); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Lean_Elab_Command_liftTermElabM___rarg(x_21, x_20, x_2, x_3, x_13); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_24); lean_dec(x_2); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -lean_object* x_26; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -lean_ctor_set(x_24, 0, x_22); -return x_24; +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_23); +return x_25; } else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_22); -lean_ctor_set(x_28, 1, x_27); -return x_28; +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_21, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_21, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_22, 0); lean_inc(x_30); -lean_dec(x_21); -x_31 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_30); +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_dec(x_22); +x_32 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_10, x_2, x_3, x_31); lean_dec(x_2); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -lean_ctor_set_tag(x_31, 1); -lean_ctor_set(x_31, 0, x_29); -return x_31; +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set_tag(x_32, 1); +lean_ctor_set(x_32, 0, x_30); +return x_32; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_29); -lean_ctor_set(x_35, 1, x_34); -return x_35; +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index c6a535f952..dbec616d2b 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -229,6 +229,7 @@ uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleC lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__6; lean_object* l_Lean_Elab_Command_expandMutualPreamble(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Command_expandMutualElement(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_524____closed__2; @@ -306,7 +307,6 @@ lean_object* l_Lean_Elab_Command_elabAxiom_match__4(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__6; -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__3; lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___boxed__const__1; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1; @@ -2511,7 +2511,7 @@ return x_100; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_16 = l_Lean_Syntax_getArgs(x_1); lean_inc(x_7); x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__1___boxed), 15, 7); @@ -2522,11 +2522,14 @@ lean_closure_set(x_17, 3, x_5); lean_closure_set(x_17, 4, x_6); lean_closure_set(x_17, 5, x_7); lean_closure_set(x_17, 6, x_8); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_18, 0, x_16); -lean_closure_set(x_18, 1, x_17); -x_19 = l_Lean_Elab_Term_withLevelNames___rarg(x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_19; +x_18 = 0; +x_19 = lean_box(x_18); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_20, 0, x_16); +lean_closure_set(x_20, 1, x_17); +lean_closure_set(x_20, 2, x_19); +x_21 = l_Lean_Elab_Term_withLevelNames___rarg(x_7, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_21; } } lean_object* l_Lean_Elab_Command_elabAxiom___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_object* x_14, lean_object* x_15) { @@ -2577,7 +2580,7 @@ x_16 = l_Lean_Elab_Command_expandDeclId(x_7, x_1, x_3, x_4, x_15); lean_dec(x_7); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -2607,43 +2610,45 @@ lean_closure_set(x_26, 3, x_12); lean_closure_set(x_26, 4, x_14); lean_closure_set(x_26, 5, x_20); lean_closure_set(x_26, 6, x_2); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_27, 0, x_25); -lean_closure_set(x_27, 1, x_26); -x_28 = 1; -x_29 = lean_box(x_28); -x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_30, 0, x_27); -lean_closure_set(x_30, 1, x_29); -x_31 = l_Lean_Elab_Command_liftTermElabM___rarg(x_21, x_30, x_3, x_4, x_24); -return x_31; +x_27 = 1; +x_28 = lean_box(x_27); +x_29 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_29, 0, x_25); +lean_closure_set(x_29, 1, x_26); +lean_closure_set(x_29, 2, x_28); +x_30 = lean_box(x_27); +x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_31, 0, x_29); +lean_closure_set(x_31, 1, x_30); +x_32 = l_Lean_Elab_Command_liftTermElabM___rarg(x_21, x_31, x_3, x_4, x_24); +return x_32; } else { -uint8_t x_32; +uint8_t x_33; lean_dec(x_14); lean_dec(x_12); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_32 = !lean_is_exclusive(x_16); -if (x_32 == 0) +x_33 = !lean_is_exclusive(x_16); +if (x_33 == 0) { return x_16; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_16, 0); -x_34 = lean_ctor_get(x_16, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_16, 0); +x_35 = lean_ctor_get(x_16, 1); +lean_inc(x_35); lean_inc(x_34); -lean_inc(x_33); lean_dec(x_16); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; +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; } } } diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 5b0a418500..d0aaa831e5 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -37,7 +37,6 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMo lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___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*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); @@ -45,7 +44,7 @@ lean_object* l_Lean_Elab_Command_checkResultingUniverse(lean_object*, lean_objec lean_object* l_Lean_mkSort(lean_object*); lean_object* l_List_foldlM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_206____closed__4; lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -56,26 +55,25 @@ lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object* lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__3(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); +lean_object* l_Array_append___rarg(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_2549____closed__4; lean_object* l_Lean_Elab_Command_mkResultUniverse(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instInhabitedElabHeaderResult; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__1; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkBelow___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_object* l_Lean_Elab_Command_instInhabitedInductiveView; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux_match__1(lean_object*); -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__2; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM_visit(lean_object*, size_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkResultingUniverses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__7___lambda__3(uint8_t, uint8_t, 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_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1___boxed(lean_object*, lean_object*); @@ -85,13 +83,13 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUn extern lean_object* l_Array_empty___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__1; lean_object* lean_mk_cases_on(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___boxed(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*); uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Command_accLevelAtCtor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__6; lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__2(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); @@ -109,10 +107,10 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inducti lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___lambda__1___closed__1; extern lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__3; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___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*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___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_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_accLevelAtCtor___closed__1; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -126,6 +124,8 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpecte lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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*); lean_object* l_Lean_Level_getOffsetAux(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTypeWithUnboundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__7___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*); @@ -142,9 +142,11 @@ lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__3___closed__2; lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2; +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__4; lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__10___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -153,7 +155,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkResultingUniverse___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__5; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__5; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___at_Lean_Meta_instantiateLevelMVarsImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -169,13 +170,13 @@ lean_object* l_Lean_Elab_Command_checkResultingUniverse___boxed(lean_object*, le lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__10(uint8_t, 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_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__3; lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkResultingUniverse___closed__2; lean_object* lean_mk_ibelow(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkResultUniverse___boxed(lean_object*, lean_object*); @@ -191,11 +192,11 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_throwUnexpecte lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls(lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2(lean_object*, lean_object*); lean_object* l_List_foldl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___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___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkNoConfusion___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateLevelMVars___at_Lean_Elab_Command_shouldInferResultUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed_match__1(lean_object*); @@ -242,6 +243,7 @@ lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__2___boxed(lean_object**); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__4; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniversesFromCtorTypeAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldM_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___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*); @@ -267,6 +269,7 @@ lean_object* l_Lean_addDecl___at___private_Lean_Elab_Inductive_0__Lean_Elab_Comm lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_accLevelAtCtor_match__1(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -311,10 +314,13 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType_match__1(lean_object*); size_t lean_usize_of_nat(lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__5; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instInhabitedInductiveView___closed__1; lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__2; lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___lambda__2___closed__3; @@ -322,6 +328,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUn lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2; @@ -330,7 +337,6 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean lean_object* l_Lean_Elab_Command_accLevelAtCtor___closed__2; lean_object* l_Lean_mkIBelow___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkRecOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___closed__4; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -340,7 +346,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUn lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectLevelParamsInInductive(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4___lambda__5___closed__1; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___closed__3; lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -373,12 +379,13 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean extern lean_object* l_Lean_CollectLevelParams_instInhabitedState___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___closed__1; extern lean_object* l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__2; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__2; uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Meta_addGlobalInstanceImp___spec__1(lean_object*); +lean_object* l_List_map___at_Lean_MessageData_instCoeListExprMessageData___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_839____closed__1; @@ -390,13 +397,14 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___closed__2; lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkParamsAndResultType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts_match__1(lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_eqvFirstTypeResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_find_x21___rarg___closed__3; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521_(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4_(lean_object*); lean_object* l_Lean_mkIBelow___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -418,12 +426,15 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command extern lean_object* l_Std_HashMap_find_x21___rarg___closed__2; lean_object* lean_register_option(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__3; +extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_502____closed__4; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUniverse___closed__4; lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkCasesOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__1; lean_object* l_Lean_Elab_Command_elabInductiveViews___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_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); @@ -442,6 +453,7 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command lean_object* l_Lean_mkBelow___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___lambda__2(lean_object*, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___spec__1___lambda__1___closed__2; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_removeUnused_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_mkBInductionOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -459,10 +471,11 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean extern lean_object* l_Std_HashMap_instInhabitedHashMap___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___closed__6; uint8_t l_Lean_Level_isZero(lean_object*); -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___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_Expr_inferImplicit(lean_object*, lean_object*, uint8_t); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkUnsafe___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* l_Lean_mkCasesOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__5; lean_object* l_Lean_indentD(lean_object*); uint8_t l_Lean_Level_occurs(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__3; @@ -481,6 +494,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVar lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__1; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4___lambda__5___closed__3; extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___closed__2; @@ -490,6 +504,7 @@ lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_0__Lea lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__7___lambda__2(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_rec_on(lean_object*, lean_object*); lean_object* l_Lean_mkLevelParam(lean_object*); lean_object* l_Nat_foldM_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*); @@ -502,6 +517,7 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command extern lean_object* l_Lean_levelOne; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__3___closed__1; uint8_t lean_level_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__6; uint8_t l_List_beq___at_Lean_OpenDecl_instToStringOpenDecl___spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -513,7 +529,6 @@ lean_object* l_Lean_Elab_Command_shouldInferResultUniverse_match__1(lean_object* lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingType___closed__1; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__4; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -527,13 +542,16 @@ lean_object* lean_mk_binduction_on(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_isInductiveFamily___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop(lean_object*); lean_object* l_Nat_foldAux___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkIndFVar2Const___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__6; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___closed__5; lean_object* l_Lean_Meta_isType___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkCtor2InferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___lambda__2___closed__3; +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkLevelNames___spec__1___closed__2; lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1___rarg(lean_object*, lean_object*); @@ -1285,21 +1303,436 @@ x_9 = l___private_Lean_Meta_InferType_0__Lean_Meta_isTypeFormerTypeImp(x_1, x_4, return x_9; } } -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_1, x_17); -x_19 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_19, 0, x_2); -lean_ctor_set(x_19, 1, x_3); -lean_ctor_set(x_19, 2, x_4); -lean_ctor_set(x_19, 3, x_5); -lean_ctor_set(x_19, 4, x_6); -x_20 = lean_array_push(x_7, x_19); -x_21 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(x_8, x_18, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -return x_21; +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_10 = lean_ctor_get(x_7, 3); +x_11 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_take(x_8, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 3); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_15, 3); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_12); +lean_inc(x_10); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Std_PersistentArray_push___rarg(x_21, x_23); +lean_ctor_set(x_16, 0, x_24); +x_25 = lean_st_ref_set(x_8, x_15, x_17); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; +} +} +else +{ +uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_32 = lean_ctor_get_uint8(x_16, sizeof(void*)*1); +x_33 = lean_ctor_get(x_16, 0); +lean_inc(x_33); +lean_dec(x_16); +x_34 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_12); +lean_inc(x_10); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_10); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Std_PersistentArray_push___rarg(x_33, x_35); +x_37 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_32); +lean_ctor_set(x_15, 3, x_37); +x_38 = lean_st_ref_set(x_8, x_15, x_17); +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; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_43 = lean_ctor_get(x_15, 0); +x_44 = lean_ctor_get(x_15, 1); +x_45 = lean_ctor_get(x_15, 2); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_15); +x_46 = lean_ctor_get_uint8(x_16, sizeof(void*)*1); +x_47 = lean_ctor_get(x_16, 0); +lean_inc(x_47); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + x_48 = x_16; +} else { + lean_dec_ref(x_16); + x_48 = lean_box(0); +} +x_49 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_12); +lean_inc(x_10); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_10); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Std_PersistentArray_push___rarg(x_47, x_50); +if (lean_is_scalar(x_48)) { + x_52 = lean_alloc_ctor(0, 1, 1); +} else { + x_52 = x_48; +} +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set_uint8(x_52, sizeof(void*)*1, x_46); +x_53 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_53, 0, x_43); +lean_ctor_set(x_53, 1, x_44); +lean_ctor_set(x_53, 2, x_45); +lean_ctor_set(x_53, 3, x_52); +x_54 = lean_st_ref_set(x_8, x_53, x_17); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +x_57 = lean_box(0); +if (lean_is_scalar(x_56)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_56; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_55); +return x_58; +} +} +} +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___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; uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_6, 0); +x_10 = l_Lean_checkTraceOption(x_9, x_1); +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("type: "); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", params: "); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", unboundImplicitFVars: "); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_63 = lean_st_ref_get(x_12, x_13); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_64, 3); +lean_inc(x_65); +lean_dec(x_64); +x_66 = lean_ctor_get_uint8(x_65, sizeof(void*)*1); +lean_dec(x_65); +if (x_66 == 0) +{ +lean_object* x_67; uint8_t x_68; +x_67 = lean_ctor_get(x_63, 1); +lean_inc(x_67); +lean_dec(x_63); +x_68 = 0; +x_14 = x_68; +x_15 = x_67; +goto block_62; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_ctor_get(x_63, 1); +lean_inc(x_69); +lean_dec(x_63); +x_70 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_502____closed__4; +x_71 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__4(x_70, x_7, x_8, x_9, x_10, x_11, x_12, x_69); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_14 = x_74; +x_15 = x_73; +goto block_62; +} +block_62: +{ +if (x_14 == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_9, 1); +x_17 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg(x_9, x_10, x_11, x_12, x_15); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_17, 0); +x_20 = l_Array_append___rarg(x_1, x_2); +lean_dec(x_2); +lean_inc(x_16); +x_21 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_21, 0, x_3); +lean_ctor_set(x_21, 1, x_16); +lean_ctor_set(x_21, 2, x_19); +lean_ctor_set(x_21, 3, x_20); +lean_ctor_set(x_21, 4, x_4); +x_22 = lean_array_push(x_5, x_21); +lean_ctor_set(x_17, 0, x_22); +return x_17; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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 = l_Array_append___rarg(x_1, x_2); +lean_dec(x_2); +lean_inc(x_16); +x_26 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_26, 0, x_3); +lean_ctor_set(x_26, 1, x_16); +lean_ctor_set(x_26, 2, x_23); +lean_ctor_set(x_26, 3, x_25); +lean_ctor_set(x_26, 4, x_4); +x_27 = lean_array_push(x_5, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_24); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 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; uint8_t x_51; +lean_inc(x_4); +x_29 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_29, 0, x_4); +x_30 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___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); +lean_inc(x_1); +x_34 = lean_array_to_list(lean_box(0), x_1); +x_35 = l_List_map___at_Lean_MessageData_instCoeListExprMessageData___spec__1(x_34); +x_36 = l_Lean_MessageData_ofList(x_35); +lean_dec(x_35); +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_36); +x_38 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__6; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +lean_inc(x_2); +x_40 = lean_array_to_list(lean_box(0), x_2); +x_41 = l_List_map___at_Lean_MessageData_instCoeListExprMessageData___spec__1(x_40); +x_42 = l_Lean_MessageData_ofList(x_41); +lean_dec(x_41); +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; +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_Meta_initFn____x40_Lean_Meta_Basic___hyg_502____closed__4; +x_47 = l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__3(x_46, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_15); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_ctor_get(x_9, 1); +x_50 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg(x_9, x_10, x_11, x_12, x_48); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_50, 0); +x_53 = l_Array_append___rarg(x_1, x_2); +lean_dec(x_2); +lean_inc(x_49); +x_54 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_54, 0, x_3); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 2, x_52); +lean_ctor_set(x_54, 3, x_53); +lean_ctor_set(x_54, 4, x_4); +x_55 = lean_array_push(x_5, x_54); +lean_ctor_set(x_50, 0, x_55); +return x_50; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_50, 0); +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_50); +x_58 = l_Array_append___rarg(x_1, x_2); +lean_dec(x_2); +lean_inc(x_49); +x_59 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_59, 0, x_3); +lean_ctor_set(x_59, 1, x_49); +lean_ctor_set(x_59, 2, x_56); +lean_ctor_set(x_59, 3, x_58); +lean_ctor_set(x_59, 4, x_4); +x_60 = lean_array_push(x_5, x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_57); +return x_61; +} +} +} } } static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1() { @@ -1330,207 +1763,183 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -x_14 = l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(x_8, x_9, x_10, x_11, x_12); -x_15 = lean_ctor_get(x_1, 6); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 0) +lean_object* x_14; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_6); +x_14 = l___private_Lean_Meta_InferType_0__Lean_Meta_isTypeFormerTypeImp(x_6, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); lean_dec(x_14); -x_18 = l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(x_9, x_10, x_11, x_17); -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_mkSort(x_19); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_2, x_22); -x_24 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_24, 0, x_1); -lean_ctor_set(x_24, 1, x_13); -lean_ctor_set(x_24, 2, x_16); -lean_ctor_set(x_24, 3, x_5); -lean_ctor_set(x_24, 4, x_21); -x_25 = lean_array_push(x_3, x_24); -x_26 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(x_4, x_23, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +x_18 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3; +x_19 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_4, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_17); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +return x_19; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_dec(x_14); +x_25 = lean_box(0); +x_26 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(x_1, x_5, x_2, x_6, x_3, x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_24); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); return x_26; } +} else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; -x_27 = lean_ctor_get(x_14, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_14, 1); +uint8_t x_27; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_14); +if (x_27 == 0) +{ +return x_14; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_14, 0); +x_29 = lean_ctor_get(x_14, 1); +lean_inc(x_29); lean_inc(x_28); lean_dec(x_14); -x_29 = lean_ctor_get(x_15, 0); -lean_inc(x_29); -lean_dec(x_15); -x_30 = lean_box(0); -x_31 = 1; +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; +} +} +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_1, 6); lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_29); -x_32 = l_Lean_Elab_Term_elabTerm(x_29, x_30, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -if (lean_obj_tag(x_32) == 0) +if (lean_obj_tag(x_11) == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_33); -x_35 = l___private_Lean_Meta_InferType_0__Lean_Meta_isTypeFormerTypeImp(x_33, x_8, x_9, x_10, x_11, x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_unbox(x_36); -lean_dec(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -lean_dec(x_33); -lean_dec(x_27); -lean_dec(x_13); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__3; -x_40 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_29, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_38); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_29); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -return x_40; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -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 -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_29); -x_45 = lean_ctor_get(x_35, 1); -lean_inc(x_45); -lean_dec(x_35); -x_46 = lean_box(0); -x_47 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(x_2, x_1, x_13, x_27, x_5, x_33, x_3, x_4, x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_45); -return x_47; -} -} -else -{ -uint8_t x_48; -lean_dec(x_33); -lean_dec(x_29); -lean_dec(x_27); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_10); +x_12 = l_Lean_Meta_mkFreshLevelMVar___at_Lean_Elab_Term_ensureType___spec__2___rarg(x_7, x_8, x_9, x_10); +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_mkSort(x_13); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +x_17 = l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_removeUnused___spec__1___rarg(x_6, x_7, x_8, x_9, x_14); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_48 = !lean_is_exclusive(x_35); -if (x_48 == 0) +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -return x_35; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_16); +lean_ctor_set(x_20, 2, x_19); +lean_ctor_set(x_20, 3, x_3); +lean_ctor_set(x_20, 4, x_15); +x_21 = lean_array_push(x_2, x_20); +lean_ctor_set(x_17, 0, x_21); +return x_17; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_35, 0); -x_50 = lean_ctor_get(x_35, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_35); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_17); +x_24 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_24, 0, x_1); +lean_ctor_set(x_24, 1, x_16); +lean_ctor_set(x_24, 2, x_22); +lean_ctor_set(x_24, 3, x_3); +lean_ctor_set(x_24, 4, x_15); +x_25 = lean_array_push(x_2, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_23); +return x_26; } } else { -uint8_t x_52; -lean_dec(x_29); -lean_dec(x_27); -lean_dec(x_13); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_11, 0); +lean_inc(x_27); lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_52 = !lean_is_exclusive(x_32); -if (x_52 == 0) -{ -return x_32; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_32, 0); -x_54 = lean_ctor_get(x_32, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_32); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} +lean_inc(x_27); +x_28 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed), 13, 4); +lean_closure_set(x_28, 0, x_3); +lean_closure_set(x_28, 1, x_1); +lean_closure_set(x_28, 2, x_2); +lean_closure_set(x_28, 3, x_27); +x_29 = l_Lean_Elab_Term_elabTypeWithUnboundImplicit___rarg(x_27, x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_29; } } } @@ -1551,7 +1960,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_3); lean_ctor_set(x_13, 1, x_10); @@ -1559,19 +1967,73 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_14 = lean_array_fget(x_1, x_2); x_15 = lean_ctor_get(x_14, 5); lean_inc(x_15); x_16 = l_Lean_Syntax_getArgs(x_15); lean_dec(x_15); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed), 12, 4); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__3), 10, 2); lean_closure_set(x_17, 0, x_14); -lean_closure_set(x_17, 1, x_2); -lean_closure_set(x_17, 2, x_3); -lean_closure_set(x_17, 3, x_1); -x_18 = l_Lean_Elab_Term_elabBinders___rarg(x_16, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_18; +lean_closure_set(x_17, 1, x_3); +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_20, 0, x_16); +lean_closure_set(x_20, 1, x_17); +lean_closure_set(x_20, 2, x_19); +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_21 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_20, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_2, x_24); +lean_dec(x_2); +x_2 = x_25; +x_3 = x_22; +x_10 = x_23; +goto _start; +} +else +{ +uint8_t x_27; +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_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) +{ +return x_21; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_21, 0); +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_21); +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; +} +} } } } @@ -1585,23 +2047,88 @@ lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg___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_17; -x_17 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_9); -lean_dec(x_1); -return x_17; -} -} -lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; -x_13 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_object* x_6; +x_6 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -return x_13; +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___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___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___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_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_14; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_8); +lean_dec(x_4); +return x_14; +} +} +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; } } static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__1() { @@ -2430,7 +2957,7 @@ lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Induct _start: { lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_10, 0, x_2); lean_closure_set(x_10, 1, x_3); lean_closure_set(x_10, 2, x_4); @@ -3728,6 +4255,15 @@ return x_72; } } } +lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); +return x_9; +} +} lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_withInductiveLocalDecls_loop_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { @@ -5447,7 +5983,7 @@ uint8_t x_15; x_15 = !lean_is_exclusive(x_5); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; x_16 = lean_ctor_get(x_5, 0); x_17 = lean_ctor_get(x_5, 1); x_18 = lean_ctor_get(x_16, 3); @@ -5464,79 +6000,80 @@ lean_closure_set(x_21, 1, x_2); lean_closure_set(x_21, 2, x_1); lean_closure_set(x_21, 3, x_20); lean_closure_set(x_21, 4, x_3); +x_22 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_22 = l_Lean_Elab_Term_elabBinders___rarg(x_19, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_22) == 0) +x_23 = l_Lean_Elab_Term_elabBinders___rarg(x_19, x_21, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_22); -x_25 = l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4(x_1, x_2, x_3, x_4, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_24); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_ctor_set(x_5, 1, x_27); -lean_ctor_set(x_5, 0, x_23); -lean_ctor_set(x_25, 0, x_5); -return x_25; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_25, 0); -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_25); -lean_ctor_set(x_5, 1, x_28); -lean_ctor_set(x_5, 0, x_23); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_5); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); lean_dec(x_23); +x_26 = l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4(x_1, x_2, x_3, x_4, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_ctor_set(x_5, 1, x_28); +lean_ctor_set(x_5, 0, x_24); +lean_ctor_set(x_26, 0, x_5); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_26); +lean_ctor_set(x_5, 1, x_29); +lean_ctor_set(x_5, 0, x_24); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_5); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_dec(x_24); lean_free_object(x_5); -x_31 = !lean_is_exclusive(x_25); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) { -return x_25; +return x_26; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_25, 0); -x_33 = lean_ctor_get(x_25, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_26, 0); +x_34 = lean_ctor_get(x_26, 1); +lean_inc(x_34); lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_25); -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_dec(x_26); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; } } } else { -uint8_t x_35; +uint8_t x_36; lean_free_object(x_5); lean_dec(x_17); lean_dec(x_11); @@ -5548,121 +6085,122 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_22); -if (x_35 == 0) +x_36 = !lean_is_exclusive(x_23); +if (x_36 == 0) { -return x_22; +return x_23; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_22, 0); -x_37 = lean_ctor_get(x_22, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_23, 0); +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_22); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_dec(x_23); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_39 = lean_ctor_get(x_5, 0); -x_40 = lean_ctor_get(x_5, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_5); -x_41 = lean_ctor_get(x_39, 3); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_40 = lean_ctor_get(x_5, 0); +x_41 = lean_ctor_get(x_5, 1); lean_inc(x_41); -x_42 = l_Lean_Syntax_getArgs(x_41); -lean_dec(x_41); -x_43 = lean_box(x_4); +lean_inc(x_40); +lean_dec(x_5); +x_42 = lean_ctor_get(x_40, 3); +lean_inc(x_42); +x_43 = l_Lean_Syntax_getArgs(x_42); +lean_dec(x_42); +x_44 = lean_box(x_4); lean_inc(x_3); lean_inc(x_1); lean_inc(x_2); -x_44 = lean_alloc_closure((void*)(l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4___lambda__5___boxed), 13, 5); -lean_closure_set(x_44, 0, x_39); -lean_closure_set(x_44, 1, x_2); -lean_closure_set(x_44, 2, x_1); -lean_closure_set(x_44, 3, x_43); -lean_closure_set(x_44, 4, x_3); +x_45 = lean_alloc_closure((void*)(l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4___lambda__5___boxed), 13, 5); +lean_closure_set(x_45, 0, x_40); +lean_closure_set(x_45, 1, x_2); +lean_closure_set(x_45, 2, x_1); +lean_closure_set(x_45, 3, x_44); +lean_closure_set(x_45, 4, x_3); +x_46 = 0; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_45 = l_Lean_Elab_Term_elabBinders___rarg(x_42, x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_45) == 0) +x_47 = l_Lean_Elab_Term_elabBinders___rarg(x_43, x_45, x_46, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4(x_1, x_2, x_3, x_4, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_47); -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_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_51 = x_48; +lean_dec(x_47); +x_50 = l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__4(x_1, x_2, x_3, x_4, x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_49); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_53 = x_50; } else { - lean_dec_ref(x_48); - x_51 = lean_box(0); + lean_dec_ref(x_50); + x_53 = lean_box(0); } -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_46); -lean_ctor_set(x_52, 1, x_49); -if (lean_is_scalar(x_51)) { - x_53 = lean_alloc_ctor(0, 2, 0); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set(x_54, 1, x_51); +if (lean_is_scalar(x_53)) { + x_55 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_51; + x_55 = x_53; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_50); -return x_53; +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_52); +return x_55; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_46); -x_54 = lean_ctor_get(x_48, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_48, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_56 = x_48; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_48); +x_56 = lean_ctor_get(x_50, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_50, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_58 = x_50; } else { - lean_dec_ref(x_48); - x_56 = lean_box(0); + lean_dec_ref(x_50); + x_58 = lean_box(0); } -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); } else { - x_57 = x_56; + x_59 = x_58; } -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; } } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_40); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_41); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5672,26 +6210,26 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_58 = lean_ctor_get(x_45, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_45, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_60 = x_45; +x_60 = lean_ctor_get(x_47, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_47, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_62 = x_47; } else { - lean_dec_ref(x_45); - x_60 = lean_box(0); + lean_dec_ref(x_47); + x_62 = lean_box(0); } -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); } else { - x_61 = x_60; + x_63 = x_62; } -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; } } } @@ -8423,186 +8961,6 @@ return x_12; } } } -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_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; uint8_t x_18; -x_10 = lean_ctor_get(x_7, 3); -x_11 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_st_ref_take(x_8, x_13); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_15, 3); -lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_15, 3); -lean_dec(x_19); -x_20 = !lean_is_exclusive(x_16); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_21 = lean_ctor_get(x_16, 0); -x_22 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_22, 0, x_1); -lean_ctor_set(x_22, 1, x_12); -lean_inc(x_10); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_10); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Std_PersistentArray_push___rarg(x_21, x_23); -lean_ctor_set(x_16, 0, x_24); -x_25 = lean_st_ref_set(x_8, x_15, x_17); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -x_28 = lean_box(0); -lean_ctor_set(x_25, 0, x_28); -return x_25; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); -lean_dec(x_25); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -else -{ -uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_32 = lean_ctor_get_uint8(x_16, sizeof(void*)*1); -x_33 = lean_ctor_get(x_16, 0); -lean_inc(x_33); -lean_dec(x_16); -x_34 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_34, 0, x_1); -lean_ctor_set(x_34, 1, x_12); -lean_inc(x_10); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_10); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Std_PersistentArray_push___rarg(x_33, x_35); -x_37 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_32); -lean_ctor_set(x_15, 3, x_37); -x_38 = lean_st_ref_set(x_8, x_15, x_17); -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; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_43 = lean_ctor_get(x_15, 0); -x_44 = lean_ctor_get(x_15, 1); -x_45 = lean_ctor_get(x_15, 2); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_15); -x_46 = lean_ctor_get_uint8(x_16, sizeof(void*)*1); -x_47 = lean_ctor_get(x_16, 0); -lean_inc(x_47); -if (lean_is_exclusive(x_16)) { - lean_ctor_release(x_16, 0); - x_48 = x_16; -} else { - lean_dec_ref(x_16); - x_48 = lean_box(0); -} -x_49 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_49, 0, x_1); -lean_ctor_set(x_49, 1, x_12); -lean_inc(x_10); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_10); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_Std_PersistentArray_push___rarg(x_47, x_50); -if (lean_is_scalar(x_48)) { - x_52 = lean_alloc_ctor(0, 1, 1); -} else { - x_52 = x_48; -} -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set_uint8(x_52, sizeof(void*)*1, x_46); -x_53 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_53, 0, x_43); -lean_ctor_set(x_53, 1, x_44); -lean_ctor_set(x_53, 2, x_45); -lean_ctor_set(x_53, 3, x_52); -x_54 = lean_st_ref_set(x_8, x_53, x_17); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_56 = x_54; -} else { - lean_dec_ref(x_54); - x_56 = lean_box(0); -} -x_57 = lean_box(0); -if (lean_is_scalar(x_56)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_56; -} -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_55); -return x_58; -} -} -} -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___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; uint8_t x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_6, 0); -x_10 = l_Lean_checkTraceOption(x_9, x_1); -x_11 = lean_box(x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_8); -return x_12; -} -} static lean_object* _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___lambda__1___closed__1() { _start: { @@ -8709,7 +9067,7 @@ x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); lean_dec(x_44); x_51 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2; -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_50); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__4(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_50); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -8787,7 +9145,7 @@ x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); x_40 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2; -x_41 = l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(x_40, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_41 = l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___spec__3(x_40, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_23); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -8970,34 +9328,6 @@ lean_dec(x_2); return x_3; } } -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_10; -} -} -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___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: -{ -lean_object* x_9; -x_9 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___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: { @@ -9017,7 +9347,7 @@ lean_dec(x_1); return x_10; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__1() { _start: { lean_object* x_1; @@ -9025,17 +9355,17 @@ x_1 = lean_mk_string("bootstrap"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__2() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__3() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__3() { _start: { lean_object* x_1; @@ -9043,17 +9373,17 @@ x_1 = lean_mk_string("inductiveCheckResultingUniverse"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__4() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__2; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__3; +x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__2; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__5() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__5() { _start: { lean_object* x_1; @@ -9061,13 +9391,13 @@ x_1 = lean_mk_string("by default the `inductive/structure commands report an err return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__6() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_initFn____x40_Lean_Data_Options___hyg_476____closed__3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__1; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__5; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__1; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9075,12 +9405,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__4; -x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__6; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__4; +x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__6; x_4 = lean_register_option(x_2, x_3, x_1); return x_4; } @@ -9089,7 +9419,7 @@ uint8_t l_Lean_Elab_Command_getCheckResultingUniverseOption(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__4; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__4; x_3 = 1; x_4 = l_Lean_KVMap_getBool(x_1, x_2, x_3); return x_4; @@ -11630,7 +11960,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Inducti _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_11, 0, x_3); lean_closure_set(x_11, 1, x_4); lean_closure_set(x_11, 2, x_5); @@ -16025,7 +16355,7 @@ x_21 = lean_ctor_get(x_12, 0); lean_inc(x_21); lean_dec(x_12); lean_inc(x_2); -x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader), 8, 1); +x_22 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeader___boxed), 8, 1); lean_closure_set(x_22, 0, x_2); x_23 = lean_box(x_20); lean_inc(x_18); @@ -16275,7 +16605,7 @@ return x_17; lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_5 = l_Lean_Elab_Command_instInhabitedInductiveView; x_6 = lean_unsigned_to_nat(0u); x_7 = lean_array_get(x_5, x_1, x_6); @@ -16297,16 +16627,18 @@ lean_dec(x_12); x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInductiveViews___lambda__2), 10, 2); lean_closure_set(x_15, 0, x_8); lean_closure_set(x_15, 1, x_1); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = 1; -x_18 = lean_box(x_17); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_19, 0, x_16); -lean_closure_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Command_liftTermElabM___rarg(x_10, x_19, x_2, x_3, x_13); -return x_20; +x_16 = 1; +x_17 = lean_box(x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_18, 0, x_14); +lean_closure_set(x_18, 1, x_15); +lean_closure_set(x_18, 2, x_17); +x_19 = lean_box(x_16); +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_20, 0, x_18); +lean_closure_set(x_20, 1, x_19); +x_21 = l_Lean_Elab_Command_liftTermElabM___rarg(x_10, x_20, x_2, x_3, x_13); +return x_21; } } lean_object* l_Lean_Elab_Command_elabInductiveViews___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) { @@ -16432,6 +16764,18 @@ l_Lean_Elab_Command_instInhabitedElabHeaderResult___closed__1 = _init_l_Lean_Ela lean_mark_persistent(l_Lean_Elab_Command_instInhabitedElabHeaderResult___closed__1); l_Lean_Elab_Command_instInhabitedElabHeaderResult = _init_l_Lean_Elab_Command_instInhabitedElabHeaderResult(); lean_mark_persistent(l_Lean_Elab_Command_instInhabitedElabHeaderResult); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__1); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__3 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__3); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__4 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__4); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__5 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__5); +l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__6 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__6); l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__1); l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__2___closed__2(); @@ -16544,19 +16888,19 @@ l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___c lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__1); l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2 = _init_l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___closed__2); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__2); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__3); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__4); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__5); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445____closed__6); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2445_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__1); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__2); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__3); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__4); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__5); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521____closed__6); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2521_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Command_checkResultingUniverse___closed__1 = _init_l_Lean_Elab_Command_checkResultingUniverse___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/LetRec.c b/stage0/stdlib/Lean/Elab/LetRec.c index 4e663e2761..4887494ce7 100644 --- a/stage0/stdlib/Lean/Elab/LetRec.c +++ b/stage0/stdlib/Lean/Elab/LetRec.c @@ -18,7 +18,6 @@ lean_object* l_Array_mapIdxM_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Te lean_object* l_Lean_Elab_Term_elabLetRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___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*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -33,6 +32,7 @@ lean_object* l_Array_mapIdxM_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Te lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__1(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); @@ -158,7 +158,7 @@ lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_match__syntax_exp uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__1; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___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* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1099,7 +1099,7 @@ lean_inc(x_25); x_30 = l_Lean_Elab_Term_applyAttributesAt(x_25, x_2, x_28, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_27); if (lean_obj_tag(x_30) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); @@ -1112,93 +1112,93 @@ x_36 = l_Lean_Elab_Term_expandOptType(x_13, x_35); lean_dec(x_35); x_37 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__1), 9, 1); lean_closure_set(x_37, 0, x_36); +x_38 = 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_38 = l_Lean_Elab_Term_elabBinders___rarg(x_33, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_31); -if (lean_obj_tag(x_38) == 0) +x_39 = l_Lean_Elab_Term_elabBinders___rarg(x_33, x_37, x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); +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_object* x_46; lean_object* x_47; +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -lean_dec(x_38); -x_41 = lean_ctor_get(x_39, 0); +x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); lean_dec(x_39); -lean_inc(x_41); -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_41); -x_44 = 2; -x_45 = lean_box(0); +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +lean_inc(x_42); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_42); +x_45 = 2; +x_46 = lean_box(0); lean_inc(x_5); -x_46 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_43, x_44, x_45, x_5, x_6, x_7, x_8, x_40); +x_47 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_44, x_45, x_46, x_5, x_6, x_7, x_8, x_41); if (x_17 == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 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; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); +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; uint8_t x_76; +x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); -lean_dec(x_46); -x_49 = lean_unsigned_to_nat(3u); -x_50 = l_Lean_Syntax_getArg(x_13, x_49); -x_51 = lean_st_ref_get(x_8, x_48); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = lean_unsigned_to_nat(3u); +x_51 = l_Lean_Syntax_getArg(x_13, x_50); +x_52 = lean_st_ref_get(x_8, x_49); +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_ctor_get(x_52, 0); +x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); lean_dec(x_52); -x_55 = lean_ctor_get(x_7, 3); +x_55 = lean_ctor_get(x_53, 0); lean_inc(x_55); -x_56 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_53); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +lean_dec(x_53); +x_56 = lean_ctor_get(x_7, 3); +lean_inc(x_56); +x_57 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_54); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_ctor_get(x_7, 1); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); -x_60 = lean_ctor_get(x_7, 2); +lean_dec(x_57); +x_60 = lean_ctor_get(x_7, 1); lean_inc(x_60); -x_61 = lean_st_ref_get(x_8, x_58); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); +x_61 = lean_ctor_get(x_7, 2); +lean_inc(x_61); +x_62 = lean_st_ref_get(x_8, x_59); +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_61); x_64 = lean_ctor_get(x_62, 1); lean_inc(x_64); lean_dec(x_62); -lean_inc(x_54); -x_65 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_65, 0, x_54); -x_66 = x_65; -x_67 = lean_environment_main_module(x_54); -x_68 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -lean_ctor_set(x_68, 2, x_57); -lean_ctor_set(x_68, 3, x_59); -lean_ctor_set(x_68, 4, x_60); -lean_ctor_set(x_68, 5, x_55); -x_69 = 0; -x_70 = l_Lean_Elab_Term_expandMatchAltsIntoMatch(x_13, x_50, x_69, x_68, x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +lean_inc(x_55); +x_66 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_66, 0, x_55); +x_67 = x_66; +x_68 = lean_environment_main_module(x_55); +x_69 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set(x_69, 2, x_58); +lean_ctor_set(x_69, 3, x_60); +lean_ctor_set(x_69, 4, x_61); +lean_ctor_set(x_69, 5, x_56); +x_70 = l_Lean_Elab_Term_expandMatchAltsIntoMatch(x_13, x_51, x_38, x_69, x_65); x_71 = lean_ctor_get(x_70, 0); lean_inc(x_71); x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); lean_dec(x_70); -x_73 = lean_st_ref_take(x_8, x_63); +x_73 = lean_st_ref_take(x_8, x_64); x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_73, 1); @@ -1215,7 +1215,7 @@ x_78 = lean_st_ref_set(x_8, x_74, x_75); x_79 = lean_ctor_get(x_78, 1); lean_inc(x_79); lean_dec(x_78); -x_80 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_42, x_41, x_47, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_79); +x_80 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_43, x_42, x_48, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_79); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1243,7 +1243,7 @@ x_85 = lean_st_ref_set(x_8, x_84, x_75); x_86 = lean_ctor_get(x_85, 1); lean_inc(x_86); lean_dec(x_85); -x_87 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_42, x_41, x_47, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_86); +x_87 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_43, x_42, x_48, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_86); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1256,14 +1256,14 @@ return x_87; else { lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_88 = lean_ctor_get(x_46, 0); +x_88 = lean_ctor_get(x_47, 0); lean_inc(x_88); -x_89 = lean_ctor_get(x_46, 1); +x_89 = lean_ctor_get(x_47, 1); lean_inc(x_89); -lean_dec(x_46); +lean_dec(x_47); x_90 = lean_unsigned_to_nat(4u); x_91 = l_Lean_Syntax_getArg(x_13, x_90); -x_92 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_42, x_41, x_88, x_91, x_3, x_4, x_5, x_6, x_7, x_8, x_89); +x_92 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_43, x_42, x_88, x_91, x_3, x_4, x_5, x_6, x_7, x_8, x_89); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1286,19 +1286,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_93 = !lean_is_exclusive(x_38); +x_93 = !lean_is_exclusive(x_39); if (x_93 == 0) { -return x_38; +return x_39; } else { lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_38, 0); -x_95 = lean_ctor_get(x_38, 1); +x_94 = lean_ctor_get(x_39, 0); +x_95 = lean_ctor_get(x_39, 1); lean_inc(x_95); lean_inc(x_94); -lean_dec(x_38); +lean_dec(x_39); x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_94); lean_ctor_set(x_96, 1, x_95); @@ -1949,7 +1949,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_ _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_11, 0, x_3); lean_closure_set(x_11, 1, x_4); lean_closure_set(x_11, 2, x_5); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index e7e8b9b497..039331b693 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -37,7 +37,6 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_withDepElimPatterns__ lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___boxed__const__1; lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_throwCtorExpected___spec__1(lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___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*); uint8_t l_Lean_Expr_isCharLit(lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_nameToPattern___closed__3; extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3; @@ -126,6 +125,7 @@ lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatch_match__14(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_CollectPatternVars_CtorApp_processExplicitArg___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_withPatternVars_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_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_1243____closed__2; lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_ToDepElimPattern_main___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*); @@ -4768,7 +4768,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_Match_0 _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_11, 0, x_3); lean_closure_set(x_11, 1, x_4); lean_closure_set(x_11, 2, x_5); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 119a52ef94..d7d39edbda 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -26,7 +26,6 @@ lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Mutual size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames(lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run_match__1(lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___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*); lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -81,6 +80,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_E lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_match__2(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__3; @@ -378,6 +378,7 @@ lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___boxed(lean_object*, lean_ lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__2(lean_object*, size_t, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_feraseIdx___rarg(lean_object*, lean_object*); @@ -520,7 +521,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunType(lean_ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___boxed(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__1(size_t, size_t, lean_object*); -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint___rarg(lean_object*, lean_object*); @@ -3740,7 +3740,7 @@ x_37 = l_Lean_Elab_Term_applyAttributesAt(x_32, x_34, x_35, x_36, x_5, x_6, x_7, lean_dec(x_34); if (lean_obj_tag(x_37) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +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; x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); @@ -3758,66 +3758,68 @@ lean_closure_set(x_41, 3, x_31); lean_closure_set(x_41, 4, x_32); lean_closure_set(x_41, 5, x_33); lean_closure_set(x_41, 6, x_4); -x_42 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_42, 0, x_40); -lean_closure_set(x_42, 1, x_41); -x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); -lean_closure_set(x_43, 0, x_33); -lean_closure_set(x_43, 1, x_42); +x_42 = lean_box(x_36); +x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_43, 0, x_40); +lean_closure_set(x_43, 1, x_41); +lean_closure_set(x_43, 2, x_42); +x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); +lean_closure_set(x_44, 0, x_33); +lean_closure_set(x_44, 1, x_43); lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_44 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_43, x_36, x_5, x_6, x_7, x_8, x_21, x_10, x_38); -if (lean_obj_tag(x_44) == 0) +x_45 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_44, x_36, x_5, x_6, x_7, x_8, x_21, x_10, x_38); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; +x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_array_push(x_4, x_45); -x_48 = 1; -x_49 = x_3 + x_48; -x_3 = x_49; -x_4 = x_47; -x_11 = x_46; +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_array_push(x_4, x_46); +x_49 = 1; +x_50 = x_3 + x_49; +x_3 = x_50; +x_4 = x_48; +x_11 = x_47; goto _start; } else { -uint8_t x_51; +uint8_t x_52; lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_51 = !lean_is_exclusive(x_44); -if (x_51 == 0) +x_52 = !lean_is_exclusive(x_45); +if (x_52 == 0) { -return x_44; +return x_45; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_44, 0); -x_53 = lean_ctor_get(x_44, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_45, 0); +x_54 = lean_ctor_get(x_45, 1); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_44); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; +lean_dec(x_45); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } else { -uint8_t x_55; +uint8_t x_56; lean_dec(x_33); lean_dec(x_32); lean_dec(x_31); @@ -3831,29 +3833,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_55 = !lean_is_exclusive(x_37); -if (x_55 == 0) +x_56 = !lean_is_exclusive(x_37); +if (x_56 == 0) { return x_37; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_37, 0); -x_57 = lean_ctor_get(x_37, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_37, 0); +x_58 = lean_ctor_get(x_37, 1); +lean_inc(x_58); lean_inc(x_57); -lean_inc(x_56); lean_dec(x_37); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } else { -uint8_t x_59; +uint8_t x_60; lean_dec(x_27); lean_dec(x_21); lean_dec(x_15); @@ -3864,23 +3866,23 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_59 = !lean_is_exclusive(x_28); -if (x_59 == 0) +x_60 = !lean_is_exclusive(x_28); +if (x_60 == 0) { return x_28; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_28, 0); -x_61 = lean_ctor_get(x_28, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_28, 0); +x_62 = lean_ctor_get(x_28, 1); +lean_inc(x_62); lean_inc(x_61); -lean_inc(x_60); lean_dec(x_28); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } @@ -4299,7 +4301,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_MutualD _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_11, 0, x_3); lean_closure_set(x_11, 1, x_4); lean_closure_set(x_11, 2, x_5); @@ -10112,7 +10114,7 @@ lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_MutualDef_0__L _start: { lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); lean_closure_set(x_10, 0, x_2); lean_closure_set(x_10, 1, x_3); lean_closure_set(x_10, 2, x_4); @@ -17301,7 +17303,7 @@ lean_inc(x_2); x_12 = lean_apply_3(x_11, x_2, x_3, x_4); if (lean_obj_tag(x_12) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); @@ -17318,40 +17320,42 @@ x_19 = l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(x_17); lean_dec(x_17); x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMutualDef___lambda__1), 9, 1); lean_closure_set(x_20, 0, x_13); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_21, 0, x_19); -lean_closure_set(x_21, 1, x_20); -x_22 = 1; -x_23 = lean_box(x_22); -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_24, 0, x_21); -lean_closure_set(x_24, 1, x_23); -x_25 = l_Lean_Elab_Command_liftTermElabM___rarg(x_15, x_24, x_2, x_3, x_18); +x_21 = 1; +x_22 = lean_box(x_21); +x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_23, 0, x_19); +lean_closure_set(x_23, 1, x_20); +lean_closure_set(x_23, 2, x_22); +x_24 = lean_box(x_21); +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_25, 0, x_23); +lean_closure_set(x_25, 1, x_24); +x_26 = l_Lean_Elab_Command_liftTermElabM___rarg(x_15, x_25, x_2, x_3, x_18); lean_dec(x_3); -return x_25; +return x_26; } else { -uint8_t x_26; +uint8_t x_27; lean_dec(x_3); lean_dec(x_2); -x_26 = !lean_is_exclusive(x_12); -if (x_26 == 0) +x_27 = !lean_is_exclusive(x_12); +if (x_27 == 0) { return x_12; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_12, 0); -x_28 = lean_ctor_get(x_12, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_12, 0); +x_29 = lean_ctor_get(x_12, 1); +lean_inc(x_29); lean_inc(x_28); -lean_inc(x_27); lean_dec(x_12); -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; +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; } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index a53e3b6832..4ea6dee7aa 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -16,11 +16,8 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1(lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); -lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___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*); lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_moveEntries___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__14(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__8___boxed(lean_object*, lean_object*); @@ -43,31 +40,29 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_addAndCompileUnsafeRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___lambda__1___boxed(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1; extern lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__3; lean_object* lean_array_get_size(lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_List_map___at_Lean_Elab_addPreDefinitions___spec__3(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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*); uint8_t l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___lambda__1(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__1; lean_object* l_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__23(lean_object*); extern lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg___lambda__2___closed__1; lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__2(lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__20(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___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_Elab_addAndCompileUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive_match__1(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_FoldConstsImpl_fold_visit___rarg(lean_object*, size_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef_match__1(lean_object*); @@ -79,7 +74,6 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8 uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__6(size_t, size_t, lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_push___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__10(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7___boxed(lean_object*, lean_object*); @@ -92,6 +86,7 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8 uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*, size_t, size_t); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___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*); size_t l_Lean_Name_hash(lean_object*); @@ -107,6 +102,7 @@ lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___closed__2; lean_object* l_List_map___at_Lean_Elab_addPreDefinitions___spec__7(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_collectMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__4(lean_object*, size_t, size_t, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -127,7 +123,6 @@ uint8_t l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive(lea lean_object* l_List_redLength___rarg(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26(lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__1; @@ -137,6 +132,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Std_AssocList_foldlM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__15(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__1; lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC_add___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__21(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -144,6 +140,7 @@ lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_updateLowLinkOf___rarg___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___boxed__const__1; lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_collectMVarsAtPreDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2; lean_object* l_Std_AssocList_contains___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__12___boxed(lean_object*, lean_object*); @@ -151,6 +148,7 @@ lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__1; extern lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__4; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__3(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -159,18 +157,16 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__4(lean_o extern lean_object* l_Lean_Expr_FoldConstsImpl_initCache; lean_object* l_Lean_Elab_WFRecursion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__1; lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___lambda__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*); extern lean_object* l_Lean_CollectMVars_instInhabitedState___closed__1; extern lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___rarg___closed__1; lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__20___boxed(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__2; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__1; -lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__3___closed__1; extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__19(lean_object*, lean_object*, lean_object*, lean_object*); @@ -178,81 +174,17 @@ lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___boxed(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2(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*); lean_object* l_Std_AssocList_find_x3f___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__8(lean_object*, lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__17(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1; lean_object* l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__6___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg___lambda__1), 10, 3); -lean_closure_set(x_10, 0, x_2); -lean_closure_set(x_10, 1, x_3); -lean_closure_set(x_10, 2, x_4); -x_11 = lean_box(0); -x_12 = 0; -x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(x_12, x_11, x_1, x_10, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) -{ -return x_13; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_13, 0); -x_20 = lean_ctor_get(x_13, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_13); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg), 9, 0); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -260,16 +192,16 @@ x_1 = lean_mk_string("inhabitant for "); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__1; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; @@ -356,7 +288,7 @@ lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean lean_inc(x_13); x_25 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_25, 0, x_13); -x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__2; +x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__2; x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); @@ -420,7 +352,7 @@ return x_53; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -428,16 +360,16 @@ x_1 = lean_mk_string("processing "); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___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; uint8_t x_25; lean_object* x_26; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; @@ -486,11 +418,11 @@ x_10 = lean_ctor_get(x_1, 3); lean_inc(x_10); x_11 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_1056____closed__2; lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___boxed), 12, 3); +x_12 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___boxed), 12, 3); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_10); lean_closure_set(x_12, 2, x_11); -x_13 = l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg(x_10, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_9); +x_13 = l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg(x_10, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_9); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -554,7 +486,7 @@ x_27 = lean_ctor_get(x_1, 2); lean_inc(x_27); x_28 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_28, 0, x_27); -x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2; +x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); @@ -573,7 +505,7 @@ goto block_24; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { if (lean_obj_tag(x_9) == 0) @@ -604,12 +536,12 @@ lean_inc(x_21); lean_dec(x_9); x_22 = 1; x_23 = x_2 + x_22; -x_24 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_3, x_4, x_5, x_6, x_1, x_7, x_8, x_23, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_24 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_3, x_4, x_5, x_6, x_1, x_7, x_8, x_23, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_24; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { uint8_t x_17; @@ -638,11 +570,11 @@ lean_dec(x_9); x_21 = lean_array_uget(x_6, x_8); x_22 = lean_ctor_get(x_5, 1); lean_inc(x_22); -x_23 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2), 8, 1); +x_23 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2), 8, 1); lean_closure_set(x_23, 0, x_21); x_24 = lean_box_usize(x_8); x_25 = lean_box_usize(x_7); -x_26 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___boxed), 16, 8); +x_26 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___boxed), 16, 8); lean_closure_set(x_26, 0, x_5); lean_closure_set(x_26, 1, x_24); lean_closure_set(x_26, 2, x_1); @@ -677,7 +609,7 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_12, x_13, x_14, x_15, x_16, x_1, x_10, x_11, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_12, x_13, x_14, x_15, x_16, x_1, x_10, x_11, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; @@ -721,16 +653,16 @@ return x_24; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_7); return x_13; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { size_t x_17; size_t x_18; lean_object* x_19; @@ -738,11 +670,11 @@ x_17 = lean_unbox_usize(x_2); lean_dec(x_2); x_18 = lean_unbox_usize(x_8); lean_dec(x_8); -x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_19; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { size_t x_17; size_t x_18; lean_object* x_19; @@ -750,7 +682,7 @@ x_17 = lean_unbox_usize(x_7); lean_dec(x_7); x_18 = lean_unbox_usize(x_8); lean_dec(x_8); -x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); return x_19; } } @@ -4484,14 +4416,14 @@ lean_dec_ref(res); res = initialize_Lean_Elab_PreDefinition_WF(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__1); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1___closed__2); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2); l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___boxed__const__1 = _init_l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___boxed__const__1(); lean_mark_persistent(l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___boxed__const__1); l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___closed__1 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 9c899241be..02bb80d5b9 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -195,6 +195,7 @@ lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lea lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_removeUnused_match__1___rarg(lean_object*, lean_object*); 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* l_Lean_LocalDecl_value(lean_object*); +extern lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2; extern lean_object* l_Lean_Elab_Level_elabLevel___closed__6; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -217,7 +218,6 @@ lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Struct uint8_t l_Lean_Elab_Command_StructFieldInfo_isSubobject(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___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* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4; lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkProjection___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -349,6 +349,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelPa lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents(lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; @@ -443,7 +444,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureV lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__8___closed__9; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse___closed__3; -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addCtorFields_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_8168____closed__16; size_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__3; @@ -493,7 +493,7 @@ lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Ela lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__8___closed__8; lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinders___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_Expr_inferImplicit(lean_object*, lean_object*, uint8_t); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__8___closed__1; lean_object* l___private_Lean_Meta_Closure_0__Lean_Meta_mkAuxDefinitionImp(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -8769,7 +8769,7 @@ lean_dec(x_16); lean_ctor_set(x_9, 3, x_21); if (lean_obj_tag(x_18) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; x_22 = lean_ctor_get(x_15, 4); lean_inc(x_22); x_23 = l_Lean_Syntax_getArgs(x_22); @@ -8777,87 +8777,88 @@ lean_dec(x_22); lean_inc(x_15); x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue), 9, 1); lean_closure_set(x_24, 0, x_15); +x_25 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_25 = l_Lean_Elab_Term_elabBinders___rarg(x_23, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_25) == 0) +x_26 = l_Lean_Elab_Term_elabBinders___rarg(x_23, x_24, x_25, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); +lean_object* x_27; lean_object* x_28; x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 1); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); if (lean_obj_tag(x_28) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_29; +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); -lean_dec(x_25); -x_30 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; -x_31 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_29); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; +x_32 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_30); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_31; +return x_32; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); -lean_dec(x_25); -x_33 = lean_ctor_get(x_28, 0); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_26, 1); lean_inc(x_33); -lean_dec(x_28); +lean_dec(x_26); +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +lean_dec(x_29); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_33); -x_34 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_32); -if (lean_obj_tag(x_34) == 0) +lean_inc(x_34); +x_35 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_33); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_38 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 15, 7); -lean_closure_set(x_38, 0, x_15); -lean_closure_set(x_38, 1, x_33); -lean_closure_set(x_38, 2, x_17); -lean_closure_set(x_38, 3, x_3); -lean_closure_set(x_38, 4, x_2); -lean_closure_set(x_38, 5, x_1); -lean_closure_set(x_38, 6, x_4); -x_39 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_37, x_35, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -return x_39; +x_39 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 15, 7); +lean_closure_set(x_39, 0, x_15); +lean_closure_set(x_39, 1, x_34); +lean_closure_set(x_39, 2, x_17); +lean_closure_set(x_39, 3, x_3); +lean_closure_set(x_39, 4, x_2); +lean_closure_set(x_39, 5, x_1); +lean_closure_set(x_39, 6, x_4); +x_40 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_38, x_36, x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_37); +return x_40; } else { -uint8_t x_40; -lean_dec(x_33); +uint8_t x_41; +lean_dec(x_34); lean_dec(x_9); lean_dec(x_17); lean_dec(x_15); @@ -8870,56 +8871,56 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_34); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_35); +if (x_41 == 0) { -return x_34; +return x_35; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_34, 0); -x_42 = lean_ctor_get(x_34, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_35, 0); +x_43 = lean_ctor_get(x_35, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -lean_dec(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; +lean_dec(x_35); +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 { -lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_25, 1); -lean_inc(x_44); -lean_dec(x_25); +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; x_45 = lean_ctor_get(x_26, 1); lean_inc(x_45); lean_dec(x_26); -x_46 = lean_ctor_get(x_27, 0); +x_46 = lean_ctor_get(x_27, 1); lean_inc(x_46); lean_dec(x_27); -x_47 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); +x_47 = lean_ctor_get(x_28, 0); +lean_inc(x_47); +lean_dec(x_28); +x_48 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_48 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); -lean_closure_set(x_48, 0, x_15); -lean_closure_set(x_48, 1, x_17); -lean_closure_set(x_48, 2, x_45); -lean_closure_set(x_48, 3, x_3); -lean_closure_set(x_48, 4, x_2); -lean_closure_set(x_48, 5, x_1); -lean_closure_set(x_48, 6, x_4); -x_49 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_47, x_46, x_48, x_5, x_6, x_7, x_8, x_9, x_10, x_44); -return x_49; +x_49 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); +lean_closure_set(x_49, 0, x_15); +lean_closure_set(x_49, 1, x_17); +lean_closure_set(x_49, 2, x_46); +lean_closure_set(x_49, 3, x_3); +lean_closure_set(x_49, 4, x_2); +lean_closure_set(x_49, 5, x_1); +lean_closure_set(x_49, 6, x_4); +x_50 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_48, x_47, x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_45); +return x_50; } } else { -uint8_t x_50; +uint8_t x_51; lean_dec(x_9); lean_dec(x_17); lean_dec(x_15); @@ -8932,431 +8933,431 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_50 = !lean_is_exclusive(x_25); -if (x_50 == 0) +x_51 = !lean_is_exclusive(x_26); +if (x_51 == 0) { -return x_25; +return x_26; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_25, 0); -x_52 = lean_ctor_get(x_25, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_26, 0); +x_53 = lean_ctor_get(x_26, 1); +lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_25); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_dec(x_26); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } else { -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_18, 0); -lean_inc(x_54); +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_18, 0); +lean_inc(x_55); lean_dec(x_18); -x_55 = lean_ctor_get_uint8(x_54, sizeof(void*)*4); -switch (x_55) { +x_56 = lean_ctor_get_uint8(x_55, sizeof(void*)*4); +switch (x_56) { case 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_dec(x_54); +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_dec(x_55); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_56 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_56, 0, x_17); -x_57 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_58 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; -x_60 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_57 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_57, 0, x_17); +x_58 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_59 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +x_60 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; +x_61 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_61, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_61; +return x_62; } case 1: { -lean_object* x_62; -x_62 = lean_ctor_get(x_15, 6); -lean_inc(x_62); -if (lean_obj_tag(x_62) == 0) +lean_object* x_63; +x_63 = lean_ctor_get(x_15, 6); +lean_inc(x_63); +if (lean_obj_tag(x_63) == 0) { -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_dec(x_54); +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_dec(x_55); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_63 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_63, 0, x_17); -x_64 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_65 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -x_66 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; -x_67 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -x_68 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_64 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_64, 0, x_17); +x_65 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +x_66 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +x_67 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; +x_68 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_68; +return x_69; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; uint8_t x_78; uint8_t x_101; uint8_t x_123; -x_69 = lean_ctor_get(x_54, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_54, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; uint8_t x_79; uint8_t x_102; uint8_t x_124; +x_70 = lean_ctor_get(x_55, 0); lean_inc(x_70); -x_71 = lean_ctor_get(x_54, 2); +x_71 = lean_ctor_get(x_55, 1); lean_inc(x_71); -x_72 = lean_ctor_get_uint8(x_54, sizeof(void*)*4 + 1); -lean_dec(x_54); -x_73 = lean_ctor_get(x_62, 0); -lean_inc(x_73); -lean_dec(x_62); -x_74 = lean_ctor_get(x_15, 4); +x_72 = lean_ctor_get(x_55, 2); +lean_inc(x_72); +x_73 = lean_ctor_get_uint8(x_55, sizeof(void*)*4 + 1); +lean_dec(x_55); +x_74 = lean_ctor_get(x_63, 0); lean_inc(x_74); -x_75 = l_Lean_Syntax_getArgs(x_74); -lean_dec(x_74); -x_76 = l_Array_isEmpty___rarg(x_75); +lean_dec(x_63); +x_75 = lean_ctor_get(x_15, 4); +lean_inc(x_75); +x_76 = l_Lean_Syntax_getArgs(x_75); lean_dec(x_75); -x_77 = lean_ctor_get(x_15, 5); -lean_inc(x_77); +x_77 = l_Array_isEmpty___rarg(x_76); +lean_dec(x_76); +x_78 = lean_ctor_get(x_15, 5); +lean_inc(x_78); lean_dec(x_15); -if (x_76 == 0) +if (x_77 == 0) { -if (lean_obj_tag(x_77) == 0) -{ -uint8_t x_145; -x_145 = 1; -x_101 = x_145; -goto block_122; -} -else +if (lean_obj_tag(x_78) == 0) { uint8_t x_146; x_146 = 1; -x_123 = x_146; -goto block_144; -} +x_102 = x_146; +goto block_123; } else { -if (lean_obj_tag(x_77) == 0) -{ uint8_t x_147; -x_147 = 0; -x_101 = x_147; -goto block_122; +x_147 = 1; +x_124 = x_147; +goto block_145; +} } else { +if (lean_obj_tag(x_78) == 0) +{ uint8_t x_148; x_148 = 0; -x_123 = x_148; -goto block_144; +x_102 = x_148; +goto block_123; +} +else +{ +uint8_t x_149; +x_149 = 0; +x_124 = x_149; +goto block_145; } } -block_100: +block_101: { -if (x_78 == 0) +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; -lean_dec(x_77); +lean_object* x_80; lean_object* x_81; +lean_dec(x_78); lean_dec(x_17); -x_79 = lean_box(0); -x_80 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_71, x_73, x_69, x_70, x_55, x_72, x_3, x_2, x_1, x_4, x_79, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_80 = lean_box(0); +x_81 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_72, x_74, x_70, x_71, x_56, x_73, x_3, x_2, x_1, x_4, x_80, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); -return x_80; +return x_81; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_73); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_74); +lean_dec(x_72); lean_dec(x_71); lean_dec(x_70); -lean_dec(x_69); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_81 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_81, 0, x_17); -x_82 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_83 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -x_84 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; -x_85 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -if (lean_obj_tag(x_77) == 0) +x_82 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_82, 0, x_17); +x_83 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; +x_84 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_82); +x_85 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_86 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_86 = l_Lean_instInhabitedSyntax; -x_87 = l_Option_get_x21___rarg___closed__4; -x_88 = lean_panic_fn(x_86, x_87); -x_89 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_88, x_85, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_87 = l_Lean_instInhabitedSyntax; +x_88 = l_Option_get_x21___rarg___closed__4; +x_89 = lean_panic_fn(x_87, x_88); +x_90 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_89, x_86, 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); lean_dec(x_6); -lean_dec(x_88); -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; +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +return x_90; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_90, 0); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_90); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } else { -lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_94 = lean_ctor_get(x_77, 0); -lean_inc(x_94); -lean_dec(x_77); -x_95 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_94, x_85, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_78, 0); +lean_inc(x_95); +lean_dec(x_78); +x_96 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_95, x_86, 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); lean_dec(x_6); -lean_dec(x_94); -x_96 = !lean_is_exclusive(x_95); -if (x_96 == 0) -{ -return x_95; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_95, 0); -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_98); -lean_inc(x_97); lean_dec(x_95); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; -} -} -} -} -block_122: +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) { -if (x_101 == 0) -{ -uint8_t x_102; -x_102 = 0; -x_78 = x_102; -goto block_100; +return x_96; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_73); +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_96, 0); +x_99 = lean_ctor_get(x_96, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_96); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; +} +} +} +} +block_123: +{ +if (x_102 == 0) +{ +uint8_t x_103; +x_103 = 0; +x_79 = x_103; +goto block_101; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_74); +lean_dec(x_72); lean_dec(x_71); lean_dec(x_70); -lean_dec(x_69); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_103 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_103, 0, x_17); -x_104 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_105 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_103); -x_106 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; -x_107 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -if (lean_obj_tag(x_77) == 0) +x_104 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_104, 0, x_17); +x_105 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; +x_106 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_104); +x_107 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_108 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_108 = l_Lean_instInhabitedSyntax; -x_109 = l_Option_get_x21___rarg___closed__4; -x_110 = lean_panic_fn(x_108, x_109); -x_111 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_110, x_107, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_109 = l_Lean_instInhabitedSyntax; +x_110 = l_Option_get_x21___rarg___closed__4; +x_111 = lean_panic_fn(x_109, x_110); +x_112 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_111, x_108, 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); lean_dec(x_6); -lean_dec(x_110); -x_112 = !lean_is_exclusive(x_111); -if (x_112 == 0) -{ -return x_111; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_111, 0); -x_114 = lean_ctor_get(x_111, 1); -lean_inc(x_114); -lean_inc(x_113); lean_dec(x_111); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; +x_113 = !lean_is_exclusive(x_112); +if (x_113 == 0) +{ +return x_112; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_112, 0); +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_112); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; } } else { -lean_object* x_116; lean_object* x_117; uint8_t x_118; -x_116 = lean_ctor_get(x_77, 0); -lean_inc(x_116); -lean_dec(x_77); -x_117 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_116, x_107, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_117 = lean_ctor_get(x_78, 0); +lean_inc(x_117); +lean_dec(x_78); +x_118 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_117, x_108, 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); lean_dec(x_6); -lean_dec(x_116); -x_118 = !lean_is_exclusive(x_117); -if (x_118 == 0) -{ -return x_117; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_117, 0); -x_120 = lean_ctor_get(x_117, 1); -lean_inc(x_120); -lean_inc(x_119); lean_dec(x_117); -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; -} -} -} -} -block_144: +x_119 = !lean_is_exclusive(x_118); +if (x_119 == 0) { -if (x_123 == 0) -{ -uint8_t x_124; -x_124 = 1; -x_78 = x_124; -goto block_100; +return x_118; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_73); +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_118, 0); +x_121 = lean_ctor_get(x_118, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_118); +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; +} +} +} +} +block_145: +{ +if (x_124 == 0) +{ +uint8_t x_125; +x_125 = 1; +x_79 = x_125; +goto block_101; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_74); +lean_dec(x_72); lean_dec(x_71); lean_dec(x_70); -lean_dec(x_69); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_125 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_125, 0, x_17); -x_126 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_127 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_125); -x_128 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; -x_129 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -if (lean_obj_tag(x_77) == 0) +x_126 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_126, 0, x_17); +x_127 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; +x_128 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_129 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_130 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; -x_130 = l_Lean_instInhabitedSyntax; -x_131 = l_Option_get_x21___rarg___closed__4; -x_132 = lean_panic_fn(x_130, x_131); -x_133 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_132, x_129, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_131 = l_Lean_instInhabitedSyntax; +x_132 = l_Option_get_x21___rarg___closed__4; +x_133 = lean_panic_fn(x_131, x_132); +x_134 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_133, x_130, 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); lean_dec(x_6); -lean_dec(x_132); -x_134 = !lean_is_exclusive(x_133); -if (x_134 == 0) -{ -return x_133; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_133, 0); -x_136 = lean_ctor_get(x_133, 1); -lean_inc(x_136); -lean_inc(x_135); lean_dec(x_133); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -return x_137; +x_135 = !lean_is_exclusive(x_134); +if (x_135 == 0) +{ +return x_134; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_134, 0); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_134); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +return x_138; } } else { -lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_138 = lean_ctor_get(x_77, 0); -lean_inc(x_138); -lean_dec(x_77); -x_139 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_138, x_129, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_139 = lean_ctor_get(x_78, 0); +lean_inc(x_139); +lean_dec(x_78); +x_140 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_139, x_130, 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); lean_dec(x_6); -lean_dec(x_138); -x_140 = !lean_is_exclusive(x_139); -if (x_140 == 0) +lean_dec(x_139); +x_141 = !lean_is_exclusive(x_140); +if (x_141 == 0) { -return x_139; +return x_140; } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_139, 0); -x_142 = lean_ctor_get(x_139, 1); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_140, 0); +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_143); lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_139); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -return x_143; +lean_dec(x_140); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; } } } @@ -9365,135 +9366,136 @@ return x_143; } default: { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -lean_dec(x_54); +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_55); lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_149 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_150 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; -x_151 = lean_panic_fn(x_149, x_150); -x_152 = lean_apply_7(x_151, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_152; +x_150 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_151 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; +x_152 = lean_panic_fn(x_150, x_151); +x_153 = lean_apply_7(x_152, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_153; } } } } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_153 = lean_ctor_get(x_9, 0); -x_154 = lean_ctor_get(x_9, 1); -x_155 = lean_ctor_get(x_9, 2); -x_156 = lean_ctor_get(x_9, 3); +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_154 = lean_ctor_get(x_9, 0); +x_155 = lean_ctor_get(x_9, 1); +x_156 = lean_ctor_get(x_9, 2); +x_157 = lean_ctor_get(x_9, 3); +lean_inc(x_157); lean_inc(x_156); lean_inc(x_155); lean_inc(x_154); -lean_inc(x_153); lean_dec(x_9); -x_157 = l_Lean_replaceRef(x_16, x_156); -lean_dec(x_156); +x_158 = l_Lean_replaceRef(x_16, x_157); +lean_dec(x_157); lean_dec(x_16); -x_158 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_158, 0, x_153); -lean_ctor_set(x_158, 1, x_154); -lean_ctor_set(x_158, 2, x_155); -lean_ctor_set(x_158, 3, x_157); +x_159 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_159, 0, x_154); +lean_ctor_set(x_159, 1, x_155); +lean_ctor_set(x_159, 2, x_156); +lean_ctor_set(x_159, 3, x_158); if (lean_obj_tag(x_18) == 0) { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_159 = lean_ctor_get(x_15, 4); -lean_inc(x_159); -x_160 = l_Lean_Syntax_getArgs(x_159); -lean_dec(x_159); +lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; +x_160 = lean_ctor_get(x_15, 4); +lean_inc(x_160); +x_161 = l_Lean_Syntax_getArgs(x_160); +lean_dec(x_160); lean_inc(x_15); -x_161 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue), 9, 1); -lean_closure_set(x_161, 0, x_15); +x_162 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue), 9, 1); +lean_closure_set(x_162, 0, x_15); +x_163 = 0; lean_inc(x_10); -lean_inc(x_158); +lean_inc(x_159); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_162 = l_Lean_Elab_Term_elabBinders___rarg(x_160, x_161, x_5, x_6, x_7, x_8, x_158, x_10, x_11); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; lean_object* x_164; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); +x_164 = l_Lean_Elab_Term_elabBinders___rarg(x_161, x_162, x_163, x_5, x_6, x_7, x_8, x_159, x_10, x_11); if (lean_obj_tag(x_164) == 0) { -lean_object* x_165; -x_165 = lean_ctor_get(x_163, 1); +lean_object* x_165; lean_object* x_166; +x_165 = lean_ctor_get(x_164, 0); lean_inc(x_165); -lean_dec(x_163); -if (lean_obj_tag(x_165) == 0) +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +if (lean_obj_tag(x_166) == 0) { -lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_object* x_167; +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_166 = lean_ctor_get(x_162, 1); -lean_inc(x_166); -lean_dec(x_162); -x_167 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; -x_168 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_167, x_5, x_6, x_7, x_8, x_158, x_10, x_166); +x_168 = lean_ctor_get(x_164, 1); +lean_inc(x_168); +lean_dec(x_164); +x_169 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__3; +x_170 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_169, x_5, x_6, x_7, x_8, x_159, x_10, x_168); lean_dec(x_10); -lean_dec(x_158); +lean_dec(x_159); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_168; +return x_170; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_162, 1); -lean_inc(x_169); -lean_dec(x_162); -x_170 = lean_ctor_get(x_165, 0); -lean_inc(x_170); -lean_dec(x_165); +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_164, 1); +lean_inc(x_171); +lean_dec(x_164); +x_172 = lean_ctor_get(x_167, 0); +lean_inc(x_172); +lean_dec(x_167); lean_inc(x_10); -lean_inc(x_158); +lean_inc(x_159); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_170); -x_171 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_170, x_5, x_6, x_7, x_8, x_158, x_10, x_169); -if (lean_obj_tag(x_171) == 0) -{ -lean_object* x_172; lean_object* x_173; uint8_t 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); -lean_dec(x_171); -x_174 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); +x_173 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_172, x_5, x_6, x_7, x_8, x_159, x_10, x_171); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; +x_174 = lean_ctor_get(x_173, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +lean_dec(x_173); +x_176 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_175 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 15, 7); -lean_closure_set(x_175, 0, x_15); -lean_closure_set(x_175, 1, x_170); -lean_closure_set(x_175, 2, x_17); -lean_closure_set(x_175, 3, x_3); -lean_closure_set(x_175, 4, x_2); -lean_closure_set(x_175, 5, x_1); -lean_closure_set(x_175, 6, x_4); -x_176 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_174, x_172, x_175, x_5, x_6, x_7, x_8, x_158, x_10, x_173); -return x_176; +x_177 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1___boxed), 15, 7); +lean_closure_set(x_177, 0, x_15); +lean_closure_set(x_177, 1, x_172); +lean_closure_set(x_177, 2, x_17); +lean_closure_set(x_177, 3, x_3); +lean_closure_set(x_177, 4, x_2); +lean_closure_set(x_177, 5, x_1); +lean_closure_set(x_177, 6, x_4); +x_178 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_176, x_174, x_177, x_5, x_6, x_7, x_8, x_159, x_10, x_175); +return x_178; } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_170); -lean_dec(x_158); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_172); +lean_dec(x_159); lean_dec(x_17); lean_dec(x_15); lean_dec(x_10); @@ -9505,59 +9507,59 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -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; +x_179 = lean_ctor_get(x_173, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_173, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_181 = x_173; } else { - lean_dec_ref(x_171); - x_179 = lean_box(0); + lean_dec_ref(x_173); + x_181 = lean_box(0); } -if (lean_is_scalar(x_179)) { - x_180 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); } else { - x_180 = x_179; + x_182 = x_181; } -lean_ctor_set(x_180, 0, x_177); -lean_ctor_set(x_180, 1, x_178); -return x_180; +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); +return x_182; } } } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; -x_181 = lean_ctor_get(x_162, 1); -lean_inc(x_181); -lean_dec(x_162); -x_182 = lean_ctor_get(x_163, 1); -lean_inc(x_182); -lean_dec(x_163); -x_183 = lean_ctor_get(x_164, 0); +lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; +x_183 = lean_ctor_get(x_164, 1); lean_inc(x_183); lean_dec(x_164); -x_184 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); +x_184 = lean_ctor_get(x_165, 1); +lean_inc(x_184); +lean_dec(x_165); +x_185 = lean_ctor_get(x_166, 0); +lean_inc(x_185); +lean_dec(x_166); +x_186 = lean_ctor_get_uint8(x_15, sizeof(void*)*7); lean_inc(x_17); -x_185 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); -lean_closure_set(x_185, 0, x_15); -lean_closure_set(x_185, 1, x_17); -lean_closure_set(x_185, 2, x_182); -lean_closure_set(x_185, 3, x_3); -lean_closure_set(x_185, 4, x_2); -lean_closure_set(x_185, 5, x_1); -lean_closure_set(x_185, 6, x_4); -x_186 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_184, x_183, x_185, x_5, x_6, x_7, x_8, x_158, x_10, x_181); -return x_186; +x_187 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__2___boxed), 15, 7); +lean_closure_set(x_187, 0, x_15); +lean_closure_set(x_187, 1, x_17); +lean_closure_set(x_187, 2, x_184); +lean_closure_set(x_187, 3, x_3); +lean_closure_set(x_187, 4, x_2); +lean_closure_set(x_187, 5, x_1); +lean_closure_set(x_187, 6, x_4); +x_188 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(x_17, x_186, x_185, x_187, x_5, x_6, x_7, x_8, x_159, x_10, x_183); +return x_188; } } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_158); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_dec(x_159); lean_dec(x_17); lean_dec(x_15); lean_dec(x_10); @@ -9569,446 +9571,446 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_187 = lean_ctor_get(x_162, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_162, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_189 = x_162; +x_189 = lean_ctor_get(x_164, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_164, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_191 = x_164; } else { - lean_dec_ref(x_162); - x_189 = lean_box(0); + lean_dec_ref(x_164); + x_191 = lean_box(0); } -if (lean_is_scalar(x_189)) { - x_190 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_191)) { + x_192 = lean_alloc_ctor(1, 2, 0); } else { - x_190 = x_189; + x_192 = x_191; } -lean_ctor_set(x_190, 0, x_187); -lean_ctor_set(x_190, 1, x_188); -return x_190; +lean_ctor_set(x_192, 0, x_189); +lean_ctor_set(x_192, 1, x_190); +return x_192; } } else { -lean_object* x_191; uint8_t x_192; -x_191 = lean_ctor_get(x_18, 0); -lean_inc(x_191); +lean_object* x_193; uint8_t x_194; +x_193 = lean_ctor_get(x_18, 0); +lean_inc(x_193); lean_dec(x_18); -x_192 = lean_ctor_get_uint8(x_191, sizeof(void*)*4); -switch (x_192) { +x_194 = lean_ctor_get_uint8(x_193, sizeof(void*)*4); +switch (x_194) { case 0: { -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_dec(x_191); +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_dec(x_193); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_193 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_193, 0, x_17); -x_194 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_195 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set(x_195, 1, x_193); -x_196 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; +x_195 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_195, 0, x_17); +x_196 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; x_197 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_197, 0, x_195); -lean_ctor_set(x_197, 1, x_196); -x_198 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_197, x_5, x_6, x_7, x_8, x_158, x_10, x_11); +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_195); +x_198 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; +x_199 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_199, 0, x_197); +lean_ctor_set(x_199, 1, x_198); +x_200 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_199, x_5, x_6, x_7, x_8, x_159, x_10, x_11); lean_dec(x_10); -lean_dec(x_158); +lean_dec(x_159); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_198; +return x_200; } case 1: { -lean_object* x_199; -x_199 = lean_ctor_get(x_15, 6); -lean_inc(x_199); -if (lean_obj_tag(x_199) == 0) +lean_object* x_201; +x_201 = lean_ctor_get(x_15, 6); +lean_inc(x_201); +if (lean_obj_tag(x_201) == 0) { -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_dec(x_191); +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_dec(x_193); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_200 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_200, 0, x_17); -x_201 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; -x_202 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_200); -x_203 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; +x_202 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_202, 0, x_17); +x_203 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; x_204 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_204, 0, x_202); -lean_ctor_set(x_204, 1, x_203); -x_205 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_204, x_5, x_6, x_7, x_8, x_158, x_10, x_11); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +x_205 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__5; +x_206 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_205); +x_207 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_206, x_5, x_6, x_7, x_8, x_159, x_10, x_11); lean_dec(x_10); -lean_dec(x_158); +lean_dec(x_159); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_205; +return x_207; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; lean_object* x_214; uint8_t x_215; uint8_t x_238; uint8_t x_260; -x_206 = lean_ctor_get(x_191, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_191, 1); -lean_inc(x_207); -x_208 = lean_ctor_get(x_191, 2); +lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; uint8_t x_217; uint8_t x_240; uint8_t x_262; +x_208 = lean_ctor_get(x_193, 0); lean_inc(x_208); -x_209 = lean_ctor_get_uint8(x_191, sizeof(void*)*4 + 1); -lean_dec(x_191); -x_210 = lean_ctor_get(x_199, 0); +x_209 = lean_ctor_get(x_193, 1); +lean_inc(x_209); +x_210 = lean_ctor_get(x_193, 2); lean_inc(x_210); -lean_dec(x_199); -x_211 = lean_ctor_get(x_15, 4); -lean_inc(x_211); -x_212 = l_Lean_Syntax_getArgs(x_211); -lean_dec(x_211); -x_213 = l_Array_isEmpty___rarg(x_212); -lean_dec(x_212); -x_214 = lean_ctor_get(x_15, 5); -lean_inc(x_214); +x_211 = lean_ctor_get_uint8(x_193, sizeof(void*)*4 + 1); +lean_dec(x_193); +x_212 = lean_ctor_get(x_201, 0); +lean_inc(x_212); +lean_dec(x_201); +x_213 = lean_ctor_get(x_15, 4); +lean_inc(x_213); +x_214 = l_Lean_Syntax_getArgs(x_213); +lean_dec(x_213); +x_215 = l_Array_isEmpty___rarg(x_214); +lean_dec(x_214); +x_216 = lean_ctor_get(x_15, 5); +lean_inc(x_216); lean_dec(x_15); -if (x_213 == 0) +if (x_215 == 0) { -if (lean_obj_tag(x_214) == 0) -{ -uint8_t x_282; -x_282 = 1; -x_238 = x_282; -goto block_259; -} -else -{ -uint8_t x_283; -x_283 = 1; -x_260 = x_283; -goto block_281; -} -} -else -{ -if (lean_obj_tag(x_214) == 0) +if (lean_obj_tag(x_216) == 0) { uint8_t x_284; -x_284 = 0; -x_238 = x_284; -goto block_259; +x_284 = 1; +x_240 = x_284; +goto block_261; } else { uint8_t x_285; -x_285 = 0; -x_260 = x_285; -goto block_281; +x_285 = 1; +x_262 = x_285; +goto block_283; } } -block_237: +else { -if (x_215 == 0) +if (lean_obj_tag(x_216) == 0) { -lean_object* x_216; lean_object* x_217; -lean_dec(x_214); +uint8_t x_286; +x_286 = 0; +x_240 = x_286; +goto block_261; +} +else +{ +uint8_t x_287; +x_287 = 0; +x_262 = x_287; +goto block_283; +} +} +block_239: +{ +if (x_217 == 0) +{ +lean_object* x_218; lean_object* x_219; +lean_dec(x_216); lean_dec(x_17); -x_216 = lean_box(0); -x_217 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_208, x_210, x_206, x_207, x_192, x_209, x_3, x_2, x_1, x_4, x_216, x_5, x_6, x_7, x_8, x_158, x_10, x_11); +x_218 = lean_box(0); +x_219 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__3(x_210, x_212, x_208, x_209, x_194, x_211, x_3, x_2, x_1, x_4, x_218, x_5, x_6, x_7, x_8, x_159, x_10, x_11); lean_dec(x_2); -return x_217; +return x_219; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec(x_212); lean_dec(x_210); +lean_dec(x_209); lean_dec(x_208); -lean_dec(x_207); -lean_dec(x_206); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_218 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_218, 0, x_17); -x_219 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_220 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_218); -x_221 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_220 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_220, 0, x_17); +x_221 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; x_222 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -if (lean_obj_tag(x_214) == 0) +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_220); +x_223 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_224 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_224, 0, x_222); +lean_ctor_set(x_224, 1, x_223); +if (lean_obj_tag(x_216) == 0) { -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; -x_223 = l_Lean_instInhabitedSyntax; -x_224 = l_Option_get_x21___rarg___closed__4; -x_225 = lean_panic_fn(x_223, x_224); -x_226 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_225, x_222, x_5, x_6, x_7, x_8, x_158, x_10, x_11); +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; +x_225 = l_Lean_instInhabitedSyntax; +x_226 = l_Option_get_x21___rarg___closed__4; +x_227 = lean_panic_fn(x_225, x_226); +x_228 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_227, x_224, x_5, x_6, x_7, x_8, x_159, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_225); -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -x_228 = lean_ctor_get(x_226, 1); -lean_inc(x_228); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_229 = x_226; +lean_dec(x_227); +x_229 = lean_ctor_get(x_228, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_228, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + x_231 = x_228; } else { - lean_dec_ref(x_226); - x_229 = lean_box(0); + lean_dec_ref(x_228); + x_231 = lean_box(0); } -if (lean_is_scalar(x_229)) { - x_230 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(1, 2, 0); } else { - x_230 = x_229; + x_232 = x_231; } -lean_ctor_set(x_230, 0, x_227); -lean_ctor_set(x_230, 1, x_228); -return x_230; +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +return x_232; } else { -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_231 = lean_ctor_get(x_214, 0); -lean_inc(x_231); -lean_dec(x_214); -x_232 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_231, x_222, x_5, x_6, x_7, x_8, x_158, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_231); -x_233 = lean_ctor_get(x_232, 0); +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_233 = lean_ctor_get(x_216, 0); lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); -lean_inc(x_234); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - x_235 = x_232; +lean_dec(x_216); +x_234 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_233, x_224, x_5, x_6, x_7, x_8, x_159, x_10, x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_233); +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_237 = x_234; } else { - lean_dec_ref(x_232); - x_235 = lean_box(0); + lean_dec_ref(x_234); + x_237 = lean_box(0); } -if (lean_is_scalar(x_235)) { - x_236 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(1, 2, 0); } else { - x_236 = x_235; + x_238 = x_237; } -lean_ctor_set(x_236, 0, x_233); -lean_ctor_set(x_236, 1, x_234); -return x_236; +lean_ctor_set(x_238, 0, x_235); +lean_ctor_set(x_238, 1, x_236); +return x_238; } } } -block_259: +block_261: { -if (x_238 == 0) +if (x_240 == 0) { -uint8_t x_239; -x_239 = 0; -x_215 = x_239; -goto block_237; +uint8_t x_241; +x_241 = 0; +x_217 = x_241; +goto block_239; } else { -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_212); lean_dec(x_210); +lean_dec(x_209); lean_dec(x_208); -lean_dec(x_207); -lean_dec(x_206); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_240 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_240, 0, x_17); -x_241 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_242 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_240); -x_243 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_242 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_242, 0, x_17); +x_243 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; x_244 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_244, 0, x_242); -lean_ctor_set(x_244, 1, x_243); -if (lean_obj_tag(x_214) == 0) +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_242); +x_245 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_246 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +if (lean_obj_tag(x_216) == 0) { -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; -x_245 = l_Lean_instInhabitedSyntax; -x_246 = l_Option_get_x21___rarg___closed__4; -x_247 = lean_panic_fn(x_245, x_246); -x_248 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_247, x_244, x_5, x_6, x_7, x_8, x_158, x_10, x_11); +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; +x_247 = l_Lean_instInhabitedSyntax; +x_248 = l_Option_get_x21___rarg___closed__4; +x_249 = lean_panic_fn(x_247, x_248); +x_250 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_249, x_246, x_5, x_6, x_7, x_8, x_159, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_247); -x_249 = lean_ctor_get(x_248, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_248, 1); -lean_inc(x_250); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - lean_ctor_release(x_248, 1); - x_251 = x_248; +lean_dec(x_249); +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_253 = x_250; } else { - lean_dec_ref(x_248); - x_251 = lean_box(0); + lean_dec_ref(x_250); + x_253 = lean_box(0); } -if (lean_is_scalar(x_251)) { - x_252 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_253)) { + x_254 = lean_alloc_ctor(1, 2, 0); } else { - x_252 = x_251; + x_254 = x_253; } -lean_ctor_set(x_252, 0, x_249); -lean_ctor_set(x_252, 1, x_250); -return x_252; +lean_ctor_set(x_254, 0, x_251); +lean_ctor_set(x_254, 1, x_252); +return x_254; } else { -lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_253 = lean_ctor_get(x_214, 0); -lean_inc(x_253); -lean_dec(x_214); -x_254 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_253, x_244, x_5, x_6, x_7, x_8, x_158, x_10, x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_253); -x_255 = lean_ctor_get(x_254, 0); +lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_255 = lean_ctor_get(x_216, 0); lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_254)) { - lean_ctor_release(x_254, 0); - lean_ctor_release(x_254, 1); - x_257 = x_254; +lean_dec(x_216); +x_256 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_255, x_246, x_5, x_6, x_7, x_8, x_159, x_10, x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_255); +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_259 = x_256; } else { - lean_dec_ref(x_254); - x_257 = lean_box(0); + lean_dec_ref(x_256); + x_259 = lean_box(0); } -if (lean_is_scalar(x_257)) { - x_258 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_259)) { + x_260 = lean_alloc_ctor(1, 2, 0); } else { - x_258 = x_257; + x_260 = x_259; } -lean_ctor_set(x_258, 0, x_255); -lean_ctor_set(x_258, 1, x_256); -return x_258; +lean_ctor_set(x_260, 0, x_257); +lean_ctor_set(x_260, 1, x_258); +return x_260; } } } -block_281: +block_283: { -if (x_260 == 0) +if (x_262 == 0) { -uint8_t x_261; -x_261 = 1; -x_215 = x_261; -goto block_237; +uint8_t x_263; +x_263 = 1; +x_217 = x_263; +goto block_239; } else { -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_212); lean_dec(x_210); +lean_dec(x_209); lean_dec(x_208); -lean_dec(x_207); -lean_dec(x_206); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_262 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_262, 0, x_17); -x_263 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; -x_264 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_264, 0, x_263); -lean_ctor_set(x_264, 1, x_262); -x_265 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_264 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_264, 0, x_17); +x_265 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__7; x_266 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_266, 0, x_264); -lean_ctor_set(x_266, 1, x_265); -if (lean_obj_tag(x_214) == 0) +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_264); +x_267 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; +x_268 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_268, 0, x_266); +lean_ctor_set(x_268, 1, x_267); +if (lean_obj_tag(x_216) == 0) { -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; -x_267 = l_Lean_instInhabitedSyntax; -x_268 = l_Option_get_x21___rarg___closed__4; -x_269 = lean_panic_fn(x_267, x_268); -x_270 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_269, x_266, x_5, x_6, x_7, x_8, x_158, x_10, x_11); +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; +x_269 = l_Lean_instInhabitedSyntax; +x_270 = l_Option_get_x21___rarg___closed__4; +x_271 = lean_panic_fn(x_269, x_270); +x_272 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_271, x_268, x_5, x_6, x_7, x_8, x_159, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_269); -x_271 = lean_ctor_get(x_270, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_270, 1); -lean_inc(x_272); -if (lean_is_exclusive(x_270)) { - lean_ctor_release(x_270, 0); - lean_ctor_release(x_270, 1); - x_273 = x_270; +lean_dec(x_271); +x_273 = lean_ctor_get(x_272, 0); +lean_inc(x_273); +x_274 = lean_ctor_get(x_272, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_275 = x_272; } else { - lean_dec_ref(x_270); - x_273 = lean_box(0); + lean_dec_ref(x_272); + x_275 = lean_box(0); } -if (lean_is_scalar(x_273)) { - x_274 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_275)) { + x_276 = lean_alloc_ctor(1, 2, 0); } else { - x_274 = x_273; + x_276 = x_275; } -lean_ctor_set(x_274, 0, x_271); -lean_ctor_set(x_274, 1, x_272); -return x_274; +lean_ctor_set(x_276, 0, x_273); +lean_ctor_set(x_276, 1, x_274); +return x_276; } else { -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_275 = lean_ctor_get(x_214, 0); -lean_inc(x_275); -lean_dec(x_214); -x_276 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_275, x_266, x_5, x_6, x_7, x_8, x_158, x_10, x_11); +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; +x_277 = lean_ctor_get(x_216, 0); +lean_inc(x_277); +lean_dec(x_216); +x_278 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(x_277, x_268, x_5, x_6, x_7, x_8, x_159, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_275); -x_277 = lean_ctor_get(x_276, 0); -lean_inc(x_277); -x_278 = lean_ctor_get(x_276, 1); -lean_inc(x_278); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_279 = x_276; +lean_dec(x_277); +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_281 = x_278; } else { - lean_dec_ref(x_276); - x_279 = lean_box(0); + lean_dec_ref(x_278); + x_281 = lean_box(0); } -if (lean_is_scalar(x_279)) { - x_280 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_281)) { + x_282 = lean_alloc_ctor(1, 2, 0); } else { - x_280 = x_279; + x_282 = x_281; } -lean_ctor_set(x_280, 0, x_277); -lean_ctor_set(x_280, 1, x_278); -return x_280; +lean_ctor_set(x_282, 0, x_279); +lean_ctor_set(x_282, 1, x_280); +return x_282; } } } @@ -10016,19 +10018,19 @@ return x_280; } default: { -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -lean_dec(x_191); +lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_193); lean_dec(x_17); lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_286 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_287 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; -x_288 = lean_panic_fn(x_286, x_287); -x_289 = lean_apply_7(x_288, x_5, x_6, x_7, x_8, x_158, x_10, x_11); -return x_289; +x_288 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_289 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__12; +x_290 = lean_panic_fn(x_288, x_289); +x_291 = lean_apply_7(x_290, x_5, x_6, x_7, x_8, x_159, x_10, x_11); +return x_291; } } } @@ -14925,23 +14927,6 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("type: "); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1() { _start: { @@ -16066,7 +16051,7 @@ lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_inc(x_19); x_183 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_183, 0, x_19); -x_184 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4; +x_184 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__1___closed__2; x_185 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_185, 0, x_184); lean_ctor_set(x_185, 1, x_183); @@ -16653,7 +16638,7 @@ return x_21; lean_object* l_Lean_Elab_Command_elabStructure___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { _start: { -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_object* x_27; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_20 = l_Lean_Elab_Term_resetMessageLog(x_13, x_14, x_15, x_16, x_17, x_18, x_19); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); @@ -16672,15 +16657,17 @@ lean_closure_set(x_23, 7, x_7); lean_closure_set(x_23, 8, x_8); lean_closure_set(x_23, 9, x_9); lean_closure_set(x_23, 10, x_10); -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_24, 0, x_11); -lean_closure_set(x_24, 1, x_23); -x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); -lean_closure_set(x_25, 0, x_4); -lean_closure_set(x_25, 1, x_24); -x_26 = 0; -x_27 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_25, x_26, x_13, x_14, x_15, x_16, x_17, x_18, x_21); -return x_27; +x_24 = 0; +x_25 = lean_box(x_24); +x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_26, 0, x_11); +lean_closure_set(x_26, 1, x_23); +lean_closure_set(x_26, 2, x_25); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2); +lean_closure_set(x_27, 0, x_4); +lean_closure_set(x_27, 1, x_26); +x_28 = l_Lean_Elab_Term_withUnboundImplicitLocal___rarg(x_27, x_24, x_13, x_14, x_15, x_16, x_17, x_18, x_21); +return x_28; } } lean_object* l_Lean_Elab_Command_elabStructure___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { @@ -16722,7 +16709,7 @@ lean_dec(x_19); x_22 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields(x_3, x_2, x_17, x_8, x_9, x_21); if (lean_obj_tag(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; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -16752,20 +16739,22 @@ lean_closure_set(x_31, 7, x_7); lean_closure_set(x_31, 8, x_20); lean_closure_set(x_31, 9, x_23); lean_closure_set(x_31, 10, x_6); -x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_32, 0, x_29); -lean_closure_set(x_32, 1, x_31); -x_33 = 1; -x_34 = lean_box(x_33); -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_35, 0, x_32); -lean_closure_set(x_35, 1, x_34); -x_36 = l_Lean_Elab_Command_liftTermElabM___rarg(x_25, x_35, x_8, x_9, x_28); -return x_36; +x_32 = 1; +x_33 = lean_box(x_32); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_34, 0, x_29); +lean_closure_set(x_34, 1, x_31); +lean_closure_set(x_34, 2, x_33); +x_35 = lean_box(x_32); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_36, 0, x_34); +lean_closure_set(x_36, 1, x_35); +x_37 = l_Lean_Elab_Command_liftTermElabM___rarg(x_25, x_36, x_8, x_9, x_28); +return x_37; } else { -uint8_t x_37; +uint8_t x_38; lean_dec(x_20); lean_dec(x_18); lean_dec(x_17); @@ -16776,29 +16765,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_22); -if (x_37 == 0) +x_38 = !lean_is_exclusive(x_22); +if (x_38 == 0) { return x_22; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_22, 0); -x_39 = lean_ctor_get(x_22, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_22, 0); +x_40 = lean_ctor_get(x_22, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); lean_dec(x_22); -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; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_41; +uint8_t x_42; lean_dec(x_18); lean_dec(x_17); lean_dec(x_12); @@ -16808,29 +16797,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_41 = !lean_is_exclusive(x_19); -if (x_41 == 0) +x_42 = !lean_is_exclusive(x_19); +if (x_42 == 0) { return x_19; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_19, 0); -x_43 = lean_ctor_get(x_19, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_19, 0); +x_44 = lean_ctor_get(x_19, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); lean_dec(x_19); -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; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -uint8_t x_45; +uint8_t x_46; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -16838,23 +16827,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_45 = !lean_is_exclusive(x_14); -if (x_45 == 0) +x_46 = !lean_is_exclusive(x_14); +if (x_46 == 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_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_14, 0); +x_48 = lean_ctor_get(x_14, 1); +lean_inc(x_48); 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; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } @@ -17374,10 +17363,6 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda_ lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index e3a35d77b8..21f1cdc180 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -505,6 +505,7 @@ uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___lambda__1( lean_object* l_Lean_Elab_Command_expandElab___closed__25; lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__6; +lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_Trie_format___rarg___closed__1; lean_object* l_Lean_Elab_Command_elabMacro(lean_object*, lean_object*, lean_object*, lean_object*); @@ -689,7 +690,6 @@ lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQ lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__2; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__27; lean_object* l_Lean_Elab_Command_expandElab___closed__9; -lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__40; lean_object* l_Lean_Elab_Command_expandElab(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__14; @@ -11819,212 +11819,212 @@ return x_3; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t 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_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; x_7 = lean_unsigned_to_nat(3u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); lean_inc(x_8); -x_211 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(x_8); -x_212 = lean_unsigned_to_nat(1u); -x_213 = l_Lean_Syntax_getArg(x_1, x_212); -x_214 = l_Lean_Elab_Term_expandOptPrecedence(x_213); -lean_dec(x_213); -x_215 = lean_unsigned_to_nat(2u); -x_216 = l_Lean_Syntax_getArg(x_1, x_215); +x_212 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(x_8); +x_213 = lean_unsigned_to_nat(1u); +x_214 = l_Lean_Syntax_getArg(x_1, x_213); +x_215 = l_Lean_Elab_Term_expandOptPrecedence(x_214); +lean_dec(x_214); +x_216 = lean_unsigned_to_nat(2u); +x_217 = l_Lean_Syntax_getArg(x_1, x_216); lean_inc(x_4); lean_inc(x_2); -x_217 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(x_216, x_2, x_4, x_5, x_6); -lean_dec(x_216); -if (x_211 == 0) +x_218 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(x_217, x_2, x_4, x_5, x_6); +lean_dec(x_217); +if (x_212 == 0) { -if (lean_obj_tag(x_214) == 0) +if (lean_obj_tag(x_215) == 0) { -if (lean_obj_tag(x_217) == 0) +if (lean_obj_tag(x_218) == 0) { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 1); +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_218, 0); lean_inc(x_219); -lean_dec(x_217); -x_220 = l_Lean_Parser_leadPrec; -x_9 = x_220; -x_10 = x_218; -x_11 = x_219; -goto block_210; +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = l_Lean_Parser_leadPrec; +x_9 = x_221; +x_10 = x_219; +x_11 = x_220; +goto block_211; } else { -uint8_t x_221; +uint8_t x_222; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_221 = !lean_is_exclusive(x_217); -if (x_221 == 0) +x_222 = !lean_is_exclusive(x_218); +if (x_222 == 0) { -return x_217; +return x_218; } else { -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_ctor_get(x_217, 0); -x_223 = lean_ctor_get(x_217, 1); +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_218, 0); +x_224 = lean_ctor_get(x_218, 1); +lean_inc(x_224); lean_inc(x_223); -lean_inc(x_222); -lean_dec(x_217); -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_222); -lean_ctor_set(x_224, 1, x_223); -return x_224; +lean_dec(x_218); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; } } } else { -if (lean_obj_tag(x_217) == 0) +if (lean_obj_tag(x_218) == 0) { -lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_225 = lean_ctor_get(x_214, 0); -lean_inc(x_225); -lean_dec(x_214); -x_226 = lean_ctor_get(x_217, 0); +lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_226 = lean_ctor_get(x_215, 0); lean_inc(x_226); -x_227 = lean_ctor_get(x_217, 1); +lean_dec(x_215); +x_227 = lean_ctor_get(x_218, 0); lean_inc(x_227); -lean_dec(x_217); -x_9 = x_225; -x_10 = x_226; -x_11 = x_227; -goto block_210; +x_228 = lean_ctor_get(x_218, 1); +lean_inc(x_228); +lean_dec(x_218); +x_9 = x_226; +x_10 = x_227; +x_11 = x_228; +goto block_211; } else { -uint8_t x_228; -lean_dec(x_214); +uint8_t x_229; +lean_dec(x_215); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_228 = !lean_is_exclusive(x_217); -if (x_228 == 0) +x_229 = !lean_is_exclusive(x_218); +if (x_229 == 0) { -return x_217; +return x_218; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_217, 0); -x_230 = lean_ctor_get(x_217, 1); +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_218, 0); +x_231 = lean_ctor_get(x_218, 1); +lean_inc(x_231); lean_inc(x_230); -lean_inc(x_229); -lean_dec(x_217); -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_229); -lean_ctor_set(x_231, 1, x_230); -return x_231; +lean_dec(x_218); +x_232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_232, 0, x_230); +lean_ctor_set(x_232, 1, x_231); +return x_232; } } } } else { -if (lean_obj_tag(x_214) == 0) +if (lean_obj_tag(x_215) == 0) { -if (lean_obj_tag(x_217) == 0) +if (lean_obj_tag(x_218) == 0) { -lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_232 = lean_ctor_get(x_217, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_217, 1); +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_218, 0); lean_inc(x_233); -lean_dec(x_217); -x_234 = l_Lean_Parser_maxPrec; -x_9 = x_234; -x_10 = x_232; -x_11 = x_233; -goto block_210; +x_234 = lean_ctor_get(x_218, 1); +lean_inc(x_234); +lean_dec(x_218); +x_235 = l_Lean_Parser_maxPrec; +x_9 = x_235; +x_10 = x_233; +x_11 = x_234; +goto block_211; } else { -uint8_t x_235; +uint8_t x_236; lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_235 = !lean_is_exclusive(x_217); -if (x_235 == 0) +x_236 = !lean_is_exclusive(x_218); +if (x_236 == 0) { -return x_217; +return x_218; } else { -lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_236 = lean_ctor_get(x_217, 0); -x_237 = lean_ctor_get(x_217, 1); +lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_237 = lean_ctor_get(x_218, 0); +x_238 = lean_ctor_get(x_218, 1); +lean_inc(x_238); lean_inc(x_237); -lean_inc(x_236); -lean_dec(x_217); -x_238 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_238, 0, x_236); -lean_ctor_set(x_238, 1, x_237); -return x_238; +lean_dec(x_218); +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_238); +return x_239; } } } else { -if (lean_obj_tag(x_217) == 0) +if (lean_obj_tag(x_218) == 0) { -lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_239 = lean_ctor_get(x_214, 0); -lean_inc(x_239); -lean_dec(x_214); -x_240 = lean_ctor_get(x_217, 0); +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = lean_ctor_get(x_215, 0); lean_inc(x_240); -x_241 = lean_ctor_get(x_217, 1); +lean_dec(x_215); +x_241 = lean_ctor_get(x_218, 0); lean_inc(x_241); -lean_dec(x_217); -x_9 = x_239; -x_10 = x_240; -x_11 = x_241; -goto block_210; +x_242 = lean_ctor_get(x_218, 1); +lean_inc(x_242); +lean_dec(x_218); +x_9 = x_240; +x_10 = x_241; +x_11 = x_242; +goto block_211; } else { -uint8_t x_242; -lean_dec(x_214); +uint8_t x_243; +lean_dec(x_215); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_242 = !lean_is_exclusive(x_217); -if (x_242 == 0) +x_243 = !lean_is_exclusive(x_218); +if (x_243 == 0) { -return x_217; +return x_218; } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_217, 0); -x_244 = lean_ctor_get(x_217, 1); +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_218, 0); +x_245 = lean_ctor_get(x_218, 1); +lean_inc(x_245); lean_inc(x_244); -lean_inc(x_243); -lean_dec(x_217); -x_245 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_245, 0, x_243); -lean_ctor_set(x_245, 1, x_244); -return x_245; +lean_dec(x_218); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; } } } } -block_210: +block_211: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_10, 1); @@ -12058,305 +12058,307 @@ lean_dec(x_24); x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax___lambda__1___boxed), 10, 2); lean_closure_set(x_27, 0, x_8); lean_closure_set(x_27, 1, x_2); -x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_28, 0, x_26); -lean_closure_set(x_28, 1, x_27); -x_29 = 1; -x_30 = lean_box(x_29); -x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_31, 0, x_28); -lean_closure_set(x_31, 1, x_30); +x_28 = 1; +x_29 = lean_box(x_28); +x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_30, 0, x_26); +lean_closure_set(x_30, 1, x_27); +lean_closure_set(x_30, 2, x_29); +x_31 = lean_box(x_28); +x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_32, 0, x_30); +lean_closure_set(x_32, 1, x_31); lean_inc(x_4); -x_32 = l_Lean_Elab_Command_liftTermElabM___rarg(x_22, x_31, x_4, x_5, x_25); -if (lean_obj_tag(x_32) == 0) +x_33 = l_Lean_Elab_Command_liftTermElabM___rarg(x_22, x_32, x_4, x_5, x_25); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_33, 1); +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -x_35 = lean_unbox(x_34); -lean_dec(x_34); -if (x_35 == 0) +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +x_36 = lean_unbox(x_35); +lean_dec(x_35); +if (x_36 == 0) { -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; -x_36 = lean_ctor_get(x_32, 1); -lean_inc(x_36); -lean_dec(x_32); -x_37 = lean_ctor_get(x_33, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 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; +x_37 = lean_ctor_get(x_33, 1); lean_inc(x_37); lean_dec(x_33); -x_38 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_36); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); +x_38 = lean_ctor_get(x_34, 0); +lean_inc(x_38); +lean_dec(x_34); +x_39 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_37); +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_40); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_41); +x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Array_empty___closed__1; -x_45 = lean_array_push(x_44, x_21); -x_46 = l_Nat_repr(x_13); -x_47 = l_Lean_numLitKind; -x_48 = l_Lean_instInhabitedSourceInfo___closed__1; -x_49 = l_Lean_Syntax_mkLit(x_47, x_46, x_48); -x_50 = lean_array_push(x_44, x_49); -x_51 = l_Lean_nullKind___closed__2; -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_array_push(x_45, x_52); -x_54 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -x_56 = lean_array_push(x_44, x_55); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_51); -lean_ctor_set(x_57, 1, x_56); -x_58 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; -x_59 = lean_array_push(x_58, x_57); -x_60 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3396____closed__10; -x_61 = lean_array_push(x_59, x_60); -x_62 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -x_64 = lean_array_push(x_44, x_63); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_51); -lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; -x_67 = lean_array_push(x_66, x_65); -x_68 = l_myMacro____x40_Init_Notation___hyg_5739____closed__20; -x_69 = lean_array_push(x_67, x_68); -x_70 = lean_array_push(x_69, x_68); -x_71 = lean_array_push(x_70, x_68); -x_72 = lean_array_push(x_71, x_68); -x_73 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -x_75 = lean_array_push(x_44, x_74); -x_76 = l_Lean_mkIdentFrom(x_1, x_12); -x_77 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; -x_78 = lean_array_push(x_77, x_76); -x_79 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; -lean_inc(x_39); -lean_inc(x_42); -x_80 = l_Lean_addMacroScope(x_42, x_79, x_39); -x_81 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; -x_82 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__2; -x_83 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_83, 0, x_48); -lean_ctor_set(x_83, 1, x_81); -lean_ctor_set(x_83, 2, x_80); -lean_ctor_set(x_83, 3, x_82); -x_84 = l_myMacro____x40_Init_Notation___hyg_8168____closed__11; -x_85 = lean_array_push(x_84, x_83); -x_86 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_85); -x_88 = lean_array_push(x_44, x_87); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_51); -lean_ctor_set(x_89, 1, x_88); -x_90 = lean_array_push(x_66, x_89); -x_91 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_90); -x_93 = lean_array_push(x_78, x_92); -x_94 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__6; -x_95 = l_Lean_addMacroScope(x_42, x_94, x_39); -x_96 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__5; -x_97 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; -x_98 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_98, 0, x_48); -lean_ctor_set(x_98, 1, x_96); -lean_ctor_set(x_98, 2, x_95); -lean_ctor_set(x_98, 3, x_97); -x_99 = lean_array_push(x_44, x_98); -x_100 = l___private_Init_Meta_0__Lean_quoteName(x_18); -x_101 = lean_array_push(x_44, x_100); -x_102 = l_Nat_repr(x_9); -x_103 = l_Lean_Syntax_mkLit(x_47, x_102, x_48); -x_104 = lean_array_push(x_101, x_103); -x_105 = lean_array_push(x_104, x_37); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_51); -lean_ctor_set(x_106, 1, x_105); -x_107 = lean_array_push(x_99, x_106); -x_108 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -x_110 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11379____closed__7; -x_111 = lean_array_push(x_110, x_109); -x_112 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -x_114 = lean_array_push(x_93, x_113); -x_115 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_114); -x_117 = lean_array_push(x_75, x_116); -x_118 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -x_120 = l_Lean_Elab_Command_elabSyntax___lambda__2(x_1, x_119, x_4, x_5, x_43); -return x_120; +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Array_empty___closed__1; +x_46 = lean_array_push(x_45, x_21); +x_47 = l_Nat_repr(x_13); +x_48 = l_Lean_numLitKind; +x_49 = l_Lean_instInhabitedSourceInfo___closed__1; +x_50 = l_Lean_Syntax_mkLit(x_48, x_47, x_49); +x_51 = lean_array_push(x_45, x_50); +x_52 = l_Lean_nullKind___closed__2; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = lean_array_push(x_46, x_53); +x_55 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = lean_array_push(x_45, x_56); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_57); +x_59 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +x_60 = lean_array_push(x_59, x_58); +x_61 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3396____closed__10; +x_62 = lean_array_push(x_60, x_61); +x_63 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = lean_array_push(x_45, x_64); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_52); +lean_ctor_set(x_66, 1, x_65); +x_67 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; +x_68 = lean_array_push(x_67, x_66); +x_69 = l_myMacro____x40_Init_Notation___hyg_5739____closed__20; +x_70 = lean_array_push(x_68, x_69); +x_71 = lean_array_push(x_70, x_69); +x_72 = lean_array_push(x_71, x_69); +x_73 = lean_array_push(x_72, x_69); +x_74 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +x_76 = lean_array_push(x_45, x_75); +x_77 = l_Lean_mkIdentFrom(x_1, x_12); +x_78 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; +x_79 = lean_array_push(x_78, x_77); +x_80 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; +lean_inc(x_40); +lean_inc(x_43); +x_81 = l_Lean_addMacroScope(x_43, x_80, x_40); +x_82 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_83 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__2; +x_84 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_84, 0, x_49); +lean_ctor_set(x_84, 1, x_82); +lean_ctor_set(x_84, 2, x_81); +lean_ctor_set(x_84, 3, x_83); +x_85 = l_myMacro____x40_Init_Notation___hyg_8168____closed__11; +x_86 = lean_array_push(x_85, x_84); +x_87 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +x_89 = lean_array_push(x_45, x_88); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_52); +lean_ctor_set(x_90, 1, x_89); +x_91 = lean_array_push(x_67, x_90); +x_92 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +x_94 = lean_array_push(x_79, x_93); +x_95 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__6; +x_96 = l_Lean_addMacroScope(x_43, x_95, x_40); +x_97 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__5; +x_98 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +x_99 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_99, 0, x_49); +lean_ctor_set(x_99, 1, x_97); +lean_ctor_set(x_99, 2, x_96); +lean_ctor_set(x_99, 3, x_98); +x_100 = lean_array_push(x_45, x_99); +x_101 = l___private_Init_Meta_0__Lean_quoteName(x_18); +x_102 = lean_array_push(x_45, x_101); +x_103 = l_Nat_repr(x_9); +x_104 = l_Lean_Syntax_mkLit(x_48, x_103, x_49); +x_105 = lean_array_push(x_102, x_104); +x_106 = lean_array_push(x_105, x_38); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_52); +lean_ctor_set(x_107, 1, x_106); +x_108 = lean_array_push(x_100, x_107); +x_109 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +x_111 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11379____closed__7; +x_112 = lean_array_push(x_111, x_110); +x_113 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_112); +x_115 = lean_array_push(x_94, x_114); +x_116 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +x_118 = lean_array_push(x_76, x_117); +x_119 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); +x_121 = l_Lean_Elab_Command_elabSyntax___lambda__2(x_1, x_120, x_4, x_5, x_44); +return x_121; } else { -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; -x_121 = lean_ctor_get(x_32, 1); -lean_inc(x_121); -lean_dec(x_32); -x_122 = lean_ctor_get(x_33, 0); +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; +x_122 = lean_ctor_get(x_33, 1); lean_inc(x_122); lean_dec(x_33); -x_123 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_121); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); +x_123 = lean_ctor_get(x_34, 0); +lean_inc(x_123); +lean_dec(x_34); +x_124 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_122); +x_125 = lean_ctor_get(x_124, 0); lean_inc(x_125); -lean_dec(x_123); -x_126 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_125); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +x_127 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_126); +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Array_empty___closed__1; -x_130 = lean_array_push(x_129, x_21); -x_131 = l_Nat_repr(x_13); -x_132 = l_Lean_numLitKind; -x_133 = l_Lean_instInhabitedSourceInfo___closed__1; -x_134 = l_Lean_Syntax_mkLit(x_132, x_131, x_133); -x_135 = lean_array_push(x_129, x_134); -x_136 = l_Lean_nullKind___closed__2; -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -x_138 = lean_array_push(x_130, x_137); -x_139 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_138); -x_141 = lean_array_push(x_129, x_140); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_136); -lean_ctor_set(x_142, 1, x_141); -x_143 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; -x_144 = lean_array_push(x_143, x_142); -x_145 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3396____closed__10; -x_146 = lean_array_push(x_144, x_145); -x_147 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_146); -x_149 = lean_array_push(x_129, x_148); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_136); -lean_ctor_set(x_150, 1, x_149); -x_151 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; -x_152 = lean_array_push(x_151, x_150); -x_153 = l_myMacro____x40_Init_Notation___hyg_5739____closed__20; -x_154 = lean_array_push(x_152, x_153); -x_155 = lean_array_push(x_154, x_153); -x_156 = lean_array_push(x_155, x_153); -x_157 = lean_array_push(x_156, x_153); -x_158 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_157); -x_160 = lean_array_push(x_129, x_159); -x_161 = l_Lean_mkIdentFrom(x_1, x_12); -x_162 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; -x_163 = lean_array_push(x_162, x_161); -x_164 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__10; -lean_inc(x_124); -lean_inc(x_127); -x_165 = l_Lean_addMacroScope(x_127, x_164, x_124); -x_166 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__9; -x_167 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__12; -x_168 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_168, 0, x_133); -lean_ctor_set(x_168, 1, x_166); -lean_ctor_set(x_168, 2, x_165); -lean_ctor_set(x_168, 3, x_167); -x_169 = l_myMacro____x40_Init_Notation___hyg_8168____closed__11; -x_170 = lean_array_push(x_169, x_168); -x_171 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_170); -x_173 = lean_array_push(x_129, x_172); -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_136); -lean_ctor_set(x_174, 1, x_173); -x_175 = lean_array_push(x_151, x_174); -x_176 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_175); -x_178 = lean_array_push(x_163, x_177); -x_179 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__17; -x_180 = l_Lean_addMacroScope(x_127, x_179, x_124); -x_181 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__15; -x_182 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__20; -x_183 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_183, 0, x_133); -lean_ctor_set(x_183, 1, x_181); -lean_ctor_set(x_183, 2, x_180); -lean_ctor_set(x_183, 3, x_182); -x_184 = lean_array_push(x_129, x_183); -x_185 = l___private_Init_Meta_0__Lean_quoteName(x_18); -x_186 = lean_array_push(x_129, x_185); -x_187 = l_Nat_repr(x_9); -x_188 = l_Lean_Syntax_mkLit(x_132, x_187, x_133); -x_189 = lean_array_push(x_186, x_188); -x_190 = lean_array_push(x_189, x_122); -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_136); -lean_ctor_set(x_191, 1, x_190); -x_192 = lean_array_push(x_184, x_191); -x_193 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_192); -x_195 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11379____closed__7; -x_196 = lean_array_push(x_195, x_194); -x_197 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -x_199 = lean_array_push(x_178, x_198); -x_200 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -x_202 = lean_array_push(x_160, x_201); -x_203 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -x_205 = l_Lean_Elab_Command_elabSyntax___lambda__2(x_1, x_204, x_4, x_5, x_128); -return x_205; +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_130 = l_Array_empty___closed__1; +x_131 = lean_array_push(x_130, x_21); +x_132 = l_Nat_repr(x_13); +x_133 = l_Lean_numLitKind; +x_134 = l_Lean_instInhabitedSourceInfo___closed__1; +x_135 = l_Lean_Syntax_mkLit(x_133, x_132, x_134); +x_136 = lean_array_push(x_130, x_135); +x_137 = l_Lean_nullKind___closed__2; +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_136); +x_139 = lean_array_push(x_131, x_138); +x_140 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_139); +x_142 = lean_array_push(x_130, x_141); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_137); +lean_ctor_set(x_143, 1, x_142); +x_144 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +x_145 = lean_array_push(x_144, x_143); +x_146 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3396____closed__10; +x_147 = lean_array_push(x_145, x_146); +x_148 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_147); +x_150 = lean_array_push(x_130, x_149); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_137); +lean_ctor_set(x_151, 1, x_150); +x_152 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; +x_153 = lean_array_push(x_152, x_151); +x_154 = l_myMacro____x40_Init_Notation___hyg_5739____closed__20; +x_155 = lean_array_push(x_153, x_154); +x_156 = lean_array_push(x_155, x_154); +x_157 = lean_array_push(x_156, x_154); +x_158 = lean_array_push(x_157, x_154); +x_159 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +x_161 = lean_array_push(x_130, x_160); +x_162 = l_Lean_mkIdentFrom(x_1, x_12); +x_163 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; +x_164 = lean_array_push(x_163, x_162); +x_165 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__10; +lean_inc(x_125); +lean_inc(x_128); +x_166 = l_Lean_addMacroScope(x_128, x_165, x_125); +x_167 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__9; +x_168 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__12; +x_169 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_169, 0, x_134); +lean_ctor_set(x_169, 1, x_167); +lean_ctor_set(x_169, 2, x_166); +lean_ctor_set(x_169, 3, x_168); +x_170 = l_myMacro____x40_Init_Notation___hyg_8168____closed__11; +x_171 = lean_array_push(x_170, x_169); +x_172 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +x_174 = lean_array_push(x_130, x_173); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_137); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_array_push(x_152, x_175); +x_177 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_176); +x_179 = lean_array_push(x_164, x_178); +x_180 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__17; +x_181 = l_Lean_addMacroScope(x_128, x_180, x_125); +x_182 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__15; +x_183 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__20; +x_184 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_184, 0, x_134); +lean_ctor_set(x_184, 1, x_182); +lean_ctor_set(x_184, 2, x_181); +lean_ctor_set(x_184, 3, x_183); +x_185 = lean_array_push(x_130, x_184); +x_186 = l___private_Init_Meta_0__Lean_quoteName(x_18); +x_187 = lean_array_push(x_130, x_186); +x_188 = l_Nat_repr(x_9); +x_189 = l_Lean_Syntax_mkLit(x_133, x_188, x_134); +x_190 = lean_array_push(x_187, x_189); +x_191 = lean_array_push(x_190, x_123); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_137); +lean_ctor_set(x_192, 1, x_191); +x_193 = lean_array_push(x_185, x_192); +x_194 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11379____closed__7; +x_197 = lean_array_push(x_196, x_195); +x_198 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_197); +x_200 = lean_array_push(x_179, x_199); +x_201 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_200); +x_203 = lean_array_push(x_161, x_202); +x_204 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_203); +x_206 = l_Lean_Elab_Command_elabSyntax___lambda__2(x_1, x_205, x_4, x_5, x_129); +return x_206; } } else { -uint8_t x_206; +uint8_t x_207; lean_dec(x_21); lean_dec(x_18); lean_dec(x_13); @@ -12365,23 +12367,23 @@ lean_dec(x_9); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_206 = !lean_is_exclusive(x_32); -if (x_206 == 0) +x_207 = !lean_is_exclusive(x_33); +if (x_207 == 0) { -return x_32; +return x_33; } else { -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_32, 0); -x_208 = lean_ctor_get(x_32, 1); +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_33, 0); +x_209 = lean_ctor_get(x_33, 1); +lean_inc(x_209); lean_inc(x_208); -lean_inc(x_207); -lean_dec(x_32); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_208); -return x_209; +lean_dec(x_33); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_208); +lean_ctor_set(x_210, 1, x_209); +return x_210; } } } @@ -12772,7 +12774,7 @@ return x_3; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +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; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = lean_box(0); @@ -12787,207 +12789,209 @@ lean_dec(x_9); lean_inc(x_1); x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1___boxed), 9, 1); lean_closure_set(x_12, 0, x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg), 9, 2); -lean_closure_set(x_13, 0, x_11); -lean_closure_set(x_13, 1, x_12); -x_14 = 1; -x_15 = lean_box(x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); -lean_closure_set(x_16, 0, x_13); -lean_closure_set(x_16, 1, x_15); +x_13 = 1; +x_14 = lean_box(x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3); +lean_closure_set(x_15, 0, x_11); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_14); +x_16 = lean_box(x_13); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withUnboundImplicitLocal___rarg___boxed), 9, 2); +lean_closure_set(x_17, 0, x_15); +lean_closure_set(x_17, 1, x_16); lean_inc(x_2); -x_17 = l_Lean_Elab_Command_liftTermElabM___rarg(x_7, x_16, x_2, x_3, x_10); -if (lean_obj_tag(x_17) == 0) +x_18 = l_Lean_Elab_Command_liftTermElabM___rarg(x_7, x_17, x_2, x_3, x_10); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 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; uint8_t x_82; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); +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; uint8_t x_83; +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_ctor_get(x_18, 0); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l_Lean_Elab_Command_getScope___rarg(x_3, x_19); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Elab_Command_getScope___rarg(x_3, x_20); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_22, 3); +x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); -x_25 = l_Lean_Syntax_getId(x_6); +x_25 = lean_ctor_get(x_23, 3); lean_inc(x_25); -x_26 = l_Lean_Name_append(x_24, x_25); -lean_dec(x_24); -x_27 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_23); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); +lean_dec(x_23); +x_26 = l_Lean_Syntax_getId(x_6); +lean_inc(x_26); +x_27 = l_Lean_Name_append(x_25, x_26); +lean_dec(x_25); +x_28 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_24); +x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); -lean_dec(x_27); -x_30 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_29); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_30); +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -lean_dec(x_30); -x_33 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; -x_34 = lean_array_push(x_33, x_6); -x_35 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; -lean_inc(x_28); -lean_inc(x_31); -x_36 = l_Lean_addMacroScope(x_31, x_35, x_28); -x_37 = l_Lean_instInhabitedSourceInfo___closed__1; -x_38 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; -x_39 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__2; -x_40 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_38); -lean_ctor_set(x_40, 2, x_36); -lean_ctor_set(x_40, 3, x_39); -x_41 = l_myMacro____x40_Init_Notation___hyg_8168____closed__11; -x_42 = lean_array_push(x_41, x_40); -x_43 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -x_45 = l_Array_empty___closed__1; -x_46 = lean_array_push(x_45, x_44); -x_47 = l_Lean_nullKind___closed__2; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; -x_50 = lean_array_push(x_49, x_48); -x_51 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_array_push(x_34, x_52); -x_54 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__12; -x_55 = l_Lean_addMacroScope(x_31, x_54, x_28); -x_56 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__10; -x_57 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__15; -x_58 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_58, 0, x_37); -lean_ctor_set(x_58, 1, x_56); -lean_ctor_set(x_58, 2, x_55); -lean_ctor_set(x_58, 3, x_57); -x_59 = lean_array_push(x_45, x_58); -x_60 = l_Lean_Name_toString___closed__1; -x_61 = l_Lean_Name_toStringWithSep(x_60, x_25); -x_62 = l_Lean_Syntax_mkStrLit(x_61, x_37); -lean_dec(x_61); -x_63 = lean_array_push(x_45, x_62); -x_64 = l___private_Init_Meta_0__Lean_quoteName(x_26); -x_65 = lean_array_push(x_63, x_64); -x_66 = lean_array_push(x_65, x_20); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_47); -lean_ctor_set(x_67, 1, x_66); -x_68 = lean_array_push(x_59, x_67); -x_69 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11379____closed__7; -x_72 = lean_array_push(x_71, x_70); -x_73 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -x_75 = lean_array_push(x_53, x_74); -x_76 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -x_78 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__7; -x_79 = lean_array_push(x_78, x_77); -x_80 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = !lean_is_exclusive(x_2); -if (x_82 == 0) +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; +x_35 = lean_array_push(x_34, x_6); +x_36 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; +lean_inc(x_29); +lean_inc(x_32); +x_37 = l_Lean_addMacroScope(x_32, x_36, x_29); +x_38 = l_Lean_instInhabitedSourceInfo___closed__1; +x_39 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_40 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__2; +x_41 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_41, 0, x_38); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_41, 2, x_37); +lean_ctor_set(x_41, 3, x_40); +x_42 = l_myMacro____x40_Init_Notation___hyg_8168____closed__11; +x_43 = lean_array_push(x_42, x_41); +x_44 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = l_Array_empty___closed__1; +x_47 = lean_array_push(x_46, x_45); +x_48 = l_Lean_nullKind___closed__2; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; +x_51 = lean_array_push(x_50, x_49); +x_52 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = lean_array_push(x_35, x_53); +x_55 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__12; +x_56 = l_Lean_addMacroScope(x_32, x_55, x_29); +x_57 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__10; +x_58 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__15; +x_59 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_59, 0, x_38); +lean_ctor_set(x_59, 1, x_57); +lean_ctor_set(x_59, 2, x_56); +lean_ctor_set(x_59, 3, x_58); +x_60 = lean_array_push(x_46, x_59); +x_61 = l_Lean_Name_toString___closed__1; +x_62 = l_Lean_Name_toStringWithSep(x_61, x_26); +x_63 = l_Lean_Syntax_mkStrLit(x_62, x_38); +lean_dec(x_62); +x_64 = lean_array_push(x_46, x_63); +x_65 = l___private_Init_Meta_0__Lean_quoteName(x_27); +x_66 = lean_array_push(x_64, x_65); +x_67 = lean_array_push(x_66, x_21); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_48); +lean_ctor_set(x_68, 1, x_67); +x_69 = lean_array_push(x_60, x_68); +x_70 = l_myMacro____x40_Init_Notation___hyg_38____closed__8; +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_11379____closed__7; +x_73 = lean_array_push(x_72, x_71); +x_74 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +x_76 = lean_array_push(x_54, x_75); +x_77 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_76); +x_79 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__7; +x_80 = lean_array_push(x_79, x_78); +x_81 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_80); +x_83 = !lean_is_exclusive(x_2); +if (x_83 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_83 = lean_ctor_get(x_2, 4); -lean_inc(x_81); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_1); -lean_ctor_set(x_84, 1, x_81); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_83); -lean_ctor_set(x_2, 4, x_85); -x_86 = l_Lean_Elab_Command_elabCommand(x_81, x_2, x_3, x_32); +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_2, 4); +lean_inc(x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_1); +lean_ctor_set(x_85, 1, x_82); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_84); +lean_ctor_set(x_2, 4, x_86); +x_87 = l_Lean_Elab_Command_elabCommand(x_82, x_2, x_3, x_33); lean_dec(x_2); -return x_86; +return x_87; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_87 = lean_ctor_get(x_2, 0); -x_88 = lean_ctor_get(x_2, 1); -x_89 = lean_ctor_get(x_2, 2); -x_90 = lean_ctor_get(x_2, 3); -x_91 = lean_ctor_get(x_2, 4); -x_92 = lean_ctor_get(x_2, 5); -x_93 = lean_ctor_get(x_2, 6); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_88 = lean_ctor_get(x_2, 0); +x_89 = lean_ctor_get(x_2, 1); +x_90 = lean_ctor_get(x_2, 2); +x_91 = lean_ctor_get(x_2, 3); +x_92 = lean_ctor_get(x_2, 4); +x_93 = lean_ctor_get(x_2, 5); +x_94 = lean_ctor_get(x_2, 6); +lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); lean_inc(x_91); lean_inc(x_90); lean_inc(x_89); lean_inc(x_88); -lean_inc(x_87); lean_dec(x_2); -lean_inc(x_81); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_1); -lean_ctor_set(x_94, 1, x_81); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_91); -x_96 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_96, 0, x_87); -lean_ctor_set(x_96, 1, x_88); -lean_ctor_set(x_96, 2, x_89); -lean_ctor_set(x_96, 3, x_90); -lean_ctor_set(x_96, 4, x_95); -lean_ctor_set(x_96, 5, x_92); -lean_ctor_set(x_96, 6, x_93); -x_97 = l_Lean_Elab_Command_elabCommand(x_81, x_96, x_3, x_32); -lean_dec(x_96); -return x_97; +lean_inc(x_82); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_1); +lean_ctor_set(x_95, 1, x_82); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_92); +x_97 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_97, 0, x_88); +lean_ctor_set(x_97, 1, x_89); +lean_ctor_set(x_97, 2, x_90); +lean_ctor_set(x_97, 3, x_91); +lean_ctor_set(x_97, 4, x_96); +lean_ctor_set(x_97, 5, x_93); +lean_ctor_set(x_97, 6, x_94); +x_98 = l_Lean_Elab_Command_elabCommand(x_82, x_97, x_3, x_33); +lean_dec(x_97); +return x_98; } } else { -uint8_t x_98; +uint8_t x_99; lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_98 = !lean_is_exclusive(x_17); -if (x_98 == 0) +x_99 = !lean_is_exclusive(x_18); +if (x_99 == 0) { -return x_17; +return x_18; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_17, 0); -x_100 = lean_ctor_get(x_17, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_18, 0); +x_101 = lean_ctor_get(x_18, 1); +lean_inc(x_101); lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_17); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_dec(x_18); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; } } } diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 67817fbb2c..7a2dae0326 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -47,6 +47,7 @@ lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__1___boxed lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); extern lean_object* l_Lean_Core_instMonadEnvCoreM___closed__2; +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isType___at_Lean_Elab_Term_ensureType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_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_object* l_Lean_Elab_Term_tryPostponeIfHasMVars_match__1(lean_object*); @@ -65,7 +66,6 @@ lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_1058____closed_ lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334____closed__1; lean_object* l_Lean_Elab_Term_Context_levelNames___default; 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*); @@ -106,6 +106,7 @@ extern lean_object* l_Lean_InternalExceptionId_toString___closed__1; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Term_tryPostpone___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__2; lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__6; extern lean_object* l_Lean_Level_LevelToFormat_toResult___closed__3; @@ -149,8 +150,10 @@ lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar_match__1___rarg(lean_obj lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__3___closed__1; extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__8; lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__1; +lean_object* l_Lean_Elab_Term_isMonadApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeOf(lean_object*); lean_object* l_Lean_Elab_Term_elabQuotedName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_State_letRecsToLift___default; lean_object* l_Lean_MacroScopesView_format(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__3; @@ -287,6 +290,7 @@ lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logE lean_object* l_Lean_Elab_Term_instInhabitedTermElabM(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381____closed__1; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__2; uint8_t l_Lean_Elab_Term_isValidUnboundImplicitName(lean_object*); @@ -310,6 +314,7 @@ lean_object* l_Lean_Elab_Term_elabNumLit_match__1___rarg(lean_object*, lean_obje extern lean_object* l_Lean_Meta_decLevel___rarg___lambda__1___closed__2; extern lean_object* l_Lean_levelZero; lean_object* l_Lean_Elab_Term_elabStrLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isMonadApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___closed__6; lean_object* l_Lean_Meta_ppGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -340,6 +345,7 @@ lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__3; lean_object* l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___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___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1; uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_dropTermParens_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabHole(lean_object*); @@ -390,6 +396,7 @@ lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___lambda__1(lean_object*, l lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_observing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutMacroStackAtErr(lean_object*); extern lean_object* l_Lean_Core_instMonadRefCoreM___closed__1; lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__4; @@ -459,7 +466,6 @@ lean_object* l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Te lean_object* l_Lean_Elab_Term_elabQuotedName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_trySynthInstance___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_liftAttrM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2; lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -541,7 +547,7 @@ lean_object* l_Lean_Elab_Term_mkTypeMismatchError_match__1___rarg(lean_object*, lean_object* l___regBuiltin_Lean_Elab_Term_elabCharLit(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabOptLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762_(lean_object*); lean_object* l_Lean_Elab_Term_setElabConfig(lean_object*); lean_object* l_Lean_Elab_Term_getLetRecsToLift(lean_object*); lean_object* l_Lean_Elab_Term_liftLevelM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -584,6 +590,7 @@ lean_object* l_Lean_Elab_Term_applyResult___boxed(lean_object*, lean_object*, le lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2___closed__4; lean_object* l_Lean_Elab_Term_getMainModule(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_throwTypeExcepted___rarg___closed__2; +lean_object* l_Lean_Elab_Term_isMonadApp_match__1(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__5; lean_object* l_Lean_Elab_Term_mkTermElabAttribute(lean_object*); extern lean_object* l_Lean_numLitKind___closed__2; @@ -823,6 +830,7 @@ extern lean_object* l_Lean_ppGoal_pushPending___closed__1; 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* l_Lean_Elab_Term_observing___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_liftLevelM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___closed__5; lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); @@ -846,6 +854,7 @@ lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Ter lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabCharLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3(lean_object*); lean_object* l_Lean_Elab_Term_Context_macroStack___default; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe_match__1(lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); @@ -981,7 +990,7 @@ lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos_match__2___rarg(lean_ lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEq___rarg___lambda__2___closed__4; -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334_(lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381_(lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1123,6 +1132,7 @@ lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object*, lean_object*, lean_ lean_object* l_Lean_Meta_mkFreshTypeMVar___at___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionToSorry___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isMonadApp_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; lean_object* l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(lean_object*); lean_object* l_Lean_Elab_Term_elabTermWithoutImplicitLambdas___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -14487,6 +14497,199 @@ lean_dec(x_3); return x_9; } } +lean_object* l_Lean_Elab_Term_isMonadApp_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_apply_2(x_2, x_6, x_7); +return x_8; +} +} +} +lean_object* l_Lean_Elab_Term_isMonadApp_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_isMonadApp_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_isMonadApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeApp_x3f(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; +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; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_10, 0); +lean_inc(x_19); +lean_dec(x_10); +x_20 = lean_ctor_get(x_9, 1); +lean_inc(x_20); +lean_dec(x_9); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_20); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +x_26 = 0; +x_27 = lean_box(x_26); +lean_ctor_set(x_22, 0, x_27); +return x_22; +} +else +{ +lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_dec(x_22); +x_29 = 0; +x_30 = lean_box(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; +} +} +else +{ +uint8_t x_32; +lean_dec(x_23); +x_32 = !lean_is_exclusive(x_22); +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_22, 0); +lean_dec(x_33); +x_34 = 1; +x_35 = lean_box(x_34); +lean_ctor_set(x_22, 0, x_35); +return x_22; +} +else +{ +lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_dec(x_22); +x_37 = 1; +x_38 = lean_box(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; +} +} +} +} +else +{ +uint8_t x_40; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_40 = !lean_is_exclusive(x_9); +if (x_40 == 0) +{ +return x_9; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_9, 0); +x_42 = lean_ctor_get(x_9, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_9); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +} +lean_object* l_Lean_Elab_Term_isMonadApp___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_Term_isMonadApp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} lean_object* l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -15359,372 +15562,464 @@ x_19 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_try return x_19; } } -lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___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) { _start: { -lean_object* x_13; uint8_t x_14; lean_object* x_61; lean_object* x_62; uint8_t x_63; uint8_t x_64; -x_13 = lean_box(0); -x_61 = l_Lean_Expr_getAppFn(x_4); -x_62 = l_Lean_Expr_getAppFn(x_3); -x_63 = l_Lean_Expr_isMVar(x_62); -lean_dec(x_62); -x_64 = l_Lean_Expr_isMVar(x_61); -lean_dec(x_61); -if (x_63 == 0) -{ -if (x_64 == 0) -{ -uint8_t x_65; -x_65 = 1; -x_14 = x_65; -goto block_60; -} -else -{ -lean_object* x_66; uint8_t x_67; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_66 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_7); -lean_dec(x_6); -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) -{ -lean_object* x_68; -x_68 = lean_ctor_get(x_66, 0); -lean_dec(x_68); -lean_ctor_set(x_66, 0, x_13); -return x_66; -} -else -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); -lean_dec(x_66); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_13); -lean_ctor_set(x_70, 1, x_69); -return x_70; +lean_object* x_11; +x_11 = lean_apply_9(x_1, x_4, x_5, x_2, x_3, x_6, x_7, x_8, x_9, x_10); +return x_11; } } -} -else +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: { -if (x_64 == 0) -{ -uint8_t x_71; -x_71 = 0; -x_14 = x_71; -goto block_60; -} -else -{ -lean_object* x_72; uint8_t x_73; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_72 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_7); -lean_dec(x_6); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -lean_object* x_74; -x_74 = lean_ctor_get(x_72, 0); -lean_dec(x_74); -lean_ctor_set(x_72, 0, x_13); -return x_72; -} -else -{ -lean_object* x_75; lean_object* x_76; -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); -lean_dec(x_72); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_13); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -} -block_60: +lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg___lambda__1), 10, 3); +lean_closure_set(x_10, 0, x_2); +lean_closure_set(x_10, 1, x_3); +lean_closure_set(x_10, 2, x_4); +x_11 = lean_box(0); +x_12 = 0; +x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(x_12, x_11, x_1, x_10, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_13) == 0) { +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) { -lean_object* x_15; lean_object* x_16; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_4); -x_15 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 0) +return x_13; +} +else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_18 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_3, x_4, x_5, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_17); -if (lean_obj_tag(x_18) == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +return x_13; +} +else { lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Meta_mkPure___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1(x_2, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_20); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_21, 0, x_24); +lean_inc(x_19); +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); return x_21; } -else +} +} +} +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3(lean_object* x_1) { +_start: { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_21, 0); -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg), 9, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_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_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_8); +x_16 = l_Lean_Elab_Term_isMonadApp(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_16, 1); +x_21 = lean_ctor_get(x_16, 0); +lean_dec(x_21); +x_22 = l_Lean_Expr_getAppFn(x_8); +lean_dec(x_8); +x_23 = l_Lean_Expr_isMVar(x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; +lean_free_object(x_16); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_5); +x_24 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_20); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_21); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_25); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_Meta_mkPure___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1(x_6, x_25, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +lean_dec(x_10); +lean_dec(x_9); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +lean_dec(x_5); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_27, 0, x_30); +return x_27; } else { -uint8_t x_29; -x_29 = !lean_is_exclusive(x_21); -if (x_29 == 0) -{ -lean_object* x_30; -x_30 = lean_ctor_get(x_21, 0); -lean_dec(x_30); -lean_ctor_set_tag(x_21, 0); -lean_ctor_set(x_21, 0, x_13); -return x_21; -} -else -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_21, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); lean_inc(x_31); -lean_dec(x_21); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_13); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_dec(x_27); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_31); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_27); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_27, 0); +lean_dec(x_36); +lean_ctor_set_tag(x_27, 0); +lean_ctor_set(x_27, 0, x_5); +return x_27; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_27, 1); +lean_inc(x_37); +lean_dec(x_27); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_5); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -uint8_t x_33; +uint8_t x_39; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); lean_dec(x_6); +x_39 = !lean_is_exclusive(x_24); +if (x_39 == 0) +{ +lean_object* x_40; +x_40 = lean_ctor_get(x_24, 0); +lean_dec(x_40); +lean_ctor_set_tag(x_24, 0); +lean_ctor_set(x_24, 0, x_5); +return x_24; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_24, 1); +lean_inc(x_41); +lean_dec(x_24); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_5); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_33 = !lean_is_exclusive(x_18); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_18, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_18, 0); -lean_ctor_set(x_18, 0, x_13); -return x_18; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_18, 1); -lean_inc(x_35); -lean_dec(x_18); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_13); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} +lean_dec(x_1); +lean_ctor_set(x_16, 0, x_5); +return x_16; } } else { -uint8_t x_37; +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_16, 1); +lean_inc(x_43); lean_dec(x_16); +x_44 = l_Lean_Expr_getAppFn(x_8); +lean_dec(x_8); +x_45 = l_Lean_Expr_isMVar(x_44); +lean_dec(x_44); +if (x_45 == 0) +{ +lean_object* x_46; +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_5); +x_46 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_43); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_Lean_Meta_mkPure___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1(x_6, x_47, x_9, x_10, x_11, x_12, x_13, x_14, x_48); +lean_dec(x_10); +lean_dec(x_9); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_5); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_50); +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 +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_49, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_56 = x_49; +} else { + lean_dec_ref(x_49); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_56; + lean_ctor_set_tag(x_57, 0); +} +lean_ctor_set(x_57, 0, x_5); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +x_58 = lean_ctor_get(x_46, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_59 = x_46; +} else { + lean_dec_ref(x_46); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_59; + lean_ctor_set_tag(x_60, 0); +} +lean_ctor_set(x_60, 0, x_5); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +else +{ +lean_object* x_61; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_5); +lean_ctor_set(x_61, 1, x_43); +return x_61; +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_62 = !lean_is_exclusive(x_16); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_16, 0); +lean_dec(x_63); +lean_ctor_set(x_16, 0, x_5); +return x_16; +} +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_16, 1); +lean_inc(x_64); +lean_dec(x_16); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_5); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +else +{ +uint8_t x_66; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_37 = !lean_is_exclusive(x_15); -if (x_37 == 0) +x_66 = !lean_is_exclusive(x_16); +if (x_66 == 0) { -lean_object* x_38; -x_38 = lean_ctor_get(x_15, 0); -lean_dec(x_38); -lean_ctor_set(x_15, 0, x_13); +return x_16; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_16, 0); +x_68 = lean_ctor_get(x_16, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_16); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +} +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_box(0); +lean_inc(x_4); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___lambda__1___boxed), 15, 6); +lean_closure_set(x_14, 0, x_1); +lean_closure_set(x_14, 1, x_3); +lean_closure_set(x_14, 2, x_4); +lean_closure_set(x_14, 3, x_5); +lean_closure_set(x_14, 4, x_13); +lean_closure_set(x_14, 5, x_2); +x_15 = l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg(x_4, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_15; } -else -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_15, 1); -lean_inc(x_39); -lean_dec(x_15); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_13); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_object* x_41; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_41 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_3, x_4, x_5, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_Meta_mkPure___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1(x_2, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -lean_dec(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_44) == 0) -{ -uint8_t x_45; -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_44, 0, x_47); -return x_44; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_44, 0); -x_49 = lean_ctor_get(x_44, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_44); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_48); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -return x_51; -} -} -else -{ -uint8_t x_52; -x_52 = !lean_is_exclusive(x_44); -if (x_52 == 0) -{ -lean_object* x_53; -x_53 = lean_ctor_get(x_44, 0); -lean_dec(x_53); -lean_ctor_set_tag(x_44, 0); -lean_ctor_set(x_44, 0, x_13); -return x_44; -} -else -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_44, 1); -lean_inc(x_54); -lean_dec(x_44); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_13); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -else -{ -uint8_t x_56; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_41); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_41, 0); -lean_dec(x_57); -lean_ctor_set_tag(x_41, 0); -lean_ctor_set(x_41, 0, x_13); -return x_41; -} -else -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_41, 1); -lean_inc(x_58); -lean_dec(x_41); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_13); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -} -} } lean_object* l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: @@ -15746,6 +16041,15 @@ lean_dec(x_3); return x_10; } } +lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_7); +return x_16; +} +} lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -16150,7 +16454,7 @@ x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); if (lean_obj_tag(x_29) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_30; lean_object* x_31; lean_free_object(x_20); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); @@ -16165,6 +16469,9 @@ lean_inc(x_4); lean_inc(x_17); lean_inc(x_1); x_31 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_26, x_27, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); if (lean_obj_tag(x_32) == 0) @@ -16221,210 +16528,6 @@ return x_40; else { uint8_t x_41; -x_41 = !lean_is_exclusive(x_29); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_29, 0); -x_43 = lean_ctor_get(x_28, 1); -lean_inc(x_43); -lean_dec(x_28); -x_44 = lean_ctor_get(x_42, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_26); -lean_inc(x_44); -x_46 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_44, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; uint8_t x_48; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_unbox(x_47); -lean_dec(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_70; lean_object* x_71; -lean_free_object(x_29); -lean_free_object(x_20); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); -x_50 = l_Lean_Syntax_mkApp___closed__1; -lean_inc(x_44); -x_51 = lean_array_push(x_50, x_44); -lean_inc(x_26); -x_52 = lean_array_push(x_51, x_26); -x_70 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_71 = l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f___spec__1(x_70, x_52, x_6, x_7, x_8, x_9, x_10, x_11, x_49); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -x_74 = l_Lean_Elab_Term_synthesizeInst(x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_45); -x_77 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_76); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_17); -x_80 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_79); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_14); -x_83 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_82); -if (lean_obj_tag(x_83) == 0) -{ -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; -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_86 = lean_box(0); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_86); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_81); -lean_ctor_set(x_88, 1, x_87); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_78); -lean_ctor_set(x_89, 1, x_88); -x_90 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; -lean_inc(x_89); -x_91 = l_Lean_mkConst(x_90, x_89); -x_92 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; -lean_inc(x_44); -x_93 = lean_array_push(x_92, x_44); -lean_inc(x_26); -x_94 = lean_array_push(x_93, x_26); -lean_inc(x_75); -x_95 = lean_array_push(x_94, x_75); -lean_inc(x_45); -x_96 = lean_array_push(x_95, x_45); -lean_inc(x_4); -x_97 = lean_array_push(x_96, x_4); -x_98 = l_Lean_mkAppN(x_91, x_97); -lean_dec(x_97); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_98); -x_99 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_98, x_6, x_7, x_8, x_9, x_10, x_11, x_85); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_14); -x_102 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_100, x_6, x_7, x_8, x_9, x_10, x_11, x_101); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; uint8_t x_104; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_unbox(x_103); -lean_dec(x_103); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_98); -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -lean_dec(x_102); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_26); -x_106 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_105); -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_89); -lean_dec(x_75); -lean_dec(x_45); -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec(x_106); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_17); -lean_inc(x_14); -lean_inc(x_1); -x_109 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_108); -if (lean_obj_tag(x_109) == 0) -{ -lean_dec(x_44); -lean_dec(x_27); -lean_dec(x_26); lean_dec(x_17); lean_dec(x_14); lean_dec(x_11); @@ -16436,142 +16539,380 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_109; +x_41 = !lean_is_exclusive(x_31); +if (x_41 == 0) +{ +return x_31; } else { -lean_object* x_110; -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -lean_dec(x_109); -x_53 = x_110; -goto block_69; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_31, 0); +x_43 = lean_ctor_get(x_31, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_31); +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 { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_106, 1); -lean_inc(x_111); -lean_dec(x_106); -x_112 = lean_ctor_get(x_107, 0); -lean_inc(x_112); +uint8_t x_45; +x_45 = !lean_is_exclusive(x_29); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_46 = lean_ctor_get(x_29, 0); +x_47 = lean_ctor_get(x_28, 1); +lean_inc(x_47); +lean_dec(x_28); +x_48 = lean_ctor_get(x_46, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_dec(x_46); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_26); +lean_inc(x_48); +x_50 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_48, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; uint8_t x_52; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +lean_dec(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_78; lean_object* x_79; +lean_free_object(x_29); +lean_free_object(x_20); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = l_Lean_Syntax_mkApp___closed__1; +lean_inc(x_48); +x_55 = lean_array_push(x_54, x_48); +lean_inc(x_26); +x_56 = lean_array_push(x_55, x_26); +x_78 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_79 = l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f___spec__1(x_78, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_82 = l_Lean_Elab_Term_synthesizeInst(x_80, x_6, x_7, x_8, x_9, x_10, x_11, x_81); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_49); +x_85 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_84); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_17); +x_88 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_87); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_91 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_90); +if (lean_obj_tag(x_91) == 0) +{ +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; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = lean_box(0); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_94); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_89); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_86); +lean_ctor_set(x_97, 1, x_96); +x_98 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; +lean_inc(x_97); +x_99 = l_Lean_mkConst(x_98, x_97); +x_100 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; +lean_inc(x_48); +x_101 = lean_array_push(x_100, x_48); +lean_inc(x_26); +x_102 = lean_array_push(x_101, x_26); +lean_inc(x_83); +x_103 = lean_array_push(x_102, x_83); +lean_inc(x_49); +x_104 = lean_array_push(x_103, x_49); +lean_inc(x_4); +x_105 = lean_array_push(x_104, x_4); +x_106 = l_Lean_mkAppN(x_99, x_105); +lean_dec(x_105); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_106); +x_107 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_106, x_6, x_7, x_8, x_9, x_10, x_11, x_93); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); lean_dec(x_107); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_45); -x_113 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_45, x_8, x_9, x_10, x_11, x_111); -if (lean_obj_tag(x_113) == 0) +lean_inc(x_14); +x_110 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_108, x_6, x_7, x_8, x_9, x_10, x_11, x_109); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); +lean_object* x_111; uint8_t x_112; +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_unbox(x_111); +lean_dec(x_111); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_106); +x_113 = lean_ctor_get(x_110, 1); +lean_inc(x_113); +lean_dec(x_110); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_26); +x_114 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_113); +x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); -lean_dec(x_113); +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_116; lean_object* x_117; +lean_dec(x_97); +lean_dec(x_83); +lean_dec(x_49); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_17); +lean_inc(x_14); +lean_inc(x_1); +x_117 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_116); +if (lean_obj_tag(x_117) == 0) +{ +lean_dec(x_48); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_117; +} +else +{ +lean_object* x_118; +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec(x_117); +x_57 = x_118; +goto block_77; +} +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_114, 1); +lean_inc(x_119); +lean_dec(x_114); +x_120 = lean_ctor_get(x_115, 0); +lean_inc(x_120); +lean_dec(x_115); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_49); +x_121 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_49, x_8, x_9, x_10, x_11, x_119); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_27); -x_116 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_27, x_8, x_9, x_10, x_11, x_115); -if (lean_obj_tag(x_116) == 0) +x_124 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_27, x_8, x_9, x_10, x_11, x_123); +if (lean_obj_tag(x_124) == 0) { -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; uint8_t x_130; lean_object* x_131; lean_object* x_132; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_86); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_114); -lean_ctor_set(x_120, 1, x_119); -x_121 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; -x_122 = l_Lean_mkConst(x_121, x_120); -x_123 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; -lean_inc(x_45); -x_124 = lean_array_push(x_123, x_45); -x_125 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; -x_126 = lean_array_push(x_124, x_125); +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; uint8_t x_138; lean_object* x_139; lean_object* x_140; +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 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_94); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_122); +lean_ctor_set(x_128, 1, x_127); +x_129 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; +x_130 = l_Lean_mkConst(x_129, x_128); +x_131 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; +lean_inc(x_49); +x_132 = lean_array_push(x_131, x_49); +x_133 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; +x_134 = lean_array_push(x_132, x_133); lean_inc(x_27); -x_127 = lean_array_push(x_126, x_27); -x_128 = l_Lean_mkAppN(x_122, x_127); -lean_dec(x_127); -x_129 = l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__10; -x_130 = 0; -lean_inc(x_45); -x_131 = l_Lean_mkForall(x_129, x_130, x_45, x_128); +x_135 = lean_array_push(x_134, x_27); +x_136 = l_Lean_mkAppN(x_130, x_135); +lean_dec(x_135); +x_137 = l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__10; +x_138 = 0; +lean_inc(x_49); +x_139 = l_Lean_mkForall(x_137, x_138, x_49, x_136); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_6); -x_132 = l_Lean_Elab_Term_synthesizeInst(x_131, x_6, x_7, x_8, x_9, x_10, x_11, x_118); -if (lean_obj_tag(x_132) == 0) +x_140 = l_Lean_Elab_Term_synthesizeInst(x_139, x_6, x_7, x_8, x_9, x_10, x_11, x_126); +if (lean_obj_tag(x_140) == 0) { -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; -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 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__6; -x_136 = l_Lean_mkConst(x_135, x_89); -x_137 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; -lean_inc(x_44); -x_138 = lean_array_push(x_137, x_44); +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; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__6; +x_144 = l_Lean_mkConst(x_143, x_97); +x_145 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; +lean_inc(x_48); +x_146 = lean_array_push(x_145, x_48); lean_inc(x_26); -x_139 = lean_array_push(x_138, x_26); -x_140 = lean_array_push(x_139, x_45); +x_147 = lean_array_push(x_146, x_26); +x_148 = lean_array_push(x_147, x_49); lean_inc(x_27); -x_141 = lean_array_push(x_140, x_27); -x_142 = lean_array_push(x_141, x_75); -x_143 = lean_array_push(x_142, x_133); -x_144 = lean_array_push(x_143, x_112); +x_149 = lean_array_push(x_148, x_27); +x_150 = lean_array_push(x_149, x_83); +x_151 = lean_array_push(x_150, x_141); +x_152 = lean_array_push(x_151, x_120); lean_inc(x_4); -x_145 = lean_array_push(x_144, x_4); -x_146 = l_Lean_mkAppN(x_136, x_145); -lean_dec(x_145); +x_153 = lean_array_push(x_152, x_4); +x_154 = l_Lean_mkAppN(x_144, x_153); +lean_dec(x_153); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_146); -x_147 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_146, x_6, x_7, x_8, x_9, x_10, x_11, x_134); -if (lean_obj_tag(x_147) == 0) +lean_inc(x_154); +x_155 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_154, x_6, x_7, x_8, x_9, x_10, x_11, x_142); +if (lean_obj_tag(x_155) == 0) { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -lean_dec(x_147); +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_14); -x_150 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_148, x_6, x_7, x_8, x_9, x_10, x_11, x_149); -if (lean_obj_tag(x_150) == 0) +x_158 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_156, x_6, x_7, x_8, x_9, x_10, x_11, x_157); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_151; uint8_t x_152; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_unbox(x_151); -lean_dec(x_151); -if (x_152 == 0) +lean_object* x_159; uint8_t x_160; +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_unbox(x_159); +lean_dec(x_159); +if (x_160 == 0) { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_146); -x_153 = lean_ctor_get(x_150, 1); -lean_inc(x_153); -lean_dec(x_150); -x_154 = lean_box(0); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_154); +x_161 = lean_ctor_get(x_158, 1); +lean_inc(x_161); +lean_dec(x_158); +x_162 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -16581,125 +16922,17 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_17); lean_inc(x_14); -x_155 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_154, x_6, x_7, x_8, x_9, x_10, x_11, x_153); -x_156 = lean_ctor_get(x_155, 1); -lean_inc(x_156); -lean_dec(x_155); -x_53 = x_156; -goto block_69; -} -else -{ -uint8_t x_157; -lean_dec(x_44); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_157 = !lean_is_exclusive(x_150); -if (x_157 == 0) -{ -lean_object* x_158; -x_158 = lean_ctor_get(x_150, 0); -lean_dec(x_158); -lean_ctor_set(x_150, 0, x_146); -return x_150; -} -else -{ -lean_object* x_159; lean_object* x_160; -x_159 = lean_ctor_get(x_150, 1); -lean_inc(x_159); -lean_dec(x_150); -x_160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_160, 0, x_146); -lean_ctor_set(x_160, 1, x_159); -return x_160; -} -} -} -else -{ -lean_object* x_161; -lean_dec(x_146); -x_161 = lean_ctor_get(x_150, 1); -lean_inc(x_161); -lean_dec(x_150); -x_53 = x_161; -goto block_69; -} -} -else -{ -lean_object* x_162; -lean_dec(x_146); -x_162 = lean_ctor_get(x_147, 1); -lean_inc(x_162); -lean_dec(x_147); -x_53 = x_162; -goto block_69; -} -} -else -{ -lean_object* x_163; -lean_dec(x_112); -lean_dec(x_89); -lean_dec(x_75); -lean_dec(x_45); -x_163 = lean_ctor_get(x_132, 1); -lean_inc(x_163); -lean_dec(x_132); -x_53 = x_163; -goto block_69; -} -} -else -{ -lean_object* x_164; -lean_dec(x_114); -lean_dec(x_112); -lean_dec(x_89); -lean_dec(x_75); -lean_dec(x_45); -x_164 = lean_ctor_get(x_116, 1); +x_163 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_162, x_6, x_7, x_8, x_9, x_10, x_11, x_161); +x_164 = lean_ctor_get(x_163, 1); lean_inc(x_164); -lean_dec(x_116); -x_53 = x_164; -goto block_69; -} +lean_dec(x_163); +x_57 = x_164; +goto block_77; } else { -lean_object* x_165; -lean_dec(x_112); -lean_dec(x_89); -lean_dec(x_75); -lean_dec(x_45); -x_165 = lean_ctor_get(x_113, 1); -lean_inc(x_165); -lean_dec(x_113); -x_53 = x_165; -goto block_69; -} -} -} -else -{ -uint8_t x_166; -lean_dec(x_89); -lean_dec(x_75); -lean_dec(x_45); -lean_dec(x_44); +uint8_t x_165; +lean_dec(x_48); lean_dec(x_27); lean_dec(x_26); lean_dec(x_17); @@ -16713,132 +16946,240 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_166 = !lean_is_exclusive(x_102); -if (x_166 == 0) +x_165 = !lean_is_exclusive(x_158); +if (x_165 == 0) { -lean_object* x_167; -x_167 = lean_ctor_get(x_102, 0); -lean_dec(x_167); -lean_ctor_set(x_102, 0, x_98); -return x_102; +lean_object* x_166; +x_166 = lean_ctor_get(x_158, 0); +lean_dec(x_166); +lean_ctor_set(x_158, 0, x_154); +return x_158; } else { -lean_object* x_168; lean_object* x_169; -x_168 = lean_ctor_get(x_102, 1); -lean_inc(x_168); -lean_dec(x_102); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_98); -lean_ctor_set(x_169, 1, x_168); -return x_169; +lean_object* x_167; lean_object* x_168; +x_167 = lean_ctor_get(x_158, 1); +lean_inc(x_167); +lean_dec(x_158); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_154); +lean_ctor_set(x_168, 1, x_167); +return x_168; } } } else { +lean_object* x_169; +lean_dec(x_154); +x_169 = lean_ctor_get(x_158, 1); +lean_inc(x_169); +lean_dec(x_158); +x_57 = x_169; +goto block_77; +} +} +else +{ lean_object* x_170; -lean_dec(x_98); -lean_dec(x_89); -lean_dec(x_75); -lean_dec(x_45); -x_170 = lean_ctor_get(x_102, 1); +lean_dec(x_154); +x_170 = lean_ctor_get(x_155, 1); lean_inc(x_170); -lean_dec(x_102); -x_53 = x_170; -goto block_69; +lean_dec(x_155); +x_57 = x_170; +goto block_77; } } else { lean_object* x_171; -lean_dec(x_98); -lean_dec(x_89); -lean_dec(x_75); -lean_dec(x_45); -x_171 = lean_ctor_get(x_99, 1); +lean_dec(x_120); +lean_dec(x_97); +lean_dec(x_83); +lean_dec(x_49); +x_171 = lean_ctor_get(x_140, 1); lean_inc(x_171); -lean_dec(x_99); -x_53 = x_171; -goto block_69; +lean_dec(x_140); +x_57 = x_171; +goto block_77; } } else { lean_object* x_172; -lean_dec(x_81); -lean_dec(x_78); -lean_dec(x_75); -lean_dec(x_45); -x_172 = lean_ctor_get(x_83, 1); -lean_inc(x_172); +lean_dec(x_122); +lean_dec(x_120); +lean_dec(x_97); lean_dec(x_83); -x_53 = x_172; -goto block_69; +lean_dec(x_49); +x_172 = lean_ctor_get(x_124, 1); +lean_inc(x_172); +lean_dec(x_124); +x_57 = x_172; +goto block_77; } } else { lean_object* x_173; -lean_dec(x_78); -lean_dec(x_75); -lean_dec(x_45); -x_173 = lean_ctor_get(x_80, 1); +lean_dec(x_120); +lean_dec(x_97); +lean_dec(x_83); +lean_dec(x_49); +x_173 = lean_ctor_get(x_121, 1); lean_inc(x_173); -lean_dec(x_80); -x_53 = x_173; -goto block_69; +lean_dec(x_121); +x_57 = x_173; +goto block_77; +} } } else { -lean_object* x_174; -lean_dec(x_75); -lean_dec(x_45); -x_174 = lean_ctor_get(x_77, 1); -lean_inc(x_174); -lean_dec(x_77); -x_53 = x_174; -goto block_69; -} -} -else +uint8_t x_174; +lean_dec(x_97); +lean_dec(x_83); +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_174 = !lean_is_exclusive(x_110); +if (x_174 == 0) { lean_object* x_175; -lean_dec(x_45); -x_175 = lean_ctor_get(x_74, 1); -lean_inc(x_175); -lean_dec(x_74); -x_53 = x_175; -goto block_69; +x_175 = lean_ctor_get(x_110, 0); +lean_dec(x_175); +lean_ctor_set(x_110, 0, x_106); +return x_110; +} +else +{ +lean_object* x_176; lean_object* x_177; +x_176 = lean_ctor_get(x_110, 1); +lean_inc(x_176); +lean_dec(x_110); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_106); +lean_ctor_set(x_177, 1, x_176); +return x_177; +} } } else { -lean_object* x_176; -lean_dec(x_45); -x_176 = lean_ctor_get(x_71, 1); -lean_inc(x_176); -lean_dec(x_71); -x_53 = x_176; -goto block_69; +lean_object* x_178; +lean_dec(x_106); +lean_dec(x_97); +lean_dec(x_83); +lean_dec(x_49); +x_178 = lean_ctor_get(x_110, 1); +lean_inc(x_178); +lean_dec(x_110); +x_57 = x_178; +goto block_77; } -block_69: +} +else { -lean_object* x_54; lean_object* x_55; +lean_object* x_179; +lean_dec(x_106); +lean_dec(x_97); +lean_dec(x_83); +lean_dec(x_49); +x_179 = lean_ctor_get(x_107, 1); +lean_inc(x_179); +lean_dec(x_107); +x_57 = x_179; +goto block_77; +} +} +else +{ +lean_object* x_180; +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_83); +lean_dec(x_49); +x_180 = lean_ctor_get(x_91, 1); +lean_inc(x_180); +lean_dec(x_91); +x_57 = x_180; +goto block_77; +} +} +else +{ +lean_object* x_181; +lean_dec(x_86); +lean_dec(x_83); +lean_dec(x_49); +x_181 = lean_ctor_get(x_88, 1); +lean_inc(x_181); +lean_dec(x_88); +x_57 = x_181; +goto block_77; +} +} +else +{ +lean_object* x_182; +lean_dec(x_83); +lean_dec(x_49); +x_182 = lean_ctor_get(x_85, 1); +lean_inc(x_182); +lean_dec(x_85); +x_57 = x_182; +goto block_77; +} +} +else +{ +lean_object* x_183; +lean_dec(x_49); +x_183 = lean_ctor_get(x_82, 1); +lean_inc(x_183); +lean_dec(x_82); +x_57 = x_183; +goto block_77; +} +} +else +{ +lean_object* x_184; +lean_dec(x_49); +x_184 = lean_ctor_get(x_79, 1); +lean_inc(x_184); +lean_dec(x_79); +x_57 = x_184; +goto block_77; +} +block_77: +{ +lean_object* x_58; lean_object* x_59; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_54 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_44, x_6, x_7, x_8, x_9, x_10, x_11, x_53); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -if (lean_obj_tag(x_55) == 0) +x_58 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_48, x_6, x_7, x_8, x_9, x_10, x_11, x_57); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -16848,135 +17189,172 @@ lean_inc(x_6); lean_inc(x_4); lean_inc(x_17); lean_inc(x_1); -x_57 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_26, x_27, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_56); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -if (lean_obj_tag(x_58) == 0) +x_61 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_26, x_27, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_60); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_59); -return x_60; -} -else +lean_object* x_62; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) { -uint8_t x_61; -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_61 = !lean_is_exclusive(x_57); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_57, 0); -lean_dec(x_62); -x_63 = lean_ctor_get(x_58, 0); +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -lean_dec(x_58); -lean_ctor_set(x_57, 0, x_63); -return x_57; +lean_dec(x_61); +x_64 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_63); +return x_64; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_57, 1); -lean_inc(x_64); -lean_dec(x_57); -x_65 = lean_ctor_get(x_58, 0); -lean_inc(x_65); -lean_dec(x_58); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -} -else +uint8_t x_65; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_61); +if (x_65 == 0) { -lean_object* x_67; lean_object* x_68; -lean_dec(x_55); -lean_dec(x_27); -lean_dec(x_26); -x_67 = lean_ctor_get(x_54, 1); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_61, 0); +lean_dec(x_66); +x_67 = lean_ctor_get(x_62, 0); lean_inc(x_67); -lean_dec(x_54); -x_68 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_67); -return x_68; +lean_dec(x_62); +lean_ctor_set(x_61, 0, x_67); +return x_61; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_61, 1); +lean_inc(x_68); +lean_dec(x_61); +x_69 = lean_ctor_get(x_62, 0); +lean_inc(x_69); +lean_dec(x_62); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +return x_70; } } } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_46, 1); -lean_inc(x_177); -lean_dec(x_46); +uint8_t x_71; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_61); +if (x_71 == 0) +{ +return x_61; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_61, 0); +x_73 = lean_ctor_get(x_61, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_61); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; +lean_dec(x_59); +lean_dec(x_27); +lean_dec(x_26); +x_75 = lean_ctor_get(x_58, 1); +lean_inc(x_75); +lean_dec(x_58); +x_76 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_75); +return x_76; +} +} +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_50, 1); +lean_inc(x_185); +lean_dec(x_50); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_178 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_177); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -if (lean_obj_tag(x_179) == 0) +x_186 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_185); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +if (lean_obj_tag(x_187) == 0) { -lean_object* x_180; lean_object* x_181; -lean_dec(x_45); -lean_dec(x_44); +lean_object* x_188; lean_object* x_189; +lean_dec(x_49); +lean_dec(x_48); lean_free_object(x_29); lean_dec(x_27); lean_free_object(x_20); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -lean_dec(x_178); -x_181 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_180); -return x_181; +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +lean_dec(x_186); +x_189 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_188); +return x_189; } else { -lean_object* x_182; uint8_t x_183; -x_182 = lean_ctor_get(x_178, 1); -lean_inc(x_182); -lean_dec(x_178); -x_183 = !lean_is_exclusive(x_179); -if (x_183 == 0) +lean_object* x_190; uint8_t x_191; +x_190 = lean_ctor_get(x_186, 1); +lean_inc(x_190); +lean_dec(x_186); +x_191 = !lean_is_exclusive(x_187); +if (x_191 == 0) { -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; -x_184 = lean_ctor_get(x_179, 0); -lean_ctor_set(x_179, 0, x_44); -lean_ctor_set(x_29, 0, x_45); +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; +x_192 = lean_ctor_get(x_187, 0); +lean_ctor_set(x_187, 0, x_48); +lean_ctor_set(x_29, 0, x_49); lean_ctor_set(x_20, 0, x_27); -x_185 = lean_box(0); -x_186 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_186, 0, x_184); +x_193 = lean_box(0); +x_194 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_194, 0, x_192); lean_inc(x_4); -x_187 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_187, 0, x_4); -x_188 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; -x_189 = lean_array_push(x_188, x_179); -x_190 = lean_array_push(x_189, x_29); -x_191 = lean_array_push(x_190, x_20); -x_192 = lean_array_push(x_191, x_185); -x_193 = lean_array_push(x_192, x_186); -x_194 = lean_array_push(x_193, x_187); -x_195 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; +x_195 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_195, 0, x_4); +x_196 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; +x_197 = lean_array_push(x_196, x_187); +x_198 = lean_array_push(x_197, x_29); +x_199 = lean_array_push(x_198, x_20); +x_200 = lean_array_push(x_199, x_193); +x_201 = lean_array_push(x_200, x_194); +x_202 = lean_array_push(x_201, x_195); +x_203 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_196 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_195, x_194, x_6, x_7, x_8, x_9, x_10, x_11, x_182); -if (lean_obj_tag(x_196) == 0) +x_204 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_203, x_202, x_6, x_7, x_8, x_9, x_10, x_11, x_190); +if (lean_obj_tag(x_204) == 0) { lean_dec(x_17); lean_dec(x_14); @@ -16989,50 +17367,50 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_196; +return x_204; } else { -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -lean_dec(x_196); -x_198 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_185, x_6, x_7, x_8, x_9, x_10, x_11, x_197); +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_204, 1); +lean_inc(x_205); +lean_dec(x_204); +x_206 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_193, x_6, x_7, x_8, x_9, x_10, x_11, x_205); lean_dec(x_7); lean_dec(x_1); -return x_198; +return x_206; } } else { -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; -x_199 = lean_ctor_get(x_179, 0); -lean_inc(x_199); -lean_dec(x_179); -x_200 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_200, 0, x_44); -lean_ctor_set(x_29, 0, x_45); +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; +x_207 = lean_ctor_get(x_187, 0); +lean_inc(x_207); +lean_dec(x_187); +x_208 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_208, 0, x_48); +lean_ctor_set(x_29, 0, x_49); lean_ctor_set(x_20, 0, x_27); -x_201 = lean_box(0); -x_202 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_202, 0, x_199); +x_209 = lean_box(0); +x_210 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_210, 0, x_207); lean_inc(x_4); -x_203 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_203, 0, x_4); -x_204 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; -x_205 = lean_array_push(x_204, x_200); -x_206 = lean_array_push(x_205, x_29); -x_207 = lean_array_push(x_206, x_20); -x_208 = lean_array_push(x_207, x_201); -x_209 = lean_array_push(x_208, x_202); -x_210 = lean_array_push(x_209, x_203); -x_211 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; +x_211 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_211, 0, x_4); +x_212 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; +x_213 = lean_array_push(x_212, x_208); +x_214 = lean_array_push(x_213, x_29); +x_215 = lean_array_push(x_214, x_20); +x_216 = lean_array_push(x_215, x_209); +x_217 = lean_array_push(x_216, x_210); +x_218 = lean_array_push(x_217, x_211); +x_219 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_212 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_211, x_210, x_6, x_7, x_8, x_9, x_10, x_11, x_182); -if (lean_obj_tag(x_212) == 0) +x_220 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_219, x_218, x_6, x_7, x_8, x_9, x_10, x_11, x_190); +if (lean_obj_tag(x_220) == 0) { lean_dec(x_17); lean_dec(x_14); @@ -17045,18 +17423,18 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_212; +return x_220; } else { -lean_object* x_213; lean_object* x_214; -x_213 = lean_ctor_get(x_212, 1); -lean_inc(x_213); -lean_dec(x_212); -x_214 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_201, x_6, x_7, x_8, x_9, x_10, x_11, x_213); +lean_object* x_221; lean_object* x_222; +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_209, x_6, x_7, x_8, x_9, x_10, x_11, x_221); lean_dec(x_7); lean_dec(x_1); -return x_214; +return x_222; } } } @@ -17064,9 +17442,9 @@ return x_214; } else { -uint8_t x_215; -lean_dec(x_45); -lean_dec(x_44); +uint8_t x_223; +lean_dec(x_49); +lean_dec(x_48); lean_free_object(x_29); lean_dec(x_27); lean_dec(x_26); @@ -17082,213 +17460,213 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_215 = !lean_is_exclusive(x_46); -if (x_215 == 0) +x_223 = !lean_is_exclusive(x_50); +if (x_223 == 0) { -return x_46; +return x_50; } else { -lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_216 = lean_ctor_get(x_46, 0); -x_217 = lean_ctor_get(x_46, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_46); -x_218 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_218, 0, x_216); -lean_ctor_set(x_218, 1, x_217); -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_29, 0); -lean_inc(x_219); -lean_dec(x_29); -x_220 = lean_ctor_get(x_28, 1); -lean_inc(x_220); -lean_dec(x_28); -x_221 = lean_ctor_get(x_219, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_219, 1); -lean_inc(x_222); -lean_dec(x_219); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_26); -lean_inc(x_221); -x_223 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_221, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_220); -if (lean_obj_tag(x_223) == 0) -{ -lean_object* x_224; uint8_t x_225; -x_224 = lean_ctor_get(x_223, 0); +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_50, 0); +x_225 = lean_ctor_get(x_50, 1); +lean_inc(x_225); lean_inc(x_224); -x_225 = lean_unbox(x_224); -lean_dec(x_224); -if (x_225 == 0) +lean_dec(x_50); +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_224); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +} +else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_245; lean_object* x_246; -lean_free_object(x_20); -x_226 = lean_ctor_get(x_223, 1); -lean_inc(x_226); -lean_dec(x_223); -x_227 = l_Lean_Syntax_mkApp___closed__1; -lean_inc(x_221); -x_228 = lean_array_push(x_227, x_221); +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_227 = lean_ctor_get(x_29, 0); +lean_inc(x_227); +lean_dec(x_29); +x_228 = lean_ctor_get(x_28, 1); +lean_inc(x_228); +lean_dec(x_28); +x_229 = lean_ctor_get(x_227, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_227, 1); +lean_inc(x_230); +lean_dec(x_227); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); lean_inc(x_26); -x_229 = lean_array_push(x_228, x_26); -x_245 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_246 = l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f___spec__1(x_245, x_229, x_6, x_7, x_8, x_9, x_10, x_11, x_226); -if (lean_obj_tag(x_246) == 0) +lean_inc(x_229); +x_231 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_229, x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_228); +if (lean_obj_tag(x_231) == 0) { -lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -lean_dec(x_246); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -x_249 = l_Lean_Elab_Term_synthesizeInst(x_247, x_6, x_7, x_8, x_9, x_10, x_11, x_248); -if (lean_obj_tag(x_249) == 0) +lean_object* x_232; uint8_t x_233; +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); +x_233 = lean_unbox(x_232); +lean_dec(x_232); +if (x_233 == 0) { -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_249, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -lean_dec(x_249); +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_257; lean_object* x_258; +lean_free_object(x_20); +x_234 = lean_ctor_get(x_231, 1); +lean_inc(x_234); +lean_dec(x_231); +x_235 = l_Lean_Syntax_mkApp___closed__1; +lean_inc(x_229); +x_236 = lean_array_push(x_235, x_229); +lean_inc(x_26); +x_237 = lean_array_push(x_236, x_26); +x_257 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_222); -x_252 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_222, x_6, x_7, x_8, x_9, x_10, x_11, x_251); -if (lean_obj_tag(x_252) == 0) -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_17); -x_255 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_254); -if (lean_obj_tag(x_255) == 0) -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_256 = lean_ctor_get(x_255, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_255, 1); -lean_inc(x_257); -lean_dec(x_255); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_14); -x_258 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_257); +x_258 = l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f___spec__1(x_257, x_237, x_6, x_7, x_8, x_9, x_10, x_11, x_234); if (lean_obj_tag(x_258) == 0) { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +lean_object* x_259; lean_object* x_260; lean_object* x_261; x_259 = lean_ctor_get(x_258, 0); lean_inc(x_259); x_260 = lean_ctor_get(x_258, 1); lean_inc(x_260); lean_dec(x_258); -x_261 = lean_box(0); -x_262 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_262, 0, x_259); -lean_ctor_set(x_262, 1, x_261); -x_263 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_263, 0, x_256); -lean_ctor_set(x_263, 1, x_262); -x_264 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_264, 0, x_253); -lean_ctor_set(x_264, 1, x_263); -x_265 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; -lean_inc(x_264); -x_266 = l_Lean_mkConst(x_265, x_264); -x_267 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; -lean_inc(x_221); -x_268 = lean_array_push(x_267, x_221); -lean_inc(x_26); -x_269 = lean_array_push(x_268, x_26); -lean_inc(x_250); -x_270 = lean_array_push(x_269, x_250); -lean_inc(x_222); -x_271 = lean_array_push(x_270, x_222); -lean_inc(x_4); -x_272 = lean_array_push(x_271, x_4); -x_273 = l_Lean_mkAppN(x_266, x_272); -lean_dec(x_272); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_273); -x_274 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_273, x_6, x_7, x_8, x_9, x_10, x_11, x_260); -if (lean_obj_tag(x_274) == 0) +lean_inc(x_6); +x_261 = l_Lean_Elab_Term_synthesizeInst(x_259, x_6, x_7, x_8, x_9, x_10, x_11, x_260); +if (lean_obj_tag(x_261) == 0) { -lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_275 = lean_ctor_get(x_274, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_274, 1); -lean_inc(x_276); -lean_dec(x_274); +lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec(x_261); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_230); +x_264 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_230, x_6, x_7, x_8, x_9, x_10, x_11, x_263); +if (lean_obj_tag(x_264) == 0) +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +lean_dec(x_264); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_17); +x_267 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_266); +if (lean_obj_tag(x_267) == 0) +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +lean_dec(x_267); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_14); -x_277 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_275, x_6, x_7, x_8, x_9, x_10, x_11, x_276); -if (lean_obj_tag(x_277) == 0) +x_270 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_269); +if (lean_obj_tag(x_270) == 0) { -lean_object* x_278; uint8_t x_279; -x_278 = lean_ctor_get(x_277, 0); -lean_inc(x_278); -x_279 = lean_unbox(x_278); -lean_dec(x_278); -if (x_279 == 0) +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; +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +x_272 = lean_ctor_get(x_270, 1); +lean_inc(x_272); +lean_dec(x_270); +x_273 = lean_box(0); +x_274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_274, 0, x_271); +lean_ctor_set(x_274, 1, x_273); +x_275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_275, 0, x_268); +lean_ctor_set(x_275, 1, x_274); +x_276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_276, 0, x_265); +lean_ctor_set(x_276, 1, x_275); +x_277 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; +lean_inc(x_276); +x_278 = l_Lean_mkConst(x_277, x_276); +x_279 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; +lean_inc(x_229); +x_280 = lean_array_push(x_279, x_229); +lean_inc(x_26); +x_281 = lean_array_push(x_280, x_26); +lean_inc(x_262); +x_282 = lean_array_push(x_281, x_262); +lean_inc(x_230); +x_283 = lean_array_push(x_282, x_230); +lean_inc(x_4); +x_284 = lean_array_push(x_283, x_4); +x_285 = l_Lean_mkAppN(x_278, x_284); +lean_dec(x_284); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_285); +x_286 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_285, x_6, x_7, x_8, x_9, x_10, x_11, x_272); +if (lean_obj_tag(x_286) == 0) { -lean_object* x_280; lean_object* x_281; lean_object* x_282; -lean_dec(x_273); -x_280 = lean_ctor_get(x_277, 1); -lean_inc(x_280); -lean_dec(x_277); +lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_286, 1); +lean_inc(x_288); +lean_dec(x_286); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_289 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_287, x_6, x_7, x_8, x_9, x_10, x_11, x_288); +if (lean_obj_tag(x_289) == 0) +{ +lean_object* x_290; uint8_t x_291; +x_290 = lean_ctor_get(x_289, 0); +lean_inc(x_290); +x_291 = lean_unbox(x_290); +lean_dec(x_290); +if (x_291 == 0) +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; +lean_dec(x_285); +x_292 = lean_ctor_get(x_289, 1); +lean_inc(x_292); +lean_dec(x_289); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_26); -x_281 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_280); -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -if (lean_obj_tag(x_282) == 0) +x_293 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_292); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +if (lean_obj_tag(x_294) == 0) { -lean_object* x_283; lean_object* x_284; -lean_dec(x_264); -lean_dec(x_250); -lean_dec(x_222); -x_283 = lean_ctor_get(x_281, 1); -lean_inc(x_283); -lean_dec(x_281); +lean_object* x_295; lean_object* x_296; +lean_dec(x_276); +lean_dec(x_262); +lean_dec(x_230); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -17300,10 +17678,10 @@ lean_inc(x_4); lean_inc(x_17); lean_inc(x_14); lean_inc(x_1); -x_284 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_283); -if (lean_obj_tag(x_284) == 0) +x_296 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_295); +if (lean_obj_tag(x_296) == 0) { -lean_dec(x_221); +lean_dec(x_229); lean_dec(x_27); lean_dec(x_26); lean_dec(x_17); @@ -17317,142 +17695,142 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_284; +return x_296; } else { -lean_object* x_285; -x_285 = lean_ctor_get(x_284, 1); -lean_inc(x_285); -lean_dec(x_284); -x_230 = x_285; -goto block_244; +lean_object* x_297; +x_297 = lean_ctor_get(x_296, 1); +lean_inc(x_297); +lean_dec(x_296); +x_238 = x_297; +goto block_256; } } else { -lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_286 = lean_ctor_get(x_281, 1); -lean_inc(x_286); -lean_dec(x_281); -x_287 = lean_ctor_get(x_282, 0); -lean_inc(x_287); -lean_dec(x_282); +lean_object* x_298; lean_object* x_299; lean_object* x_300; +x_298 = lean_ctor_get(x_293, 1); +lean_inc(x_298); +lean_dec(x_293); +x_299 = lean_ctor_get(x_294, 0); +lean_inc(x_299); +lean_dec(x_294); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_222); -x_288 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_222, x_8, x_9, x_10, x_11, x_286); -if (lean_obj_tag(x_288) == 0) +lean_inc(x_230); +x_300 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_230, x_8, x_9, x_10, x_11, x_298); +if (lean_obj_tag(x_300) == 0) { -lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -lean_dec(x_288); +lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_301 = lean_ctor_get(x_300, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 1); +lean_inc(x_302); +lean_dec(x_300); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_27); -x_291 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_27, x_8, x_9, x_10, x_11, x_290); -if (lean_obj_tag(x_291) == 0) +x_303 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_27, x_8, x_9, x_10, x_11, x_302); +if (lean_obj_tag(x_303) == 0) { -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; uint8_t x_305; lean_object* x_306; lean_object* x_307; -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_291, 1); -lean_inc(x_293); -lean_dec(x_291); -x_294 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_294, 0, x_292); -lean_ctor_set(x_294, 1, x_261); -x_295 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_295, 0, x_289); -lean_ctor_set(x_295, 1, x_294); -x_296 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; -x_297 = l_Lean_mkConst(x_296, x_295); -x_298 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; -lean_inc(x_222); -x_299 = lean_array_push(x_298, x_222); -x_300 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; -x_301 = lean_array_push(x_299, x_300); +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; uint8_t x_317; lean_object* x_318; lean_object* x_319; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_304); +lean_ctor_set(x_306, 1, x_273); +x_307 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_307, 0, x_301); +lean_ctor_set(x_307, 1, x_306); +x_308 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; +x_309 = l_Lean_mkConst(x_308, x_307); +x_310 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; +lean_inc(x_230); +x_311 = lean_array_push(x_310, x_230); +x_312 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; +x_313 = lean_array_push(x_311, x_312); lean_inc(x_27); -x_302 = lean_array_push(x_301, x_27); -x_303 = l_Lean_mkAppN(x_297, x_302); -lean_dec(x_302); -x_304 = l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__10; -x_305 = 0; -lean_inc(x_222); -x_306 = l_Lean_mkForall(x_304, x_305, x_222, x_303); +x_314 = lean_array_push(x_313, x_27); +x_315 = l_Lean_mkAppN(x_309, x_314); +lean_dec(x_314); +x_316 = l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__10; +x_317 = 0; +lean_inc(x_230); +x_318 = l_Lean_mkForall(x_316, x_317, x_230, x_315); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_6); -x_307 = l_Lean_Elab_Term_synthesizeInst(x_306, x_6, x_7, x_8, x_9, x_10, x_11, x_293); -if (lean_obj_tag(x_307) == 0) +x_319 = l_Lean_Elab_Term_synthesizeInst(x_318, x_6, x_7, x_8, x_9, x_10, x_11, x_305); +if (lean_obj_tag(x_319) == 0) { -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; -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_307, 1); -lean_inc(x_309); -lean_dec(x_307); -x_310 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__6; -x_311 = l_Lean_mkConst(x_310, x_264); -x_312 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; -lean_inc(x_221); -x_313 = lean_array_push(x_312, x_221); +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_320 = lean_ctor_get(x_319, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_319, 1); +lean_inc(x_321); +lean_dec(x_319); +x_322 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__6; +x_323 = l_Lean_mkConst(x_322, x_276); +x_324 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; +lean_inc(x_229); +x_325 = lean_array_push(x_324, x_229); lean_inc(x_26); -x_314 = lean_array_push(x_313, x_26); -x_315 = lean_array_push(x_314, x_222); +x_326 = lean_array_push(x_325, x_26); +x_327 = lean_array_push(x_326, x_230); lean_inc(x_27); -x_316 = lean_array_push(x_315, x_27); -x_317 = lean_array_push(x_316, x_250); -x_318 = lean_array_push(x_317, x_308); -x_319 = lean_array_push(x_318, x_287); +x_328 = lean_array_push(x_327, x_27); +x_329 = lean_array_push(x_328, x_262); +x_330 = lean_array_push(x_329, x_320); +x_331 = lean_array_push(x_330, x_299); lean_inc(x_4); -x_320 = lean_array_push(x_319, x_4); -x_321 = l_Lean_mkAppN(x_311, x_320); -lean_dec(x_320); +x_332 = lean_array_push(x_331, x_4); +x_333 = l_Lean_mkAppN(x_323, x_332); +lean_dec(x_332); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_321); -x_322 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_321, x_6, x_7, x_8, x_9, x_10, x_11, x_309); -if (lean_obj_tag(x_322) == 0) +lean_inc(x_333); +x_334 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_333, x_6, x_7, x_8, x_9, x_10, x_11, x_321); +if (lean_obj_tag(x_334) == 0) { -lean_object* x_323; lean_object* x_324; lean_object* x_325; -x_323 = lean_ctor_get(x_322, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_322, 1); -lean_inc(x_324); -lean_dec(x_322); +lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_335 = lean_ctor_get(x_334, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_334, 1); +lean_inc(x_336); +lean_dec(x_334); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_14); -x_325 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_323, x_6, x_7, x_8, x_9, x_10, x_11, x_324); -if (lean_obj_tag(x_325) == 0) +x_337 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_335, x_6, x_7, x_8, x_9, x_10, x_11, x_336); +if (lean_obj_tag(x_337) == 0) { -lean_object* x_326; uint8_t x_327; -x_326 = lean_ctor_get(x_325, 0); -lean_inc(x_326); -x_327 = lean_unbox(x_326); -lean_dec(x_326); -if (x_327 == 0) +lean_object* x_338; uint8_t x_339; +x_338 = lean_ctor_get(x_337, 0); +lean_inc(x_338); +x_339 = lean_unbox(x_338); +lean_dec(x_338); +if (x_339 == 0) { -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; -lean_dec(x_321); -x_328 = lean_ctor_get(x_325, 1); -lean_inc(x_328); -lean_dec(x_325); -x_329 = lean_box(0); +lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +lean_dec(x_333); +x_340 = lean_ctor_get(x_337, 1); +lean_inc(x_340); +lean_dec(x_337); +x_341 = lean_box(0); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -17462,260 +17840,260 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_17); lean_inc(x_14); -x_330 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_329, x_6, x_7, x_8, x_9, x_10, x_11, x_328); -x_331 = lean_ctor_get(x_330, 1); -lean_inc(x_331); -lean_dec(x_330); -x_230 = x_331; -goto block_244; -} -else -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; -lean_dec(x_221); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_332 = lean_ctor_get(x_325, 1); -lean_inc(x_332); -if (lean_is_exclusive(x_325)) { - lean_ctor_release(x_325, 0); - lean_ctor_release(x_325, 1); - x_333 = x_325; -} else { - lean_dec_ref(x_325); - x_333 = lean_box(0); -} -if (lean_is_scalar(x_333)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_333; -} -lean_ctor_set(x_334, 0, x_321); -lean_ctor_set(x_334, 1, x_332); -return x_334; -} -} -else -{ -lean_object* x_335; -lean_dec(x_321); -x_335 = lean_ctor_get(x_325, 1); -lean_inc(x_335); -lean_dec(x_325); -x_230 = x_335; -goto block_244; -} -} -else -{ -lean_object* x_336; -lean_dec(x_321); -x_336 = lean_ctor_get(x_322, 1); -lean_inc(x_336); -lean_dec(x_322); -x_230 = x_336; -goto block_244; -} -} -else -{ -lean_object* x_337; -lean_dec(x_287); -lean_dec(x_264); -lean_dec(x_250); -lean_dec(x_222); -x_337 = lean_ctor_get(x_307, 1); -lean_inc(x_337); -lean_dec(x_307); -x_230 = x_337; -goto block_244; -} -} -else -{ -lean_object* x_338; -lean_dec(x_289); -lean_dec(x_287); -lean_dec(x_264); -lean_dec(x_250); -lean_dec(x_222); -x_338 = lean_ctor_get(x_291, 1); -lean_inc(x_338); -lean_dec(x_291); -x_230 = x_338; -goto block_244; -} -} -else -{ -lean_object* x_339; -lean_dec(x_287); -lean_dec(x_264); -lean_dec(x_250); -lean_dec(x_222); -x_339 = lean_ctor_get(x_288, 1); -lean_inc(x_339); -lean_dec(x_288); -x_230 = x_339; -goto block_244; -} -} -} -else -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; -lean_dec(x_264); -lean_dec(x_250); -lean_dec(x_222); -lean_dec(x_221); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_340 = lean_ctor_get(x_277, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_277)) { - lean_ctor_release(x_277, 0); - lean_ctor_release(x_277, 1); - x_341 = x_277; -} else { - lean_dec_ref(x_277); - x_341 = lean_box(0); -} -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(0, 2, 0); -} else { - x_342 = x_341; -} -lean_ctor_set(x_342, 0, x_273); -lean_ctor_set(x_342, 1, x_340); -return x_342; -} -} -else -{ -lean_object* x_343; -lean_dec(x_273); -lean_dec(x_264); -lean_dec(x_250); -lean_dec(x_222); -x_343 = lean_ctor_get(x_277, 1); +x_342 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_341, x_6, x_7, x_8, x_9, x_10, x_11, x_340); +x_343 = lean_ctor_get(x_342, 1); lean_inc(x_343); -lean_dec(x_277); -x_230 = x_343; -goto block_244; -} +lean_dec(x_342); +x_238 = x_343; +goto block_256; } else { -lean_object* x_344; -lean_dec(x_273); -lean_dec(x_264); -lean_dec(x_250); -lean_dec(x_222); -x_344 = lean_ctor_get(x_274, 1); +lean_object* x_344; lean_object* x_345; lean_object* x_346; +lean_dec(x_229); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_344 = lean_ctor_get(x_337, 1); lean_inc(x_344); -lean_dec(x_274); -x_230 = x_344; -goto block_244; +if (lean_is_exclusive(x_337)) { + lean_ctor_release(x_337, 0); + lean_ctor_release(x_337, 1); + x_345 = x_337; +} else { + lean_dec_ref(x_337); + x_345 = lean_box(0); } +if (lean_is_scalar(x_345)) { + x_346 = lean_alloc_ctor(0, 2, 0); +} else { + x_346 = x_345; } -else -{ -lean_object* x_345; -lean_dec(x_256); -lean_dec(x_253); -lean_dec(x_250); -lean_dec(x_222); -x_345 = lean_ctor_get(x_258, 1); -lean_inc(x_345); -lean_dec(x_258); -x_230 = x_345; -goto block_244; -} -} -else -{ -lean_object* x_346; -lean_dec(x_253); -lean_dec(x_250); -lean_dec(x_222); -x_346 = lean_ctor_get(x_255, 1); -lean_inc(x_346); -lean_dec(x_255); -x_230 = x_346; -goto block_244; +lean_ctor_set(x_346, 0, x_333); +lean_ctor_set(x_346, 1, x_344); +return x_346; } } else { lean_object* x_347; -lean_dec(x_250); -lean_dec(x_222); -x_347 = lean_ctor_get(x_252, 1); +lean_dec(x_333); +x_347 = lean_ctor_get(x_337, 1); lean_inc(x_347); -lean_dec(x_252); -x_230 = x_347; -goto block_244; +lean_dec(x_337); +x_238 = x_347; +goto block_256; } } else { lean_object* x_348; -lean_dec(x_222); -x_348 = lean_ctor_get(x_249, 1); +lean_dec(x_333); +x_348 = lean_ctor_get(x_334, 1); lean_inc(x_348); -lean_dec(x_249); -x_230 = x_348; -goto block_244; +lean_dec(x_334); +x_238 = x_348; +goto block_256; } } else { lean_object* x_349; -lean_dec(x_222); -x_349 = lean_ctor_get(x_246, 1); +lean_dec(x_299); +lean_dec(x_276); +lean_dec(x_262); +lean_dec(x_230); +x_349 = lean_ctor_get(x_319, 1); lean_inc(x_349); -lean_dec(x_246); -x_230 = x_349; -goto block_244; +lean_dec(x_319); +x_238 = x_349; +goto block_256; } -block_244: +} +else { -lean_object* x_231; lean_object* x_232; +lean_object* x_350; +lean_dec(x_301); +lean_dec(x_299); +lean_dec(x_276); +lean_dec(x_262); +lean_dec(x_230); +x_350 = lean_ctor_get(x_303, 1); +lean_inc(x_350); +lean_dec(x_303); +x_238 = x_350; +goto block_256; +} +} +else +{ +lean_object* x_351; +lean_dec(x_299); +lean_dec(x_276); +lean_dec(x_262); +lean_dec(x_230); +x_351 = lean_ctor_get(x_300, 1); +lean_inc(x_351); +lean_dec(x_300); +x_238 = x_351; +goto block_256; +} +} +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; +lean_dec(x_276); +lean_dec(x_262); +lean_dec(x_230); +lean_dec(x_229); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_352 = lean_ctor_get(x_289, 1); +lean_inc(x_352); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + x_353 = x_289; +} else { + lean_dec_ref(x_289); + x_353 = lean_box(0); +} +if (lean_is_scalar(x_353)) { + x_354 = lean_alloc_ctor(0, 2, 0); +} else { + x_354 = x_353; +} +lean_ctor_set(x_354, 0, x_285); +lean_ctor_set(x_354, 1, x_352); +return x_354; +} +} +else +{ +lean_object* x_355; +lean_dec(x_285); +lean_dec(x_276); +lean_dec(x_262); +lean_dec(x_230); +x_355 = lean_ctor_get(x_289, 1); +lean_inc(x_355); +lean_dec(x_289); +x_238 = x_355; +goto block_256; +} +} +else +{ +lean_object* x_356; +lean_dec(x_285); +lean_dec(x_276); +lean_dec(x_262); +lean_dec(x_230); +x_356 = lean_ctor_get(x_286, 1); +lean_inc(x_356); +lean_dec(x_286); +x_238 = x_356; +goto block_256; +} +} +else +{ +lean_object* x_357; +lean_dec(x_268); +lean_dec(x_265); +lean_dec(x_262); +lean_dec(x_230); +x_357 = lean_ctor_get(x_270, 1); +lean_inc(x_357); +lean_dec(x_270); +x_238 = x_357; +goto block_256; +} +} +else +{ +lean_object* x_358; +lean_dec(x_265); +lean_dec(x_262); +lean_dec(x_230); +x_358 = lean_ctor_get(x_267, 1); +lean_inc(x_358); +lean_dec(x_267); +x_238 = x_358; +goto block_256; +} +} +else +{ +lean_object* x_359; +lean_dec(x_262); +lean_dec(x_230); +x_359 = lean_ctor_get(x_264, 1); +lean_inc(x_359); +lean_dec(x_264); +x_238 = x_359; +goto block_256; +} +} +else +{ +lean_object* x_360; +lean_dec(x_230); +x_360 = lean_ctor_get(x_261, 1); +lean_inc(x_360); +lean_dec(x_261); +x_238 = x_360; +goto block_256; +} +} +else +{ +lean_object* x_361; +lean_dec(x_230); +x_361 = lean_ctor_get(x_258, 1); +lean_inc(x_361); +lean_dec(x_258); +x_238 = x_361; +goto block_256; +} +block_256: +{ +lean_object* x_239; lean_object* x_240; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_231 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_221, x_6, x_7, x_8, x_9, x_10, x_11, x_230); -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -if (lean_obj_tag(x_232) == 0) +x_239 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_229, x_6, x_7, x_8, x_9, x_10, x_11, x_238); +x_240 = lean_ctor_get(x_239, 0); +lean_inc(x_240); +if (lean_obj_tag(x_240) == 0) { -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_231, 1); -lean_inc(x_233); -lean_dec(x_231); +lean_object* x_241; lean_object* x_242; +x_241 = lean_ctor_get(x_239, 1); +lean_inc(x_241); +lean_dec(x_239); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -17725,21 +18103,24 @@ lean_inc(x_6); lean_inc(x_4); lean_inc(x_17); lean_inc(x_1); -x_234 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_26, x_27, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_233); -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -if (lean_obj_tag(x_235) == 0) +x_242 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_26, x_27, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_241); +if (lean_obj_tag(x_242) == 0) { -lean_object* x_236; lean_object* x_237; -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -lean_dec(x_234); -x_237 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_236); -return x_237; +lean_object* x_243; +x_243 = lean_ctor_get(x_242, 0); +lean_inc(x_243); +if (lean_obj_tag(x_243) == 0) +{ +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_242, 1); +lean_inc(x_244); +lean_dec(x_242); +x_245 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_244); +return x_245; } else { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_dec(x_17); lean_dec(x_14); lean_dec(x_11); @@ -17751,113 +18132,149 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_238 = lean_ctor_get(x_234, 1); -lean_inc(x_238); -if (lean_is_exclusive(x_234)) { - lean_ctor_release(x_234, 0); - lean_ctor_release(x_234, 1); - x_239 = x_234; +x_246 = lean_ctor_get(x_242, 1); +lean_inc(x_246); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_247 = x_242; } else { - lean_dec_ref(x_234); - x_239 = lean_box(0); + lean_dec_ref(x_242); + x_247 = lean_box(0); } -x_240 = lean_ctor_get(x_235, 0); -lean_inc(x_240); -lean_dec(x_235); -if (lean_is_scalar(x_239)) { - x_241 = lean_alloc_ctor(0, 2, 0); +x_248 = lean_ctor_get(x_243, 0); +lean_inc(x_248); +lean_dec(x_243); +if (lean_is_scalar(x_247)) { + x_249 = lean_alloc_ctor(0, 2, 0); } else { - x_241 = x_239; + x_249 = x_247; } -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_238); -return x_241; +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_246); +return x_249; } } else { -lean_object* x_242; lean_object* x_243; -lean_dec(x_232); +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_250 = lean_ctor_get(x_242, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_242, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + x_252 = x_242; +} else { + lean_dec_ref(x_242); + x_252 = lean_box(0); +} +if (lean_is_scalar(x_252)) { + x_253 = lean_alloc_ctor(1, 2, 0); +} else { + x_253 = x_252; +} +lean_ctor_set(x_253, 0, x_250); +lean_ctor_set(x_253, 1, x_251); +return x_253; +} +} +else +{ +lean_object* x_254; lean_object* x_255; +lean_dec(x_240); lean_dec(x_27); lean_dec(x_26); -x_242 = lean_ctor_get(x_231, 1); -lean_inc(x_242); +x_254 = lean_ctor_get(x_239, 1); +lean_inc(x_254); +lean_dec(x_239); +x_255 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_254); +return x_255; +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_362 = lean_ctor_get(x_231, 1); +lean_inc(x_362); lean_dec(x_231); -x_243 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_242); -return x_243; -} -} -} -else -{ -lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_350 = lean_ctor_get(x_223, 1); -lean_inc(x_350); -lean_dec(x_223); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_351 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_350); -x_352 = lean_ctor_get(x_351, 0); -lean_inc(x_352); -if (lean_obj_tag(x_352) == 0) +x_363 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_362); +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +if (lean_obj_tag(x_364) == 0) { -lean_object* x_353; lean_object* x_354; -lean_dec(x_222); -lean_dec(x_221); +lean_object* x_365; lean_object* x_366; +lean_dec(x_230); +lean_dec(x_229); lean_dec(x_27); lean_free_object(x_20); -x_353 = lean_ctor_get(x_351, 1); -lean_inc(x_353); -lean_dec(x_351); -x_354 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_353); -return x_354; +x_365 = lean_ctor_get(x_363, 1); +lean_inc(x_365); +lean_dec(x_363); +x_366 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_365); +return x_366; } else { -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; -x_355 = lean_ctor_get(x_351, 1); -lean_inc(x_355); -lean_dec(x_351); -x_356 = lean_ctor_get(x_352, 0); -lean_inc(x_356); -if (lean_is_exclusive(x_352)) { - lean_ctor_release(x_352, 0); - x_357 = x_352; +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; +x_367 = lean_ctor_get(x_363, 1); +lean_inc(x_367); +lean_dec(x_363); +x_368 = lean_ctor_get(x_364, 0); +lean_inc(x_368); +if (lean_is_exclusive(x_364)) { + lean_ctor_release(x_364, 0); + x_369 = x_364; } else { - lean_dec_ref(x_352); - x_357 = lean_box(0); + lean_dec_ref(x_364); + x_369 = lean_box(0); } -if (lean_is_scalar(x_357)) { - x_358 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_369)) { + x_370 = lean_alloc_ctor(1, 1, 0); } else { - x_358 = x_357; + x_370 = x_369; } -lean_ctor_set(x_358, 0, x_221); -x_359 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_359, 0, x_222); +lean_ctor_set(x_370, 0, x_229); +x_371 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_371, 0, x_230); lean_ctor_set(x_20, 0, x_27); -x_360 = lean_box(0); -x_361 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_361, 0, x_356); +x_372 = lean_box(0); +x_373 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_373, 0, x_368); lean_inc(x_4); -x_362 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_362, 0, x_4); -x_363 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; -x_364 = lean_array_push(x_363, x_358); -x_365 = lean_array_push(x_364, x_359); -x_366 = lean_array_push(x_365, x_20); -x_367 = lean_array_push(x_366, x_360); -x_368 = lean_array_push(x_367, x_361); -x_369 = lean_array_push(x_368, x_362); -x_370 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; +x_374 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_374, 0, x_4); +x_375 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; +x_376 = lean_array_push(x_375, x_370); +x_377 = lean_array_push(x_376, x_371); +x_378 = lean_array_push(x_377, x_20); +x_379 = lean_array_push(x_378, x_372); +x_380 = lean_array_push(x_379, x_373); +x_381 = lean_array_push(x_380, x_374); +x_382 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_371 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_370, x_369, x_6, x_7, x_8, x_9, x_10, x_11, x_355); -if (lean_obj_tag(x_371) == 0) +x_383 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_382, x_381, x_6, x_7, x_8, x_9, x_10, x_11, x_367); +if (lean_obj_tag(x_383) == 0) { lean_dec(x_17); lean_dec(x_14); @@ -17870,27 +18287,27 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_371; +return x_383; } else { -lean_object* x_372; lean_object* x_373; -x_372 = lean_ctor_get(x_371, 1); -lean_inc(x_372); -lean_dec(x_371); -x_373 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_360, x_6, x_7, x_8, x_9, x_10, x_11, x_372); +lean_object* x_384; lean_object* x_385; +x_384 = lean_ctor_get(x_383, 1); +lean_inc(x_384); +lean_dec(x_383); +x_385 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_372, x_6, x_7, x_8, x_9, x_10, x_11, x_384); lean_dec(x_7); lean_dec(x_1); -return x_373; +return x_385; } } } } else { -lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; -lean_dec(x_222); -lean_dec(x_221); +lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +lean_dec(x_230); +lean_dec(x_229); lean_dec(x_27); lean_dec(x_26); lean_free_object(x_20); @@ -17905,33 +18322,33 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_374 = lean_ctor_get(x_223, 0); -lean_inc(x_374); -x_375 = lean_ctor_get(x_223, 1); -lean_inc(x_375); -if (lean_is_exclusive(x_223)) { - lean_ctor_release(x_223, 0); - lean_ctor_release(x_223, 1); - x_376 = x_223; +x_386 = lean_ctor_get(x_231, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_231, 1); +lean_inc(x_387); +if (lean_is_exclusive(x_231)) { + lean_ctor_release(x_231, 0); + lean_ctor_release(x_231, 1); + x_388 = x_231; } else { - lean_dec_ref(x_223); - x_376 = lean_box(0); + lean_dec_ref(x_231); + x_388 = lean_box(0); } -if (lean_is_scalar(x_376)) { - x_377 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_388)) { + x_389 = lean_alloc_ctor(1, 2, 0); } else { - x_377 = x_376; + x_389 = x_388; } -lean_ctor_set(x_377, 0, x_374); -lean_ctor_set(x_377, 1, x_375); -return x_377; +lean_ctor_set(x_389, 0, x_386); +lean_ctor_set(x_389, 1, x_387); +return x_389; } } } } else { -uint8_t x_378; +uint8_t x_390; lean_dec(x_27); lean_dec(x_26); lean_free_object(x_20); @@ -17946,57 +18363,57 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_378 = !lean_is_exclusive(x_28); -if (x_378 == 0) +x_390 = !lean_is_exclusive(x_28); +if (x_390 == 0) { return x_28; } else { -lean_object* x_379; lean_object* x_380; lean_object* x_381; -x_379 = lean_ctor_get(x_28, 0); -x_380 = lean_ctor_get(x_28, 1); -lean_inc(x_380); -lean_inc(x_379); +lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_391 = lean_ctor_get(x_28, 0); +x_392 = lean_ctor_get(x_28, 1); +lean_inc(x_392); +lean_inc(x_391); lean_dec(x_28); -x_381 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_381, 0, x_379); -lean_ctor_set(x_381, 1, x_380); -return x_381; +x_393 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_393, 0, x_391); +lean_ctor_set(x_393, 1, x_392); +return x_393; } } } else { -lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_382 = lean_ctor_get(x_20, 0); -lean_inc(x_382); +lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; +x_394 = lean_ctor_get(x_20, 0); +lean_inc(x_394); lean_dec(x_20); -x_383 = lean_ctor_get(x_19, 1); -lean_inc(x_383); +x_395 = lean_ctor_get(x_19, 1); +lean_inc(x_395); lean_dec(x_19); -x_384 = lean_ctor_get(x_382, 0); -lean_inc(x_384); -x_385 = lean_ctor_get(x_382, 1); -lean_inc(x_385); -lean_dec(x_382); +x_396 = lean_ctor_get(x_394, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_394, 1); +lean_inc(x_397); +lean_dec(x_394); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_17); -x_386 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeApp_x3f(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_383); -if (lean_obj_tag(x_386) == 0) +x_398 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeApp_x3f(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_395); +if (lean_obj_tag(x_398) == 0) { -lean_object* x_387; -x_387 = lean_ctor_get(x_386, 0); -lean_inc(x_387); -if (lean_obj_tag(x_387) == 0) +lean_object* x_399; +x_399 = lean_ctor_get(x_398, 0); +lean_inc(x_399); +if (lean_obj_tag(x_399) == 0) { -lean_object* x_388; lean_object* x_389; lean_object* x_390; -x_388 = lean_ctor_get(x_386, 1); -lean_inc(x_388); -lean_dec(x_386); +lean_object* x_400; lean_object* x_401; +x_400 = lean_ctor_get(x_398, 1); +lean_inc(x_400); +lean_dec(x_398); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -18006,21 +18423,24 @@ lean_inc(x_6); lean_inc(x_4); lean_inc(x_17); lean_inc(x_1); -x_389 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_384, x_385, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_388); -x_390 = lean_ctor_get(x_389, 0); -lean_inc(x_390); -if (lean_obj_tag(x_390) == 0) +x_401 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_396, x_397, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_400); +if (lean_obj_tag(x_401) == 0) { -lean_object* x_391; lean_object* x_392; -x_391 = lean_ctor_get(x_389, 1); -lean_inc(x_391); -lean_dec(x_389); -x_392 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_391); -return x_392; +lean_object* x_402; +x_402 = lean_ctor_get(x_401, 0); +lean_inc(x_402); +if (lean_obj_tag(x_402) == 0) +{ +lean_object* x_403; lean_object* x_404; +x_403 = lean_ctor_get(x_401, 1); +lean_inc(x_403); +lean_dec(x_401); +x_404 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_403); +return x_404; } else { -lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_dec(x_17); lean_dec(x_14); lean_dec(x_11); @@ -18032,871 +18452,872 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_393 = lean_ctor_get(x_389, 1); -lean_inc(x_393); -if (lean_is_exclusive(x_389)) { - lean_ctor_release(x_389, 0); - lean_ctor_release(x_389, 1); - x_394 = x_389; +x_405 = lean_ctor_get(x_401, 1); +lean_inc(x_405); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_406 = x_401; } else { - lean_dec_ref(x_389); - x_394 = lean_box(0); + lean_dec_ref(x_401); + x_406 = lean_box(0); } -x_395 = lean_ctor_get(x_390, 0); -lean_inc(x_395); -lean_dec(x_390); -if (lean_is_scalar(x_394)) { - x_396 = lean_alloc_ctor(0, 2, 0); +x_407 = lean_ctor_get(x_402, 0); +lean_inc(x_407); +lean_dec(x_402); +if (lean_is_scalar(x_406)) { + x_408 = lean_alloc_ctor(0, 2, 0); } else { - x_396 = x_394; + x_408 = x_406; } -lean_ctor_set(x_396, 0, x_395); -lean_ctor_set(x_396, 1, x_393); -return x_396; +lean_ctor_set(x_408, 0, x_407); +lean_ctor_set(x_408, 1, x_405); +return x_408; } } else { -lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_397 = lean_ctor_get(x_387, 0); -lean_inc(x_397); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - x_398 = x_387; +lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_409 = lean_ctor_get(x_401, 0); +lean_inc(x_409); +x_410 = lean_ctor_get(x_401, 1); +lean_inc(x_410); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_411 = x_401; } else { - lean_dec_ref(x_387); - x_398 = lean_box(0); + lean_dec_ref(x_401); + x_411 = lean_box(0); } -x_399 = lean_ctor_get(x_386, 1); -lean_inc(x_399); -lean_dec(x_386); -x_400 = lean_ctor_get(x_397, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_397, 1); -lean_inc(x_401); -lean_dec(x_397); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_384); -lean_inc(x_400); -x_402 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_400, x_384, x_6, x_7, x_8, x_9, x_10, x_11, x_399); -if (lean_obj_tag(x_402) == 0) +if (lean_is_scalar(x_411)) { + x_412 = lean_alloc_ctor(1, 2, 0); +} else { + x_412 = x_411; +} +lean_ctor_set(x_412, 0, x_409); +lean_ctor_set(x_412, 1, x_410); +return x_412; +} +} +else { -lean_object* x_403; uint8_t x_404; -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_unbox(x_403); -lean_dec(x_403); -if (x_404 == 0) -{ -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_424; lean_object* x_425; +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_413 = lean_ctor_get(x_399, 0); +lean_inc(x_413); +if (lean_is_exclusive(x_399)) { + lean_ctor_release(x_399, 0); + x_414 = x_399; +} else { + lean_dec_ref(x_399); + x_414 = lean_box(0); +} +x_415 = lean_ctor_get(x_398, 1); +lean_inc(x_415); lean_dec(x_398); -x_405 = lean_ctor_get(x_402, 1); -lean_inc(x_405); -lean_dec(x_402); -x_406 = l_Lean_Syntax_mkApp___closed__1; -lean_inc(x_400); -x_407 = lean_array_push(x_406, x_400); -lean_inc(x_384); -x_408 = lean_array_push(x_407, x_384); -x_424 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2; +x_416 = lean_ctor_get(x_413, 0); +lean_inc(x_416); +x_417 = lean_ctor_get(x_413, 1); +lean_inc(x_417); +lean_dec(x_413); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_425 = l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f___spec__1(x_424, x_408, x_6, x_7, x_8, x_9, x_10, x_11, x_405); -if (lean_obj_tag(x_425) == 0) +lean_inc(x_396); +lean_inc(x_416); +x_418 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_416, x_396, x_6, x_7, x_8, x_9, x_10, x_11, x_415); +if (lean_obj_tag(x_418) == 0) { -lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_426 = lean_ctor_get(x_425, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); -lean_inc(x_427); -lean_dec(x_425); +lean_object* x_419; uint8_t x_420; +x_419 = lean_ctor_get(x_418, 0); +lean_inc(x_419); +x_420 = lean_unbox(x_419); +lean_dec(x_419); +if (x_420 == 0) +{ +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_444; lean_object* x_445; +lean_dec(x_414); +x_421 = lean_ctor_get(x_418, 1); +lean_inc(x_421); +lean_dec(x_418); +x_422 = l_Lean_Syntax_mkApp___closed__1; +lean_inc(x_416); +x_423 = lean_array_push(x_422, x_416); +lean_inc(x_396); +x_424 = lean_array_push(x_423, x_396); +x_444 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_445 = l_Lean_Meta_mkAppM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f___spec__1(x_444, x_424, x_6, x_7, x_8, x_9, x_10, x_11, x_421); +if (lean_obj_tag(x_445) == 0) +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; +x_446 = lean_ctor_get(x_445, 0); +lean_inc(x_446); +x_447 = lean_ctor_get(x_445, 1); +lean_inc(x_447); +lean_dec(x_445); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_6); -x_428 = l_Lean_Elab_Term_synthesizeInst(x_426, x_6, x_7, x_8, x_9, x_10, x_11, x_427); -if (lean_obj_tag(x_428) == 0) +x_448 = l_Lean_Elab_Term_synthesizeInst(x_446, x_6, x_7, x_8, x_9, x_10, x_11, x_447); +if (lean_obj_tag(x_448) == 0) { -lean_object* x_429; lean_object* x_430; lean_object* x_431; -x_429 = lean_ctor_get(x_428, 0); -lean_inc(x_429); -x_430 = lean_ctor_get(x_428, 1); -lean_inc(x_430); -lean_dec(x_428); +lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_449 = lean_ctor_get(x_448, 0); +lean_inc(x_449); +x_450 = lean_ctor_get(x_448, 1); +lean_inc(x_450); +lean_dec(x_448); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_401); -x_431 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_401, x_6, x_7, x_8, x_9, x_10, x_11, x_430); -if (lean_obj_tag(x_431) == 0) +lean_inc(x_417); +x_451 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_417, x_6, x_7, x_8, x_9, x_10, x_11, x_450); +if (lean_obj_tag(x_451) == 0) { -lean_object* x_432; lean_object* x_433; lean_object* x_434; -x_432 = lean_ctor_get(x_431, 0); -lean_inc(x_432); -x_433 = lean_ctor_get(x_431, 1); -lean_inc(x_433); -lean_dec(x_431); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_17); -x_434 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_433); -if (lean_obj_tag(x_434) == 0) -{ -lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_435 = lean_ctor_get(x_434, 0); -lean_inc(x_435); -x_436 = lean_ctor_get(x_434, 1); -lean_inc(x_436); -lean_dec(x_434); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_14); -x_437 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_436); -if (lean_obj_tag(x_437) == 0) -{ -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; -x_438 = lean_ctor_get(x_437, 0); -lean_inc(x_438); -x_439 = lean_ctor_get(x_437, 1); -lean_inc(x_439); -lean_dec(x_437); -x_440 = lean_box(0); -x_441 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_441, 0, x_438); -lean_ctor_set(x_441, 1, x_440); -x_442 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_442, 0, x_435); -lean_ctor_set(x_442, 1, x_441); -x_443 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_443, 0, x_432); -lean_ctor_set(x_443, 1, x_442); -x_444 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; -lean_inc(x_443); -x_445 = l_Lean_mkConst(x_444, x_443); -x_446 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; -lean_inc(x_400); -x_447 = lean_array_push(x_446, x_400); -lean_inc(x_384); -x_448 = lean_array_push(x_447, x_384); -lean_inc(x_429); -x_449 = lean_array_push(x_448, x_429); -lean_inc(x_401); -x_450 = lean_array_push(x_449, x_401); -lean_inc(x_4); -x_451 = lean_array_push(x_450, x_4); -x_452 = l_Lean_mkAppN(x_445, x_451); +lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_452 = lean_ctor_get(x_451, 0); +lean_inc(x_452); +x_453 = lean_ctor_get(x_451, 1); +lean_inc(x_453); lean_dec(x_451); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_452); -x_453 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_452, x_6, x_7, x_8, x_9, x_10, x_11, x_439); -if (lean_obj_tag(x_453) == 0) +lean_inc(x_17); +x_454 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_453); +if (lean_obj_tag(x_454) == 0) { -lean_object* x_454; lean_object* x_455; lean_object* x_456; -x_454 = lean_ctor_get(x_453, 0); -lean_inc(x_454); -x_455 = lean_ctor_get(x_453, 1); +lean_object* x_455; lean_object* x_456; lean_object* x_457; +x_455 = lean_ctor_get(x_454, 0); lean_inc(x_455); -lean_dec(x_453); +x_456 = lean_ctor_get(x_454, 1); +lean_inc(x_456); +lean_dec(x_454); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_14); -x_456 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_454, x_6, x_7, x_8, x_9, x_10, x_11, x_455); -if (lean_obj_tag(x_456) == 0) +x_457 = l_Lean_Meta_getDecLevel___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___spec__1(x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_456); +if (lean_obj_tag(x_457) == 0) { -lean_object* x_457; uint8_t x_458; -x_457 = lean_ctor_get(x_456, 0); -lean_inc(x_457); -x_458 = lean_unbox(x_457); -lean_dec(x_457); -if (x_458 == 0) -{ -lean_object* x_459; lean_object* x_460; lean_object* x_461; -lean_dec(x_452); -x_459 = lean_ctor_get(x_456, 1); +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; +x_458 = lean_ctor_get(x_457, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_457, 1); lean_inc(x_459); -lean_dec(x_456); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_384); -x_460 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_384, x_6, x_7, x_8, x_9, x_10, x_11, x_459); -x_461 = lean_ctor_get(x_460, 0); -lean_inc(x_461); -if (lean_obj_tag(x_461) == 0) -{ -lean_object* x_462; lean_object* x_463; -lean_dec(x_443); -lean_dec(x_429); -lean_dec(x_401); -x_462 = lean_ctor_get(x_460, 1); -lean_inc(x_462); -lean_dec(x_460); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_17); -lean_inc(x_14); -lean_inc(x_1); -x_463 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_462); -if (lean_obj_tag(x_463) == 0) -{ -lean_dec(x_400); -lean_dec(x_385); -lean_dec(x_384); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_463; -} -else -{ -lean_object* x_464; -x_464 = lean_ctor_get(x_463, 1); -lean_inc(x_464); -lean_dec(x_463); -x_409 = x_464; -goto block_423; -} -} -else -{ -lean_object* x_465; lean_object* x_466; lean_object* x_467; -x_465 = lean_ctor_get(x_460, 1); -lean_inc(x_465); -lean_dec(x_460); -x_466 = lean_ctor_get(x_461, 0); -lean_inc(x_466); -lean_dec(x_461); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_401); -x_467 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_401, x_8, x_9, x_10, x_11, x_465); -if (lean_obj_tag(x_467) == 0) -{ -lean_object* x_468; lean_object* x_469; lean_object* x_470; -x_468 = lean_ctor_get(x_467, 0); -lean_inc(x_468); -x_469 = lean_ctor_get(x_467, 1); -lean_inc(x_469); -lean_dec(x_467); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_385); -x_470 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_385, x_8, x_9, x_10, x_11, x_469); -if (lean_obj_tag(x_470) == 0) -{ -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; uint8_t x_484; lean_object* x_485; lean_object* x_486; -x_471 = lean_ctor_get(x_470, 0); -lean_inc(x_471); -x_472 = lean_ctor_get(x_470, 1); -lean_inc(x_472); -lean_dec(x_470); -x_473 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_473, 0, x_471); -lean_ctor_set(x_473, 1, x_440); -x_474 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_474, 0, x_468); -lean_ctor_set(x_474, 1, x_473); -x_475 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; -x_476 = l_Lean_mkConst(x_475, x_474); -x_477 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; -lean_inc(x_401); -x_478 = lean_array_push(x_477, x_401); -x_479 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; -x_480 = lean_array_push(x_478, x_479); -lean_inc(x_385); -x_481 = lean_array_push(x_480, x_385); -x_482 = l_Lean_mkAppN(x_476, x_481); -lean_dec(x_481); -x_483 = l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__10; -x_484 = 0; -lean_inc(x_401); -x_485 = l_Lean_mkForall(x_483, x_484, x_401, x_482); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -x_486 = l_Lean_Elab_Term_synthesizeInst(x_485, x_6, x_7, x_8, x_9, x_10, x_11, x_472); -if (lean_obj_tag(x_486) == 0) -{ -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; -x_487 = lean_ctor_get(x_486, 0); -lean_inc(x_487); -x_488 = lean_ctor_get(x_486, 1); -lean_inc(x_488); -lean_dec(x_486); -x_489 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__6; -x_490 = l_Lean_mkConst(x_489, x_443); -x_491 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; -lean_inc(x_400); -x_492 = lean_array_push(x_491, x_400); -lean_inc(x_384); -x_493 = lean_array_push(x_492, x_384); -x_494 = lean_array_push(x_493, x_401); -lean_inc(x_385); -x_495 = lean_array_push(x_494, x_385); -x_496 = lean_array_push(x_495, x_429); -x_497 = lean_array_push(x_496, x_487); -x_498 = lean_array_push(x_497, x_466); -lean_inc(x_4); -x_499 = lean_array_push(x_498, x_4); -x_500 = l_Lean_mkAppN(x_490, x_499); -lean_dec(x_499); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_500); -x_501 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_500, x_6, x_7, x_8, x_9, x_10, x_11, x_488); -if (lean_obj_tag(x_501) == 0) -{ -lean_object* x_502; lean_object* x_503; lean_object* x_504; -x_502 = lean_ctor_get(x_501, 0); -lean_inc(x_502); -x_503 = lean_ctor_get(x_501, 1); -lean_inc(x_503); -lean_dec(x_501); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_14); -x_504 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_502, x_6, x_7, x_8, x_9, x_10, x_11, x_503); -if (lean_obj_tag(x_504) == 0) -{ -lean_object* x_505; uint8_t x_506; -x_505 = lean_ctor_get(x_504, 0); -lean_inc(x_505); -x_506 = lean_unbox(x_505); -lean_dec(x_505); -if (x_506 == 0) -{ -lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; -lean_dec(x_500); -x_507 = lean_ctor_get(x_504, 1); -lean_inc(x_507); -lean_dec(x_504); -x_508 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_17); -lean_inc(x_14); -x_509 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_508, x_6, x_7, x_8, x_9, x_10, x_11, x_507); -x_510 = lean_ctor_get(x_509, 1); -lean_inc(x_510); -lean_dec(x_509); -x_409 = x_510; -goto block_423; -} -else -{ -lean_object* x_511; lean_object* x_512; lean_object* x_513; -lean_dec(x_400); -lean_dec(x_385); -lean_dec(x_384); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_511 = lean_ctor_get(x_504, 1); -lean_inc(x_511); -if (lean_is_exclusive(x_504)) { - lean_ctor_release(x_504, 0); - lean_ctor_release(x_504, 1); - x_512 = x_504; -} else { - lean_dec_ref(x_504); - x_512 = lean_box(0); -} -if (lean_is_scalar(x_512)) { - x_513 = lean_alloc_ctor(0, 2, 0); -} else { - x_513 = x_512; -} -lean_ctor_set(x_513, 0, x_500); -lean_ctor_set(x_513, 1, x_511); -return x_513; -} -} -else -{ -lean_object* x_514; -lean_dec(x_500); -x_514 = lean_ctor_get(x_504, 1); -lean_inc(x_514); -lean_dec(x_504); -x_409 = x_514; -goto block_423; -} -} -else -{ -lean_object* x_515; -lean_dec(x_500); -x_515 = lean_ctor_get(x_501, 1); -lean_inc(x_515); -lean_dec(x_501); -x_409 = x_515; -goto block_423; -} -} -else -{ -lean_object* x_516; -lean_dec(x_466); -lean_dec(x_443); -lean_dec(x_429); -lean_dec(x_401); -x_516 = lean_ctor_get(x_486, 1); -lean_inc(x_516); -lean_dec(x_486); -x_409 = x_516; -goto block_423; -} -} -else -{ -lean_object* x_517; -lean_dec(x_468); -lean_dec(x_466); -lean_dec(x_443); -lean_dec(x_429); -lean_dec(x_401); -x_517 = lean_ctor_get(x_470, 1); -lean_inc(x_517); -lean_dec(x_470); -x_409 = x_517; -goto block_423; -} -} -else -{ -lean_object* x_518; -lean_dec(x_466); -lean_dec(x_443); -lean_dec(x_429); -lean_dec(x_401); -x_518 = lean_ctor_get(x_467, 1); -lean_inc(x_518); -lean_dec(x_467); -x_409 = x_518; -goto block_423; -} -} -} -else -{ -lean_object* x_519; lean_object* x_520; lean_object* x_521; -lean_dec(x_443); -lean_dec(x_429); -lean_dec(x_401); -lean_dec(x_400); -lean_dec(x_385); -lean_dec(x_384); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_519 = lean_ctor_get(x_456, 1); -lean_inc(x_519); -if (lean_is_exclusive(x_456)) { - lean_ctor_release(x_456, 0); - lean_ctor_release(x_456, 1); - x_520 = x_456; -} else { - lean_dec_ref(x_456); - x_520 = lean_box(0); -} -if (lean_is_scalar(x_520)) { - x_521 = lean_alloc_ctor(0, 2, 0); -} else { - x_521 = x_520; -} -lean_ctor_set(x_521, 0, x_452); -lean_ctor_set(x_521, 1, x_519); -return x_521; -} -} -else -{ -lean_object* x_522; -lean_dec(x_452); -lean_dec(x_443); -lean_dec(x_429); -lean_dec(x_401); -x_522 = lean_ctor_get(x_456, 1); -lean_inc(x_522); -lean_dec(x_456); -x_409 = x_522; -goto block_423; -} -} -else -{ -lean_object* x_523; -lean_dec(x_452); -lean_dec(x_443); -lean_dec(x_429); -lean_dec(x_401); -x_523 = lean_ctor_get(x_453, 1); -lean_inc(x_523); -lean_dec(x_453); -x_409 = x_523; -goto block_423; -} -} -else -{ -lean_object* x_524; -lean_dec(x_435); -lean_dec(x_432); -lean_dec(x_429); -lean_dec(x_401); -x_524 = lean_ctor_get(x_437, 1); -lean_inc(x_524); -lean_dec(x_437); -x_409 = x_524; -goto block_423; -} -} -else -{ -lean_object* x_525; -lean_dec(x_432); -lean_dec(x_429); -lean_dec(x_401); -x_525 = lean_ctor_get(x_434, 1); -lean_inc(x_525); -lean_dec(x_434); -x_409 = x_525; -goto block_423; -} -} -else -{ -lean_object* x_526; -lean_dec(x_429); -lean_dec(x_401); -x_526 = lean_ctor_get(x_431, 1); -lean_inc(x_526); -lean_dec(x_431); -x_409 = x_526; -goto block_423; -} -} -else -{ -lean_object* x_527; -lean_dec(x_401); -x_527 = lean_ctor_get(x_428, 1); -lean_inc(x_527); -lean_dec(x_428); -x_409 = x_527; -goto block_423; -} -} -else -{ -lean_object* x_528; -lean_dec(x_401); -x_528 = lean_ctor_get(x_425, 1); -lean_inc(x_528); -lean_dec(x_425); -x_409 = x_528; -goto block_423; -} -block_423: -{ -lean_object* x_410; lean_object* x_411; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_410 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_400, x_6, x_7, x_8, x_9, x_10, x_11, x_409); -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); -if (lean_obj_tag(x_411) == 0) -{ -lean_object* x_412; lean_object* x_413; lean_object* x_414; -x_412 = lean_ctor_get(x_410, 1); -lean_inc(x_412); -lean_dec(x_410); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_4); -lean_inc(x_17); -lean_inc(x_1); -x_413 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_384, x_385, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_412); -x_414 = lean_ctor_get(x_413, 0); -lean_inc(x_414); -if (lean_obj_tag(x_414) == 0) -{ -lean_object* x_415; lean_object* x_416; -x_415 = lean_ctor_get(x_413, 1); -lean_inc(x_415); -lean_dec(x_413); -x_416 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_415); -return x_416; -} -else -{ -lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_417 = lean_ctor_get(x_413, 1); +lean_dec(x_457); +x_460 = lean_box(0); +x_461 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_461, 0, x_458); +lean_ctor_set(x_461, 1, x_460); +x_462 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_462, 0, x_455); +lean_ctor_set(x_462, 1, x_461); +x_463 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_463, 0, x_452); +lean_ctor_set(x_463, 1, x_462); +x_464 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; +lean_inc(x_463); +x_465 = l_Lean_mkConst(x_464, x_463); +x_466 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; +lean_inc(x_416); +x_467 = lean_array_push(x_466, x_416); +lean_inc(x_396); +x_468 = lean_array_push(x_467, x_396); +lean_inc(x_449); +x_469 = lean_array_push(x_468, x_449); lean_inc(x_417); -if (lean_is_exclusive(x_413)) { - lean_ctor_release(x_413, 0); - lean_ctor_release(x_413, 1); - x_418 = x_413; -} else { - lean_dec_ref(x_413); - x_418 = lean_box(0); -} -x_419 = lean_ctor_get(x_414, 0); -lean_inc(x_419); -lean_dec(x_414); -if (lean_is_scalar(x_418)) { - x_420 = lean_alloc_ctor(0, 2, 0); -} else { - x_420 = x_418; -} -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_417); -return x_420; -} -} -else -{ -lean_object* x_421; lean_object* x_422; -lean_dec(x_411); -lean_dec(x_385); -lean_dec(x_384); -x_421 = lean_ctor_get(x_410, 1); -lean_inc(x_421); -lean_dec(x_410); -x_422 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_421); -return x_422; -} -} -} -else -{ -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = lean_ctor_get(x_402, 1); -lean_inc(x_529); -lean_dec(x_402); +x_470 = lean_array_push(x_469, x_417); +lean_inc(x_4); +x_471 = lean_array_push(x_470, x_4); +x_472 = l_Lean_mkAppN(x_465, x_471); +lean_dec(x_471); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_530 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_384, x_6, x_7, x_8, x_9, x_10, x_11, x_529); -x_531 = lean_ctor_get(x_530, 0); -lean_inc(x_531); -if (lean_obj_tag(x_531) == 0) +lean_inc(x_472); +x_473 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_472, x_6, x_7, x_8, x_9, x_10, x_11, x_459); +if (lean_obj_tag(x_473) == 0) { -lean_object* x_532; lean_object* x_533; -lean_dec(x_401); -lean_dec(x_400); -lean_dec(x_398); -lean_dec(x_385); -x_532 = lean_ctor_get(x_530, 1); -lean_inc(x_532); -lean_dec(x_530); -x_533 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_532); +lean_object* x_474; lean_object* x_475; lean_object* x_476; +x_474 = lean_ctor_get(x_473, 0); +lean_inc(x_474); +x_475 = lean_ctor_get(x_473, 1); +lean_inc(x_475); +lean_dec(x_473); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_476 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_474, x_6, x_7, x_8, x_9, x_10, x_11, x_475); +if (lean_obj_tag(x_476) == 0) +{ +lean_object* x_477; uint8_t x_478; +x_477 = lean_ctor_get(x_476, 0); +lean_inc(x_477); +x_478 = lean_unbox(x_477); +lean_dec(x_477); +if (x_478 == 0) +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; +lean_dec(x_472); +x_479 = lean_ctor_get(x_476, 1); +lean_inc(x_479); +lean_dec(x_476); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_396); +x_480 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_396, x_6, x_7, x_8, x_9, x_10, x_11, x_479); +x_481 = lean_ctor_get(x_480, 0); +lean_inc(x_481); +if (lean_obj_tag(x_481) == 0) +{ +lean_object* x_482; lean_object* x_483; +lean_dec(x_463); +lean_dec(x_449); +lean_dec(x_417); +x_482 = lean_ctor_get(x_480, 1); +lean_inc(x_482); +lean_dec(x_480); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_17); +lean_inc(x_14); +lean_inc(x_1); +x_483 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_482); +if (lean_obj_tag(x_483) == 0) +{ +lean_dec(x_416); +lean_dec(x_397); +lean_dec(x_396); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_483; +} +else +{ +lean_object* x_484; +x_484 = lean_ctor_get(x_483, 1); +lean_inc(x_484); +lean_dec(x_483); +x_425 = x_484; +goto block_443; +} +} +else +{ +lean_object* x_485; lean_object* x_486; lean_object* x_487; +x_485 = lean_ctor_get(x_480, 1); +lean_inc(x_485); +lean_dec(x_480); +x_486 = lean_ctor_get(x_481, 0); +lean_inc(x_486); +lean_dec(x_481); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_417); +x_487 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_417, x_8, x_9, x_10, x_11, x_485); +if (lean_obj_tag(x_487) == 0) +{ +lean_object* x_488; lean_object* x_489; lean_object* x_490; +x_488 = lean_ctor_get(x_487, 0); +lean_inc(x_488); +x_489 = lean_ctor_get(x_487, 1); +lean_inc(x_489); +lean_dec(x_487); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_397); +x_490 = l___private_Lean_Meta_InferType_0__Lean_Meta_getLevelImp(x_397, x_8, x_9, x_10, x_11, x_489); +if (lean_obj_tag(x_490) == 0) +{ +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; uint8_t x_504; lean_object* x_505; lean_object* x_506; +x_491 = lean_ctor_get(x_490, 0); +lean_inc(x_491); +x_492 = lean_ctor_get(x_490, 1); +lean_inc(x_492); +lean_dec(x_490); +x_493 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_493, 0, x_491); +lean_ctor_set(x_493, 1, x_460); +x_494 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_494, 0, x_488); +lean_ctor_set(x_494, 1, x_493); +x_495 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; +x_496 = l_Lean_mkConst(x_495, x_494); +x_497 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; +lean_inc(x_417); +x_498 = lean_array_push(x_497, x_417); +x_499 = l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1; +x_500 = lean_array_push(x_498, x_499); +lean_inc(x_397); +x_501 = lean_array_push(x_500, x_397); +x_502 = l_Lean_mkAppN(x_496, x_501); +lean_dec(x_501); +x_503 = l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_1011____closed__10; +x_504 = 0; +lean_inc(x_417); +x_505 = l_Lean_mkForall(x_503, x_504, x_417, x_502); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_506 = l_Lean_Elab_Term_synthesizeInst(x_505, x_6, x_7, x_8, x_9, x_10, x_11, x_492); +if (lean_obj_tag(x_506) == 0) +{ +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; +x_507 = lean_ctor_get(x_506, 0); +lean_inc(x_507); +x_508 = lean_ctor_get(x_506, 1); +lean_inc(x_508); +lean_dec(x_506); +x_509 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__6; +x_510 = l_Lean_mkConst(x_509, x_463); +x_511 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; +lean_inc(x_416); +x_512 = lean_array_push(x_511, x_416); +lean_inc(x_396); +x_513 = lean_array_push(x_512, x_396); +x_514 = lean_array_push(x_513, x_417); +lean_inc(x_397); +x_515 = lean_array_push(x_514, x_397); +x_516 = lean_array_push(x_515, x_449); +x_517 = lean_array_push(x_516, x_507); +x_518 = lean_array_push(x_517, x_486); +lean_inc(x_4); +x_519 = lean_array_push(x_518, x_4); +x_520 = l_Lean_mkAppN(x_510, x_519); +lean_dec(x_519); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_520); +x_521 = l_Lean_Meta_inferType___at_Lean_Elab_Term_throwTypeMismatchError___spec__2(x_520, x_6, x_7, x_8, x_9, x_10, x_11, x_508); +if (lean_obj_tag(x_521) == 0) +{ +lean_object* x_522; lean_object* x_523; lean_object* x_524; +x_522 = lean_ctor_get(x_521, 0); +lean_inc(x_522); +x_523 = lean_ctor_get(x_521, 1); +lean_inc(x_523); +lean_dec(x_521); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_524 = l_Lean_Meta_isExprDefEq___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_14, x_522, x_6, x_7, x_8, x_9, x_10, x_11, x_523); +if (lean_obj_tag(x_524) == 0) +{ +lean_object* x_525; uint8_t x_526; +x_525 = lean_ctor_get(x_524, 0); +lean_inc(x_525); +x_526 = lean_unbox(x_525); +lean_dec(x_525); +if (x_526 == 0) +{ +lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; +lean_dec(x_520); +x_527 = lean_ctor_get(x_524, 1); +lean_inc(x_527); +lean_dec(x_524); +x_528 = lean_box(0); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_17); +lean_inc(x_14); +x_529 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_528, x_6, x_7, x_8, x_9, x_10, x_11, x_527); +x_530 = lean_ctor_get(x_529, 1); +lean_inc(x_530); +lean_dec(x_529); +x_425 = x_530; +goto block_443; +} +else +{ +lean_object* x_531; lean_object* x_532; lean_object* x_533; +lean_dec(x_416); +lean_dec(x_397); +lean_dec(x_396); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_531 = lean_ctor_get(x_524, 1); +lean_inc(x_531); +if (lean_is_exclusive(x_524)) { + lean_ctor_release(x_524, 0); + lean_ctor_release(x_524, 1); + x_532 = x_524; +} else { + lean_dec_ref(x_524); + x_532 = lean_box(0); +} +if (lean_is_scalar(x_532)) { + x_533 = lean_alloc_ctor(0, 2, 0); +} else { + x_533 = x_532; +} +lean_ctor_set(x_533, 0, x_520); +lean_ctor_set(x_533, 1, x_531); return x_533; } +} else { -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; -x_534 = lean_ctor_get(x_530, 1); +lean_object* x_534; +lean_dec(x_520); +x_534 = lean_ctor_get(x_524, 1); lean_inc(x_534); -lean_dec(x_530); -x_535 = lean_ctor_get(x_531, 0); +lean_dec(x_524); +x_425 = x_534; +goto block_443; +} +} +else +{ +lean_object* x_535; +lean_dec(x_520); +x_535 = lean_ctor_get(x_521, 1); lean_inc(x_535); -if (lean_is_exclusive(x_531)) { - lean_ctor_release(x_531, 0); - x_536 = x_531; -} else { - lean_dec_ref(x_531); - x_536 = lean_box(0); +lean_dec(x_521); +x_425 = x_535; +goto block_443; } -if (lean_is_scalar(x_536)) { - x_537 = lean_alloc_ctor(1, 1, 0); -} else { - x_537 = x_536; } -lean_ctor_set(x_537, 0, x_400); -if (lean_is_scalar(x_398)) { - x_538 = lean_alloc_ctor(1, 1, 0); -} else { - x_538 = x_398; +else +{ +lean_object* x_536; +lean_dec(x_486); +lean_dec(x_463); +lean_dec(x_449); +lean_dec(x_417); +x_536 = lean_ctor_get(x_506, 1); +lean_inc(x_536); +lean_dec(x_506); +x_425 = x_536; +goto block_443; } -lean_ctor_set(x_538, 0, x_401); -x_539 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_539, 0, x_385); -x_540 = lean_box(0); -x_541 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_541, 0, x_535); -lean_inc(x_4); -x_542 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_542, 0, x_4); -x_543 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; -x_544 = lean_array_push(x_543, x_537); -x_545 = lean_array_push(x_544, x_538); -x_546 = lean_array_push(x_545, x_539); -x_547 = lean_array_push(x_546, x_540); -x_548 = lean_array_push(x_547, x_541); -x_549 = lean_array_push(x_548, x_542); -x_550 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; +} +else +{ +lean_object* x_537; +lean_dec(x_488); +lean_dec(x_486); +lean_dec(x_463); +lean_dec(x_449); +lean_dec(x_417); +x_537 = lean_ctor_get(x_490, 1); +lean_inc(x_537); +lean_dec(x_490); +x_425 = x_537; +goto block_443; +} +} +else +{ +lean_object* x_538; +lean_dec(x_486); +lean_dec(x_463); +lean_dec(x_449); +lean_dec(x_417); +x_538 = lean_ctor_get(x_487, 1); +lean_inc(x_538); +lean_dec(x_487); +x_425 = x_538; +goto block_443; +} +} +} +else +{ +lean_object* x_539; lean_object* x_540; lean_object* x_541; +lean_dec(x_463); +lean_dec(x_449); +lean_dec(x_417); +lean_dec(x_416); +lean_dec(x_397); +lean_dec(x_396); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_539 = lean_ctor_get(x_476, 1); +lean_inc(x_539); +if (lean_is_exclusive(x_476)) { + lean_ctor_release(x_476, 0); + lean_ctor_release(x_476, 1); + x_540 = x_476; +} else { + lean_dec_ref(x_476); + x_540 = lean_box(0); +} +if (lean_is_scalar(x_540)) { + x_541 = lean_alloc_ctor(0, 2, 0); +} else { + x_541 = x_540; +} +lean_ctor_set(x_541, 0, x_472); +lean_ctor_set(x_541, 1, x_539); +return x_541; +} +} +else +{ +lean_object* x_542; +lean_dec(x_472); +lean_dec(x_463); +lean_dec(x_449); +lean_dec(x_417); +x_542 = lean_ctor_get(x_476, 1); +lean_inc(x_542); +lean_dec(x_476); +x_425 = x_542; +goto block_443; +} +} +else +{ +lean_object* x_543; +lean_dec(x_472); +lean_dec(x_463); +lean_dec(x_449); +lean_dec(x_417); +x_543 = lean_ctor_get(x_473, 1); +lean_inc(x_543); +lean_dec(x_473); +x_425 = x_543; +goto block_443; +} +} +else +{ +lean_object* x_544; +lean_dec(x_455); +lean_dec(x_452); +lean_dec(x_449); +lean_dec(x_417); +x_544 = lean_ctor_get(x_457, 1); +lean_inc(x_544); +lean_dec(x_457); +x_425 = x_544; +goto block_443; +} +} +else +{ +lean_object* x_545; +lean_dec(x_452); +lean_dec(x_449); +lean_dec(x_417); +x_545 = lean_ctor_get(x_454, 1); +lean_inc(x_545); +lean_dec(x_454); +x_425 = x_545; +goto block_443; +} +} +else +{ +lean_object* x_546; +lean_dec(x_449); +lean_dec(x_417); +x_546 = lean_ctor_get(x_451, 1); +lean_inc(x_546); +lean_dec(x_451); +x_425 = x_546; +goto block_443; +} +} +else +{ +lean_object* x_547; +lean_dec(x_417); +x_547 = lean_ctor_get(x_448, 1); +lean_inc(x_547); +lean_dec(x_448); +x_425 = x_547; +goto block_443; +} +} +else +{ +lean_object* x_548; +lean_dec(x_417); +x_548 = lean_ctor_get(x_445, 1); +lean_inc(x_548); +lean_dec(x_445); +x_425 = x_548; +goto block_443; +} +block_443: +{ +lean_object* x_426; lean_object* x_427; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_551 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_550, x_549, x_6, x_7, x_8, x_9, x_10, x_11, x_534); +x_426 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_416, x_6, x_7, x_8, x_9, x_10, x_11, x_425); +x_427 = lean_ctor_get(x_426, 0); +lean_inc(x_427); +if (lean_obj_tag(x_427) == 0) +{ +lean_object* x_428; lean_object* x_429; +x_428 = lean_ctor_get(x_426, 1); +lean_inc(x_428); +lean_dec(x_426); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_4); +lean_inc(x_17); +lean_inc(x_1); +x_429 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_396, x_397, x_17, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_428); +if (lean_obj_tag(x_429) == 0) +{ +lean_object* x_430; +x_430 = lean_ctor_get(x_429, 0); +lean_inc(x_430); +if (lean_obj_tag(x_430) == 0) +{ +lean_object* x_431; lean_object* x_432; +x_431 = lean_ctor_get(x_429, 1); +lean_inc(x_431); +lean_dec(x_429); +x_432 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_431); +return x_432; +} +else +{ +lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_433 = lean_ctor_get(x_429, 1); +lean_inc(x_433); +if (lean_is_exclusive(x_429)) { + lean_ctor_release(x_429, 0); + lean_ctor_release(x_429, 1); + x_434 = x_429; +} else { + lean_dec_ref(x_429); + x_434 = lean_box(0); +} +x_435 = lean_ctor_get(x_430, 0); +lean_inc(x_435); +lean_dec(x_430); +if (lean_is_scalar(x_434)) { + x_436 = lean_alloc_ctor(0, 2, 0); +} else { + x_436 = x_434; +} +lean_ctor_set(x_436, 0, x_435); +lean_ctor_set(x_436, 1, x_433); +return x_436; +} +} +else +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_437 = lean_ctor_get(x_429, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_429, 1); +lean_inc(x_438); +if (lean_is_exclusive(x_429)) { + lean_ctor_release(x_429, 0); + lean_ctor_release(x_429, 1); + x_439 = x_429; +} else { + lean_dec_ref(x_429); + x_439 = lean_box(0); +} +if (lean_is_scalar(x_439)) { + x_440 = lean_alloc_ctor(1, 2, 0); +} else { + x_440 = x_439; +} +lean_ctor_set(x_440, 0, x_437); +lean_ctor_set(x_440, 1, x_438); +return x_440; +} +} +else +{ +lean_object* x_441; lean_object* x_442; +lean_dec(x_427); +lean_dec(x_397); +lean_dec(x_396); +x_441 = lean_ctor_get(x_426, 1); +lean_inc(x_441); +lean_dec(x_426); +x_442 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_441); +return x_442; +} +} +} +else +{ +lean_object* x_549; lean_object* x_550; lean_object* x_551; +x_549 = lean_ctor_get(x_418, 1); +lean_inc(x_549); +lean_dec(x_418); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_550 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_isMonad_x3f(x_396, x_6, x_7, x_8, x_9, x_10, x_11, x_549); +x_551 = lean_ctor_get(x_550, 0); +lean_inc(x_551); if (lean_obj_tag(x_551) == 0) { -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_551; -} -else -{ lean_object* x_552; lean_object* x_553; -x_552 = lean_ctor_get(x_551, 1); +lean_dec(x_417); +lean_dec(x_416); +lean_dec(x_414); +lean_dec(x_397); +x_552 = lean_ctor_get(x_550, 1); lean_inc(x_552); -lean_dec(x_551); -x_553 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_540, x_6, x_7, x_8, x_9, x_10, x_11, x_552); -lean_dec(x_7); -lean_dec(x_1); +lean_dec(x_550); +x_553 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_552); return x_553; } -} -} -} else { -lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; -lean_dec(x_401); -lean_dec(x_400); -lean_dec(x_398); -lean_dec(x_385); -lean_dec(x_384); -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_554 = lean_ctor_get(x_402, 0); +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; +x_554 = lean_ctor_get(x_550, 1); lean_inc(x_554); -x_555 = lean_ctor_get(x_402, 1); +lean_dec(x_550); +x_555 = lean_ctor_get(x_551, 0); lean_inc(x_555); -if (lean_is_exclusive(x_402)) { - lean_ctor_release(x_402, 0); - lean_ctor_release(x_402, 1); - x_556 = x_402; +if (lean_is_exclusive(x_551)) { + lean_ctor_release(x_551, 0); + x_556 = x_551; } else { - lean_dec_ref(x_402); + lean_dec_ref(x_551); x_556 = lean_box(0); } if (lean_is_scalar(x_556)) { - x_557 = lean_alloc_ctor(1, 2, 0); + x_557 = lean_alloc_ctor(1, 1, 0); } else { x_557 = x_556; } -lean_ctor_set(x_557, 0, x_554); -lean_ctor_set(x_557, 1, x_555); -return x_557; +lean_ctor_set(x_557, 0, x_416); +if (lean_is_scalar(x_414)) { + x_558 = lean_alloc_ctor(1, 1, 0); +} else { + x_558 = x_414; } -} -} -else +lean_ctor_set(x_558, 0, x_417); +x_559 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_559, 0, x_397); +x_560 = lean_box(0); +x_561 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_561, 0, x_555); +lean_inc(x_4); +x_562 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_562, 0, x_4); +x_563 = l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkEqNDRecImp___closed__6; +x_564 = lean_array_push(x_563, x_557); +x_565 = lean_array_push(x_564, x_558); +x_566 = lean_array_push(x_565, x_559); +x_567 = lean_array_push(x_566, x_560); +x_568 = lean_array_push(x_567, x_561); +x_569 = lean_array_push(x_568, x_562); +x_570 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__9; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_571 = l_Lean_Meta_mkAppOptM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(x_570, x_569, x_6, x_7, x_8, x_9, x_10, x_11, x_554); +if (lean_obj_tag(x_571) == 0) { -lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; -lean_dec(x_385); -lean_dec(x_384); lean_dec(x_17); lean_dec(x_14); lean_dec(x_11); @@ -18908,33 +19329,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_558 = lean_ctor_get(x_386, 0); -lean_inc(x_558); -x_559 = lean_ctor_get(x_386, 1); -lean_inc(x_559); -if (lean_is_exclusive(x_386)) { - lean_ctor_release(x_386, 0); - lean_ctor_release(x_386, 1); - x_560 = x_386; -} else { - lean_dec_ref(x_386); - x_560 = lean_box(0); +return x_571; } -if (lean_is_scalar(x_560)) { - x_561 = lean_alloc_ctor(1, 2, 0); -} else { - x_561 = x_560; -} -lean_ctor_set(x_561, 0, x_558); -lean_ctor_set(x_561, 1, x_559); -return x_561; +else +{ +lean_object* x_572; lean_object* x_573; +x_572 = lean_ctor_get(x_571, 1); +lean_inc(x_572); +lean_dec(x_571); +x_573 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_560, x_6, x_7, x_8, x_9, x_10, x_11, x_572); +lean_dec(x_7); +lean_dec(x_1); +return x_573; } } } } else { -uint8_t x_562; +lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; +lean_dec(x_417); +lean_dec(x_416); +lean_dec(x_414); +lean_dec(x_397); +lean_dec(x_396); lean_dec(x_17); lean_dec(x_14); lean_dec(x_11); @@ -18946,29 +19364,106 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_562 = !lean_is_exclusive(x_19); -if (x_562 == 0) +x_574 = lean_ctor_get(x_418, 0); +lean_inc(x_574); +x_575 = lean_ctor_get(x_418, 1); +lean_inc(x_575); +if (lean_is_exclusive(x_418)) { + lean_ctor_release(x_418, 0); + lean_ctor_release(x_418, 1); + x_576 = x_418; +} else { + lean_dec_ref(x_418); + x_576 = lean_box(0); +} +if (lean_is_scalar(x_576)) { + x_577 = lean_alloc_ctor(1, 2, 0); +} else { + x_577 = x_576; +} +lean_ctor_set(x_577, 0, x_574); +lean_ctor_set(x_577, 1, x_575); +return x_577; +} +} +} +else +{ +lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; +lean_dec(x_397); +lean_dec(x_396); +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_578 = lean_ctor_get(x_398, 0); +lean_inc(x_578); +x_579 = lean_ctor_get(x_398, 1); +lean_inc(x_579); +if (lean_is_exclusive(x_398)) { + lean_ctor_release(x_398, 0); + lean_ctor_release(x_398, 1); + x_580 = x_398; +} else { + lean_dec_ref(x_398); + x_580 = lean_box(0); +} +if (lean_is_scalar(x_580)) { + x_581 = lean_alloc_ctor(1, 2, 0); +} else { + x_581 = x_580; +} +lean_ctor_set(x_581, 0, x_578); +lean_ctor_set(x_581, 1, x_579); +return x_581; +} +} +} +} +else +{ +uint8_t x_582; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_582 = !lean_is_exclusive(x_19); +if (x_582 == 0) { return x_19; } else { -lean_object* x_563; lean_object* x_564; lean_object* x_565; -x_563 = lean_ctor_get(x_19, 0); -x_564 = lean_ctor_get(x_19, 1); -lean_inc(x_564); -lean_inc(x_563); +lean_object* x_583; lean_object* x_584; lean_object* x_585; +x_583 = lean_ctor_get(x_19, 0); +x_584 = lean_ctor_get(x_19, 1); +lean_inc(x_584); +lean_inc(x_583); lean_dec(x_19); -x_565 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_565, 0, x_563); -lean_ctor_set(x_565, 1, x_564); -return x_565; +x_585 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_585, 0, x_583); +lean_ctor_set(x_585, 1, x_584); +return x_585; } } } else { -uint8_t x_566; +uint8_t x_586; lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); @@ -18979,29 +19474,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_566 = !lean_is_exclusive(x_16); -if (x_566 == 0) +x_586 = !lean_is_exclusive(x_16); +if (x_586 == 0) { return x_16; } else { -lean_object* x_567; lean_object* x_568; lean_object* x_569; -x_567 = lean_ctor_get(x_16, 0); -x_568 = lean_ctor_get(x_16, 1); -lean_inc(x_568); -lean_inc(x_567); +lean_object* x_587; lean_object* x_588; lean_object* x_589; +x_587 = lean_ctor_get(x_16, 0); +x_588 = lean_ctor_get(x_16, 1); +lean_inc(x_588); +lean_inc(x_587); lean_dec(x_16); -x_569 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_569, 0, x_567); -lean_ctor_set(x_569, 1, x_568); -return x_569; +x_589 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_589, 0, x_587); +lean_ctor_set(x_589, 1, x_588); +return x_589; } } } else { -uint8_t x_570; +uint8_t x_590; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -19012,23 +19507,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_570 = !lean_is_exclusive(x_13); -if (x_570 == 0) +x_590 = !lean_is_exclusive(x_13); +if (x_590 == 0) { return x_13; } else { -lean_object* x_571; lean_object* x_572; lean_object* x_573; -x_571 = lean_ctor_get(x_13, 0); -x_572 = lean_ctor_get(x_13, 1); -lean_inc(x_572); -lean_inc(x_571); +lean_object* x_591; lean_object* x_592; lean_object* x_593; +x_591 = lean_ctor_get(x_13, 0); +x_592 = lean_ctor_get(x_13, 1); +lean_inc(x_592); +lean_inc(x_591); lean_dec(x_13); -x_573 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_573, 0, x_571); -lean_ctor_set(x_573, 1, x_572); -return x_573; +x_593 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_593, 0, x_591); +lean_ctor_set(x_593, 1, x_592); +return x_593; } } } @@ -29532,7 +30027,7 @@ lean_dec(x_3); return x_9; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -29542,11 +30037,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -29713,7 +30208,7 @@ lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean x_89 = lean_ctor_get(x_83, 1); lean_inc(x_89); lean_dec(x_83); -x_90 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1; +x_90 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1; x_91 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_90, x_2, x_3, x_4, x_5, x_6, x_7, x_89); x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); @@ -29755,7 +30250,7 @@ lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean x_49 = lean_ctor_get(x_43, 1); lean_inc(x_49); lean_dec(x_43); -x_50 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1; +x_50 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1; x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_49); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); @@ -29832,7 +30327,7 @@ x_37 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__ x_38 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); -x_39 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1; +x_39 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1; x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_39, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_32); x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); @@ -29890,7 +30385,7 @@ x_73 = l_Array_foldlMUnsafe_fold___at_Lean_withNestedTraces___spec__5___closed__ x_74 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_74, 0, x_72); lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1; +x_75 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1; x_76 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_75, x_74, x_2, x_3, x_4, x_5, x_6, x_7, x_57); x_77 = lean_ctor_get(x_76, 1); lean_inc(x_77); @@ -39185,7 +39680,7 @@ x_8 = l_Lean_Elab_Term_instMetaEvalTermElabM___rarg(x_1, x_2, x_3, x_4, x_7, x_6 return x_8; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -39195,7 +39690,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334_(lean_object* x_1) { +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -39207,7 +39702,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_7334____closed__1; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381____closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -39662,9 +40157,9 @@ l_Lean_Elab_Term_mkAuxName___closed__2 = _init_l_Lean_Elab_Term_mkAuxName___clos lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__2); l_Lean_Elab_Term_mkAuxName___closed__3 = _init_l_Lean_Elab_Term_mkAuxName___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715____closed__1); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5715_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762____closed__1); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5762_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_isLetRecAuxMVar___closed__1 = _init_l_Lean_Elab_Term_isLetRecAuxMVar___closed__1(); @@ -39843,9 +40338,9 @@ l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2 = _init_l_Lean_Elab_Te lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2); l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__3 = _init_l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__3); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334____closed__1); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7334_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381____closed__1); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_7381_(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/Expr.c b/stage0/stdlib/Lean/Expr.c index ffac574651..1becd1a0c2 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -66,6 +66,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Expr_replaceFVarId___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isProp(lean_object*); lean_object* l_Lean_Expr_instHashableExpr___closed__1; lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); @@ -585,6 +586,7 @@ uint8_t l_Lean_Expr_Data_hasLevelParam(uint64_t); lean_object* l_Lean_Expr_dbgToString___boxed(lean_object*); lean_object* l_Lean_Expr_isForall___boxed(lean_object*); lean_object* l_Lean_Expr_isMData___boxed(lean_object*); +lean_object* l_Lean_Expr_isProp___boxed(lean_object*); lean_object* l_Lean_Expr_bvarIdx_x21___boxed(lean_object*); lean_object* l_Lean_Expr_updateLambdaE_x21_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLooseBVarInExplicitDomain_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -632,6 +634,7 @@ uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_Lean_Expr_updateProj___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isStringLit(lean_object*); lean_object* l_Lean_mkFreshMVarId(lean_object*); +lean_object* l_Lean_Expr_isProp_match__1(lean_object*); lean_object* l_Lean_ExprStructEq_hash_match__1(lean_object*); size_t lean_expr_hash(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -666,6 +669,7 @@ lean_object* l_Lean_Expr_instantiateLevelParamsCore_visit___at_Lean_Expr_instant lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubst_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mkData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_instToStringExprStructEq(lean_object*); +lean_object* l_Lean_Expr_isProp_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_isExplicit___boxed(lean_object*); uint64_t l_Lean_Expr_mkData___closed__1; lean_object* l_List_foldr___at_Lean_mkConst___spec__2___boxed(lean_object*, lean_object*); @@ -6307,6 +6311,91 @@ x_3 = lean_box(x_2); return x_3; } } +lean_object* l_Lean_Expr_isProp_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_4; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +if (lean_obj_tag(x_4) == 0) +{ +uint64_t x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_6 = lean_ctor_get_uint64(x_4, 0); +lean_dec(x_4); +x_7 = lean_box_uint64(x_6); +x_8 = lean_box_uint64(x_5); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_4); +lean_dec(x_2); +x_10 = lean_apply_1(x_3, x_1); +return x_10; +} +} +else +{ +lean_object* x_11; +lean_dec(x_2); +x_11 = lean_apply_1(x_3, x_1); +return x_11; +} +} +} +lean_object* l_Lean_Expr_isProp_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Expr_isProp_match__1___rarg), 3, 0); +return x_2; +} +} +uint8_t l_Lean_Expr_isProp(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +} +} +lean_object* l_Lean_Expr_isProp___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_isProp(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} lean_object* l_Lean_Expr_isBVar_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -7780,7 +7869,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_getRevArg_x21___closed__1; -x_3 = lean_unsigned_to_nat(497u); +x_3 = lean_unsigned_to_nat(501u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_List_get_x21___rarg___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8163,7 +8252,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_appFn_x21___closed__1; -x_3 = lean_unsigned_to_nat(517u); +x_3 = lean_unsigned_to_nat(521u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8247,7 +8336,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_appArg_x21___closed__1; -x_3 = lean_unsigned_to_nat(521u); +x_3 = lean_unsigned_to_nat(525u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8665,7 +8754,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_constName_x21___closed__1; -x_3 = lean_unsigned_to_nat(540u); +x_3 = lean_unsigned_to_nat(544u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8812,7 +8901,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_constLevels_x21___closed__1; -x_3 = lean_unsigned_to_nat(548u); +x_3 = lean_unsigned_to_nat(552u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8902,7 +8991,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_bvarIdx_x21___closed__1; -x_3 = lean_unsigned_to_nat(552u); +x_3 = lean_unsigned_to_nat(556u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_Expr_bvarIdx_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8992,7 +9081,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_fvarId_x21___closed__1; -x_3 = lean_unsigned_to_nat(556u); +x_3 = lean_unsigned_to_nat(560u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_fvarId_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9082,7 +9171,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_mvarId_x21___closed__1; -x_3 = lean_unsigned_to_nat(560u); +x_3 = lean_unsigned_to_nat(564u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_mvarId_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9197,7 +9286,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_bindingName_x21___closed__1; -x_3 = lean_unsigned_to_nat(565u); +x_3 = lean_unsigned_to_nat(569u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9313,7 +9402,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_bindingDomain_x21___closed__1; -x_3 = lean_unsigned_to_nat(570u); +x_3 = lean_unsigned_to_nat(574u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9429,7 +9518,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_bindingBody_x21___closed__1; -x_3 = lean_unsigned_to_nat(575u); +x_3 = lean_unsigned_to_nat(579u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9545,7 +9634,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_bindingInfo_x21___closed__1; -x_3 = lean_unsigned_to_nat(580u); +x_3 = lean_unsigned_to_nat(584u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9654,7 +9743,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_letName_x21___closed__1; -x_3 = lean_unsigned_to_nat(584u); +x_3 = lean_unsigned_to_nat(588u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_letName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12060,7 +12149,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateApp_x21___closed__1; -x_3 = lean_unsigned_to_nat(862u); +x_3 = lean_unsigned_to_nat(866u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12166,7 +12255,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateConst_x21___closed__1; -x_3 = lean_unsigned_to_nat(871u); +x_3 = lean_unsigned_to_nat(875u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12277,7 +12366,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateSort_x21___closed__1; -x_3 = lean_unsigned_to_nat(880u); +x_3 = lean_unsigned_to_nat(884u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_updateSort_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12465,7 +12554,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateMData_x21___closed__1; -x_3 = lean_unsigned_to_nat(897u); +x_3 = lean_unsigned_to_nat(901u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateMData_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12572,7 +12661,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateProj_x21___closed__1; -x_3 = lean_unsigned_to_nat(902u); +x_3 = lean_unsigned_to_nat(906u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_updateProj_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12692,7 +12781,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateForall_x21___closed__1; -x_3 = lean_unsigned_to_nat(911u); +x_3 = lean_unsigned_to_nat(915u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_updateForall_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12805,7 +12894,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateForallE_x21___closed__1; -x_3 = lean_unsigned_to_nat(916u); +x_3 = lean_unsigned_to_nat(920u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_updateForall_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12929,7 +13018,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateLambda_x21___closed__1; -x_3 = lean_unsigned_to_nat(925u); +x_3 = lean_unsigned_to_nat(929u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateLambda_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13042,7 +13131,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_3 = lean_unsigned_to_nat(930u); +x_3 = lean_unsigned_to_nat(934u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateLambda_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13158,7 +13247,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_Expr_0__Lean_Expr_mkDataCore___closed__1; x_2 = l_Lean_Expr_updateLet_x21___closed__1; -x_3 = lean_unsigned_to_nat(939u); +x_3 = lean_unsigned_to_nat(943u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_letName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index 9262a96d9b..c52d6d10fb 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -314,6 +314,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isSynthetic_match__2(l lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqProofIrrel_match__1(lean_object*); lean_object* l_Lean_Meta_throwIsDefEqStuck___rarg(lean_object*); @@ -416,7 +417,6 @@ uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Meta_isDefEqBindingDomain_loop_match__1(lean_object*); lean_object* l_Lean_ConstantInfo_hints(lean_object*); lean_object* l_Lean_Meta_commitWhen___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273____closed__1; lean_object* l_Array_anyMUnsafe_any___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t); size_t lean_usize_of_nat(lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_Meta_CheckAssignment_check___spec__17(lean_object*, lean_object*); @@ -441,6 +441,7 @@ size_t l_USize_land(size_t, size_t); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__1; lean_object* l_Lean_registerInternalExceptionId(lean_object*, lean_object*); +lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_check___spec__61(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Meta_isDefEqNat_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -455,6 +456,7 @@ lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__15; lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271____closed__1; lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__3; extern lean_object* l_Lean_Expr_instInhabitedExpr; lean_object* l_Array_contains___at_Lean_Meta_CheckAssignment_check___spec__2___boxed(lean_object*, lean_object*); @@ -567,8 +569,8 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_de lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Meta_CheckAssignment_check___spec__53(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssigned_match__1(lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7282_(lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7280_(lean_object*); lean_object* l_Std_HashMapImp_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at_Lean_Meta_CheckAssignment_check___spec__68___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instAddMessageContext___rarg(lean_object*, lean_object*, lean_object*); @@ -48438,186 +48440,255 @@ lean_dec(x_1); return x_10; } } -lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___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_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; uint8_t x_17; -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_object* x_7; uint8_t x_8; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_Lean_Environment_isProjectionFn(x_10, x_1); lean_dec(x_10); -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_ConstantInfo_name(x_1); -lean_inc(x_14); -x_15 = l_Lean_Environment_isProjectionFn(x_13, x_14); -x_16 = l_Lean_ConstantInfo_name(x_2); -lean_inc(x_16); -x_17 = l_Lean_Environment_isProjectionFn(x_13, x_16); -lean_dec(x_13); -if (x_17 == 0) -{ -lean_dec(x_14); -if (x_15 == 0) -{ -lean_object* x_18; -lean_dec(x_16); -x_18 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldReducibeDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -return x_18; +x_12 = lean_box(x_11); +lean_ctor_set(x_7, 0, x_12); +return x_7; } else { -lean_object* x_19; +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_7); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Environment_isProjectionFn(x_15, x_1); +lean_dec(x_15); +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_14); +return x_18; +} +} +} +lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_17; +x_10 = l_Lean_ConstantInfo_name(x_1); +lean_inc(x_10); +x_11 = l_Lean_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___spec__1(x_10, x_5, x_6, x_7, x_8, x_9); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_ConstantInfo_name(x_2); +lean_inc(x_14); +x_15 = l_Lean_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___spec__1(x_14, x_5, x_6, x_7, x_8, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +uint8_t x_18; +lean_dec(x_10); +x_18 = lean_unbox(x_12); +lean_dec(x_12); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_14); +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldReducibeDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_dec(x_15); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_19 = l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f(x_4, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_19) == 0) +x_22 = l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f(x_4, x_5, x_6, x_7, x_8, x_21); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_20; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_16); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21); -return x_22; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -lean_dec(x_4); -x_23 = lean_ctor_get(x_19, 1); +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_ctor_get(x_20, 0); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_14); +x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); -lean_dec(x_20); -x_25 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqRight(x_16, x_3, x_24, x_5, x_6, x_7, x_8, x_23); +lean_dec(x_22); +x_25 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); return x_25; } +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_4); +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_ctor_get(x_23, 0); +lean_inc(x_27); +lean_dec(x_23); +x_28 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqRight(x_14, x_3, x_27, x_5, x_6, x_7, x_8, x_26); +return x_28; +} } else { -uint8_t x_26; -lean_dec(x_16); +uint8_t x_29; +lean_dec(x_14); 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_26 = !lean_is_exclusive(x_19); -if (x_26 == 0) +x_29 = !lean_is_exclusive(x_22); +if (x_29 == 0) { -return x_19; +return x_22; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_19, 0); -x_28 = lean_ctor_get(x_19, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_19); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_22, 0); +x_31 = lean_ctor_get(x_22, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_22); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; } } } } else { -lean_dec(x_16); -if (x_15 == 0) +uint8_t x_33; +lean_dec(x_14); +x_33 = lean_unbox(x_12); +lean_dec(x_12); +if (x_33 == 0) { -lean_object* x_30; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_15, 1); +lean_inc(x_34); +lean_dec(x_15); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_30 = l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f(x_3, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_30) == 0) +x_35 = l___private_Lean_Meta_WHNF_0__Lean_Meta_unfoldDefinitionImp_x3f(x_3, x_5, x_6, x_7, x_8, x_34); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_31; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -if (lean_obj_tag(x_31) == 0) +lean_object* x_36; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_32; lean_object* x_33; -lean_dec(x_14); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_32); -return x_33; +lean_object* x_37; lean_object* x_38; +lean_dec(x_10); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_37); +return x_38; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_dec(x_3); -x_34 = lean_ctor_get(x_30, 1); -lean_inc(x_34); -lean_dec(x_30); -x_35 = lean_ctor_get(x_31, 0); -lean_inc(x_35); -lean_dec(x_31); -x_36 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft(x_14, x_35, x_4, x_5, x_6, x_7, x_8, x_34); -return x_36; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = lean_ctor_get(x_36, 0); +lean_inc(x_40); +lean_dec(x_36); +x_41 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft(x_10, x_40, x_4, x_5, x_6, x_7, x_8, x_39); +return x_41; } } else { -uint8_t x_37; -lean_dec(x_14); +uint8_t x_42; +lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_37 = !lean_is_exclusive(x_30); -if (x_37 == 0) +x_42 = !lean_is_exclusive(x_35); +if (x_42 == 0) { -return x_30; +return x_35; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_30, 0); -x_39 = lean_ctor_get(x_30, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_30); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_35, 0); +x_44 = lean_ctor_get(x_35, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_35); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } else { -lean_object* x_41; -lean_dec(x_14); -x_41 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldReducibeDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -return x_41; +lean_object* x_46; lean_object* x_47; +lean_dec(x_10); +x_46 = lean_ctor_get(x_15, 1); +lean_inc(x_46); +lean_dec(x_15); +x_47 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldReducibeDefEq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_46); +return x_47; } } } } +lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___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_isProjectionFn___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq___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: { @@ -60710,7 +60781,7 @@ x_10 = l_Lean_Meta_isExprDefEqAuxImpl___lambda__1(x_1, x_2, x_9, x_4, x_5, x_6, return x_10; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273____closed__1() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271____closed__1() { _start: { lean_object* x_1; @@ -60718,12 +60789,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAuxImpl), 7, 0); return x_1; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; x_2 = l_Lean_Meta_isExprDefEqAuxRef; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273____closed__1; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271____closed__1; x_4 = lean_st_ref_set(x_2, x_3, x_1); x_5 = !lean_is_exclusive(x_4); if (x_5 == 0) @@ -60745,7 +60816,7 @@ return x_8; } } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7282_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7280_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -61114,12 +61185,12 @@ l_Lean_Meta_isExprDefEqAuxImpl___lambda__2___closed__1 = _init_l_Lean_Meta_isExp lean_mark_persistent(l_Lean_Meta_isExprDefEqAuxImpl___lambda__2___closed__1); l_Lean_Meta_isExprDefEqAuxImpl___closed__1 = _init_l_Lean_Meta_isExprDefEqAuxImpl___closed__1(); lean_mark_persistent(l_Lean_Meta_isExprDefEqAuxImpl___closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273____closed__1); -res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7273_(lean_io_mk_world()); +l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271____closed__1); +res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7271_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7282_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_7280_(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/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index 5827b1c2dc..00858bd63a 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -73,11 +73,9 @@ extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; extern lean_object* l_Lean_Meta_setInlineAttribute___rarg___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_updateAlts_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__4; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___lambda__1___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7(lean_object*, lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__1; lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_MatcherApp_addArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit___spec__8___closed__2; @@ -134,6 +132,8 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_collectArraySi lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__4___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__4; +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isArrayLitTransition_match__1(lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__4; @@ -258,7 +258,7 @@ lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__1___closed__2; lean_object* l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract___at_Lean_Meta_MatcherApp_addArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7522_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7518_(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Match_mkMatcher___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__1___closed__8; @@ -306,6 +306,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAltsAux___ lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__5; lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Meta_Match_mkMatcher___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__9; +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__3; lean_object* l_Lean_Meta_Match_Pattern_toMessageData(lean_object*); lean_object* l_Lean_Meta_Match_Example_varsToUnderscore(lean_object*); lean_object* l_Lean_Meta_Match_Unify_unify_match__1(lean_object*); @@ -431,7 +432,6 @@ lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___lambda__1___boxed(lea lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__2___closed__3; lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Pattern_toMessageData_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__3; lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNamesImp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Meta_Match_examplesToMessageData___spec__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -470,6 +470,7 @@ lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__1___rarg(lean_objec lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__3; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__2; lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___closed__1; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -505,7 +506,6 @@ uint8_t l_List_elem___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_ lean_object* l_Array_indexOfAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___closed__2; size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__5; lean_object* l_Lean_replaceFVarIdAtLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunkType(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -589,7 +589,6 @@ lean_object* l_List_toStringAux___at_Lean_Meta_Match_mkMatcher___spec__12(uint8_ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__2; uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_Alt_toMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition(lean_object*); @@ -663,6 +662,7 @@ lean_object* l_Lean_Meta_commitWhen___at_Lean_Meta_Match_Unify_unify___spec__2(l lean_object* l_List_filterAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapIdxM_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_502____closed__4; +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__5; extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__8; lean_object* l_Array_indexOfAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(lean_object*); @@ -704,7 +704,6 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLi lean_object* l_Lean_Meta_Match_Pattern_instInhabitedPattern___closed__1; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MatcherApp_addArg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__6; lean_object* l_List_foldr___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processArrayLit_match__1(lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -824,6 +823,7 @@ lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___boxe lean_object* l_Lean_Meta_Match_isCurrVarInductive_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_isCurrVarInductive___closed__1; +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__6; lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__6; lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isVariableTransition___boxed(lean_object*); @@ -855,7 +855,7 @@ lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Meta_Match_M lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__5; lean_object* l_Lean_Meta_Match_Alt_applyFVarSubst(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable_match__1(lean_object*); -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592_(lean_object*); +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588_(lean_object*); lean_object* l_Lean_Meta_commitWhen___at_Lean_Meta_Match_Unify_unify___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Tactic_Cases_0__Lean_Meta_throwInductiveTypeExpected___rarg___closed__2; lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__3; @@ -29042,7 +29042,7 @@ lean_dec(x_2); return x_8; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__1() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__1() { _start: { lean_object* x_1; @@ -29050,17 +29050,17 @@ x_1 = lean_mk_string("bootstrap"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__2() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____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_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__1; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__3() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__3() { _start: { lean_object* x_1; @@ -29068,17 +29068,17 @@ x_1 = lean_mk_string("gen_matcher_code"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__4() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__2; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__3; +x_1 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__2; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__5() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__5() { _start: { lean_object* x_1; @@ -29086,13 +29086,13 @@ x_1 = lean_mk_string("disable code generation for auxiliary matcher function"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__6() { +static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_initFn____x40_Lean_Data_Options___hyg_476____closed__3; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__1; -x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__5; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__1; +x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -29100,12 +29100,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592_(lean_object* x_1) { +lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__4; -x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__6; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__4; +x_3 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__6; x_4 = lean_register_option(x_2, x_3, x_1); return x_4; } @@ -29114,7 +29114,7 @@ uint8_t l_Lean_Meta_Match_generateMatcherCode(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; -x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__4; +x_2 = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__4; x_3 = 1; x_4 = l_Lean_KVMap_getBool(x_1, x_2, x_3); return x_4; @@ -34832,7 +34832,7 @@ lean_dec(x_5); return x_11; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7522_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7518_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -35204,19 +35204,19 @@ l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2 lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__2); l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__3 = _init_l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___closed__3); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__1(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__1); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__2(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__2); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__3(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__3); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__4(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__4); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__5(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__5); -l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__6(); -lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592____closed__6); -res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6592_(lean_io_mk_world()); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__1 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__1(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__1); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__2 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__2(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__2); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__3 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__3(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__3); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__4 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__4(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__4); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__5 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__5(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__5); +l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__6 = _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__6(); +lean_mark_persistent(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588____closed__6); +res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_6588_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Meta_Match_mkMatcher___lambda__1___closed__1 = _init_l_Lean_Meta_Match_mkMatcher___lambda__1___closed__1(); @@ -35291,7 +35291,7 @@ l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1 = _init_l_Lean_Meta_Matche lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__1); l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2 = _init_l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2(); lean_mark_persistent(l_Lean_Meta_MatcherApp_addArg___lambda__4___closed__2); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7522_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Match_Match___hyg_7518_(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/ProjFns.c b/stage0/stdlib/Lean/ProjFns.c index 19041a6520..081bf7d233 100644 --- a/stage0/stdlib/Lean/ProjFns.c +++ b/stage0/stdlib/Lean/ProjFns.c @@ -27,6 +27,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); +lean_object* l_Lean_isProjectionFn___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_projectionFnInfoExt___elambda__2___boxed(lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); @@ -46,9 +47,11 @@ lean_object* l_Lean_Environment_getProjectionStructureName_x3f(lean_object*, lea lean_object* l_Lean_projectionFnInfoExt___elambda__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Lean_projectionFnInfoExt___elambda__4___rarg(lean_object*); +lean_object* l_Lean_isProjectionFn___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__2(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_getProjectionFnInfo_x3f___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ProjFns___hyg_42_(lean_object*); lean_object* l_Lean_projectionFnInfoExt___elambda__2(lean_object*); @@ -90,11 +93,13 @@ lean_object* l_Lean_Environment_isProjectionFn_match__1___rarg(lean_object*, lea lean_object* l_Std_RBNode_find___at_Lean_Environment_getProjectionFnInfo_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_ProjectionFunctionInfo_fromClassEx___boxed(lean_object*); extern lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1; +lean_object* l_Lean_isProjectionFn___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_initFn____x40_Lean_ProjFns___hyg_42____closed__4; lean_object* l_Lean_mkProjectionInfoEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__2; lean_object* l_Lean_initFn____x40_Lean_ProjFns___hyg_42____closed__2; lean_object* l_Lean_projectionFnInfoExt___elambda__3(lean_object*, lean_object*); +lean_object* l_Lean_getProjectionFnInfo_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_ProjFns___hyg_42____spec__4(lean_object*, lean_object*); lean_object* l_Lean_Environment_getProjectionFnInfo_x3f_match__2(lean_object*); lean_object* l_Lean_projectionFnInfoExt___closed__1; @@ -102,6 +107,8 @@ extern lean_object* l_Lean_instInhabitedName; lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_projectionFnInfoExt___elambda__4(lean_object*, lean_object*); +lean_object* l_Lean_isProjectionFn(lean_object*); +lean_object* l_Lean_getProjectionFnInfo_x3f(lean_object*); lean_object* l_Lean_initFn____x40_Lean_ProjFns___hyg_42____lambda__2___boxed(lean_object*); lean_object* l_Lean_projectionFnInfoExt___closed__4; lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_ProjFns___hyg_42____spec__2___closed__1; @@ -1587,6 +1594,94 @@ return x_18; } } } +lean_object* l_Lean_isProjectionFn___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = l_Lean_Environment_isProjectionFn(x_3, x_2); +x_7 = lean_box(x_6); +x_8 = lean_apply_2(x_5, lean_box(0), x_7); +return x_8; +} +} +lean_object* l_Lean_isProjectionFn___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_isProjectionFn___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_6, 0, x_2); +lean_closure_set(x_6, 1, x_3); +x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_isProjectionFn(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_isProjectionFn___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_isProjectionFn___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_isProjectionFn___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_getProjectionFnInfo_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_get_projection_info(x_3, x_2); +x_7 = lean_apply_2(x_5, lean_box(0), x_6); +return x_7; +} +} +lean_object* l_Lean_getProjectionFnInfo_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_getProjectionFnInfo_x3f___rarg___lambda__1), 3, 2); +lean_closure_set(x_6, 0, x_2); +lean_closure_set(x_6, 1, x_3); +x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_getProjectionFnInfo_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_getProjectionFnInfo_x3f___rarg), 3, 0); +return x_2; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Environment(lean_object*); static bool _G_initialized = false;