diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 708eece8bc..ba9b514eb0 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -83,22 +83,36 @@ def synthesizeAppInstMVars (instMVars : Array MVarId) (app : Expr) : TermElabM U namespace ElabAppArgs +structure Context where + /-- + `true` if `..` was used + -/ + ellipsis : Bool -- + /-- + `true` if `@` modifier was used + -/ + explicit : Bool + /-- + `true` if we should add a "coercion placeholder" at the result if its type is an `outParam` of some local instance. + We also mark the type variable as a `syntheticOpaque + -/ + coeAtOutParam : Bool + /- Auxiliary structure for elaborating the application `f args namedArgs`. -/ structure State where - explicit : Bool -- true if `@` modifier was used - f : Expr - fType : Expr - args : List Arg -- remaining regular arguments - namedArgs : List NamedArg -- remaining named arguments to be processed - ellipsis : Bool := false - expectedType? : Option Expr - etaArgs : Array Expr := #[] - toSetErrorCtx : Array MVarId := #[] -- metavariables that we need the set the error context using the application being built - instMVars : Array MVarId := #[] -- metavariables for the instance implicit arguments that have already been processed + f : Expr + fType : Expr + args : List Arg -- remaining regular arguments + namedArgs : List NamedArg -- remaining named arguments to be processed + expectedType? : Option Expr + etaArgs : Array Expr := #[] + toSetErrorCtx : Array MVarId := #[] -- metavariables that we need the set the error context using the application being built + instMVars : Array MVarId := #[] -- metavariables for the instance implicit arguments that have already been processed -- The following field is used to implement the `propagateExpectedType` heuristic. - propagateExpected : Bool -- true when expectedType has not been propagated yet + propagateExpected : Bool -- true when expectedType has not been propagated yet + resultTypeOutParam? : Option MVarId := none -abbrev M := StateRefT State TermElabM +abbrev M := ReaderT Context (StateRefT State TermElabM) /- Add the given metavariable to the collection of metavariables associated with instance-implicit arguments. -/ private def addInstMVar (mvarId : MVarId) : M Unit := @@ -112,7 +126,7 @@ def synthesizeAppInstMVars : M Unit := do let s ← get let instMVars := s.instMVars modify fun s => { s with instMVars := #[] } - Lean.Elab.Term.synthesizeAppInstMVars instMVars s.f + Term.synthesizeAppInstMVars instMVars s.f /- fType may become a forallE after we synthesize pending metavariables. -/ private def synthesizePendingAndNormalizeFunType : M Unit := do @@ -294,7 +308,7 @@ private def propagateExpectedType (arg : Arg) : M Unit := do else let numRemainingArgs := s.args.length trace[Elab.app.propagateExpectedType] "etaArgs.size: {s.etaArgs.size}, numRemainingArgs: {numRemainingArgs}, fType: {s.fType}" - match getForallBody s.explicit numRemainingArgs s.namedArgs s.fType with + match getForallBody (← read).explicit numRemainingArgs s.namedArgs s.fType with | none => pure () | some fTypeBody => unless fTypeBody.hasLooseBVars do @@ -304,7 +318,6 @@ private def propagateExpectedType (arg : Arg) : M Unit := do /- Note that we only set `propagateExpected := false` when propagation has succeeded. -/ modify fun s => { s with propagateExpected := false } - /- This method execute after all application arguments have been processed. -/ private def finalize : M Expr := do let s ← get @@ -326,9 +339,31 @@ private def finalize : M Expr := do match s.expectedType? with | none => pure () | some expectedType => - trace[Elab.app.finalize] "expected type: {expectedType}" - -- Try to propagate expected type. Ignore if types are not definitionally equal, caller must handle it. - discard <| isDefEq expectedType eType + let shouldCreateCoe ← do + /- Recall that `resultTypeOutParam? = some mvarId` if the function result type is the output parameter + of a local instance. The value of this parameter may be inferable using other arguments. For example, + suppose we have + ```lean + def add_one {X} [Trait X] [One (Trait.R X)] [HAdd X (Trait.R X) X] (x : X) : X := x + (One.one : (Trait.R X)) + ``` + from test `948.lean`. There are multiple ways to infer `X`, and we don't want to mark it as `syntheticOpaque`. + -/ + if let some outParamMVarId := s.resultTypeOutParam? then + /- If `eType != mkMVar outParamMVarId`, then the + function is partially applied, and we do not create coercion placeholder. -/ + if !(← isExprMVarAssigned outParamMVarId) && eType.isMVar && eType.mvarId! == outParamMVarId then + setMVarKind outParamMVarId .syntheticOpaque + pure true + else + pure false + else + pure false + if shouldCreateCoe then + e ← mkCoe expectedType eType e + else + -- Try to propagate expected type. Ignore if types are not definitionally equal, caller must handle it. + trace[Elab.app.finalize] "expected type: {expectedType}" + discard <| isDefEq expectedType eType synthesizeAppInstMVars return e @@ -353,12 +388,82 @@ private def hasArgsToProcess : M Bool := do let s ← get return !s.args.isEmpty || !s.namedArgs.isEmpty -/- Return true if the next argument at `args` is of the form `_` -/ +/- Return `true` if the next argument at `args` is of the form `_` -/ private def isNextArgHole : M Bool := do match (← get).args with | Arg.stx (Syntax.node _ ``Lean.Parser.Term.hole _) :: _ => pure true | _ => pure false +/-- + Return `true` if the next argument to be processed is the outparam of a local instance, and it the result type + of the function. + + For example, suppose we have the class + ```lean + class Get (Cont : Type u) (Idx : Type v) (Elem : outParam (Type w)) where + get (xs : Cont) (i : Idx) : Elem + ``` + And the current value of `fType` is + ``` + {Cont : Type u_1} → {Idx : Type u_2} → {Elem : Type u_3} → [self : Get Cont Idx Elem] → Cont → Idx → Elem + ``` + then the result returned by this method is `false` since `Cont` is not the output param of any local instance. + Now assume `fType` is + ``` + {Elem : Type u_3} → [self : Get Cont Idx Elem] → Cont → Idx → Elem + ``` + then, the method returns `true` because `Elem` is an output parameter for the local instance `[self : Get Cont Idx Elem]`. + + Remark: if `coeAtOutParam` is `false`, this method returns `false`. +-/ +private partial def isNextOutParamOfLocalInstanceAndResult : M Bool := do + if !(← read).coeAtOutParam then + return false + let type := (← get).fType.bindingBody! + unless isResultType type 0 do + return false + if (← hasLocalInstaceWithOutParams type) then + let x := mkFVar (← mkFreshFVarId) + isOutParamOfLocalInstance x (type.instantiate1 x) + else + return false +where + isResultType (type : Expr) (i : Nat) : Bool := + match type with + | .forallE _ _ b _ => isResultType b (i + 1) + | .bvar idx _ => idx == i + | _ => false + + /- (quick filter) Return true if `type` constains a binder `[C ...]` where `C` is a class containing outparams. -/ + hasLocalInstaceWithOutParams (type : Expr) : CoreM Bool := do + let .forallE _ d b c := type | return false + if c.binderInfo.isInstImplicit then + if let .const declName .. := d.getAppFn then + if hasOutParams (← getEnv) declName then + return true + hasLocalInstaceWithOutParams b + + isOutParamOfLocalInstance (x : Expr) (type : Expr) : MetaM Bool := do + let .forallE _ d b c := type | return false + if c.binderInfo.isInstImplicit then + if let .const declName .. := d.getAppFn then + if hasOutParams (← getEnv) declName then + let cType ← inferType d.getAppFn + if (← isOutParamOf x 0 d.getAppArgs cType) then + return true + isOutParamOfLocalInstance x b + + isOutParamOf (x : Expr) (i : Nat) (args : Array Expr) (cType : Expr) : MetaM Bool := do + if h : i < args.size then + match (← whnf cType) with + | .forallE _ d b _ => + let arg := args.get ⟨i, h⟩ + if arg == x && d.isOutParam then + return true + isOutParamOf x (i+1) args b + | _ => return false + else + return false mutual /- @@ -374,7 +479,16 @@ mutual private partial def addImplicitArg (argName : Name) : M Expr := do let argType ← getArgExpectedType - let arg ← mkFreshExprMVar argType + let arg ← if (← isNextOutParamOfLocalInstanceAndResult) then + let arg ← mkFreshExprMVar argType + /- When the result type is an output parameter, we don't want to propagate the expected type. + So, we just mark `propagateExpected := false` to disable it. + At `finalize`, we check whether `arg` is still unassigned and promote it to a `syntheticOpaque` + to make sure it is not assigned but type inference until it is synthesized by type inference. -/ + modify fun s => { s with resultTypeOutParam? := some arg.mvarId!, propagateExpected := false } + pure arg + else + mkFreshExprMVar argType modify fun s => { s with toSetErrorCtx := s.toSetErrorCtx.push arg.mvarId! } addNewArg argName arg main @@ -383,8 +497,7 @@ mutual Process a `fType` of the form `(x : A) → B x`. This method assume `fType` is a function type -/ private partial def processExplictArg (argName : Name) : M Expr := do - let s ← get - match s.args with + match (← get).args with | arg::args => propagateExpectedType arg modify fun s => { s with args } @@ -392,7 +505,7 @@ mutual main | _ => let argType ← getArgExpectedType - match s.explicit, argType.getOptParamDefault?, argType.getAutoParamTactic? with + match (← read).explicit, argType.getOptParamDefault?, argType.getAutoParamTactic? with | false, some defVal, _ => addNewArg argName defVal; main | false, _, some (Expr.const tacticDecl _ _) => let env ← getEnv @@ -409,15 +522,15 @@ mutual | false, _, some _ => throwError "invalid autoParam, argument must be a constant" | _, _, _ => - if !s.namedArgs.isEmpty then + if !(← get).namedArgs.isEmpty then if (← anyNamedArgDependsOnCurrent) then addImplicitArg argName else addEtaArg argName - else if !s.explicit then + else if !(← read).explicit then if (← fTypeHasOptAutoParams) then addEtaArg argName - else if (← get).ellipsis then + else if (← read).ellipsis then addImplicitArg argName else finalize @@ -428,7 +541,7 @@ mutual Process a `fType` of the form `{x : A} → B x`. This method assume `fType` is a function type -/ private partial def processImplicitArg (argName : Name) : M Expr := do - if (← get).explicit then + if (← read).explicit then processExplictArg argName else addImplicitArg argName @@ -437,7 +550,7 @@ mutual Process a `fType` of the form `{{x : A}} → B x`. This method assume `fType` is a function type -/ private partial def processStrictImplicitArg (argName : Name) : M Expr := do - if (← get).explicit then + if (← read).explicit then processExplictArg argName else if (← hasArgsToProcess) then addImplicitArg argName @@ -448,7 +561,7 @@ mutual Process a `fType` of the form `[x : A] → B x`. This method assume `fType` is a function type -/ private partial def processInstImplicitArg (argName : Name) : M Expr := do - if (← get).explicit then + if (← read).explicit then if (← isNextArgHole) then /- Recall that if '@' has been used, and the argument is '_', then we still use type class resolution -/ let arg ← mkFreshExprMVar (← getArgExpectedType) MetavarKind.synthetic @@ -499,16 +612,18 @@ private def propagateExpectedTypeFor (f : Expr) : TermElabM Bool := | _ => return true def elabAppArgs (f : Expr) (namedArgs : Array NamedArg) (args : Array Arg) - (expectedType? : Option Expr) (explicit ellipsis : Bool) : TermElabM Expr := do + (expectedType? : Option Expr) (explicit ellipsis : Bool) (coeAtOutParam := true) : TermElabM Expr := do + -- Coercions must be available to use this flag. + -- If `@` is used (i.e., `explicit = true`), we disable `coeAtOutParam`. + let coeAtOutParam := ((← getEnv).contains ``Lean.Internal.coeM) && coeAtOutParam && !explicit let fType ← inferType f let fType ← instantiateMVars fType trace[Elab.app.args] "explicit: {explicit}, {f} : {fType}" unless namedArgs.isEmpty && args.isEmpty do tryPostponeIfMVar fType - ElabAppArgs.main.run' { + ElabAppArgs.main.run { explicit, ellipsis, coeAtOutParam } |>.run' { args := args.toList - expectedType? := expectedType? - explicit, ellipsis, f, fType + expectedType?, f, fType namedArgs := namedArgs.toList propagateExpected := (← propagateExpectedTypeFor f) } diff --git a/stage0/src/Lean/Elab/BuiltinNotation.lean b/stage0/src/Lean/Elab/BuiltinNotation.lean index eb4e4f4687..8abc77d4e6 100644 --- a/stage0/src/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Lean/Elab/BuiltinNotation.lean @@ -304,7 +304,8 @@ See the Chapter "Quantifiers and Equality" in the manual "Theorem Proving in Lea let expectedType? ← tryPostponeIfHasMVars? expectedType? match stx with | `($heqStx ▸ $hStx) => do - let mut heq ← elabTerm heqStx none + synthesizeSyntheticMVars + let mut heq ← withSynthesize <| elabTerm heqStx none let heqType ← inferType heq let heqType ← instantiateMVars heqType match (← Meta.matchEq? heqType) with @@ -322,7 +323,7 @@ See the Chapter "Quantifiers and Equality" in the manual "Theorem Proving in Lea unless expectedAbst.hasLooseBVars do expectedAbst ← kabstract expectedType lhs unless expectedAbst.hasLooseBVars do - throwError "invalid `▸` notation, expected result type of cast is {indentExpr expectedType}\n.However, the equality {indentExpr heq}\nof type {indentExpr heqType}\ndoes not contain the expected result type on either the left or the right hand side" + throwError "invalid `▸` notation, expected result type of cast is {indentExpr expectedType}\nhowever, the equality {indentExpr heq}\nof type {indentExpr heqType}\ndoes not contain the expected result type on either the left or the right hand side" heq ← mkEqSymm heq (lhs, rhs) := (rhs, lhs) let hExpectedType := expectedAbst.instantiate1 lhs diff --git a/stage0/src/Lean/Elab/Do.lean b/stage0/src/Lean/Elab/Do.lean index 7fc4a4a06b..33b6f09285 100644 --- a/stage0/src/Lean/Elab/Do.lean +++ b/stage0/src/Lean/Elab/Do.lean @@ -1385,11 +1385,13 @@ mutual let doForDecls := doForDecls.eraseIdx 1 let body := doFor[3] withFreshMacroScope do - let toStreamFn ← withRef ys ``(toStream) + /- Recall that `@` (explicit) disables `coeAtOutParam`. + We used `@` at `Stream` functions to make sure `coeAtOutParam` is not used. -/ + let toStreamApp ← withRef ys `(@toStream _ _ _ $ys) let auxDo ← - `(do let mut s := $toStreamFn:ident $ys + `(do let mut s := $toStreamApp:term for $doForDecls:doForDecl,* do - match Stream.next? s with + match @Stream.next? _ _ _ s with | none => break | some ($y, s') => s := s' diff --git a/stage0/src/Lean/Elab/Extra.lean b/stage0/src/Lean/Elab/Extra.lean index 6d5e8812d6..2b65c1cbb5 100644 --- a/stage0/src/Lean/Elab/Extra.lean +++ b/stage0/src/Lean/Elab/Extra.lean @@ -40,7 +40,7 @@ private def throwForInFailure (forInInstance : Expr) : TermElabM Expr := match (← trySynthInstance forInInstance) with | LOption.some _ => let forInFn ← mkConst ``forIn - elabAppArgs forInFn #[] #[Arg.stx col, Arg.stx init, Arg.stx body] expectedType? (explicit := false) (ellipsis := false) + elabAppArgs forInFn #[] #[Arg.stx col, Arg.stx init, Arg.stx body] expectedType? (explicit := false) (ellipsis := false) (coeAtOutParam := false) | LOption.undef => tryPostpone; throwForInFailure forInInstance | LOption.none => throwForInFailure forInInstance | _ => throwUnsupportedSyntax @@ -64,7 +64,7 @@ private def throwForInFailure (forInInstance : Expr) : TermElabM Expr := match (← trySynthInstance forInInstance) with | LOption.some _ => let forInFn ← mkConst ``forIn' - elabAppArgs forInFn #[] #[Arg.expr colFVar, Arg.stx init, Arg.stx body] expectedType? (explicit := false) (ellipsis := false) + elabAppArgs forInFn #[] #[Arg.expr colFVar, Arg.stx init, Arg.stx body] expectedType? (explicit := false) (ellipsis := false) (coeAtOutParam := false) | LOption.undef => tryPostpone; throwForInFailure forInInstance | LOption.none => throwForInFailure forInInstance | _ => throwUnsupportedSyntax @@ -195,7 +195,7 @@ where modify fun s => { s with hasUncomparable := true } private def mkOp (f : Expr) (lhs rhs : Expr) : TermElabM Expr := - elabAppArgs f #[] #[Arg.expr lhs, Arg.expr rhs] (expectedType? := none) (explicit := false) (ellipsis := false) + elabAppArgs f #[] #[Arg.expr lhs, Arg.expr rhs] (expectedType? := none) (explicit := false) (ellipsis := false) (coeAtOutParam := false) private def toExpr (t : Tree) : TermElabM Expr := do match t with @@ -325,7 +325,7 @@ def elabBinRelCore (noProp : Bool) (stx : Syntax) (expectedType? : Option Expr) let rhs ← toBoolIfNecessary rhs let lhsType ← inferType lhs let rhs ← ensureHasType lhsType rhs - elabAppArgs f #[] #[Arg.expr lhs, Arg.expr rhs] expectedType? (explicit := false) (ellipsis := false) + elabAppArgs f #[] #[Arg.expr lhs, Arg.expr rhs] expectedType? (explicit := false) (ellipsis := false) (coeAtOutParam := false) else let mut maxType := r.max?.get! /- If `noProp == true` and `maxType` is `Prop`, then set `maxType := Bool`. `See toBoolIfNecessary` -/ diff --git a/stage0/src/Lean/Elab/MutualDef.lean b/stage0/src/Lean/Elab/MutualDef.lean index 7f07b62197..e9bf55e75f 100644 --- a/stage0/src/Lean/Elab/MutualDef.lean +++ b/stage0/src/Lean/Elab/MutualDef.lean @@ -796,6 +796,8 @@ where return preDef else return { preDef with value := (← eraseAuxDiscr preDef.value) } + for preDef in preDefs do + trace[Elab.definition] "after eraseAuxDiscr, {preDef.declName} : {preDef.type} :=\n{preDef.value}" checkForHiddenUnivLevels allUserLevelNames preDefs addPreDefinitions preDefs hints processDeriving headers diff --git a/stage0/src/Lean/Elab/SyntheticMVars.lean b/stage0/src/Lean/Elab/SyntheticMVars.lean index e1271338d4..7d34da6163 100644 --- a/stage0/src/Lean/Elab/SyntheticMVars.lean +++ b/stage0/src/Lean/Elab/SyntheticMVars.lean @@ -74,7 +74,10 @@ private def synthesizePendingCoeInstMVar (auxMVarId : MVarId) (errorMsgHeader? : Option String) (eNew : Expr) (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr) : TermElabM Bool := do let instMVarId := eNew.appArg!.mvarId! withMVarContext instMVarId do - if (← isDefEq expectedType eType) then + let eType ← instantiateMVars eType + if (← isSyntheticMVar eType) then + return false + if (← withDefault <| isDefEq expectedType eType) then /- This case may seem counterintuitive since we created the coercion because the `isDefEq expectedType eType` test failed before. However, it may succeed here because we have more information, for example, metavariables @@ -168,8 +171,13 @@ where let candidate ← mkConstWithFreshMVarLevels defaultInstance let (mvars, bis, _) ← forallMetaTelescopeReducing (← inferType candidate) let candidate := mkAppN candidate mvars - if (← isDefEqGuarded (mkMVar mvarId) candidate) then + trace[Elab.defaultInstance] "{toString (mkMVar mvarId)}, {mkMVar mvarId} : {← inferType (mkMVar mvarId)} =?= {candidate} : {← inferType candidate}" + /- The `coeAtOutParam` feature may mark output parameters of local instances as `syntheticOpaque`. + This kind of parameter is not assignable by default. We use `withAssignableSyntheticOpaque` to workaround this behavior + when processing default instances. TODO: try to avoid `withAssignableSyntheticOpaque`. -/ + if (← withAssignableSyntheticOpaque <| isDefEqGuarded (mkMVar mvarId) candidate) then -- Succeeded. Collect new TC problems + trace[Elab.defaultInstance] "isDefEq worked {mkMVar mvarId} : {← inferType (mkMVar mvarId)} =?= {candidate} : {← inferType candidate}" let mut pending := [] for i in [:bis.size] do if bis[i]! == BinderInfo.instImplicit then diff --git a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean index c19ebbc9fe..730792c876 100644 --- a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean +++ b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean @@ -38,7 +38,7 @@ def elabTermEnsuringType (stx : Syntax) (expectedType? : Option Expr) (mayPostpo let eType ← inferType e -- We allow synthetic opaque metavars to be assigned in the following step since the `isDefEq` is not really -- part of the elaboration, but part of the tactic. See issue #492 - unless (← withAssignableSyntheticOpaque do isDefEq eType expectedType) do + unless (← withAssignableSyntheticOpaque <| isDefEq eType expectedType) do Term.throwTypeMismatchError none expectedType eType e return e diff --git a/stage0/src/Lean/Elab/Tactic/Induction.lean b/stage0/src/Lean/Elab/Tactic/Induction.lean index b8a46f7076..723912572c 100644 --- a/stage0/src/Lean/Elab/Tactic/Induction.lean +++ b/stage0/src/Lean/Elab/Tactic/Induction.lean @@ -127,7 +127,7 @@ partial def mkElimApp (elimInfo : ElimInfo) (targets : Array Expr) (tag : Name) throwError "insufficient number of targets for '{elimInfo.name}'" let target := ctx.targets[s.targetPos]! let expectedType ← getArgExpectedType - let target ← withConfig (fun cfg => { cfg with assignSyntheticOpaque := true }) do Term.ensureHasType expectedType target + let target ← withAssignableSyntheticOpaque <| Term.ensureHasType expectedType target modify fun s => { s with targetPos := s.targetPos + 1 } addNewArg target else match c.binderInfo with diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index d8b57fba80..183db91174 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -691,7 +691,7 @@ partial def visit (e : Expr) : M Unit := do visit e' else match (← getDelayedMVarAssignment? mvarId) with - | some d => visit d.val + | some d => visit (mkMVar d.mvarIdPending) | none => failure | _ => return () @@ -818,7 +818,7 @@ private def tryCoe (errorMsgHeader? : Option String) (expectedType : Expr) (eTyp return e else match (← tryCoeThunk? expectedType eType e) with | some r => return r - | none => mkCoe expectedType eType e f? errorMsgHeader? + | none => trace[Elab.coe] "adding coercion for {e} : {eType} =?= {expectedType}"; mkCoe expectedType eType e f? errorMsgHeader? /-- Return `some (m, α)` if `type` can be reduced to an application of the form `m α` using `[reducible]` transparency. -/ def isTypeApp? (type : Expr) : TermElabM (Option (Expr × Expr)) := do diff --git a/stage0/src/Lean/Meta/Basic.lean b/stage0/src/Lean/Meta/Basic.lean index 2bc154b231..43e970fcc9 100644 --- a/stage0/src/Lean/Meta/Basic.lean +++ b/stage0/src/Lean/Meta/Basic.lean @@ -496,6 +496,16 @@ def getMVarDecl (mvarId : MVarId) : MetaM MetavarDecl := do | some d => pure d | none => throwError "unknown metavariable '?{mvarId.name}'" +def getMVarDeclKind (mvarId : MVarId) : MetaM MetavarKind := + return (← getMVarDecl mvarId).kind + +/-- Reture `true` if `e` is a synthetic (or synthetic opaque) metavariable -/ +def isSyntheticMVar (e : Expr) : MetaM Bool := do + if e.isMVar then + return (← getMVarDeclKind e.mvarId!) matches .synthetic | .syntheticOpaque + else + return false + def setMVarKind (mvarId : MVarId) (kind : MetavarKind) : MetaM Unit := modifyMCtx fun mctx => mctx.setMVarKind mvarId kind diff --git a/stage0/src/Lean/Meta/CollectMVars.lean b/stage0/src/Lean/Meta/CollectMVars.lean index bb3fdcbd94..aebdddb8f8 100644 --- a/stage0/src/Lean/Meta/CollectMVars.lean +++ b/stage0/src/Lean/Meta/CollectMVars.lean @@ -26,7 +26,7 @@ partial def collectMVars (e : Expr) : StateRefT CollectMVars.State MetaM Unit := for mvarId in s.result[resultSavedSize:] do match (← getDelayedMVarAssignment? mvarId) with | none => pure () - | some d => collectMVars d.val + | some d => collectMVars (mkMVar d.mvarIdPending) /-- Return metavariables in occuring the given expression. See `collectMVars` -/ def getMVars (e : Expr) : MetaM (Array MVarId) := do diff --git a/stage0/src/Lean/Meta/ExprDefEq.lean b/stage0/src/Lean/Meta/ExprDefEq.lean index ccb417507c..6880db6d68 100644 --- a/stage0/src/Lean/Meta/ExprDefEq.lean +++ b/stage0/src/Lean/Meta/ExprDefEq.lean @@ -1265,15 +1265,25 @@ private def isAssigned : Expr → MetaM Bool | Expr.mvar mvarId _ => isExprMVarAssigned mvarId | _ => pure false -private def isDelayedAssignedHead (tFn : Expr) (t : Expr) : MetaM Bool := do - match tFn with - | Expr.mvar mvarId _ => - if (← isMVarDelayedAssigned mvarId) then - let tNew ← instantiateMVars t - return tNew != t - else - pure false - | _ => pure false +private def expandDelayedAssigned? (t : Expr) : MetaM (Option Expr) := do + let tFn := t.getAppFn + if !tFn.isMVar then return none + let some { fvars, mvarIdPending } ← getDelayedMVarAssignment? tFn.mvarId! | return none + let tNew ← instantiateMVars t + if tNew != t then return some tNew + /- + If `assignSyntheticOpaque` is true, we must follow the delayed assignment. + Recall a delayed assignment `mvarId [xs] := mvarIdPending` is morally an assingment + `mvarId := fun xs => mvarIdPending` where `xs` are free variables in the scope of `mvarIdPending`, + but not in the scope of `mvarId`. We can only perform the abstraction when `mvarIdPending` has been fully synthesized. + That is, `instantiateMVars (mkMVar mvarIdPending)` does not contain any expression metavariables. + Here we just consume `fvar.size` arguments. That is, if `t` is of the form `mvarId as bs` where `as.size == fvars.size`, + we return `mvarIdPending bs`. + -/ + unless (← getConfig).assignSyntheticOpaque do return none + let tArgs := t.getAppArgs + if tArgs.size < fvars.size then return none + return some (mkAppRange (mkMVar mvarIdPending) fvars.size tArgs.size tArgs) private def isSynthetic : Expr → MetaM Bool | Expr.mvar mvarId _ => do @@ -1409,11 +1419,9 @@ private partial def isDefEqQuickOther (t s : Expr) : MetaM LBool := do else if (← isAssigned sFn) then let s ← instantiateMVars s isDefEqQuick t s - else if (← isDelayedAssignedHead tFn t) then - let t ← instantiateMVars t + else if let some t ← expandDelayedAssigned? t then isDefEqQuick t s - else if (← isDelayedAssignedHead sFn s) then - let s ← instantiateMVars s + else if let some s ← expandDelayedAssigned? s then isDefEqQuick t s /- Remark: we do not eagerly synthesize synthetic metavariables when the constraint is not stuck. Reason: we may fail to solve a constraint of the form `?x =?= A` when the synthesized instance diff --git a/stage0/src/Lean/Meta/SynthInstance.lean b/stage0/src/Lean/Meta/SynthInstance.lean index 379cbc1604..5b1ee1b2af 100644 --- a/stage0/src/Lean/Meta/SynthInstance.lean +++ b/stage0/src/Lean/Meta/SynthInstance.lean @@ -690,7 +690,10 @@ def synthInstance? (type : Expr) (maxResultSize? : Option Nat := none) : MetaM ( let (_, _, result) ← openAbstractMVarsResult result trace[Meta.synthInstance] "result {result}" let resultType ← inferType result - if (← withDefault <| isDefEq type resultType) then + /- Output parameters of local instances may be marked as `syntheticOpaque` by the application-elaborator. + We use `withAssignableSyntheticOpaque` to make sure this kind of parameter can be assigned by the following `isDefEq`. + TODO: rewrite this check to avoid `withAssignableSyntheticOpaque`. -/ + if (← withDefault <| withAssignableSyntheticOpaque <| isDefEq type resultType) then let result ← instantiateMVars result /- We use `check` to propogate universe constraints implied by the `result`. Recall that we use `ignoreLevelMVarDepth := true` which allows universe metavariables in the current depth to be assigned, diff --git a/stage0/src/Lean/Meta/WHNF.lean b/stage0/src/Lean/Meta/WHNF.lean index 8dd7b25d95..7bc422c619 100644 --- a/stage0/src/Lean/Meta/WHNF.lean +++ b/stage0/src/Lean/Meta/WHNF.lean @@ -444,7 +444,7 @@ def reduceProj? (e : Expr) : MetaM (Option Expr) := do | Expr.proj _ i c _ => project? c i | _ => return none -/- +/-- Auxiliary method for reducing terms of the form `?m t_1 ... t_n` where `?m` is delayed assigned. Recall that we can only expand a delayed assignment when all holes/metavariables in the assigned value have been "filled". -/ @@ -452,13 +452,13 @@ private def whnfDelayedAssigned? (f' : Expr) (e : Expr) : MetaM (Option Expr) := if f'.isMVar then match (← getDelayedMVarAssignment? f'.mvarId!) with | none => return none - | some { fvars := fvars, val := val, .. } => + | some { fvars, mvarIdPending } => let args := e.getAppArgs if fvars.size > args.size then -- Insufficient number of argument to expand delayed assignment return none else - let newVal ← instantiateMVars val + let newVal ← instantiateMVars (mkMVar mvarIdPending) if newVal.hasExprMVar then -- Delayed assignment still contains metavariables return none diff --git a/stage0/src/Lean/MetavarContext.lean b/stage0/src/Lean/MetavarContext.lean index 76ff9cca90..f24341ddd1 100644 --- a/stage0/src/Lean/MetavarContext.lean +++ b/stage0/src/Lean/MetavarContext.lean @@ -260,13 +260,14 @@ structure MetavarDecl where deriving Inhabited /-- - A delayed assignment for a metavariable `?m`. It represents an assignment of the form - `?m := (fun fvars => val)`. The local context `lctx` provides the declarations for `fvars`. - Note that `fvars` may not be defined in the local context for `?m`. + A delayed assignment for a metavariable `?m`. It represents an assignment of the form `?m := (fun fvars => (mkMVar mvarIdPending))`. + `mvarIdPending` is a `syntheticOpaque` metavariable that has not been synthesized yet. The delayed assignment becomes a real one + as soon as `mvarIdPending` has been fully synthesized. + `fvars` are variables in the `mvarIdPending` local context. -/ structure DelayedMetavarAssignment where - fvars : Array Expr - val : Expr + fvars : Array Expr + mvarIdPending : MVarId open Std (HashMap PersistentHashMap) @@ -328,9 +329,7 @@ def getDelayedMVarAssignment? [Monad m] [MonadMCtx m] (mvarId : MVarId) : m (Opt If `mvarId₁` is not delayed assigned then return `mvarId₁` -/ partial def getDelayedMVarRoot [Monad m] [MonadMCtx m] (mvarId : MVarId) : m MVarId := do match (← getDelayedMVarAssignment? mvarId) with - | some d => match d.val.getAppFn with - | Expr.mvar mvarId _ => getDelayedMVarRoot mvarId - | _ => return mvarId + | some d => getDelayedMVarRoot d.mvarIdPending | none => return mvarId def isLevelMVarAssigned [Monad m] [MonadMCtx m] (mvarId : MVarId) : m Bool := do @@ -424,11 +423,8 @@ def assignLevelMVar [MonadMCtx m] (mvarId : MVarId) (val : Level) : m Unit := def assignExprMVar [MonadMCtx m] (mvarId : MVarId) (val : Expr) : m Unit := modifyMCtx fun m => { m with eAssignment := m.eAssignment.insert mvarId val, usedAssignment := true } -def assignDelayedMVar [MonadMCtx m] (mvarId : MVarId) (fvars : Array Expr) (val : Expr) : m Unit := - modifyMCtx fun m => { m with dAssignment := m.dAssignment.insert mvarId { fvars, val }, usedAssignment := true } - -def eraseDelayedMVar [MonadMCtx m] (mvarId : MVarId) : m Unit := - modifyMCtx fun m => { m with dAssignment := m.dAssignment.erase mvarId, usedAssignment := true } +def assignDelayedMVar [MonadMCtx m] (mvarId : MVarId) (fvars : Array Expr) (mvarIdPending : MVarId) : m Unit := + modifyMCtx fun m => { m with dAssignment := m.dAssignment.insert mvarId { fvars, mvarIdPending }, usedAssignment := true } /- Notes on artificial eta-expanded terms due to metavariables. @@ -491,7 +487,7 @@ partial def instantiateExprMVars [Monad m] [MonadMCtx m] [STWorld ω m] [MonadLi | Expr.mvar mvarId _ => match (← getDelayedMVarAssignment? mvarId) with | none => instApp - | some { fvars, val, .. } => + | some { fvars, mvarIdPending } => /- Apply "delayed substitution" (i.e., delayed assignment + application). That is, `f` is some metavariable `?m`, that is delayed assigned to `val`. @@ -505,7 +501,7 @@ partial def instantiateExprMVars [Monad m] [MonadMCtx m] [STWorld ω m] [MonadLi when we are checking for unassigned metavariables in an elaborated term. -/ instArgs f else - let newVal ← instantiateExprMVars val + let newVal ← instantiateExprMVars (mkMVar mvarIdPending) if newVal.hasExprMVar then instArgs f else do @@ -1023,43 +1019,37 @@ mutual That being said, we should try this approach as soon as we have an extensive test suite. -/ let newMVarKind := if !(← isExprMVarAssignable mvarId) then MetavarKind.syntheticOpaque else mvarDecl.kind - /- If `mvarId` is the lhs of a delayed assignment `?m #[x_1, ... x_n] := val`, - then `nestedFVars` is `#[x_1, ..., x_n]`. - In this case, we produce a new `syntheticOpaque` metavariable `?n` and a delayed assignment - ``` - ?n #[y_1, ..., y_m, x_1, ... x_n] := ?m x_1 ... x_n - ``` - where `#[y_1, ..., y_m]` is `toRevert` after `collectForwardDeps`. - - Remark: `newMVarKind != MetavarKind.syntheticOpaque ==> nestedFVars == #[]` - -/ - let rec cont (nestedFVars : Array Expr) : M (Expr × Array Expr) := do - let args ← args.mapM (visit xs) - -- Note that `toRevert` only contains free variables since it is the result of `getInScope` - let toRevert ← collectForwardDeps mvarLCtx toRevert - let newMVarLCtx := reduceLocalContext mvarLCtx toRevert - let newLocalInsts := mvarDecl.localInstances.filter fun inst => toRevert.all fun x => inst.fvar != x - -- Remark: we must reset the before processing `mkAuxMVarType` because `toRevert` may not be equal to `xs` - let newMVarType ← withFreshCache do mkAuxMVarType mvarLCtx toRevert newMVarKind mvarDecl.type - let newMVarId := { name := (← get).ngen.curr } - let newMVar := mkMVar newMVarId - let result := mkMVarApp mvarLCtx newMVar toRevert newMVarKind - let numScopeArgs := mvarDecl.numScopeArgs + result.getAppNumArgs - modify fun s => { s with - mctx := s.mctx.addExprMVarDecl newMVarId Name.anonymous newMVarLCtx newLocalInsts newMVarType newMVarKind numScopeArgs, - ngen := s.ngen.next - } - match newMVarKind with - | MetavarKind.syntheticOpaque => - assignDelayedMVar newMVarId (toRevert ++ nestedFVars) (mkAppN (mkMVar mvarId) nestedFVars) - | _ => - assignExprMVar mvarId result - return (mkAppN result args, toRevert) + let args ← args.mapM (visit xs) + let toRevert ← collectForwardDeps mvarLCtx toRevert + let newMVarLCtx := reduceLocalContext mvarLCtx toRevert + -- Note that `toRevert` only contains free variables since it is the result of `getInScope` + let newLocalInsts := mvarDecl.localInstances.filter fun inst => toRevert.all fun x => inst.fvar != x + -- Remark: we must reset the before processing `mkAuxMVarType` because `toRevert` may not be equal to `xs` + let newMVarType ← withFreshCache do mkAuxMVarType mvarLCtx toRevert newMVarKind mvarDecl.type + let newMVarId := { name := (← get).ngen.curr } + let newMVar := mkMVar newMVarId + let result := mkMVarApp mvarLCtx newMVar toRevert newMVarKind + let numScopeArgs := mvarDecl.numScopeArgs + result.getAppNumArgs + modify fun s => { s with + mctx := s.mctx.addExprMVarDecl newMVarId Name.anonymous newMVarLCtx newLocalInsts newMVarType newMVarKind numScopeArgs, + ngen := s.ngen.next + } if !mvarDecl.kind.isSyntheticOpaque then - cont #[] - else match (← getDelayedMVarAssignment? mvarId) with - | none => cont #[] - | some { fvars, .. } => cont fvars + assignExprMVar mvarId result + else + /- If `mvarId` is the lhs of a delayed assignment `?m #[x_1, ... x_n] := ?mvarPending`, + then `nestedFVars` is `#[x_1, ..., x_n]`. + In this case, `newMVarId` is also `syntheticOpaque` and we add the delayed assignment delayed assignment + ``` + ?newMVar #[y_1, ..., y_m, x_1, ... x_n] := ?m + ``` + where `#[y_1, ..., y_m]` is `toRevert` after `collectForwardDeps`. + -/ + let (mvarIdPending, nestedFVars) ← match (← getDelayedMVarAssignment? mvarId) with + | none => pure (mvarId, #[]) + | some { fvars, mvarIdPending } => pure (mvarIdPending, fvars) + assignDelayedMVar newMVarId (toRevert ++ nestedFVars) mvarIdPending + return (mkAppN result args, toRevert) private partial def elimApp (xs : Array Expr) (f : Expr) (args : Array Expr) : M Expr := do match f with diff --git a/stage0/src/Lean/Util/OccursCheck.lean b/stage0/src/Lean/Util/OccursCheck.lean index e48c0a6e60..6094457e1f 100644 --- a/stage0/src/Lean/Util/OccursCheck.lean +++ b/stage0/src/Lean/Util/OccursCheck.lean @@ -26,7 +26,7 @@ where | some v => visit v | none => match (← getDelayedMVarAssignment? mvarId') with - | some d => visit d.val + | some d => visitMVar d.mvarIdPending | none => return () visit (e : Expr) : ExceptT Unit (StateT ExprSet m) Unit := do diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 5106a87e69..b36dd0ea40 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -21,26 +21,30 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux__ static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__4; lean_object* l_Lean_Expr_bindingInfo_x21(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__29___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__6; LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__14___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__19(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__12; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__3___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__24(lean_object*, lean_object*, size_t, size_t); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange___closed__6; static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); @@ -52,6 +56,7 @@ static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____clos static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__12; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__3___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_withMCtx___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange___closed__2; @@ -60,9 +65,10 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRange___cl LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__2; +uint8_t l_Std_PersistentHashMap_contains___at_Lean_isExprMVarAssigned___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__2; lean_object* l_Lean_LocalDecl_userName(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__3___closed__8; @@ -91,19 +97,22 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRange___cl LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__39(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__14(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_typeMatchesBaseName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___rarg___boxed(lean_object*, lean_object*); extern lean_object* l_Std_Format_defWidth; static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_docString___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__7; static lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__3___rarg___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__11; static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__4; +LEAN_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal___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_SourceInfo_fromRef(lean_object*); @@ -116,15 +125,18 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__45___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__46(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__4___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_instInhabitedTermElabResult___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___closed__5; lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__37___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethodAlias_x3f___boxed(lean_object*, lean_object*, lean_object*); @@ -141,26 +153,26 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___clos static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__3___closed__3; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__12; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___boxed(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__3; static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__4___closed__2; -LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerMVarErrorHoleInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__2(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___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_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__23___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__11; -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2(lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___closed__5; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -168,12 +180,13 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__2; static lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__2; static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__4___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__19; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabApp(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___boxed(lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__3___closed__5; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__7; @@ -182,20 +195,23 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_ lean_object* lean_expr_instantiate1(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__11(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__5; -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4___closed__1; uint8_t l_Lean_isPrivateNameFromImportedModule(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2; lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice_declRange(lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____closed__1; LEAN_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_List_foldr___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__1(lean_object*, uint8_t, lean_object*); @@ -215,17 +231,17 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__ LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___boxed(lean_object**); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__2___closed__2; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_hasElabWithoutExpectedType(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instInhabitedTermElabM(lean_object*); static lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__3; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__5(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__32; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); @@ -241,6 +257,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLVal LEAN_EXPORT lean_object* l_List_filterTRAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__5; lean_object* l_Lean_Elab_Term_registerMVarErrorInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwInvalidFieldNotation___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__1___closed__3; @@ -252,7 +269,7 @@ lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_obj LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent___closed__3; lean_object* l_Lean_setEnv___at_Lean_Elab_Term_expandDeclId___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -278,21 +295,24 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError__ static lean_object* l_Lean_Elab_Term_elabPipeProj___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPipeProj___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__2; -LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___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_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__2; static uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___lambda__1___closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__3; static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__10; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__3; LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__15___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___boxed(lean_object*); +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__7; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__2___closed__3; @@ -314,9 +334,12 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__4; lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt(lean_object*); static lean_object* l_Lean_Elab_Term_elabPipeProj___lambda__1___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getFieldInfo_x3f(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___closed__1; +lean_object* lean_array_fget(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___closed__3; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__2(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__10(lean_object*, lean_object*, size_t, size_t); @@ -325,15 +348,17 @@ lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Term_elabExplicitUnivs___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_EXPORT lean_object* l_Lean_Elab_Term_elabArrayRef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__47___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__13(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_consume_type_annotations(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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*); uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__7; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2___closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -342,17 +367,18 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___closed_ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_typeMatchesBaseName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3; lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__20; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar___boxed(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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Elab_Term_ElabAppArgs_State_ellipsis___default; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(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*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(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*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1___closed__6; static lean_object* l_Lean_Elab_Term_elabPipeProj___lambda__1___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___closed__2; @@ -362,7 +388,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_propagateEx lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__9; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___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_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange(lean_object*); lean_object* l_Lean_Syntax_isFieldIdx_x3f(lean_object*); @@ -371,6 +397,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange___close lean_object* l_Lean_Meta_expandCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange___closed__6; +lean_object* l_Lean_Elab_Term_mkCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___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*); @@ -378,24 +405,27 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__ lean_object* l_Lean_Name_toString(lean_object*, uint8_t); uint8_t l_Lean_BinderInfo_isStrictImplicit(uint8_t); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__39___boxed(lean_object*, lean_object*); +uint8_t lean_is_out_param(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__44___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___closed__1; LEAN_EXPORT lean_object* l_Lean_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__5___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1___boxed(lean_object**); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__5; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabDotIdent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_eraseSuffix_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -407,6 +437,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__33(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2___closed__2; static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__8; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__2; @@ -416,14 +447,14 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___clos lean_object* l_Lean_Syntax_identComponents(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__3; lean_object* l_Nat_repr(lean_object*); static lean_object* l_Lean_Elab_Term_instToStringNamedArg___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___closed__7; @@ -461,21 +492,23 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___c static lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__5; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___boxed(lean_object*); +lean_object* l_Lean_Meta_setMVarKind(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__1___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern(lean_object*); static lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__1; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__2; lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(lean_object*); static lean_object* l_Lean_Elab_Term_elabPipeProj___lambda__1___closed__3; lean_object* lean_array_to_list(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__21___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__22; static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__16; @@ -485,11 +518,13 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___clos static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__7; lean_object* l_Lean_Elab_Term_addNamedArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__1; static lean_object* l_Lean_Elab_Term_instToStringNamedArg___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_annotateIfRec___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj___closed__3; LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__31___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__13___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabIdent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__3; @@ -497,7 +532,7 @@ LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Elab_App_0__Lean_El lean_object* lean_expr_dbg_to_string(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_toName_go(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRange___closed__5; extern lean_object* l_Lean_instInhabitedExpr; lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); @@ -505,9 +540,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars___boxed(lean_ob lean_object* l_Lean_Elab_Term_expandApp(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_toLVals___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__2; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__28___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_isExprMVarAssigned___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__3; @@ -519,7 +554,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotN uint8_t l_Lean_Expr_isConst(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_docString(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__5; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10; @@ -532,15 +568,17 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___ lean_object* l_Lean_Elab_Term_isMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__18; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__15; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange___closed__1; +LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__3; lean_object* l_Lean_Expr_consumeMData(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__30; static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__5; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__16; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__5; static lean_object* l_Lean_Elab_Term_instToStringNamedArg___closed__3; @@ -553,15 +591,18 @@ uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__7; lean_object* l_Lean_Elab_Term_elabTermEnsuringType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__6; +lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___rarg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__4___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_annotateIfRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__7; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processStrictImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFVar(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processStrictImplicitArg(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_Data_binderInfo(uint64_t); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__1; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_exprDependsOn___spec__4(lean_object*, lean_object*); @@ -572,25 +613,25 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shou LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__7(lean_object*); lean_object* l_Lean_Elab_Term_LVal_getRef(lean_object*); uint8_t l_Lean_Expr_isAutoParam(lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNamedPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___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*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__2; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2___rarg___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2(size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__28; static lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isImplicit(uint8_t); lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_toName_go___boxed(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceOptions(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__14; @@ -609,11 +650,11 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fina lean_object* l_Lean_Syntax_TSepArray_getElems___rarg(lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___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_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedException; LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__46___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__38___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___spec__1(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__3; @@ -628,6 +669,7 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux__ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabWithoutExpectedTypeAttr; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___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_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__11___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); @@ -635,9 +677,9 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___ static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__14; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange___closed__7; +lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMCtxImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt___closed__1; -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*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__15; LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); @@ -645,6 +687,7 @@ static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__2; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__20(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfR(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getParentStructures(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingName_x21(lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -652,7 +695,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_docString___c uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__27___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__18(lean_object*, lean_object*, size_t, size_t); uint8_t l_Lean_Expr_isMVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -664,19 +707,20 @@ lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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*); uint8_t l_Lean_Expr_hasMVar(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__18; +LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange___closed__5; lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__3; lean_object* l_Lean_Syntax_getArgs(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__9; -static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__3; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabProj(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___closed__6; @@ -684,7 +728,7 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwInvalidFiel lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__1___closed__2; LEAN_EXPORT lean_object* l_List_foldr___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__8(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwInvalidFieldNotation___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__5; @@ -695,6 +739,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabArrayRefOpt(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__9(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange___closed__3; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__12(lean_object*, lean_object*, lean_object*); @@ -719,7 +764,7 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_g lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValLoop___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicitUniv(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__17; static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange___closed__3; @@ -734,7 +779,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic(lean_ob LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1___boxed(lean_object**); lean_object* l_Lean_Elab_logException___at_Lean_Elab_Term_exceptionToSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(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_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__47(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__8; @@ -744,17 +789,17 @@ LEAN_EXPORT lean_object* l_List_filterMap___at___private_Lean_Elab_App_0__Lean_E LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__30___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_getSuccesses___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__35(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__50___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_universeConstraintsCheckpoint___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___closed__4; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__1; uint8_t l_Lean_Expr_isFVar(lean_object*); -LEAN_EXPORT 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_EXPORT 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*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__7; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_14008_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_15381_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5_(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT 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*); @@ -773,25 +818,30 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___lam lean_object* l_Lean_Meta_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x3f(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panic___at_Lean_TSyntax_getNat___spec__1(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__2; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51___closed__2; +lean_object* lean_name_mk_numeral(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabExplicit___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_annotateIfRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMDataAndTypeAnnotations(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__2; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRange___closed__6; LEAN_EXPORT lean_object* l_Lean_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__17; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_getStructureLikeNumFields(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__25; static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__3; @@ -800,11 +850,12 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck__ static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__6; +lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange___closed__1; uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_362_(uint8_t, uint8_t); static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef___closed__1; lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(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*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit_docString(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -816,21 +867,23 @@ static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shou LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___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_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_consumeImplicits___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAtom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTagAttribute(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName___closed__1; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__3; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabArrayRefPanic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findField_x3f(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; lean_object* l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -839,14 +892,16 @@ static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyResult___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__1___closed__1; lean_object* l_Lean_addBuiltinDocString(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8; static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_State_resultTypeOutParam_x3f___default; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__2; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__36(lean_object*, lean_object*, lean_object*); @@ -858,22 +913,25 @@ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__4___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__45(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals___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_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__19; static lean_object* l___regBuiltin_Lean_Elab_Term_elabApp_declRange___closed__7; LEAN_EXPORT lean_object* l_Lean_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__7___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__4; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___lambda__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabAppArgs___closed__13; lean_object* l_Lean_instantiateMVars___at_Lean_exprDependsOn___spec__11(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); @@ -888,18 +946,20 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__1 uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__36___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwInvalidFieldNotation(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_findMethod_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__9; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__1(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwInvalidNamedArg___spec__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRange___closed__4; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__27; +static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicitUniv___closed__3; +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProj_declRange___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__25(lean_object*, lean_object*, size_t, size_t); @@ -929,12 +989,13 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v static lean_object* l___regBuiltin_Lean_Elab_Term_elabDotIdent___closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveDotName_go___closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___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_EXPORT uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_synthesizeAppInstMVars___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_EXPORT lean_object* l_Lean_isExprMVarAssigned___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__4(lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt___closed__3; @@ -947,7 +1008,7 @@ lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError(lean_object*); lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___boxed(lean_object*); lean_object* l_Lean_Elab_Term_getMVarErrorInfo_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___closed__2; static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__4___closed__3; @@ -955,6 +1016,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange___close static lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__4; lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__11; +uint8_t lean_has_out_params(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Term_elabIdent___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__3___boxed(lean_object**); @@ -972,11 +1034,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabExplicitUnivs(lean_object*, lean_o static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__2; static lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__26; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__42(lean_object*, lean_object*, size_t, size_t); uint8_t l_Lean_isStructure(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg___closed__7; +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeProj_docString___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwInvalidNamedArg(lean_object*); @@ -1001,7 +1064,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Term_elabExpli static lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRange___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwInvalidNamedArg___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRange___closed__7; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_5____lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -2659,14 +2722,6 @@ lean_dec(x_1); return x_10; } } -static uint8_t _init_l_Lean_Elab_Term_ElabAppArgs_State_ellipsis___default() { -_start: -{ -uint8_t x_1; -x_1 = 0; -return x_1; -} -} static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1() { _start: { @@ -2700,88 +2755,95 @@ x_1 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +static lean_object* _init_l_Lean_Elab_Term_ElabAppArgs_State_resultTypeOutParam_x3f___default() { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_st_ref_take(x_2, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_take(x_3, x_12); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_ctor_get(x_13, 7); -x_17 = lean_array_push(x_16, x_1); -lean_ctor_set(x_13, 7, x_17); -x_18 = lean_st_ref_set(x_2, x_13, x_14); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_14, 7); +x_18 = lean_array_push(x_17, x_1); +lean_ctor_set(x_14, 7, x_18); +x_19 = lean_st_ref_set(x_3, x_14, x_15); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 0); -lean_dec(x_20); -x_21 = lean_box(0); -lean_ctor_set(x_18, 0, x_21); -return x_18; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +x_22 = lean_box(0); +lean_ctor_set(x_19, 0, x_22); +return x_19; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -lean_dec(x_18); -x_23 = lean_box(0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -return x_24; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; } } else { -uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t 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_25 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); -x_26 = lean_ctor_get(x_13, 0); -x_27 = lean_ctor_get(x_13, 1); -x_28 = lean_ctor_get(x_13, 2); -x_29 = lean_ctor_get(x_13, 3); -x_30 = lean_ctor_get_uint8(x_13, sizeof(void*)*8 + 1); -x_31 = lean_ctor_get(x_13, 4); -x_32 = lean_ctor_get(x_13, 5); -x_33 = lean_ctor_get(x_13, 6); -x_34 = lean_ctor_get(x_13, 7); -x_35 = lean_ctor_get_uint8(x_13, sizeof(void*)*8 + 2); -lean_inc(x_34); +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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_26 = lean_ctor_get(x_14, 0); +x_27 = lean_ctor_get(x_14, 1); +x_28 = lean_ctor_get(x_14, 2); +x_29 = lean_ctor_get(x_14, 3); +x_30 = lean_ctor_get(x_14, 4); +x_31 = lean_ctor_get(x_14, 5); +x_32 = lean_ctor_get(x_14, 6); +x_33 = lean_ctor_get(x_14, 7); +x_34 = lean_ctor_get_uint8(x_14, sizeof(void*)*9); +x_35 = lean_ctor_get(x_14, 8); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); -lean_dec(x_13); -x_36 = lean_array_push(x_34, x_1); -x_37 = lean_alloc_ctor(0, 8, 3); +lean_dec(x_14); +x_36 = lean_array_push(x_33, x_1); +x_37 = lean_alloc_ctor(0, 9, 1); lean_ctor_set(x_37, 0, x_26); lean_ctor_set(x_37, 1, x_27); lean_ctor_set(x_37, 2, x_28); lean_ctor_set(x_37, 3, x_29); -lean_ctor_set(x_37, 4, x_31); -lean_ctor_set(x_37, 5, x_32); -lean_ctor_set(x_37, 6, x_33); +lean_ctor_set(x_37, 4, x_30); +lean_ctor_set(x_37, 5, x_31); +lean_ctor_set(x_37, 6, x_32); lean_ctor_set(x_37, 7, x_36); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_25); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 1, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 2, x_35); -x_38 = lean_st_ref_set(x_2, x_37, x_14); +lean_ctor_set(x_37, 8, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_34); +x_38 = lean_st_ref_set(x_3, x_37, x_15); x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); if (lean_is_exclusive(x_38)) { @@ -2804,11 +2866,12 @@ return x_42; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_11; +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2816,10 +2879,10 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_10; +return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; @@ -2866,176 +2929,192 @@ return x_26; } else { -uint8_t 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; uint8_t 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_27 = lean_ctor_get_uint8(x_18, sizeof(void*)*8); -x_28 = lean_ctor_get(x_18, 0); -x_29 = lean_ctor_get(x_18, 1); -x_30 = lean_ctor_get(x_18, 2); -x_31 = lean_ctor_get(x_18, 3); -x_32 = lean_ctor_get_uint8(x_18, sizeof(void*)*8 + 1); -x_33 = lean_ctor_get(x_18, 4); -x_34 = lean_ctor_get(x_18, 5); -x_35 = lean_ctor_get(x_18, 6); -x_36 = lean_ctor_get_uint8(x_18, sizeof(void*)*8 + 2); +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; lean_object* x_41; +x_27 = lean_ctor_get(x_18, 0); +x_28 = lean_ctor_get(x_18, 1); +x_29 = lean_ctor_get(x_18, 2); +x_30 = lean_ctor_get(x_18, 3); +x_31 = lean_ctor_get(x_18, 4); +x_32 = lean_ctor_get(x_18, 5); +x_33 = lean_ctor_get(x_18, 6); +x_34 = lean_ctor_get_uint8(x_18, sizeof(void*)*9); +x_35 = lean_ctor_get(x_18, 8); lean_inc(x_35); -lean_inc(x_34); lean_inc(x_33); +lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); +lean_inc(x_27); lean_dec(x_18); -x_37 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; -x_38 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_38, 0, x_28); -lean_ctor_set(x_38, 1, x_29); -lean_ctor_set(x_38, 2, x_30); -lean_ctor_set(x_38, 3, x_31); -lean_ctor_set(x_38, 4, x_33); -lean_ctor_set(x_38, 5, x_34); -lean_ctor_set(x_38, 6, x_35); -lean_ctor_set(x_38, 7, x_37); -lean_ctor_set_uint8(x_38, sizeof(void*)*8, x_27); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 1, x_32); -lean_ctor_set_uint8(x_38, sizeof(void*)*8 + 2, x_36); -x_39 = lean_st_ref_set(x_1, x_38, x_19); -x_40 = lean_ctor_get(x_39, 1); +x_36 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; +x_37 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_37, 1, x_28); +lean_ctor_set(x_37, 2, x_29); +lean_ctor_set(x_37, 3, x_30); +lean_ctor_set(x_37, 4, x_31); +lean_ctor_set(x_37, 5, x_32); +lean_ctor_set(x_37, 6, x_33); +lean_ctor_set(x_37, 7, x_36); +lean_ctor_set(x_37, 8, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_34); +x_38 = lean_st_ref_set(x_1, x_37, x_19); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = lean_ctor_get(x_12, 0); lean_inc(x_40); -lean_dec(x_39); -x_41 = lean_ctor_get(x_12, 0); -lean_inc(x_41); lean_dec(x_12); -x_42 = l_Lean_Elab_Term_synthesizeAppInstMVars(x_14, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_40); +x_41 = l_Lean_Elab_Term_synthesizeAppInstMVars(x_14, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_39); lean_dec(x_14); -return x_42; +return x_41; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { if (lean_obj_tag(x_2) == 0) { -lean_object* x_12; +lean_object* x_13; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_3); -lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_3); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_dec(x_3); +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +lean_dec(x_2); +x_15 = l_Lean_Expr_getAppFn(x_1); +x_16 = l_Lean_Expr_isConst(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_dec(x_15); +x_17 = lean_box(0); +x_18 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg(x_14, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = l_Lean_Expr_constName_x21(x_15); +lean_dec(x_15); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg(x_14, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_25; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 5); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_14); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 0, x_15); return x_12; } else { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_3); -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_dec(x_2); -x_14 = l_Lean_Expr_getAppFn(x_1); -x_15 = l_Lean_Expr_isConst(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; uint8_t x_18; -lean_dec(x_14); -x_16 = lean_box(0); -x_17 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg(x_13, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -return x_17; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_17); -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* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = l_Lean_Expr_constName_x21(x_14); -lean_dec(x_14); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Elab_Term_throwInvalidNamedArg___rarg(x_13, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) -{ -return x_24; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_24); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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: -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_7, 5); -x_11 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_5, x_6, x_7, x_8, x_9); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_10); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_13); -lean_ctor_set_tag(x_11, 1); -lean_ctor_set(x_11, 0, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -lean_inc(x_10); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_10); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); +lean_dec(x_12); +lean_inc(x_11); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); lean_ctor_set(x_18, 1, x_16); -return x_18; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; } } } @@ -3073,124 +3152,125 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_9; +lean_object* x_10; +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_9 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) +x_10 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = 1; -x_12 = 0; +lean_object* x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = 1; +x_13 = 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); -lean_inc(x_2); -x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_10); -if (lean_obj_tag(x_13) == 0) +x_14 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_st_ref_get(x_7, x_14); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = lean_st_ref_get(x_1, x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_st_ref_get(x_8, x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_st_ref_get(x_2, x_17); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_17); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_21 = l_Lean_Meta_whnfForall(x_20, x_4, x_5, x_6, x_7, x_19); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Lean_Meta_whnfForall(x_21, x_5, x_6, x_7, x_8, x_20); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Lean_Expr_isForall(x_22); -if (x_24 == 0) +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Expr_isForall(x_23); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_18, 0); -lean_inc(x_25); +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_25); -lean_inc(x_22); -x_26 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f(x_22, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_23); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_23); +x_27 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f(x_23, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_24); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_26, 1); +lean_object* x_28; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_ctor_get(x_18, 3); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -lean_dec(x_18); -x_30 = lean_box(0); +lean_dec(x_27); +x_30 = lean_ctor_get(x_19, 3); +lean_inc(x_30); +lean_dec(x_19); +x_31 = lean_box(0); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_31 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(x_25, x_29, x_30, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_28); -if (lean_obj_tag(x_31) == 0) +x_32 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(x_26, x_30, x_31, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = l_Lean_indentExpr(x_25); -x_34 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__2; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__4; -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_indentExpr(x_22); -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___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(x_41, x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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; +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = l_Lean_indentExpr(x_26); +x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__2; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__4; +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_indentExpr(x_23); +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(x_42, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_33); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3198,144 +3278,145 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_42; +return x_43; } else { -uint8_t x_43; -lean_dec(x_25); -lean_dec(x_22); -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_43 = !lean_is_exclusive(x_31); -if (x_43 == 0) -{ -return x_31; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_31, 0); -x_45 = lean_ctor_get(x_31, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_31); -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; -} -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_25); -lean_dec(x_22); -lean_dec(x_18); -lean_dec(x_3); -lean_dec(x_2); -x_47 = lean_ctor_get(x_26, 1); -lean_inc(x_47); +uint8_t x_44; lean_dec(x_26); -x_48 = lean_ctor_get(x_27, 0); +lean_dec(x_23); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_32); +if (x_44 == 0) +{ +return x_32; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_32, 0); +x_46 = lean_ctor_get(x_32, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_32); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_48 = lean_ctor_get(x_27, 1); lean_inc(x_48); lean_dec(x_27); -lean_inc(x_7); -lean_inc(x_48); -x_49 = lean_infer_type(x_48, x_4, x_5, x_6, x_7, x_47); -if (lean_obj_tag(x_49) == 0) +x_49 = lean_ctor_get(x_28, 0); +lean_inc(x_49); +lean_dec(x_28); +lean_inc(x_8); +lean_inc(x_49); +x_50 = lean_infer_type(x_49, x_5, x_6, x_7, x_8, x_48); +if (lean_obj_tag(x_50) == 0) { -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; uint8_t x_57; -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_st_ref_get(x_7, x_51); -lean_dec(x_7); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_st_ref_take(x_1, x_53); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = lean_st_ref_get(x_8, x_52); +lean_dec(x_8); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = lean_st_ref_take(x_2, x_54); +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); -lean_dec(x_54); -x_57 = !lean_is_exclusive(x_55); -if (x_57 == 0) +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = !lean_is_exclusive(x_56); +if (x_58 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_58 = lean_ctor_get(x_55, 1); -lean_dec(x_58); -x_59 = lean_ctor_get(x_55, 0); +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_56, 1); lean_dec(x_59); -lean_ctor_set(x_55, 1, x_50); -lean_ctor_set(x_55, 0, x_48); -x_60 = lean_st_ref_set(x_1, x_55, x_56); -lean_dec(x_1); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -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_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); +x_60 = lean_ctor_get(x_56, 0); 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; +lean_ctor_set(x_56, 1, x_51); +lean_ctor_set(x_56, 0, x_49); +x_61 = lean_st_ref_set(x_2, x_56, x_57); +lean_dec(x_2); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_61, 0); +lean_dec(x_63); +x_64 = lean_box(0); +lean_ctor_set(x_61, 0, x_64); +return x_61; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_61, 1); +lean_inc(x_65); +lean_dec(x_61); +x_66 = lean_box(0); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } else { -uint8_t x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_67 = lean_ctor_get_uint8(x_55, sizeof(void*)*8); -x_68 = lean_ctor_get(x_55, 2); -x_69 = lean_ctor_get(x_55, 3); -x_70 = lean_ctor_get_uint8(x_55, sizeof(void*)*8 + 1); -x_71 = lean_ctor_get(x_55, 4); -x_72 = lean_ctor_get(x_55, 5); -x_73 = lean_ctor_get(x_55, 6); -x_74 = lean_ctor_get(x_55, 7); -x_75 = lean_ctor_get_uint8(x_55, sizeof(void*)*8 + 2); -lean_inc(x_74); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_68 = lean_ctor_get(x_56, 2); +x_69 = lean_ctor_get(x_56, 3); +x_70 = lean_ctor_get(x_56, 4); +x_71 = lean_ctor_get(x_56, 5); +x_72 = lean_ctor_get(x_56, 6); +x_73 = lean_ctor_get(x_56, 7); +x_74 = lean_ctor_get_uint8(x_56, sizeof(void*)*9); +x_75 = lean_ctor_get(x_56, 8); +lean_inc(x_75); lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); +lean_inc(x_70); lean_inc(x_69); lean_inc(x_68); -lean_dec(x_55); -x_76 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_76, 0, x_48); -lean_ctor_set(x_76, 1, x_50); +lean_dec(x_56); +x_76 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_76, 0, x_49); +lean_ctor_set(x_76, 1, x_51); lean_ctor_set(x_76, 2, x_68); lean_ctor_set(x_76, 3, x_69); -lean_ctor_set(x_76, 4, x_71); -lean_ctor_set(x_76, 5, x_72); -lean_ctor_set(x_76, 6, x_73); -lean_ctor_set(x_76, 7, x_74); -lean_ctor_set_uint8(x_76, sizeof(void*)*8, x_67); -lean_ctor_set_uint8(x_76, sizeof(void*)*8 + 1, x_70); -lean_ctor_set_uint8(x_76, sizeof(void*)*8 + 2, x_75); -x_77 = lean_st_ref_set(x_1, x_76, x_56); -lean_dec(x_1); +lean_ctor_set(x_76, 4, x_70); +lean_ctor_set(x_76, 5, x_71); +lean_ctor_set(x_76, 6, x_72); +lean_ctor_set(x_76, 7, x_73); +lean_ctor_set(x_76, 8, x_75); +lean_ctor_set_uint8(x_76, sizeof(void*)*9, x_74); +x_77 = lean_st_ref_set(x_2, x_76, x_57); +lean_dec(x_2); x_78 = lean_ctor_get(x_77, 1); lean_inc(x_78); if (lean_is_exclusive(x_77)) { @@ -3360,22 +3441,22 @@ return x_81; else { uint8_t x_82; -lean_dec(x_48); -lean_dec(x_7); -lean_dec(x_1); -x_82 = !lean_is_exclusive(x_49); +lean_dec(x_49); +lean_dec(x_8); +lean_dec(x_2); +x_82 = !lean_is_exclusive(x_50); if (x_82 == 0) { -return x_49; +return x_50; } else { lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_49, 0); -x_84 = lean_ctor_get(x_49, 1); +x_83 = lean_ctor_get(x_50, 0); +x_84 = lean_ctor_get(x_50, 1); lean_inc(x_84); lean_inc(x_83); -lean_dec(x_49); +lean_dec(x_50); x_85 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_85, 0, x_83); lean_ctor_set(x_85, 1, x_84); @@ -3387,9 +3468,10 @@ return x_85; else { uint8_t x_86; -lean_dec(x_25); -lean_dec(x_22); -lean_dec(x_18); +lean_dec(x_26); +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3397,19 +3479,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_86 = !lean_is_exclusive(x_26); +x_86 = !lean_is_exclusive(x_27); if (x_86 == 0) { -return x_26; +return x_27; } else { lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_26, 0); -x_88 = lean_ctor_get(x_26, 1); +x_87 = lean_ctor_get(x_27, 0); +x_88 = lean_ctor_get(x_27, 1); lean_inc(x_88); lean_inc(x_87); -lean_dec(x_26); +lean_dec(x_27); x_89 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_89, 0, x_87); lean_ctor_set(x_89, 1, x_88); @@ -3420,18 +3502,19 @@ return x_89; else { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -lean_dec(x_18); +lean_dec(x_19); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_90 = lean_st_ref_get(x_7, x_23); -lean_dec(x_7); +lean_dec(x_1); +x_90 = lean_st_ref_get(x_8, x_24); +lean_dec(x_8); x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); lean_dec(x_90); -x_92 = lean_st_ref_take(x_1, x_91); +x_92 = lean_st_ref_take(x_2, x_91); x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); x_94 = lean_ctor_get(x_92, 1); @@ -3443,9 +3526,9 @@ if (x_95 == 0) lean_object* x_96; lean_object* x_97; uint8_t x_98; x_96 = lean_ctor_get(x_93, 1); lean_dec(x_96); -lean_ctor_set(x_93, 1, x_22); -x_97 = lean_st_ref_set(x_1, x_93, x_94); -lean_dec(x_1); +lean_ctor_set(x_93, 1, x_23); +x_97 = lean_st_ref_set(x_2, x_93, x_94); +lean_dec(x_2); x_98 = !lean_is_exclusive(x_97); if (x_98 == 0) { @@ -3471,168 +3554,64 @@ return x_103; } else { -uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_104 = lean_ctor_get_uint8(x_93, sizeof(void*)*8); -x_105 = lean_ctor_get(x_93, 0); -x_106 = lean_ctor_get(x_93, 2); -x_107 = lean_ctor_get(x_93, 3); -x_108 = lean_ctor_get_uint8(x_93, sizeof(void*)*8 + 1); -x_109 = lean_ctor_get(x_93, 4); -x_110 = lean_ctor_get(x_93, 5); -x_111 = lean_ctor_get(x_93, 6); -x_112 = lean_ctor_get(x_93, 7); -x_113 = lean_ctor_get_uint8(x_93, sizeof(void*)*8 + 2); +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; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_104 = lean_ctor_get(x_93, 0); +x_105 = lean_ctor_get(x_93, 2); +x_106 = lean_ctor_get(x_93, 3); +x_107 = lean_ctor_get(x_93, 4); +x_108 = lean_ctor_get(x_93, 5); +x_109 = lean_ctor_get(x_93, 6); +x_110 = lean_ctor_get(x_93, 7); +x_111 = lean_ctor_get_uint8(x_93, sizeof(void*)*9); +x_112 = lean_ctor_get(x_93, 8); lean_inc(x_112); -lean_inc(x_111); lean_inc(x_110); lean_inc(x_109); +lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); lean_inc(x_105); +lean_inc(x_104); lean_dec(x_93); -x_114 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_114, 0, x_105); -lean_ctor_set(x_114, 1, x_22); -lean_ctor_set(x_114, 2, x_106); -lean_ctor_set(x_114, 3, x_107); -lean_ctor_set(x_114, 4, x_109); -lean_ctor_set(x_114, 5, x_110); -lean_ctor_set(x_114, 6, x_111); -lean_ctor_set(x_114, 7, x_112); -lean_ctor_set_uint8(x_114, sizeof(void*)*8, x_104); -lean_ctor_set_uint8(x_114, sizeof(void*)*8 + 1, x_108); -lean_ctor_set_uint8(x_114, sizeof(void*)*8 + 2, x_113); -x_115 = lean_st_ref_set(x_1, x_114, x_94); -lean_dec(x_1); -x_116 = lean_ctor_get(x_115, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_117 = x_115; +x_113 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_113, 0, x_104); +lean_ctor_set(x_113, 1, x_23); +lean_ctor_set(x_113, 2, x_105); +lean_ctor_set(x_113, 3, x_106); +lean_ctor_set(x_113, 4, x_107); +lean_ctor_set(x_113, 5, x_108); +lean_ctor_set(x_113, 6, x_109); +lean_ctor_set(x_113, 7, x_110); +lean_ctor_set(x_113, 8, x_112); +lean_ctor_set_uint8(x_113, sizeof(void*)*9, x_111); +x_114 = lean_st_ref_set(x_2, x_113, x_94); +lean_dec(x_2); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_116 = x_114; } else { - lean_dec_ref(x_115); - x_117 = lean_box(0); + lean_dec_ref(x_114); + x_116 = lean_box(0); } -x_118 = lean_box(0); -if (lean_is_scalar(x_117)) { - x_119 = lean_alloc_ctor(0, 2, 0); +x_117 = lean_box(0); +if (lean_is_scalar(x_116)) { + x_118 = lean_alloc_ctor(0, 2, 0); } else { - x_119 = x_117; + x_118 = x_116; } -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_116); -return x_119; +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_115); +return x_118; } } } else { -uint8_t x_120; -lean_dec(x_18); -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_120 = !lean_is_exclusive(x_21); -if (x_120 == 0) -{ -return x_21; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_21, 0); -x_122 = lean_ctor_get(x_21, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_21); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; -} -} -} -else -{ -uint8_t x_124; -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_124 = !lean_is_exclusive(x_13); -if (x_124 == 0) -{ -return x_13; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_13, 0); -x_126 = lean_ctor_get(x_13, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_13); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; -} -} -} -else -{ -uint8_t x_128; -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_128 = !lean_is_exclusive(x_9); -if (x_128 == 0) -{ -return x_9; -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_9, 0); -x_130 = lean_ctor_get(x_9, 1); -lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_9); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -return x_131; -} -} -} -} -LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_4); -lean_dec(x_1); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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: -{ -lean_object* x_10; -x_10 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_119; +lean_dec(x_19); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3640,10 +3619,118 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); +x_119 = !lean_is_exclusive(x_22); +if (x_119 == 0) +{ +return x_22; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_22, 0); +x_121 = lean_ctor_get(x_22, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_22); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +uint8_t x_123; +lean_dec(x_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_123 = !lean_is_exclusive(x_14); +if (x_123 == 0) +{ +return x_14; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_14, 0); +x_125 = lean_ctor_get(x_14, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_14); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +} +else +{ +uint8_t x_127; +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_127 = !lean_is_exclusive(x_10); +if (x_127 == 0) +{ return x_10; } +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_10, 0); +x_129 = lean_ctor_get(x_10, 1); +lean_inc(x_129); +lean_inc(x_128); +lean_dec(x_10); +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +return x_130; } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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) { +_start: +{ +lean_object* x_13; +x_13 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__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_5); +lean_dec(x_4); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -3713,96 +3800,112 @@ return x_29; } else { -uint8_t 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; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_30 = lean_ctor_get_uint8(x_21, sizeof(void*)*8); -x_31 = lean_ctor_get(x_21, 0); -x_32 = lean_ctor_get(x_21, 2); -x_33 = lean_ctor_get(x_21, 3); -x_34 = lean_ctor_get_uint8(x_21, sizeof(void*)*8 + 1); -x_35 = lean_ctor_get(x_21, 4); -x_36 = lean_ctor_get(x_21, 5); -x_37 = lean_ctor_get(x_21, 6); -x_38 = lean_ctor_get(x_21, 7); -x_39 = lean_ctor_get_uint8(x_21, sizeof(void*)*8 + 2); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_30 = lean_ctor_get(x_21, 0); +x_31 = lean_ctor_get(x_21, 2); +x_32 = lean_ctor_get(x_21, 3); +x_33 = lean_ctor_get(x_21, 4); +x_34 = lean_ctor_get(x_21, 5); +x_35 = lean_ctor_get(x_21, 6); +x_36 = lean_ctor_get(x_21, 7); +x_37 = lean_ctor_get_uint8(x_21, sizeof(void*)*9); +x_38 = lean_ctor_get(x_21, 8); lean_inc(x_38); -lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); +lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); +lean_inc(x_30); lean_dec(x_21); lean_inc(x_16); -x_40 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_40, 0, x_31); -lean_ctor_set(x_40, 1, x_16); -lean_ctor_set(x_40, 2, x_32); -lean_ctor_set(x_40, 3, x_33); -lean_ctor_set(x_40, 4, x_35); -lean_ctor_set(x_40, 5, x_36); -lean_ctor_set(x_40, 6, x_37); -lean_ctor_set(x_40, 7, x_38); -lean_ctor_set_uint8(x_40, sizeof(void*)*8, x_30); -lean_ctor_set_uint8(x_40, sizeof(void*)*8 + 1, x_34); -lean_ctor_set_uint8(x_40, sizeof(void*)*8 + 2, x_39); -x_41 = lean_st_ref_set(x_1, x_40, x_22); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_43 = x_41; +x_39 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_39, 0, x_30); +lean_ctor_set(x_39, 1, x_16); +lean_ctor_set(x_39, 2, x_31); +lean_ctor_set(x_39, 3, x_32); +lean_ctor_set(x_39, 4, x_33); +lean_ctor_set(x_39, 5, x_34); +lean_ctor_set(x_39, 6, x_35); +lean_ctor_set(x_39, 7, x_36); +lean_ctor_set(x_39, 8, x_38); +lean_ctor_set_uint8(x_39, sizeof(void*)*9, x_37); +x_40 = lean_st_ref_set(x_1, x_39, x_22); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_42 = x_40; } else { - lean_dec_ref(x_41); - x_43 = lean_box(0); + lean_dec_ref(x_40); + x_42 = lean_box(0); } -if (lean_is_scalar(x_43)) { - x_44 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_43; + x_43 = x_42; } -lean_ctor_set(x_44, 0, x_16); -lean_ctor_set(x_44, 1, x_42); -return x_44; +lean_ctor_set(x_43, 0, x_16); +lean_ctor_set(x_43, 1, x_41); +return x_43; } } else { -uint8_t x_45; +uint8_t x_44; lean_dec(x_7); -x_45 = !lean_is_exclusive(x_15); -if (x_45 == 0) +x_44 = !lean_is_exclusive(x_15); +if (x_44 == 0) { return x_15; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_15, 0); -x_47 = lean_ctor_get(x_15, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_15, 0); +x_46 = lean_ctor_get(x_15, 1); lean_inc(x_46); +lean_inc(x_45); lean_dec(x_15); -x_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_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -3844,11 +3947,19 @@ return x_20; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3859,7 +3970,16 @@ lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -3901,11 +4021,19 @@ return x_20; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3916,6 +4044,15 @@ lean_dec(x_1); return x_9; } } +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_1); +lean_dec(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_List_filterTRAux___at_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4008,88 +4145,87 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; lean_object* x_14; uint8_t x_15; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_st_ref_take(x_2, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_take(x_3, x_12); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_ctor_get(x_13, 3); -x_17 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore(x_16, x_1); -lean_ctor_set(x_13, 3, x_17); -x_18 = lean_st_ref_set(x_2, x_13, x_14); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_14, 3); +x_18 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore(x_17, x_1); +lean_ctor_set(x_14, 3, x_18); +x_19 = lean_st_ref_set(x_3, x_14, x_15); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 0); -lean_dec(x_20); -x_21 = lean_box(0); -lean_ctor_set(x_18, 0, x_21); -return x_18; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +x_22 = lean_box(0); +lean_ctor_set(x_19, 0, x_22); +return x_19; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_18, 1); -lean_inc(x_22); -lean_dec(x_18); -x_23 = lean_box(0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -return x_24; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; } } else { -uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t 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_25 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); -x_26 = lean_ctor_get(x_13, 0); -x_27 = lean_ctor_get(x_13, 1); -x_28 = lean_ctor_get(x_13, 2); -x_29 = lean_ctor_get(x_13, 3); -x_30 = lean_ctor_get_uint8(x_13, sizeof(void*)*8 + 1); -x_31 = lean_ctor_get(x_13, 4); -x_32 = lean_ctor_get(x_13, 5); -x_33 = lean_ctor_get(x_13, 6); -x_34 = lean_ctor_get(x_13, 7); -x_35 = lean_ctor_get_uint8(x_13, sizeof(void*)*8 + 2); -lean_inc(x_34); +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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_26 = lean_ctor_get(x_14, 0); +x_27 = lean_ctor_get(x_14, 1); +x_28 = lean_ctor_get(x_14, 2); +x_29 = lean_ctor_get(x_14, 3); +x_30 = lean_ctor_get(x_14, 4); +x_31 = lean_ctor_get(x_14, 5); +x_32 = lean_ctor_get(x_14, 6); +x_33 = lean_ctor_get(x_14, 7); +x_34 = lean_ctor_get_uint8(x_14, sizeof(void*)*9); +x_35 = lean_ctor_get(x_14, 8); +lean_inc(x_35); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); -lean_dec(x_13); +lean_dec(x_14); x_36 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArgCore(x_29, x_1); -x_37 = lean_alloc_ctor(0, 8, 3); +x_37 = lean_alloc_ctor(0, 9, 1); lean_ctor_set(x_37, 0, x_26); lean_ctor_set(x_37, 1, x_27); lean_ctor_set(x_37, 2, x_28); lean_ctor_set(x_37, 3, x_36); -lean_ctor_set(x_37, 4, x_31); -lean_ctor_set(x_37, 5, x_32); -lean_ctor_set(x_37, 6, x_33); -lean_ctor_set(x_37, 7, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*8, x_25); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 1, x_30); -lean_ctor_set_uint8(x_37, sizeof(void*)*8 + 2, x_35); -x_38 = lean_st_ref_set(x_2, x_37, x_14); +lean_ctor_set(x_37, 4, x_30); +lean_ctor_set(x_37, 5, x_31); +lean_ctor_set(x_37, 6, x_32); +lean_ctor_set(x_37, 7, x_33); +lean_ctor_set(x_37, 8, x_35); +lean_ctor_set_uint8(x_37, sizeof(void*)*9, x_34); +x_38 = lean_st_ref_set(x_3, x_37, x_15); x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); if (lean_is_exclusive(x_38)) { @@ -4112,11 +4248,12 @@ return x_42; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_10 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_11; +x_11 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -4124,321 +4261,320 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_10; +return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_11 = lean_st_ref_get(x_9, x_10); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_take(x_3, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +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_12 = lean_st_ref_get(x_10, x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_take(x_4, x_13); +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 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; uint8_t x_23; -x_17 = lean_ctor_get(x_14, 0); -x_18 = lean_ctor_get(x_14, 1); +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; +x_18 = lean_ctor_get(x_15, 0); +x_19 = lean_ctor_get(x_15, 1); lean_inc(x_2); -x_19 = l_Lean_mkApp(x_17, x_2); -x_20 = l_Lean_Expr_bindingBody_x21(x_18); -lean_dec(x_18); -x_21 = lean_expr_instantiate1(x_20, x_2); -lean_dec(x_20); -lean_ctor_set(x_14, 1, x_21); -lean_ctor_set(x_14, 0, x_19); -x_22 = lean_st_ref_set(x_3, x_14, x_15); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +x_20 = l_Lean_mkApp(x_18, x_2); +x_21 = l_Lean_Expr_bindingBody_x21(x_19); +lean_dec(x_19); +x_22 = lean_expr_instantiate1(x_21, x_2); +lean_dec(x_21); +lean_ctor_set(x_15, 1, x_22); +lean_ctor_set(x_15, 0, x_20); +x_23 = lean_st_ref_set(x_4, x_15, x_16); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_22, 1); -x_25 = lean_ctor_get(x_22, 0); -lean_dec(x_25); -x_26 = l_Lean_Expr_isMVar(x_2); -if (x_26 == 0) +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 1); +x_26 = lean_ctor_get(x_23, 0); +lean_dec(x_26); +x_27 = l_Lean_Expr_isMVar(x_2); +if (x_27 == 0) { -lean_object* x_27; +lean_object* x_28; lean_dec(x_2); lean_dec(x_1); -x_27 = lean_box(0); -lean_ctor_set(x_22, 0, x_27); -return x_22; +x_28 = lean_box(0); +lean_ctor_set(x_23, 0, x_28); +return x_23; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_free_object(x_22); -x_28 = l_Lean_Expr_mvarId_x21(x_2); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_free_object(x_23); +x_29 = l_Lean_Expr_mvarId_x21(x_2); lean_dec(x_2); -x_29 = l_Lean_Elab_Term_getMVarErrorInfo_x3f(x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_24); -lean_dec(x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -if (lean_obj_tag(x_30) == 0) +x_30 = l_Lean_Elab_Term_getMVarErrorInfo_x3f(x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +lean_dec(x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) { -uint8_t x_31; +uint8_t x_32; lean_dec(x_1); -x_31 = !lean_is_exclusive(x_29); -if (x_31 == 0) +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_29, 0); -lean_dec(x_32); -x_33 = lean_box(0); -lean_ctor_set(x_29, 0, x_33); -return x_29; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_30, 0); +lean_dec(x_33); +x_34 = lean_box(0); +lean_ctor_set(x_30, 0, x_34); +return x_30; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_29, 1); -lean_inc(x_34); -lean_dec(x_29); -x_35 = lean_box(0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -return x_36; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_dec(x_30); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +return x_37; } } else { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_30); -if (x_37 == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_31); +if (x_38 == 0) { -lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_38 = lean_ctor_get(x_30, 0); -x_39 = lean_ctor_get(x_29, 1); -lean_inc(x_39); -lean_dec(x_29); -x_40 = !lean_is_exclusive(x_38); -if (x_40 == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_31, 0); +x_40 = lean_ctor_get(x_30, 1); +lean_inc(x_40); +lean_dec(x_30); +x_41 = !lean_is_exclusive(x_39); +if (x_41 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_38, 3); -lean_dec(x_41); -lean_ctor_set(x_30, 0, x_1); -lean_ctor_set(x_38, 3, x_30); -x_42 = l_Lean_Elab_Term_registerMVarErrorInfo(x_38, x_4, x_5, x_6, x_7, x_8, x_9, x_39); -return x_42; +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_39, 3); +lean_dec(x_42); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_39, 3, x_31); +x_43 = l_Lean_Elab_Term_registerMVarErrorInfo(x_39, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +return x_43; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_38, 0); -x_44 = lean_ctor_get(x_38, 1); -x_45 = lean_ctor_get(x_38, 2); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_39, 0); +x_45 = lean_ctor_get(x_39, 1); +x_46 = lean_ctor_get(x_39, 2); +lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_38); -lean_ctor_set(x_30, 0, x_1); -x_46 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -lean_ctor_set(x_46, 2, x_45); -lean_ctor_set(x_46, 3, x_30); -x_47 = l_Lean_Elab_Term_registerMVarErrorInfo(x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_39); -return x_47; +lean_dec(x_39); +lean_ctor_set(x_31, 0, x_1); +x_47 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +lean_ctor_set(x_47, 2, x_46); +lean_ctor_set(x_47, 3, x_31); +x_48 = l_Lean_Elab_Term_registerMVarErrorInfo(x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +return x_48; } } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_48 = lean_ctor_get(x_30, 0); -lean_inc(x_48); -lean_dec(x_30); -x_49 = lean_ctor_get(x_29, 1); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_49 = lean_ctor_get(x_31, 0); lean_inc(x_49); -lean_dec(x_29); -x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_31); +x_50 = lean_ctor_get(x_30, 1); lean_inc(x_50); -x_51 = lean_ctor_get(x_48, 1); +lean_dec(x_30); +x_51 = lean_ctor_get(x_49, 0); lean_inc(x_51); -x_52 = lean_ctor_get(x_48, 2); +x_52 = lean_ctor_get(x_49, 1); lean_inc(x_52); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - lean_ctor_release(x_48, 2); - lean_ctor_release(x_48, 3); - x_53 = x_48; +x_53 = lean_ctor_get(x_49, 2); +lean_inc(x_53); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + lean_ctor_release(x_49, 2); + lean_ctor_release(x_49, 3); + x_54 = x_49; } else { - lean_dec_ref(x_48); - x_53 = lean_box(0); + lean_dec_ref(x_49); + x_54 = lean_box(0); } -x_54 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_54, 0, x_1); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 4, 0); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_1); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 4, 0); } else { - x_55 = x_53; + x_56 = x_54; } -lean_ctor_set(x_55, 0, x_50); -lean_ctor_set(x_55, 1, x_51); -lean_ctor_set(x_55, 2, x_52); -lean_ctor_set(x_55, 3, x_54); -x_56 = l_Lean_Elab_Term_registerMVarErrorInfo(x_55, x_4, x_5, x_6, x_7, x_8, x_9, x_49); -return x_56; +lean_ctor_set(x_56, 0, x_51); +lean_ctor_set(x_56, 1, x_52); +lean_ctor_set(x_56, 2, x_53); +lean_ctor_set(x_56, 3, x_55); +x_57 = l_Lean_Elab_Term_registerMVarErrorInfo(x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_50); +return x_57; } } } } else { -lean_object* x_57; uint8_t x_58; -x_57 = lean_ctor_get(x_22, 1); -lean_inc(x_57); -lean_dec(x_22); -x_58 = l_Lean_Expr_isMVar(x_2); -if (x_58 == 0) +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_23, 1); +lean_inc(x_58); +lean_dec(x_23); +x_59 = l_Lean_Expr_isMVar(x_2); +if (x_59 == 0) { -lean_object* x_59; lean_object* x_60; +lean_object* x_60; lean_object* x_61; lean_dec(x_2); lean_dec(x_1); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_57); -return x_60; +x_60 = lean_box(0); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +return x_61; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = l_Lean_Expr_mvarId_x21(x_2); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = l_Lean_Expr_mvarId_x21(x_2); lean_dec(x_2); -x_62 = l_Lean_Elab_Term_getMVarErrorInfo_x3f(x_61, x_4, x_5, x_6, x_7, x_8, x_9, x_57); -lean_dec(x_61); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_1); -x_64 = lean_ctor_get(x_62, 1); +x_63 = l_Lean_Elab_Term_getMVarErrorInfo_x3f(x_62, x_5, x_6, x_7, x_8, x_9, x_10, x_58); +lean_dec(x_62); +x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_65 = x_62; -} else { - lean_dec_ref(x_62); - x_65 = lean_box(0); -} -x_66 = lean_box(0); -if (lean_is_scalar(x_65)) { - x_67 = lean_alloc_ctor(0, 2, 0); -} else { - x_67 = x_65; -} -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_64); -return x_67; -} -else +if (lean_obj_tag(x_64) == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_68 = lean_ctor_get(x_63, 0); -lean_inc(x_68); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_1); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); if (lean_is_exclusive(x_63)) { lean_ctor_release(x_63, 0); - x_69 = x_63; + lean_ctor_release(x_63, 1); + x_66 = x_63; } else { lean_dec_ref(x_63); - x_69 = lean_box(0); + x_66 = lean_box(0); } -x_70 = lean_ctor_get(x_62, 1); -lean_inc(x_70); -lean_dec(x_62); -x_71 = lean_ctor_get(x_68, 0); +x_67 = lean_box(0); +if (lean_is_scalar(x_66)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_66; +} +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_69 = lean_ctor_get(x_64, 0); +lean_inc(x_69); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + x_70 = x_64; +} else { + lean_dec_ref(x_64); + x_70 = lean_box(0); +} +x_71 = lean_ctor_get(x_63, 1); lean_inc(x_71); -x_72 = lean_ctor_get(x_68, 1); +lean_dec(x_63); +x_72 = lean_ctor_get(x_69, 0); lean_inc(x_72); -x_73 = lean_ctor_get(x_68, 2); +x_73 = lean_ctor_get(x_69, 1); lean_inc(x_73); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - lean_ctor_release(x_68, 2); - lean_ctor_release(x_68, 3); - x_74 = x_68; -} else { - lean_dec_ref(x_68); - x_74 = lean_box(0); -} -if (lean_is_scalar(x_69)) { - x_75 = lean_alloc_ctor(1, 1, 0); -} else { +x_74 = lean_ctor_get(x_69, 2); +lean_inc(x_74); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + lean_ctor_release(x_69, 2); + lean_ctor_release(x_69, 3); x_75 = x_69; -} -lean_ctor_set(x_75, 0, x_1); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 4, 0); } else { - x_76 = x_74; + lean_dec_ref(x_69); + x_75 = lean_box(0); } -lean_ctor_set(x_76, 0, x_71); -lean_ctor_set(x_76, 1, x_72); -lean_ctor_set(x_76, 2, x_73); -lean_ctor_set(x_76, 3, x_75); -x_77 = l_Lean_Elab_Term_registerMVarErrorInfo(x_76, x_4, x_5, x_6, x_7, x_8, x_9, x_70); -return x_77; +if (lean_is_scalar(x_70)) { + x_76 = lean_alloc_ctor(1, 1, 0); +} else { + x_76 = x_70; +} +lean_ctor_set(x_76, 0, x_1); +if (lean_is_scalar(x_75)) { + x_77 = lean_alloc_ctor(0, 4, 0); +} else { + x_77 = x_75; +} +lean_ctor_set(x_77, 0, x_72); +lean_ctor_set(x_77, 1, x_73); +lean_ctor_set(x_77, 2, x_74); +lean_ctor_set(x_77, 3, x_76); +x_78 = l_Lean_Elab_Term_registerMVarErrorInfo(x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_71); +return x_78; } } } } else { -uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t 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; uint8_t x_96; -x_78 = lean_ctor_get_uint8(x_14, sizeof(void*)*8); -x_79 = lean_ctor_get(x_14, 0); -x_80 = lean_ctor_get(x_14, 1); -x_81 = lean_ctor_get(x_14, 2); -x_82 = lean_ctor_get(x_14, 3); -x_83 = lean_ctor_get_uint8(x_14, sizeof(void*)*8 + 1); -x_84 = lean_ctor_get(x_14, 4); -x_85 = lean_ctor_get(x_14, 5); -x_86 = lean_ctor_get(x_14, 6); -x_87 = lean_ctor_get(x_14, 7); -x_88 = lean_ctor_get_uint8(x_14, sizeof(void*)*8 + 2); -lean_inc(x_87); +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; uint8_t 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; uint8_t x_96; +x_79 = lean_ctor_get(x_15, 0); +x_80 = lean_ctor_get(x_15, 1); +x_81 = lean_ctor_get(x_15, 2); +x_82 = lean_ctor_get(x_15, 3); +x_83 = lean_ctor_get(x_15, 4); +x_84 = lean_ctor_get(x_15, 5); +x_85 = lean_ctor_get(x_15, 6); +x_86 = lean_ctor_get(x_15, 7); +x_87 = lean_ctor_get_uint8(x_15, sizeof(void*)*9); +x_88 = lean_ctor_get(x_15, 8); +lean_inc(x_88); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); +lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); -lean_dec(x_14); +lean_dec(x_15); lean_inc(x_2); x_89 = l_Lean_mkApp(x_79, x_2); x_90 = l_Lean_Expr_bindingBody_x21(x_80); lean_dec(x_80); x_91 = lean_expr_instantiate1(x_90, x_2); lean_dec(x_90); -x_92 = lean_alloc_ctor(0, 8, 3); +x_92 = lean_alloc_ctor(0, 9, 1); lean_ctor_set(x_92, 0, x_89); lean_ctor_set(x_92, 1, x_91); lean_ctor_set(x_92, 2, x_81); lean_ctor_set(x_92, 3, x_82); -lean_ctor_set(x_92, 4, x_84); -lean_ctor_set(x_92, 5, x_85); -lean_ctor_set(x_92, 6, x_86); -lean_ctor_set(x_92, 7, x_87); -lean_ctor_set_uint8(x_92, sizeof(void*)*8, x_78); -lean_ctor_set_uint8(x_92, sizeof(void*)*8 + 1, x_83); -lean_ctor_set_uint8(x_92, sizeof(void*)*8 + 2, x_88); -x_93 = lean_st_ref_set(x_3, x_92, x_15); +lean_ctor_set(x_92, 4, x_83); +lean_ctor_set(x_92, 5, x_84); +lean_ctor_set(x_92, 6, x_85); +lean_ctor_set(x_92, 7, x_86); +lean_ctor_set(x_92, 8, x_88); +lean_ctor_set_uint8(x_92, sizeof(void*)*9, x_87); +x_93 = lean_st_ref_set(x_4, x_92, x_16); x_94 = lean_ctor_get(x_93, 1); lean_inc(x_94); if (lean_is_exclusive(x_93)) { @@ -4471,7 +4607,7 @@ lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_dec(x_95); x_99 = l_Lean_Expr_mvarId_x21(x_2); lean_dec(x_2); -x_100 = l_Lean_Elab_Term_getMVarErrorInfo_x3f(x_99, x_4, x_5, x_6, x_7, x_8, x_9, x_94); +x_100 = l_Lean_Elab_Term_getMVarErrorInfo_x3f(x_99, x_5, x_6, x_7, x_8, x_9, x_10, x_94); lean_dec(x_99); x_101 = lean_ctor_get(x_100, 0); lean_inc(x_101); @@ -4545,18 +4681,19 @@ lean_ctor_set(x_114, 0, x_109); lean_ctor_set(x_114, 1, x_110); lean_ctor_set(x_114, 2, x_111); lean_ctor_set(x_114, 3, x_113); -x_115 = l_Lean_Elab_Term_registerMVarErrorInfo(x_114, x_4, x_5, x_6, x_7, x_8, x_9, x_108); +x_115 = l_Lean_Elab_Term_registerMVarErrorInfo(x_114, x_5, x_6, x_7, x_8, x_9, x_10, x_108); return x_115; } } } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_11; -x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_12; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -4564,484 +4701,486 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_11; +return x_12; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_11 = lean_st_ref_get(x_9, x_10); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_st_ref_get(x_3, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +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; +x_12 = lean_st_ref_get(x_10, x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_get(x_4, x_13); +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_expr_consume_type_annotations(x_17); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_expr_consume_type_annotations(x_18); if (lean_obj_tag(x_2) == 0) { -lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_2, 0); -lean_inc(x_20); +lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_2, 0); +lean_inc(x_21); lean_dec(x_2); -lean_inc(x_19); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_19); -x_22 = 1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); lean_inc(x_20); -x_23 = l_Lean_Elab_Term_elabTerm(x_20, x_21, x_22, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 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_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_ctor_get(x_14, 0); -lean_inc(x_26); -lean_dec(x_14); -x_27 = lean_ctor_get(x_8, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_8, 1); -lean_inc(x_28); -x_29 = lean_ctor_get(x_8, 2); -lean_inc(x_29); -x_30 = lean_ctor_get(x_8, 3); -lean_inc(x_30); -x_31 = lean_ctor_get(x_8, 4); -lean_inc(x_31); -x_32 = lean_ctor_get(x_8, 5); -lean_inc(x_32); -x_33 = lean_ctor_get(x_8, 6); -lean_inc(x_33); -x_34 = lean_ctor_get(x_8, 7); -lean_inc(x_34); -x_35 = lean_ctor_get(x_8, 8); -lean_inc(x_35); -x_36 = lean_ctor_get(x_8, 9); -lean_inc(x_36); -x_37 = lean_ctor_get(x_8, 10); -lean_inc(x_37); -x_38 = l_Lean_replaceRef(x_20, x_32); -lean_dec(x_32); -lean_dec(x_20); -x_39 = lean_alloc_ctor(0, 11, 0); -lean_ctor_set(x_39, 0, x_27); -lean_ctor_set(x_39, 1, x_28); -lean_ctor_set(x_39, 2, x_29); -lean_ctor_set(x_39, 3, x_30); -lean_ctor_set(x_39, 4, x_31); -lean_ctor_set(x_39, 5, x_38); -lean_ctor_set(x_39, 6, x_33); -lean_ctor_set(x_39, 7, x_34); -lean_ctor_set(x_39, 8, x_35); -lean_ctor_set(x_39, 9, x_36); -lean_ctor_set(x_39, 10, x_37); -lean_inc(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_26, x_24, x_19, x_4, x_5, x_6, x_7, x_39, x_9, x_25); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_42); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_43; -} -else -{ -uint8_t x_44; -lean_dec(x_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_44 = !lean_is_exclusive(x_40); -if (x_44 == 0) -{ -return x_40; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_40, 0); -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_40); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(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_1); -x_48 = !lean_is_exclusive(x_23); -if (x_48 == 0) -{ -return x_23; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_23, 0); -x_50 = lean_ctor_get(x_23, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_23); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_2, 0); -lean_inc(x_52); -lean_dec(x_2); -x_53 = lean_ctor_get(x_14, 0); -lean_inc(x_53); -lean_dec(x_14); -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_54 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_53, x_52, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_56); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_57; -} -else -{ -uint8_t x_58; -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_58 = !lean_is_exclusive(x_54); -if (x_58 == 0) -{ -return x_54; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_54, 0); -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_54); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_3); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; -x_12 = lean_usize_dec_eq(x_2, x_3); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_array_uget(x_1, x_2); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_20); +x_23 = 1; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_14 = lean_infer_type(x_13, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_14) == 0) +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_21); +x_24 = l_Lean_Elab_Term_elabTerm(x_21, x_22, x_23, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +if (lean_obj_tag(x_24) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -x_18 = l_Lean_Expr_getOptParamDefault_x3f(x_16); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = l_Lean_Expr_getAutoParamTactic_x3f(x_16); -lean_dec(x_16); -if (lean_obj_tag(x_19) == 0) -{ -size_t x_20; size_t x_21; -lean_free_object(x_14); -x_20 = 1; -x_21 = lean_usize_add(x_2, x_20); -x_2 = x_21; -x_11 = x_17; -goto _start; -} -else -{ -uint8_t x_23; lean_object* x_24; -lean_dec(x_19); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_23 = 1; -x_24 = lean_box(x_23); -lean_ctor_set(x_14, 0, x_24); -return x_14; -} -} -else -{ -uint8_t x_25; lean_object* x_26; -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_25 = 1; -x_26 = lean_box(x_25); -lean_ctor_set(x_14, 0, x_26); -return x_14; -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_14, 0); -x_28 = lean_ctor_get(x_14, 1); -lean_inc(x_28); +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; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_15, 0); lean_inc(x_27); -lean_dec(x_14); -x_29 = l_Lean_Expr_getOptParamDefault_x3f(x_27); -if (lean_obj_tag(x_29) == 0) +lean_dec(x_15); +x_28 = lean_ctor_get(x_9, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_9, 1); +lean_inc(x_29); +x_30 = lean_ctor_get(x_9, 2); +lean_inc(x_30); +x_31 = lean_ctor_get(x_9, 3); +lean_inc(x_31); +x_32 = lean_ctor_get(x_9, 4); +lean_inc(x_32); +x_33 = lean_ctor_get(x_9, 5); +lean_inc(x_33); +x_34 = lean_ctor_get(x_9, 6); +lean_inc(x_34); +x_35 = lean_ctor_get(x_9, 7); +lean_inc(x_35); +x_36 = lean_ctor_get(x_9, 8); +lean_inc(x_36); +x_37 = lean_ctor_get(x_9, 9); +lean_inc(x_37); +x_38 = lean_ctor_get(x_9, 10); +lean_inc(x_38); +x_39 = l_Lean_replaceRef(x_21, x_33); +lean_dec(x_33); +lean_dec(x_21); +x_40 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_40, 0, x_28); +lean_ctor_set(x_40, 1, x_29); +lean_ctor_set(x_40, 2, x_30); +lean_ctor_set(x_40, 3, x_31); +lean_ctor_set(x_40, 4, x_32); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set(x_40, 6, x_34); +lean_ctor_set(x_40, 7, x_35); +lean_ctor_set(x_40, 8, x_36); +lean_ctor_set(x_40, 9, x_37); +lean_ctor_set(x_40, 10, x_38); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_27, x_25, x_20, x_5, x_6, x_7, x_8, x_40, x_10, x_26); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_30; -x_30 = l_Lean_Expr_getAutoParamTactic_x3f(x_27); -lean_dec(x_27); -if (lean_obj_tag(x_30) == 0) -{ -size_t x_31; size_t x_32; -x_31 = 1; -x_32 = lean_usize_add(x_2, x_31); -x_2 = x_32; -x_11 = x_28; -goto _start; -} -else -{ -uint8_t x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_30); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_34 = 1; -x_35 = lean_box(x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_28); -return x_36; -} -} -else -{ -uint8_t x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_29); -lean_dec(x_27); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -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_28); -return x_39; -} -} -} -else -{ -uint8_t x_40; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_40 = !lean_is_exclusive(x_14); -if (x_40 == 0) -{ -return x_14; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_14, 0); -x_42 = lean_ctor_get(x_14, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_14); -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; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_42, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_44; +} +else +{ +uint8_t x_45; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) +{ +return x_41; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_41, 0); +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_41); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } else { -uint8_t x_44; lean_object* x_45; lean_object* x_46; +uint8_t x_49; +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_15); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_44 = 0; -x_45 = lean_box(x_44); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_11); -return x_46; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_49 = !lean_is_exclusive(x_24); +if (x_49 == 0) +{ +return x_24; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_24, 0); +x_51 = lean_ctor_get(x_24, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_24); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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, lean_object* x_11) { +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_2, 0); +lean_inc(x_53); +lean_dec(x_2); +x_54 = lean_ctor_get(x_15, 0); +lean_inc(x_54); +lean_dec(x_15); +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_55 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ensureArgType(x_54, x_53, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_57); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_58; +} +else +{ +uint8_t x_59; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_59 = !lean_is_exclusive(x_55); +if (x_59 == 0) +{ +return x_55; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_55, 0); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_55); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = lean_apply_10(x_1, x_5, x_6, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_4); +lean_dec(x_3); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg___lambda__1), 11, 4); -lean_closure_set(x_11, 0, x_2); -lean_closure_set(x_11, 1, x_3); -lean_closure_set(x_11, 2, x_4); -lean_closure_set(x_11, 3, x_5); -x_12 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(x_1, x_11, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); +x_13 = lean_usize_dec_eq(x_2, x_3); if (x_13 == 0) { -return x_12; +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_uget(x_1, x_2); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_15 = lean_infer_type(x_14, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = l_Lean_Expr_getOptParamDefault_x3f(x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = l_Lean_Expr_getAutoParamTactic_x3f(x_17); +lean_dec(x_17); +if (lean_obj_tag(x_20) == 0) +{ +size_t x_21; size_t x_22; +lean_free_object(x_15); +x_21 = 1; +x_22 = lean_usize_add(x_2, x_21); +x_2 = x_22; +x_12 = x_18; +goto _start; } else { -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); +uint8_t x_24; lean_object* x_25; +lean_dec(x_20); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_24 = 1; +x_25 = lean_box(x_24); +lean_ctor_set(x_15, 0, x_25); +return x_15; +} +} +else +{ +uint8_t x_26; lean_object* x_27; +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_26 = 1; +x_27 = lean_box(x_26); +lean_ctor_set(x_15, 0, x_27); +return x_15; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_15, 0); +x_29 = lean_ctor_get(x_15, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_15); +x_30 = l_Lean_Expr_getOptParamDefault_x3f(x_28); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; +x_31 = l_Lean_Expr_getAutoParamTactic_x3f(x_28); +lean_dec(x_28); +if (lean_obj_tag(x_31) == 0) +{ +size_t x_32; size_t x_33; +x_32 = 1; +x_33 = lean_usize_add(x_2, x_32); +x_2 = x_33; +x_12 = x_29; +goto _start; +} +else +{ +uint8_t x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_31); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_35 = 1; +x_36 = lean_box(x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_29); +return x_37; +} +} +else +{ +uint8_t x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_38 = 1; +x_39 = lean_box(x_38); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_29); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_41 = !lean_is_exclusive(x_15); +if (x_41 == 0) +{ +return x_15; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_15, 0); +x_43 = lean_ctor_get(x_15, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_15); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +uint8_t x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_45 = 0; +x_46 = lean_box(x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_12); +return x_47; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = lean_apply_11(x_1, x_6, x_7, x_2, x_3, x_4, x_5, x_8, x_9, x_10, x_11, x_12); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg___lambda__1), 12, 5); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_3); +lean_closure_set(x_12, 2, x_4); +lean_closure_set(x_12, 3, x_5); +lean_closure_set(x_12, 4, x_6); +x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(x_1, x_12, x_7, x_8, x_9, x_10, x_11); +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_inc(x_14); -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; +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_17; -x_17 = !lean_is_exclusive(x_12); -if (x_17 == 0) +uint8_t x_18; +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) { -return x_12; +return x_13; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_12, 0); -x_19 = lean_ctor_get(x_12, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_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; +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; } } } @@ -5050,22 +5189,23 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg), 11, 0); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_dec(x_2); -x_11 = lean_array_get_size(x_1); -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_nat_dec_lt(x_12, x_11); -if (x_13 == 0) +x_12 = lean_array_get_size(x_1); +x_13 = lean_unsigned_to_nat(0u); +x_14 = lean_nat_dec_lt(x_13, x_12); +if (x_14 == 0) { -uint8_t x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_11); +uint8_t x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5073,21 +5213,22 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_14 = 0; -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_10); -return x_16; +x_15 = 0; +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_11); +return x_17; } else { -uint8_t x_17; -x_17 = lean_nat_dec_le(x_11, x_11); -if (x_17 == 0) +uint8_t x_18; +x_18 = lean_nat_dec_le(x_12, x_12); +if (x_18 == 0) { -uint8_t x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_11); +uint8_t x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5095,24 +5236,25 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_18 = 0; -x_19 = lean_box(x_18); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_10); -return x_20; +x_19 = 0; +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_11); +return x_21; } else { -size_t x_21; size_t x_22; lean_object* x_23; -x_21 = 0; -x_22 = lean_usize_of_nat(x_11); -lean_dec(x_11); -x_23 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(x_1, x_21, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +size_t x_22; size_t x_23; lean_object* x_24; +x_22 = 0; +x_23 = lean_usize_of_nat(x_12); +lean_dec(x_12); +x_24 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(x_1, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_23; +return x_24; } } } @@ -5121,64 +5263,65 @@ static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArg _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed), 10, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed), 11, 0); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; -x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; -x_11 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; +lean_object* x_11; lean_object* x_12; +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +x_12 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; } } -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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) { _start: { -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_2); +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_2); lean_dec(x_2); -x_13 = lean_unbox_usize(x_3); +x_14 = lean_unbox_usize(x_3); lean_dec(x_3); -x_14 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__1(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_14; +return x_15; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_11; -x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_12; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_1); -return x_11; +return x_12; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_1, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_st_ref_get(x_2, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec(x_11); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; -x_16 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_14, x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_13); -return x_16; +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +x_17 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_15, x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +return x_17; } } LEAN_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1(lean_object* x_1, lean_object* x_2) { @@ -5825,373 +5968,372 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_11 = lean_ctor_get(x_8, 5); -x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, 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_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_12 = lean_ctor_get(x_9, 5); +x_13 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_12); -x_15 = l___private_Lean_Util_Trace_0__Lean_addTraceOptions(x_13); -x_16 = lean_st_ref_take(x_9, x_14); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 3); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l___private_Lean_Util_Trace_0__Lean_addTraceOptions(x_14); +x_17 = lean_st_ref_take(x_10, x_15); +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); +x_19 = lean_ctor_get(x_18, 3); lean_inc(x_19); -lean_dec(x_16); -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_17, 3); -lean_dec(x_21); -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_18, 3); +lean_dec(x_22); +x_23 = !lean_is_exclusive(x_19); +if (x_23 == 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; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_23 = lean_ctor_get(x_18, 0); -x_24 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__2; -x_25 = l_Lean_Name_append(x_1, x_24); -x_26 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_26, 0, x_1); -x_27 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__4; -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__6; -x_30 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_24 = lean_ctor_get(x_19, 0); +x_25 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__2; +x_26 = l_Lean_Name_append(x_1, x_25); +x_27 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_27, 0, x_1); +x_28 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__4; +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_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__6; x_31 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_15); -x_32 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_34, 0, x_25); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_16); +x_33 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -lean_inc(x_11); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_11); +x_35 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_35, 0, x_26); lean_ctor_set(x_35, 1, x_34); -x_36 = l_Std_PersistentArray_push___rarg(x_23, x_35); -lean_ctor_set(x_18, 0, x_36); -x_37 = lean_st_ref_set(x_9, x_17, x_19); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +lean_inc(x_12); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_12); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Std_PersistentArray_push___rarg(x_24, x_36); +lean_ctor_set(x_19, 0, x_37); +x_38 = lean_st_ref_set(x_10, x_18, x_20); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); -x_40 = lean_box(0); -lean_ctor_set(x_37, 0, x_40); -return x_37; +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +x_41 = lean_box(0); +lean_ctor_set(x_38, 0, x_41); +return x_38; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_37, 1); -lean_inc(x_41); -lean_dec(x_37); -x_42 = lean_box(0); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -return x_43; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 1); +lean_inc(x_42); +lean_dec(x_38); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; } } else { -uint8_t 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; -x_44 = lean_ctor_get_uint8(x_18, sizeof(void*)*1); -x_45 = lean_ctor_get(x_18, 0); -lean_inc(x_45); -lean_dec(x_18); -x_46 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__2; -x_47 = l_Lean_Name_append(x_1, x_46); -x_48 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_48, 0, x_1); -x_49 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__4; -x_50 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__6; -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); +uint8_t 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; +x_45 = lean_ctor_get_uint8(x_19, sizeof(void*)*1); +x_46 = lean_ctor_get(x_19, 0); +lean_inc(x_46); +lean_dec(x_19); +x_47 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__2; +x_48 = l_Lean_Name_append(x_1, x_47); +x_49 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_49, 0, x_1); +x_50 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__4; +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_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__6; x_53 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_15); -x_54 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -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 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_56, 0, x_47); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_16); +x_55 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); -lean_inc(x_11); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_11); +x_57 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_57, 0, x_48); lean_ctor_set(x_57, 1, x_56); -x_58 = l_Std_PersistentArray_push___rarg(x_45, x_57); -x_59 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set_uint8(x_59, sizeof(void*)*1, x_44); -lean_ctor_set(x_17, 3, x_59); -x_60 = lean_st_ref_set(x_9, x_17, x_19); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_62 = x_60; +lean_inc(x_12); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_12); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Std_PersistentArray_push___rarg(x_46, x_58); +x_60 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set_uint8(x_60, sizeof(void*)*1, x_45); +lean_ctor_set(x_18, 3, x_60); +x_61 = lean_st_ref_set(x_10, x_18, x_20); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_63 = x_61; } else { - lean_dec_ref(x_60); - x_62 = lean_box(0); + lean_dec_ref(x_61); + x_63 = lean_box(0); } -x_63 = lean_box(0); -if (lean_is_scalar(x_62)) { - x_64 = lean_alloc_ctor(0, 2, 0); +x_64 = lean_box(0); +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 2, 0); } else { - x_64 = x_62; + x_65 = x_63; } -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -return x_64; +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_62); +return x_65; } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_65 = lean_ctor_get(x_17, 0); -x_66 = lean_ctor_get(x_17, 1); -x_67 = lean_ctor_get(x_17, 2); -x_68 = lean_ctor_get(x_17, 4); -x_69 = lean_ctor_get(x_17, 5); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t 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; +x_66 = lean_ctor_get(x_18, 0); +x_67 = lean_ctor_get(x_18, 1); +x_68 = lean_ctor_get(x_18, 2); +x_69 = lean_ctor_get(x_18, 4); +x_70 = lean_ctor_get(x_18, 5); +lean_inc(x_70); lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_17); -x_70 = lean_ctor_get_uint8(x_18, sizeof(void*)*1); -x_71 = lean_ctor_get(x_18, 0); -lean_inc(x_71); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - x_72 = x_18; +lean_dec(x_18); +x_71 = lean_ctor_get_uint8(x_19, sizeof(void*)*1); +x_72 = lean_ctor_get(x_19, 0); +lean_inc(x_72); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + x_73 = x_19; } else { - lean_dec_ref(x_18); - x_72 = lean_box(0); + lean_dec_ref(x_19); + x_73 = lean_box(0); } -x_73 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__2; -x_74 = l_Lean_Name_append(x_1, x_73); -x_75 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_75, 0, x_1); -x_76 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__4; -x_77 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -x_78 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__6; -x_79 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); +x_74 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__2; +x_75 = l_Lean_Name_append(x_1, x_74); +x_76 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_76, 0, x_1); +x_77 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__4; +x_78 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_76); +x_79 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___closed__6; x_80 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_15); -x_81 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_82 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_83, 0, x_74); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +x_81 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_16); +x_82 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_83 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_83, 0, x_81); lean_ctor_set(x_83, 1, x_82); -lean_inc(x_11); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_11); +x_84 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_84, 0, x_75); lean_ctor_set(x_84, 1, x_83); -x_85 = l_Std_PersistentArray_push___rarg(x_71, x_84); -if (lean_is_scalar(x_72)) { - x_86 = lean_alloc_ctor(0, 1, 1); +lean_inc(x_12); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_12); +lean_ctor_set(x_85, 1, x_84); +x_86 = l_Std_PersistentArray_push___rarg(x_72, x_85); +if (lean_is_scalar(x_73)) { + x_87 = lean_alloc_ctor(0, 1, 1); } else { - x_86 = x_72; + x_87 = x_73; } -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set_uint8(x_86, sizeof(void*)*1, x_70); -x_87 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_87, 0, x_65); -lean_ctor_set(x_87, 1, x_66); -lean_ctor_set(x_87, 2, x_67); -lean_ctor_set(x_87, 3, x_86); -lean_ctor_set(x_87, 4, x_68); -lean_ctor_set(x_87, 5, x_69); -x_88 = lean_st_ref_set(x_9, x_87, x_19); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_90 = x_88; +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set_uint8(x_87, sizeof(void*)*1, x_71); +x_88 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_88, 0, x_66); +lean_ctor_set(x_88, 1, x_67); +lean_ctor_set(x_88, 2, x_68); +lean_ctor_set(x_88, 3, x_87); +lean_ctor_set(x_88, 4, x_69); +lean_ctor_set(x_88, 5, x_70); +x_89 = lean_st_ref_set(x_10, x_88, x_20); +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_91 = x_89; } else { - lean_dec_ref(x_88); - x_90 = lean_box(0); + lean_dec_ref(x_89); + x_91 = lean_box(0); } -x_91 = lean_box(0); -if (lean_is_scalar(x_90)) { - x_92 = lean_alloc_ctor(0, 2, 0); +x_92 = lean_box(0); +if (lean_is_scalar(x_91)) { + x_93 = lean_alloc_ctor(0, 2, 0); } else { - x_92 = x_90; + x_93 = x_91; } -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_89); -return x_92; +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_90); +return x_93; } } } -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_7, 2); -x_11 = l_Lean_checkTraceOption(x_10, x_1); -x_12 = lean_box(x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; +lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_8, 2); +x_12 = l_Lean_checkTraceOption(x_11, x_1); +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_12; -lean_inc(x_10); -x_12 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_12) == 0) +lean_object* x_13; +lean_inc(x_11); +x_13 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_unbox(x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_10); -x_15 = !lean_is_exclusive(x_12); +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_unbox(x_14); +lean_dec(x_14); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_12, 0); -lean_dec(x_16); -x_17 = lean_box(0); -lean_ctor_set(x_12, 0, x_17); -return x_12; +uint8_t x_16; +lean_dec(x_11); +x_16 = !lean_is_exclusive(x_13); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_13, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_13, 0, x_18); +return x_13; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_dec(x_12); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -return x_20; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_dec(x_13); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; } } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_21 = lean_ctor_get(x_12, 1); -lean_inc(x_21); -lean_dec(x_12); -x_22 = lean_st_ref_get(x_10, x_21); -lean_dec(x_10); -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_st_ref_take(x_4, x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_22 = lean_ctor_get(x_13, 1); +lean_inc(x_22); +lean_dec(x_13); +x_23 = lean_st_ref_get(x_11, x_22); +lean_dec(x_11); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_st_ref_take(x_5, x_24); +x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -lean_dec(x_24); -x_27 = !lean_is_exclusive(x_25); -if (x_27 == 0) +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = !lean_is_exclusive(x_26); +if (x_28 == 0) { -uint8_t x_28; lean_object* x_29; uint8_t x_30; -x_28 = 0; -lean_ctor_set_uint8(x_25, sizeof(void*)*8 + 2, x_28); -x_29 = lean_st_ref_set(x_4, x_25, x_26); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +uint8_t x_29; lean_object* x_30; uint8_t x_31; +x_29 = 0; +lean_ctor_set_uint8(x_26, sizeof(void*)*9, x_29); +x_30 = lean_st_ref_set(x_5, x_26, x_27); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_29, 0); -lean_dec(x_31); -x_32 = lean_box(0); -lean_ctor_set(x_29, 0, x_32); -return x_29; +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +x_33 = lean_box(0); +lean_ctor_set(x_30, 0, x_33); +return x_30; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_29, 1); -lean_inc(x_33); -lean_dec(x_29); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +lean_dec(x_30); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; } } else { -uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 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; -x_36 = lean_ctor_get_uint8(x_25, sizeof(void*)*8); -x_37 = lean_ctor_get(x_25, 0); -x_38 = lean_ctor_get(x_25, 1); -x_39 = lean_ctor_get(x_25, 2); -x_40 = lean_ctor_get(x_25, 3); -x_41 = lean_ctor_get_uint8(x_25, sizeof(void*)*8 + 1); -x_42 = lean_ctor_get(x_25, 4); -x_43 = lean_ctor_get(x_25, 5); -x_44 = lean_ctor_get(x_25, 6); -x_45 = lean_ctor_get(x_25, 7); +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; 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; +x_37 = lean_ctor_get(x_26, 0); +x_38 = lean_ctor_get(x_26, 1); +x_39 = lean_ctor_get(x_26, 2); +x_40 = lean_ctor_get(x_26, 3); +x_41 = lean_ctor_get(x_26, 4); +x_42 = lean_ctor_get(x_26, 5); +x_43 = lean_ctor_get(x_26, 6); +x_44 = lean_ctor_get(x_26, 7); +x_45 = lean_ctor_get(x_26, 8); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); +lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); -lean_dec(x_25); +lean_dec(x_26); x_46 = 0; -x_47 = lean_alloc_ctor(0, 8, 3); +x_47 = lean_alloc_ctor(0, 9, 1); lean_ctor_set(x_47, 0, x_37); lean_ctor_set(x_47, 1, x_38); lean_ctor_set(x_47, 2, x_39); lean_ctor_set(x_47, 3, x_40); -lean_ctor_set(x_47, 4, x_42); -lean_ctor_set(x_47, 5, x_43); -lean_ctor_set(x_47, 6, x_44); -lean_ctor_set(x_47, 7, x_45); -lean_ctor_set_uint8(x_47, sizeof(void*)*8, x_36); -lean_ctor_set_uint8(x_47, sizeof(void*)*8 + 1, x_41); -lean_ctor_set_uint8(x_47, sizeof(void*)*8 + 2, x_46); -x_48 = lean_st_ref_set(x_4, x_47, x_26); +lean_ctor_set(x_47, 4, x_41); +lean_ctor_set(x_47, 5, x_42); +lean_ctor_set(x_47, 6, x_43); +lean_ctor_set(x_47, 7, x_44); +lean_ctor_set(x_47, 8, x_45); +lean_ctor_set_uint8(x_47, sizeof(void*)*9, x_46); +x_48 = lean_st_ref_set(x_5, x_47, x_27); x_49 = lean_ctor_get(x_48, 1); lean_inc(x_49); if (lean_is_exclusive(x_48)) { @@ -6217,20 +6359,20 @@ return x_52; else { uint8_t x_53; -lean_dec(x_10); -x_53 = !lean_is_exclusive(x_12); +lean_dec(x_11); +x_53 = !lean_is_exclusive(x_13); if (x_53 == 0) { -return x_12; +return x_13; } else { lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_12, 0); -x_55 = lean_ctor_get(x_12, 1); +x_54 = lean_ctor_get(x_13, 0); +x_55 = lean_ctor_get(x_13, 1); lean_inc(x_55); lean_inc(x_54); -lean_dec(x_12); +lean_dec(x_13); x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); @@ -6256,21 +6398,22 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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) { _start: { -uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_dec(x_5); -x_14 = lean_ctor_get_uint8(x_1, sizeof(void*)*8); -x_15 = lean_ctor_get(x_1, 3); -lean_inc(x_15); -x_16 = lean_ctor_get(x_1, 1); +x_15 = lean_ctor_get_uint8(x_6, 1); +x_16 = lean_ctor_get(x_1, 3); lean_inc(x_16); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); lean_dec(x_1); -x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_14, x_2, x_15, x_16); -if (lean_obj_tag(x_17) == 0) +x_18 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody(x_15, x_2, x_16, x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; lean_object* x_19; +lean_object* x_19; lean_object* x_20; +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6280,23 +6423,24 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_13); -return x_19; +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_14); +return x_20; } else { -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_17, 0); -lean_inc(x_20); -lean_dec(x_17); -x_21 = l_Lean_Expr_hasLooseBVars(x_20); -if (x_21 == 0) +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +x_22 = l_Lean_Expr_hasLooseBVars(x_21); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +lean_object* x_23; lean_object* x_24; +x_23 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___closed__1; +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); @@ -6304,114 +6448,117 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_20); -x_23 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_20, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_23) == 0) +lean_inc(x_21); +x_24 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_21, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_unbox(x_24); +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); lean_dec(x_24); -if (x_25 == 0) -{ -lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_44 = lean_st_ref_get(x_12, x_26); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_45, 3); +x_45 = lean_st_ref_get(x_13, x_27); +x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -lean_dec(x_45); -x_47 = lean_ctor_get_uint8(x_46, sizeof(void*)*1); +x_47 = lean_ctor_get(x_46, 3); +lean_inc(x_47); lean_dec(x_46); -if (x_47 == 0) +x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*1); +lean_dec(x_47); +if (x_48 == 0) { -lean_object* x_48; uint8_t x_49; -x_48 = lean_ctor_get(x_44, 1); -lean_inc(x_48); -lean_dec(x_44); -x_49 = 0; -x_27 = x_49; -x_28 = x_48; -goto block_43; +lean_object* x_49; uint8_t x_50; +x_49 = lean_ctor_get(x_45, 1); +lean_inc(x_49); +lean_dec(x_45); +x_50 = 0; +x_28 = x_50; +x_29 = x_49; +goto block_44; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_50 = lean_ctor_get(x_44, 1); -lean_inc(x_50); -lean_dec(x_44); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_51 = lean_ctor_get(x_45, 1); +lean_inc(x_51); +lean_dec(x_45); lean_inc(x_4); -x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_50); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_51); +x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_unbox(x_52); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); lean_dec(x_52); -x_27 = x_54; -x_28 = x_53; -goto block_43; +x_55 = lean_unbox(x_53); +lean_dec(x_53); +x_28 = x_55; +x_29 = x_54; +goto block_44; } -block_43: +block_44: { -if (x_27 == 0) +if (x_28 == 0) { -lean_object* x_29; lean_object* x_30; +lean_object* x_30; lean_object* x_31; lean_dec(x_4); -x_29 = lean_box(0); -x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1(x_3, x_20, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); +x_30 = lean_box(0); +x_31 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1(x_3, x_21, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_29); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_30; +return x_31; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_object* x_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_inc(x_3); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_3); -x_32 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2___closed__2; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -lean_inc(x_20); -x_36 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_36, 0, x_20); -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_3); +x_33 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2___closed__2; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_inc(x_21); +x_37 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_37, 0, x_21); x_38 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_32); -x_39 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_4, x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_33); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_4, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_29); +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -lean_dec(x_39); -x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1(x_3, x_20, x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_41); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); lean_dec(x_40); -return x_42; +x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__1(x_3, x_21, x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_42); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_41); +return x_43; } } } else { -uint8_t x_55; -lean_dec(x_20); +uint8_t x_56; +lean_dec(x_21); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6421,34 +6568,35 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_55 = !lean_is_exclusive(x_23); -if (x_55 == 0) +x_56 = !lean_is_exclusive(x_24); +if (x_56 == 0) { -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_23, 0); -lean_dec(x_56); -x_57 = lean_box(0); -lean_ctor_set(x_23, 0, x_57); -return x_23; +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_24, 0); +lean_dec(x_57); +x_58 = lean_box(0); +lean_ctor_set(x_24, 0, x_58); +return x_24; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_23, 1); -lean_inc(x_58); -lean_dec(x_23); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -return x_60; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +lean_dec(x_24); +x_60 = lean_box(0); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +return x_61; } } } else { -uint8_t x_61; -lean_dec(x_20); +uint8_t x_62; +lean_dec(x_21); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6458,30 +6606,31 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_61 = !lean_is_exclusive(x_23); -if (x_61 == 0) +x_62 = !lean_is_exclusive(x_24); +if (x_62 == 0) { -return x_23; +return x_24; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_23, 0); -x_63 = lean_ctor_get(x_23, 1); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_24, 0); +x_64 = lean_ctor_get(x_24, 1); +lean_inc(x_64); lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_23); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_dec(x_24); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } else { -lean_object* x_65; lean_object* x_66; -lean_dec(x_20); +lean_object* x_66; lean_object* x_67; +lean_dec(x_21); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6491,11 +6640,11 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -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_13); -return x_66; +x_66 = lean_box(0); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_14); +return x_67; } } } @@ -6605,14 +6754,15 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor(x_1); -if (x_10 == 0) +uint8_t x_11; +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor(x_1); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; +lean_object* x_12; lean_object* x_13; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6620,34 +6770,35 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_9); -return x_12; +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_10); +return x_13; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_st_ref_get(x_8, x_9); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_st_ref_get(x_2, x_14); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_st_ref_get(x_9, x_10); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_st_ref_get(x_3, x_15); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -x_19 = lean_ctor_get(x_17, 5); -lean_inc(x_19); -x_20 = l_Array_isEmpty___rarg(x_19); -if (x_20 == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +x_20 = lean_ctor_get(x_18, 5); +lean_inc(x_20); +x_21 = l_Array_isEmpty___rarg(x_20); +if (x_21 == 0) { -lean_object* x_21; -lean_dec(x_19); -lean_dec(x_17); +lean_object* x_22; +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6655,40 +6806,42 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_21 = lean_box(0); -lean_ctor_set(x_15, 0, x_21); -return x_15; +x_22 = lean_box(0); +lean_ctor_set(x_16, 0, x_22); +return x_16; } else { -uint8_t x_22; -x_22 = lean_ctor_get_uint8(x_17, sizeof(void*)*8 + 2); -if (x_22 == 0) -{ -lean_object* x_23; -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_23 = lean_box(0); -lean_ctor_set(x_15, 0, x_23); -return x_15; -} -else +uint8_t x_23; +x_23 = lean_ctor_get_uint8(x_18, sizeof(void*)*9); +if (x_23 == 0) { lean_object* x_24; -x_24 = lean_ctor_get(x_17, 4); -lean_inc(x_24); -if (lean_obj_tag(x_24) == 0) +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = lean_box(0); +lean_ctor_set(x_16, 0, x_24); +return x_16; +} +else { lean_object* x_25; -lean_dec(x_19); -lean_dec(x_17); +x_25 = lean_ctor_get(x_18, 4); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6696,217 +6849,217 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_25 = lean_box(0); -lean_ctor_set(x_15, 0, x_25); -return x_15; +x_26 = lean_box(0); +lean_ctor_set(x_16, 0, x_26); +return x_16; } else { -lean_object* x_26; uint8_t x_27; -lean_free_object(x_15); -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Expr_isProp(x_26); -if (x_27 == 0) +lean_object* x_27; uint8_t x_28; +lean_free_object(x_16); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Expr_isProp(x_27); +if (x_28 == 0) { -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_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_28 = lean_ctor_get(x_17, 2); -lean_inc(x_28); -x_29 = lean_unsigned_to_nat(0u); -x_30 = l_List_lengthTRAux___rarg(x_28, x_29); -lean_dec(x_28); -x_31 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6; -x_60 = lean_st_ref_get(x_8, x_18); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_61, 3); +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_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_29 = lean_ctor_get(x_18, 2); +lean_inc(x_29); +x_30 = lean_unsigned_to_nat(0u); +x_31 = l_List_lengthTRAux___rarg(x_29, x_30); +lean_dec(x_29); +x_32 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6; +x_61 = lean_st_ref_get(x_9, x_19); +x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); -lean_dec(x_61); -x_63 = lean_ctor_get_uint8(x_62, sizeof(void*)*1); +x_63 = lean_ctor_get(x_62, 3); +lean_inc(x_63); lean_dec(x_62); -if (x_63 == 0) +x_64 = lean_ctor_get_uint8(x_63, sizeof(void*)*1); +lean_dec(x_63); +if (x_64 == 0) { -lean_object* x_64; uint8_t x_65; -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); -lean_dec(x_60); -x_65 = 0; -x_32 = x_65; -x_33 = x_64; -goto block_59; +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_61, 1); +lean_inc(x_65); +lean_dec(x_61); +x_66 = 0; +x_33 = x_66; +x_34 = x_65; +goto block_60; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -lean_dec(x_60); -x_67 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_66); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +lean_dec(x_61); +x_68 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_67); +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -x_70 = lean_unbox(x_68); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); lean_dec(x_68); -x_32 = x_70; -x_33 = x_69; -goto block_59; +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_33 = x_71; +x_34 = x_70; +goto block_60; } -block_59: +block_60: { -if (x_32 == 0) +if (x_33 == 0) { -lean_object* x_34; lean_object* x_35; -lean_dec(x_19); -x_34 = lean_box(0); -x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_17, x_30, x_26, x_31, x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_33); -return x_35; +lean_object* x_35; lean_object* x_36; +lean_dec(x_20); +x_35 = lean_box(0); +x_36 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_18, x_31, x_27, x_32, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_34); +return x_36; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_36 = lean_array_get_size(x_19); -lean_dec(x_19); -x_37 = l_Nat_repr(x_36); -x_38 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = lean_alloc_ctor(0, 1, 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; +x_37 = lean_array_get_size(x_20); +lean_dec(x_20); +x_38 = l_Nat_repr(x_37); +x_39 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_39, 0, x_38); -x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8; -x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10; -x_43 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -lean_inc(x_30); -x_44 = l_Nat_repr(x_30); -x_45 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_45, 0, x_44); -x_46 = lean_alloc_ctor(0, 1, 0); +x_40 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__8; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__10; +x_44 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +lean_inc(x_31); +x_45 = l_Nat_repr(x_31); +x_46 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_46, 0, x_45); -x_47 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_47, 0, x_43); -lean_ctor_set(x_47, 1, x_46); -x_48 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__12; -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = lean_ctor_get(x_17, 1); -lean_inc(x_50); -x_51 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_51); -x_53 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_31, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_33); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +x_47 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_47, 0, x_46); +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_44); +lean_ctor_set(x_48, 1, x_47); +x_49 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__12; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_ctor_get(x_18, 1); +lean_inc(x_51); +x_52 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_52); +x_54 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +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_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_32, x_55, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_34); +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_58 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_17, x_30, x_26, x_31, x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_57); -return x_58; +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_18, x_31, x_27, x_32, x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_58); +return x_59; } } } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -lean_dec(x_26); -lean_dec(x_19); -lean_dec(x_17); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +lean_dec(x_27); +lean_dec(x_20); +lean_dec(x_18); +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_71 = lean_st_ref_get(x_8, x_18); -lean_dec(x_8); -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -lean_dec(x_71); -x_73 = lean_st_ref_take(x_2, x_72); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_76 = !lean_is_exclusive(x_74); -if (x_76 == 0) -{ -uint8_t x_77; lean_object* x_78; uint8_t x_79; -x_77 = 0; -lean_ctor_set_uint8(x_74, sizeof(void*)*8 + 2, x_77); -x_78 = lean_st_ref_set(x_2, x_74, x_75); lean_dec(x_2); -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) +x_72 = lean_st_ref_get(x_9, x_19); +lean_dec(x_9); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec(x_72); +x_74 = lean_st_ref_take(x_3, x_73); +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); +x_77 = !lean_is_exclusive(x_75); +if (x_77 == 0) { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_78, 0); -lean_dec(x_80); -x_81 = lean_box(0); -lean_ctor_set(x_78, 0, x_81); -return x_78; +uint8_t x_78; lean_object* x_79; uint8_t x_80; +x_78 = 0; +lean_ctor_set_uint8(x_75, sizeof(void*)*9, x_78); +x_79 = lean_st_ref_set(x_3, x_75, x_76); +lean_dec(x_3); +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_79, 0); +lean_dec(x_81); +x_82 = lean_box(0); +lean_ctor_set(x_79, 0, x_82); +return x_79; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_78, 1); -lean_inc(x_82); -lean_dec(x_78); -x_83 = lean_box(0); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_82); -return x_84; +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_79, 1); +lean_inc(x_83); +lean_dec(x_79); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; } } else { -uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_85 = lean_ctor_get_uint8(x_74, sizeof(void*)*8); -x_86 = lean_ctor_get(x_74, 0); -x_87 = lean_ctor_get(x_74, 1); -x_88 = lean_ctor_get(x_74, 2); -x_89 = lean_ctor_get(x_74, 3); -x_90 = lean_ctor_get_uint8(x_74, sizeof(void*)*8 + 1); -x_91 = lean_ctor_get(x_74, 4); -x_92 = lean_ctor_get(x_74, 5); -x_93 = lean_ctor_get(x_74, 6); -x_94 = lean_ctor_get(x_74, 7); +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; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_86 = lean_ctor_get(x_75, 0); +x_87 = lean_ctor_get(x_75, 1); +x_88 = lean_ctor_get(x_75, 2); +x_89 = lean_ctor_get(x_75, 3); +x_90 = lean_ctor_get(x_75, 4); +x_91 = lean_ctor_get(x_75, 5); +x_92 = lean_ctor_get(x_75, 6); +x_93 = lean_ctor_get(x_75, 7); +x_94 = lean_ctor_get(x_75, 8); 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_inc(x_86); -lean_dec(x_74); +lean_dec(x_75); x_95 = 0; -x_96 = lean_alloc_ctor(0, 8, 3); +x_96 = lean_alloc_ctor(0, 9, 1); lean_ctor_set(x_96, 0, x_86); lean_ctor_set(x_96, 1, x_87); lean_ctor_set(x_96, 2, x_88); lean_ctor_set(x_96, 3, x_89); -lean_ctor_set(x_96, 4, x_91); -lean_ctor_set(x_96, 5, x_92); -lean_ctor_set(x_96, 6, x_93); -lean_ctor_set(x_96, 7, x_94); -lean_ctor_set_uint8(x_96, sizeof(void*)*8, x_85); -lean_ctor_set_uint8(x_96, sizeof(void*)*8 + 1, x_90); -lean_ctor_set_uint8(x_96, sizeof(void*)*8 + 2, x_95); -x_97 = lean_st_ref_set(x_2, x_96, x_75); -lean_dec(x_2); +lean_ctor_set(x_96, 4, x_90); +lean_ctor_set(x_96, 5, x_91); +lean_ctor_set(x_96, 6, x_92); +lean_ctor_set(x_96, 7, x_93); +lean_ctor_set(x_96, 8, x_94); +lean_ctor_set_uint8(x_96, sizeof(void*)*9, x_95); +x_97 = lean_st_ref_set(x_3, x_96, x_76); +lean_dec(x_3); x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); if (lean_is_exclusive(x_97)) { @@ -6935,11 +7088,11 @@ return x_101; else { lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_102 = lean_ctor_get(x_15, 0); -x_103 = lean_ctor_get(x_15, 1); +x_102 = lean_ctor_get(x_16, 0); +x_103 = lean_ctor_get(x_16, 1); lean_inc(x_103); lean_inc(x_102); -lean_dec(x_15); +lean_dec(x_16); x_104 = lean_ctor_get(x_102, 5); lean_inc(x_104); x_105 = l_Array_isEmpty___rarg(x_104); @@ -6948,6 +7101,7 @@ if (x_105 == 0) lean_object* x_106; lean_object* x_107; lean_dec(x_104); lean_dec(x_102); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6964,12 +7118,13 @@ return x_107; else { uint8_t x_108; -x_108 = lean_ctor_get_uint8(x_102, sizeof(void*)*8 + 2); +x_108 = lean_ctor_get_uint8(x_102, sizeof(void*)*9); if (x_108 == 0) { lean_object* x_109; lean_object* x_110; lean_dec(x_104); lean_dec(x_102); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6993,6 +7148,7 @@ if (lean_obj_tag(x_111) == 0) lean_object* x_112; lean_object* x_113; lean_dec(x_104); lean_dec(x_102); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -7022,7 +7178,7 @@ x_117 = lean_unsigned_to_nat(0u); x_118 = l_List_lengthTRAux___rarg(x_116, x_117); lean_dec(x_116); x_119 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___closed__6; -x_148 = lean_st_ref_get(x_8, x_103); +x_148 = lean_st_ref_get(x_9, x_103); x_149 = lean_ctor_get(x_148, 0); lean_inc(x_149); x_150 = lean_ctor_get(x_149, 3); @@ -7047,7 +7203,7 @@ lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; x_154 = lean_ctor_get(x_148, 1); lean_inc(x_154); lean_dec(x_148); -x_155 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_119, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_154); +x_155 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_119, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_154); x_156 = lean_ctor_get(x_155, 0); lean_inc(x_156); x_157 = lean_ctor_get(x_155, 1); @@ -7066,7 +7222,7 @@ if (x_120 == 0) lean_object* x_122; lean_object* x_123; lean_dec(x_104); x_122 = lean_box(0); -x_123 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_102, x_118, x_114, x_119, x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_121); +x_123 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_102, x_118, x_114, x_119, x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_121); return x_123; } else @@ -7111,57 +7267,58 @@ x_141 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; x_142 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_142, 0, x_140); lean_ctor_set(x_142, 1, x_141); -x_143 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_119, x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_121); +x_143 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_119, x_142, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_121); x_144 = lean_ctor_get(x_143, 0); lean_inc(x_144); x_145 = lean_ctor_get(x_143, 1); lean_inc(x_145); lean_dec(x_143); -x_146 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_102, x_118, x_114, x_119, x_144, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_145); +x_146 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___lambda__2(x_102, x_118, x_114, x_119, x_144, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_145); return x_146; } } } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t 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_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; uint8_t 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_dec(x_114); lean_dec(x_104); lean_dec(x_102); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_159 = lean_st_ref_get(x_8, x_103); -lean_dec(x_8); +lean_dec(x_2); +x_159 = lean_st_ref_get(x_9, x_103); +lean_dec(x_9); x_160 = lean_ctor_get(x_159, 1); lean_inc(x_160); lean_dec(x_159); -x_161 = lean_st_ref_take(x_2, x_160); +x_161 = lean_st_ref_take(x_3, x_160); x_162 = lean_ctor_get(x_161, 0); lean_inc(x_162); x_163 = lean_ctor_get(x_161, 1); lean_inc(x_163); lean_dec(x_161); -x_164 = lean_ctor_get_uint8(x_162, sizeof(void*)*8); -x_165 = lean_ctor_get(x_162, 0); +x_164 = lean_ctor_get(x_162, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_162, 1); lean_inc(x_165); -x_166 = lean_ctor_get(x_162, 1); +x_166 = lean_ctor_get(x_162, 2); lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 2); +x_167 = lean_ctor_get(x_162, 3); lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 3); +x_168 = lean_ctor_get(x_162, 4); lean_inc(x_168); -x_169 = lean_ctor_get_uint8(x_162, sizeof(void*)*8 + 1); -x_170 = lean_ctor_get(x_162, 4); +x_169 = lean_ctor_get(x_162, 5); +lean_inc(x_169); +x_170 = lean_ctor_get(x_162, 6); lean_inc(x_170); -x_171 = lean_ctor_get(x_162, 5); +x_171 = lean_ctor_get(x_162, 7); lean_inc(x_171); -x_172 = lean_ctor_get(x_162, 6); +x_172 = lean_ctor_get(x_162, 8); lean_inc(x_172); -x_173 = lean_ctor_get(x_162, 7); -lean_inc(x_173); if (lean_is_exclusive(x_162)) { lean_ctor_release(x_162, 0); lean_ctor_release(x_162, 1); @@ -7171,92 +7328,66 @@ if (lean_is_exclusive(x_162)) { lean_ctor_release(x_162, 5); lean_ctor_release(x_162, 6); lean_ctor_release(x_162, 7); - x_174 = x_162; + lean_ctor_release(x_162, 8); + x_173 = x_162; } else { lean_dec_ref(x_162); - x_174 = lean_box(0); + x_173 = lean_box(0); } -x_175 = 0; -if (lean_is_scalar(x_174)) { - x_176 = lean_alloc_ctor(0, 8, 3); +x_174 = 0; +if (lean_is_scalar(x_173)) { + x_175 = lean_alloc_ctor(0, 9, 1); } else { - x_176 = x_174; + x_175 = x_173; } -lean_ctor_set(x_176, 0, x_165); -lean_ctor_set(x_176, 1, x_166); -lean_ctor_set(x_176, 2, x_167); -lean_ctor_set(x_176, 3, x_168); -lean_ctor_set(x_176, 4, x_170); -lean_ctor_set(x_176, 5, x_171); -lean_ctor_set(x_176, 6, x_172); -lean_ctor_set(x_176, 7, x_173); -lean_ctor_set_uint8(x_176, sizeof(void*)*8, x_164); -lean_ctor_set_uint8(x_176, sizeof(void*)*8 + 1, x_169); -lean_ctor_set_uint8(x_176, sizeof(void*)*8 + 2, x_175); -x_177 = lean_st_ref_set(x_2, x_176, x_163); -lean_dec(x_2); -x_178 = lean_ctor_get(x_177, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_177)) { - lean_ctor_release(x_177, 0); - lean_ctor_release(x_177, 1); - x_179 = x_177; -} else { - lean_dec_ref(x_177); - x_179 = lean_box(0); -} -x_180 = lean_box(0); -if (lean_is_scalar(x_179)) { - x_181 = lean_alloc_ctor(0, 2, 0); -} else { - x_181 = x_179; -} -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_178); -return x_181; -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +lean_ctor_set(x_175, 0, x_164); +lean_ctor_set(x_175, 1, x_165); +lean_ctor_set(x_175, 2, x_166); +lean_ctor_set(x_175, 3, x_167); +lean_ctor_set(x_175, 4, x_168); +lean_ctor_set(x_175, 5, x_169); +lean_ctor_set(x_175, 6, x_170); +lean_ctor_set(x_175, 7, x_171); +lean_ctor_set(x_175, 8, x_172); +lean_ctor_set_uint8(x_175, sizeof(void*)*9, x_174); +x_176 = lean_st_ref_set(x_3, x_175, x_163); lean_dec(x_3); -return x_11; +x_177 = lean_ctor_get(x_176, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_178 = x_176; +} else { + lean_dec_ref(x_176); + x_178 = lean_box(0); +} +x_179 = lean_box(0); +if (lean_is_scalar(x_178)) { + x_180 = lean_alloc_ctor(0, 2, 0); +} else { + x_180 = x_178; +} +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_177); +return x_180; } } -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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: -{ -lean_object* x_10; -x_10 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_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); @@ -7264,143 +7395,423 @@ lean_dec(x_3); return x_12; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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) { _start: { -uint8_t x_15; -x_15 = lean_usize_dec_lt(x_5, x_4); -if (x_15 == 0) +lean_object* x_11; +x_11 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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_16; +lean_object* x_13; +x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___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); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_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) { +_start: +{ +uint8_t x_16; +x_16 = lean_usize_dec_lt(x_5, x_4); +if (x_16 == 0) +{ +lean_object* x_17; lean_dec(x_2); lean_dec(x_1); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_6); -lean_ctor_set(x_16, 1, x_14); -return x_16; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_15); +return x_17; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; +lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; lean_dec(x_6); -x_17 = lean_array_uget(x_3, x_5); +x_18 = lean_array_uget(x_3, x_5); lean_inc(x_1); lean_inc(x_2); -x_18 = l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(x_17, x_2, x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = 1; -x_21 = lean_usize_add(x_5, x_20); -x_22 = lean_box(0); -x_5 = x_21; -x_6 = x_22; -x_14 = x_19; +x_19 = l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(x_18, x_2, x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = 1; +x_22 = lean_usize_add(x_5, x_21); +x_23 = lean_box(0); +x_5 = x_22; +x_6 = x_23; +x_15 = x_20; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_11; -x_11 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_st_ref_take(x_1, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_8, 0); +lean_dec(x_12); +x_13 = !lean_is_exclusive(x_9); +if (x_13 == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_11, 0); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_1); -return x_11; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_1); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -uint8_t x_16; -lean_dec(x_1); -x_16 = !lean_is_exclusive(x_11); +uint8_t x_14; lean_object* x_15; uint8_t x_16; +x_14 = 1; +lean_ctor_set_uint8(x_9, sizeof(void*)*8, x_14); +x_15 = lean_st_ref_set(x_1, x_8, x_10); +x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { -return x_11; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_15, 0, x_18); +return x_15; } 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_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_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +x_24 = lean_ctor_get(x_9, 2); +x_25 = lean_ctor_get(x_9, 3); +x_26 = lean_ctor_get(x_9, 4); +x_27 = lean_ctor_get(x_9, 5); +x_28 = lean_ctor_get(x_9, 6); +x_29 = lean_ctor_get(x_9, 7); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +x_30 = 1; +x_31 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_31, 0, x_22); +lean_ctor_set(x_31, 1, x_23); +lean_ctor_set(x_31, 2, x_24); +lean_ctor_set(x_31, 3, x_25); +lean_ctor_set(x_31, 4, x_26); +lean_ctor_set(x_31, 5, x_27); +lean_ctor_set(x_31, 6, x_28); +lean_ctor_set(x_31, 7, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*8, x_30); +lean_ctor_set(x_8, 0, x_31); +x_32 = lean_st_ref_set(x_1, x_8, x_10); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_34 = x_32; +} else { + lean_dec_ref(x_32); + x_34 = lean_box(0); +} +x_35 = lean_box(0); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(0, 2, 0); +} else { + x_36 = x_34; +} +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +return x_36; +} +} +else +{ +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; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_37 = lean_ctor_get(x_8, 1); +x_38 = lean_ctor_get(x_8, 2); +x_39 = lean_ctor_get(x_8, 3); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_8); +x_40 = lean_ctor_get(x_9, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_9, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_9, 2); +lean_inc(x_42); +x_43 = lean_ctor_get(x_9, 3); +lean_inc(x_43); +x_44 = lean_ctor_get(x_9, 4); +lean_inc(x_44); +x_45 = lean_ctor_get(x_9, 5); +lean_inc(x_45); +x_46 = lean_ctor_get(x_9, 6); +lean_inc(x_46); +x_47 = lean_ctor_get(x_9, 7); +lean_inc(x_47); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + lean_ctor_release(x_9, 2); + lean_ctor_release(x_9, 3); + lean_ctor_release(x_9, 4); + lean_ctor_release(x_9, 5); + lean_ctor_release(x_9, 6); + lean_ctor_release(x_9, 7); + x_48 = x_9; +} else { + lean_dec_ref(x_9); + x_48 = lean_box(0); +} +x_49 = 1; +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 8, 1); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_40); +lean_ctor_set(x_50, 1, x_41); +lean_ctor_set(x_50, 2, x_42); +lean_ctor_set(x_50, 3, x_43); +lean_ctor_set(x_50, 4, x_44); +lean_ctor_set(x_50, 5, x_45); +lean_ctor_set(x_50, 6, x_46); +lean_ctor_set(x_50, 7, x_47); +lean_ctor_set_uint8(x_50, sizeof(void*)*8, x_49); +x_51 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_37); +lean_ctor_set(x_51, 2, x_38); +lean_ctor_set(x_51, 3, x_39); +x_52 = lean_st_ref_set(x_1, x_51, x_10); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +x_55 = lean_box(0); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_54; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +return x_56; } } } -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_13; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_13 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_13) == 0) +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___rarg___boxed), 4, 0); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_isExprMVarAssigned___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___rarg(x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_9, x_12); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = lean_box(0); -x_16 = lean_apply_9(x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +x_15 = lean_st_ref_get(x_7, x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_ctor_get(x_18, 6); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Std_PersistentHashMap_contains___at_Lean_isExprMVarAssigned___spec__1(x_19, x_1); +x_21 = lean_box(x_20); +lean_ctor_set(x_15, 0, x_21); +return x_15; +} +else +{ +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_28; +x_22 = lean_ctor_get(x_15, 0); +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_15); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_24, 6); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Std_PersistentHashMap_contains___at_Lean_isExprMVarAssigned___spec__1(x_25, x_1); +x_27 = lean_box(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_23); +return x_28; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +lean_ctor_set(x_12, 0, x_1); +return x_12; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_15); return x_16; } +} else { uint8_t x_17; +lean_dec(x_1); +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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) { +_start: +{ +lean_object* x_15; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +x_15 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_box(0); +x_18 = lean_apply_11(x_3, x_4, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_16); +return x_18; +} +else +{ +uint8_t x_19; +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); -x_17 = !lean_is_exclusive(x_13); -if (x_17 == 0) +x_19 = !lean_is_exclusive(x_15); +if (x_19 == 0) { -return x_13; +return x_15; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_13, 0); -x_19 = lean_ctor_get(x_13, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_13); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_15, 0); +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -7422,103 +7833,139 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(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) { _start: { -lean_object* x_14; -lean_dec(x_5); -x_14 = lean_ctor_get(x_2, 4); -lean_inc(x_14); -lean_dec(x_2); -if (lean_obj_tag(x_14) == 0) +if (x_6 == 0) { -lean_object* x_15; lean_object* x_16; -lean_dec(x_4); -lean_dec(x_3); -x_15 = lean_box(0); -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(x_1, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_6); -return x_16; -} -else +uint8_t x_16; lean_object* x_17; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_st_ref_get(x_14, x_15); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_ctor_get_uint8(x_32, sizeof(void*)*1); +lean_dec(x_32); +if (x_33 == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_17 = lean_ctor_get(x_14, 0); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1___boxed), 10, 1); -lean_closure_set(x_18, 0, x_1); -x_33 = lean_st_ref_get(x_12, x_13); -x_34 = lean_ctor_get(x_33, 0); +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_30, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_34, 3); -lean_inc(x_35); -lean_dec(x_34); -x_36 = lean_ctor_get_uint8(x_35, sizeof(void*)*1); -lean_dec(x_35); -if (x_36 == 0) -{ -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_33, 1); -lean_inc(x_37); -lean_dec(x_33); -x_38 = 0; -x_19 = x_38; -x_20 = x_37; -goto block_32; +lean_dec(x_30); +x_35 = 0; +x_16 = x_35; +x_17 = x_34; +goto block_29; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_39 = lean_ctor_get(x_33, 1); -lean_inc(x_39); -lean_dec(x_33); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_36 = lean_ctor_get(x_30, 1); +lean_inc(x_36); +lean_dec(x_30); lean_inc(x_4); -x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_unbox(x_41); -lean_dec(x_41); -x_19 = x_43; -x_20 = x_42; -goto block_32; +x_37 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_unbox(x_38); +lean_dec(x_38); +x_16 = x_40; +x_17 = x_39; +goto block_29; } -block_32: +block_29: { -if (x_19 == 0) +if (x_16 == 0) { -lean_object* x_21; lean_object* x_22; +lean_object* x_18; lean_object* x_19; lean_dec(x_4); -x_21 = lean_box(0); -x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__2(x_17, x_3, x_18, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_20); -return x_22; +x_18 = lean_box(0); +x_19 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__2(x_1, x_2, x_3, x_5, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_17); +return x_19; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_inc(x_17); -x_23 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_23, 0, x_17); -x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__2; -x_25 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_4, x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_20); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__2(x_17, x_3, x_18, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_30); -lean_dec(x_29); -return x_31; +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_inc(x_1); +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_1); +x_21 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__2; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_24 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_4, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_17); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__2(x_1, x_2, x_3, x_5, x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_27); +lean_dec(x_26); +return x_28; +} +} +} +else +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_4); +x_41 = lean_box(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_42 = l_Lean_Elab_Term_mkCoe(x_1, x_2, x_5, x_41, x_41, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_box(0); +x_46 = lean_apply_11(x_3, x_43, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_44); +return x_46; +} +else +{ +uint8_t x_47; +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_3); +x_47 = !lean_is_exclusive(x_42); +if (x_47 == 0) +{ +return x_42; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_42, 0); +x_49 = lean_ctor_get(x_42, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_42); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } @@ -7528,20 +7975,135 @@ static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArg _start: { lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1___boxed), 11, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_5); +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__1; +x_16 = lean_ctor_get(x_1, 4); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = lean_box(0); +x_18 = lean_apply_11(x_15, x_4, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_18; +} +else +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_1, 8); +lean_inc(x_19); +lean_dec(x_1); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; uint8_t x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = 0; +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_20, x_2, x_15, x_3, x_4, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_23 = lean_ctor_get(x_16, 0); +lean_inc(x_23); +lean_dec(x_16); +x_24 = lean_ctor_get(x_19, 0); +lean_inc(x_24); +lean_dec(x_19); +lean_inc(x_24); +x_25 = l_Lean_isExprMVarAssigned___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = l_Lean_Expr_isMVar(x_2); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; +lean_dec(x_24); +x_30 = 0; +x_31 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_23, x_2, x_15, x_3, x_4, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +return x_31; +} +else +{ +lean_object* x_32; uint8_t x_33; +x_32 = l_Lean_Expr_mvarId_x21(x_2); +x_33 = lean_name_eq(x_32, x_24); +lean_dec(x_32); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; +lean_dec(x_24); +x_34 = 0; +x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_23, x_2, x_15, x_3, x_4, x_34, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +return x_35; +} +else +{ +uint8_t x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; +x_36 = 2; +x_37 = l_Lean_Meta_setMVarKind(x_24, x_36, x_10, x_11, x_12, x_13, x_28); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = 1; +x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_23, x_2, x_15, x_3, x_4, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_38); +return x_40; +} +} +} +else +{ +lean_object* x_41; uint8_t x_42; lean_object* x_43; +lean_dec(x_24); +x_41 = lean_ctor_get(x_25, 1); +lean_inc(x_41); +lean_dec(x_25); +x_42 = 0; +x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_23, x_2, x_15, x_3, x_4, x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_41); +return x_43; +} +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_from_bytes("after etaArgs, ", 15); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__2() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__1; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__3() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__3() { _start: { lean_object* x_1; @@ -7549,120 +8111,121 @@ x_1 = lean_mk_string_from_bytes(" : ", 3); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4() { +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__3; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; +lean_object* x_14; lean_dec(x_4); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); lean_inc(x_3); -x_13 = lean_infer_type(x_3, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_13) == 0) +x_14 = lean_infer_type(x_3, x_9, x_10, x_11, x_12, 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; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -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; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_34 = lean_st_ref_get(x_11, x_15); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_35, 3); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_35 = lean_st_ref_get(x_12, x_16); +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_ctor_get_uint8(x_36, sizeof(void*)*1); +x_37 = lean_ctor_get(x_36, 3); +lean_inc(x_37); lean_dec(x_36); -if (x_37 == 0) +x_38 = lean_ctor_get_uint8(x_37, sizeof(void*)*1); +lean_dec(x_37); +if (x_38 == 0) { -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_34, 1); -lean_inc(x_38); -lean_dec(x_34); -x_39 = 0; -x_16 = x_39; -x_17 = x_38; -goto block_33; +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = 0; +x_17 = x_40; +x_18 = x_39; +goto block_34; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); -lean_dec(x_34); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); +lean_dec(x_35); lean_inc(x_2); -x_41 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_40); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); +x_42 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_41); +x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_unbox(x_42); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); lean_dec(x_42); -x_16 = x_44; -x_17 = x_43; -goto block_33; +x_45 = lean_unbox(x_43); +lean_dec(x_43); +x_17 = x_45; +x_18 = x_44; +goto block_34; } -block_33: +block_34: { -if (x_16 == 0) +if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_box(0); -x_19 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_3, x_1, x_14, x_2, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); -return x_19; +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +x_20 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(x_1, x_15, x_2, x_3, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +return x_20; } else { -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_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_inc(x_3); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_3); -x_21 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__2; -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -lean_inc(x_14); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_14); -x_26 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_3); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__2; +x_23 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +lean_inc(x_15); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_15); +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); lean_inc(x_2); -x_29 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_2, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_17); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); +x_30 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_2, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -lean_dec(x_29); -x_32 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_3, x_1, x_14, x_2, x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_31); -return x_32; +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(x_1, x_15, x_2, x_3, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +return x_33; } } } else { -uint8_t x_45; +uint8_t x_46; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7673,71 +8236,72 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_13); -if (x_45 == 0) +x_46 = !lean_is_exclusive(x_14); +if (x_46 == 0) { -return x_13; +return x_14; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_13, 0); -x_47 = lean_ctor_get(x_13, 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_13); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_dec(x_14); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_dec(x_4); -x_13 = lean_ctor_get(x_10, 5); -lean_inc(x_13); -x_14 = lean_ctor_get(x_1, 6); +x_14 = lean_ctor_get(x_11, 5); lean_inc(x_14); -x_15 = lean_array_get_size(x_14); -x_16 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_17 = 0; -x_18 = lean_box(0); +x_15 = lean_ctor_get(x_1, 6); +lean_inc(x_15); +x_16 = lean_array_get_size(x_15); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +x_19 = lean_box(0); lean_inc(x_3); -x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(x_3, x_13, x_14, x_16, x_17, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_14); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_ctor_get(x_1, 5); +x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(x_3, x_14, x_15, x_17, x_18, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_15); +x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); -x_22 = l_Array_isEmpty___rarg(x_21); -if (x_22 == 0) +lean_dec(x_20); +x_22 = lean_ctor_get(x_1, 5); +lean_inc(x_22); +x_23 = l_Array_isEmpty___rarg(x_22); +if (x_23 == 0) { -uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; -x_23 = 0; -x_24 = 1; +uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; +x_24 = 0; x_25 = 1; -x_26 = l_Lean_Meta_mkLambdaFVars(x_21, x_3, x_23, x_24, x_25, x_8, x_9, x_10, x_11, x_20); -if (lean_obj_tag(x_26) == 0) +x_26 = 1; +x_27 = l_Lean_Meta_mkLambdaFVars(x_22, x_3, x_24, x_25, x_26, x_9, x_10, x_11, x_12, x_21); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(x_1, x_2, x_27, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -return x_29; +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(x_1, x_2, x_28, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +return x_30; } else { -uint8_t x_30; +uint8_t x_31; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7747,32 +8311,32 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) { -return x_26; +return x_27; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_26, 0); -x_32 = lean_ctor_get(x_26, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_26); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -lean_object* x_34; -lean_dec(x_21); -x_34 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4(x_1, x_2, x_3, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); -return x_34; +lean_object* x_35; +lean_dec(x_22); +x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(x_1, x_2, x_3, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +return x_35; } } } @@ -7794,96 +8358,97 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_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_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_1, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); +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_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_st_ref_get(x_2, x_11); +x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_ctor_get(x_12, 0); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; -x_26 = lean_st_ref_get(x_7, x_13); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 3); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2; +x_27 = lean_st_ref_get(x_8, x_14); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_ctor_get_uint8(x_28, sizeof(void*)*1); +x_29 = lean_ctor_get(x_28, 3); +lean_inc(x_29); lean_dec(x_28); -if (x_29 == 0) +x_30 = lean_ctor_get_uint8(x_29, sizeof(void*)*1); +lean_dec(x_29); +if (x_30 == 0) { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -x_31 = 0; -x_16 = x_31; -x_17 = x_30; -goto block_25; +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_27, 1); +lean_inc(x_31); +lean_dec(x_27); +x_32 = 0; +x_17 = x_32; +x_18 = x_31; +goto block_26; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_dec(x_26); -x_33 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_dec(x_27); +x_34 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__2(x_16, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_33); +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_unbox(x_34); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); lean_dec(x_34); -x_16 = x_36; -x_17 = x_35; -goto block_25; +x_37 = lean_unbox(x_35); +lean_dec(x_35); +x_17 = x_37; +x_18 = x_36; +goto block_26; } -block_25: +block_26: { -if (x_16 == 0) +if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_box(0); -x_19 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(x_12, x_15, x_14, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_17); -return x_19; +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +x_20 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__6(x_13, x_16, x_15, x_19, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +return x_20; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_inc(x_14); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_14); -x_21 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_15, x_20, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_17); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_inc(x_15); +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_15); +x_22 = l_Lean_addTrace___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType___spec__1(x_16, x_21, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5(x_12, x_15, x_14, x_22, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_23); -return x_24; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__6(x_13, x_16, x_15, x_23, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +return x_25; } } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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) { _start: { -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_4); +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_4); lean_dec(x_4); -x_16 = lean_unbox_usize(x_5); +x_17 = lean_unbox_usize(x_5); lean_dec(x_5); -x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(x_1, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__1(x_1, x_2, x_3, x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -7892,26 +8457,77 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_3); -return x_17; +return x_18; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_markUsedAssignment___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_isExprMVarAssigned___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_isExprMVarAssigned___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_13; -x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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_12; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_4); -return x_13; +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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) { +_start: +{ +lean_object* x_15; +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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); +lean_dec(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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) { +_start: +{ +uint8_t x_16; lean_object* x_17; +x_16 = lean_unbox(x_6); +lean_dec(x_6); +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3(x_1, x_2, x_3, x_4, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_17; } } LEAN_EXPORT uint8_t l_List_foldr___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3) { @@ -12321,371 +12937,372 @@ x_2 = l_Std_mkHashSetImp___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_116; lean_object* x_117; uint8_t x_118; -x_11 = lean_ctor_get(x_1, 3); -lean_inc(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; uint8_t x_19; lean_object* x_20; lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_12 = lean_ctor_get(x_1, 3); +lean_inc(x_12); lean_dec(x_1); -x_12 = lean_st_ref_get(x_9, x_10); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_st_ref_get(x_7, x_13); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +x_13 = lean_st_ref_get(x_10, x_11); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_get(x_8, x_14); +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_ctor_get(x_15, 0); +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_116 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___closed__1; -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_17); -x_118 = l_Lean_Expr_hasFVar(x_11); -if (x_118 == 0) -{ -uint8_t x_119; -x_119 = l_Lean_Expr_hasMVar(x_11); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_117 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___closed__1; +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_18); +x_119 = l_Lean_Expr_hasFVar(x_12); if (x_119 == 0) { uint8_t x_120; -lean_dec(x_11); -x_120 = 0; -x_18 = x_120; -x_19 = x_117; -goto block_115; +x_120 = l_Lean_Expr_hasMVar(x_12); +if (x_120 == 0) +{ +uint8_t x_121; +lean_dec(x_12); +x_121 = 0; +x_19 = x_121; +x_20 = x_118; +goto block_116; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_121 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__3(x_2, x_11, x_117); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_122 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__3(x_2, x_12, x_118); +x_123 = lean_ctor_get(x_122, 0); lean_inc(x_123); -lean_dec(x_121); -x_124 = lean_unbox(x_122); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); lean_dec(x_122); -x_18 = x_124; -x_19 = x_123; -goto block_115; +x_125 = lean_unbox(x_123); +lean_dec(x_123); +x_19 = x_125; +x_20 = x_124; +goto block_116; } } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; -x_125 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__11(x_2, x_11, x_117); -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); +lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; +x_126 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__11(x_2, x_12, x_118); +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_unbox(x_126); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); lean_dec(x_126); -x_18 = x_128; -x_19 = x_127; -goto block_115; +x_129 = lean_unbox(x_127); +lean_dec(x_127); +x_19 = x_129; +x_20 = x_128; +goto block_116; } -block_115: +block_116: { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_st_ref_get(x_9, x_16); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = lean_st_ref_take(x_7, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get_uint8(x_20, sizeof(void*)*8); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_26 = lean_ctor_get(x_24, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -lean_dec(x_23); -x_28 = lean_ctor_get(x_20, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_20, 1); -lean_inc(x_29); -x_30 = lean_ctor_get(x_20, 2); -lean_inc(x_30); -x_31 = lean_ctor_get(x_20, 3); -lean_inc(x_31); -x_32 = lean_ctor_get(x_20, 4); -lean_inc(x_32); -x_33 = lean_ctor_get(x_20, 5); -lean_inc(x_33); -x_34 = lean_ctor_get(x_20, 6); -lean_inc(x_34); -x_35 = lean_ctor_get(x_20, 7); -lean_inc(x_35); +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_20, 1); +lean_inc(x_21); lean_dec(x_20); -x_36 = !lean_is_exclusive(x_24); -if (x_36 == 0) +x_22 = lean_st_ref_get(x_10, x_17); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_st_ref_take(x_8, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get_uint8(x_21, sizeof(void*)*8); +if (x_26 == 0) { -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_24, 0); -lean_dec(x_37); -x_38 = !lean_is_exclusive(x_26); -if (x_38 == 0) +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +x_29 = lean_ctor_get(x_21, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_21, 1); +lean_inc(x_30); +x_31 = lean_ctor_get(x_21, 2); +lean_inc(x_31); +x_32 = lean_ctor_get(x_21, 3); +lean_inc(x_32); +x_33 = lean_ctor_get(x_21, 4); +lean_inc(x_33); +x_34 = lean_ctor_get(x_21, 5); +lean_inc(x_34); +x_35 = lean_ctor_get(x_21, 6); +lean_inc(x_35); +x_36 = lean_ctor_get(x_21, 7); +lean_inc(x_36); +lean_dec(x_21); +x_37 = !lean_is_exclusive(x_25); +if (x_37 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_39 = lean_ctor_get(x_26, 7); -lean_dec(x_39); -x_40 = lean_ctor_get(x_26, 6); +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_25, 0); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_27); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_40 = lean_ctor_get(x_27, 7); lean_dec(x_40); -x_41 = lean_ctor_get(x_26, 5); +x_41 = lean_ctor_get(x_27, 6); lean_dec(x_41); -x_42 = lean_ctor_get(x_26, 4); +x_42 = lean_ctor_get(x_27, 5); lean_dec(x_42); -x_43 = lean_ctor_get(x_26, 3); +x_43 = lean_ctor_get(x_27, 4); lean_dec(x_43); -x_44 = lean_ctor_get(x_26, 2); +x_44 = lean_ctor_get(x_27, 3); lean_dec(x_44); -x_45 = lean_ctor_get(x_26, 1); +x_45 = lean_ctor_get(x_27, 2); lean_dec(x_45); -x_46 = lean_ctor_get(x_26, 0); +x_46 = lean_ctor_get(x_27, 1); lean_dec(x_46); -lean_ctor_set(x_26, 7, x_35); -lean_ctor_set(x_26, 6, x_34); -lean_ctor_set(x_26, 5, x_33); -lean_ctor_set(x_26, 4, x_32); -lean_ctor_set(x_26, 3, x_31); -lean_ctor_set(x_26, 2, x_30); -lean_ctor_set(x_26, 1, x_29); -lean_ctor_set(x_26, 0, x_28); -x_47 = lean_st_ref_set(x_7, x_24, x_27); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); -x_50 = lean_box(x_18); -lean_ctor_set(x_47, 0, x_50); -return x_47; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); +x_47 = lean_ctor_get(x_27, 0); lean_dec(x_47); -x_52 = lean_box(x_18); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -return x_53; +lean_ctor_set(x_27, 7, x_36); +lean_ctor_set(x_27, 6, x_35); +lean_ctor_set(x_27, 5, x_34); +lean_ctor_set(x_27, 4, x_33); +lean_ctor_set(x_27, 3, x_32); +lean_ctor_set(x_27, 2, x_31); +lean_ctor_set(x_27, 1, x_30); +lean_ctor_set(x_27, 0, x_29); +x_48 = lean_st_ref_set(x_8, x_25, x_28); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_50); +x_51 = lean_box(x_19); +lean_ctor_set(x_48, 0, x_51); +return x_48; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_48, 1); +lean_inc(x_52); +lean_dec(x_48); +x_53 = lean_box(x_19); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +return x_54; } } else { -uint8_t 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; -x_54 = lean_ctor_get_uint8(x_26, sizeof(void*)*8); -lean_dec(x_26); -x_55 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_55, 0, x_28); -lean_ctor_set(x_55, 1, x_29); -lean_ctor_set(x_55, 2, x_30); -lean_ctor_set(x_55, 3, x_31); -lean_ctor_set(x_55, 4, x_32); -lean_ctor_set(x_55, 5, x_33); -lean_ctor_set(x_55, 6, x_34); -lean_ctor_set(x_55, 7, x_35); -lean_ctor_set_uint8(x_55, sizeof(void*)*8, x_54); -lean_ctor_set(x_24, 0, x_55); -x_56 = lean_st_ref_set(x_7, x_24, x_27); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_58 = x_56; +uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_55 = lean_ctor_get_uint8(x_27, sizeof(void*)*8); +lean_dec(x_27); +x_56 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_56, 0, x_29); +lean_ctor_set(x_56, 1, x_30); +lean_ctor_set(x_56, 2, x_31); +lean_ctor_set(x_56, 3, x_32); +lean_ctor_set(x_56, 4, x_33); +lean_ctor_set(x_56, 5, x_34); +lean_ctor_set(x_56, 6, x_35); +lean_ctor_set(x_56, 7, x_36); +lean_ctor_set_uint8(x_56, sizeof(void*)*8, x_55); +lean_ctor_set(x_25, 0, x_56); +x_57 = lean_st_ref_set(x_8, x_25, x_28); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; } else { - lean_dec_ref(x_56); - x_58 = lean_box(0); + lean_dec_ref(x_57); + x_59 = lean_box(0); } -x_59 = lean_box(x_18); -if (lean_is_scalar(x_58)) { - x_60 = lean_alloc_ctor(0, 2, 0); +x_60 = lean_box(x_19); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 2, 0); } else { - x_60 = x_58; + x_61 = x_59; } -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_57); -return x_60; +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +return x_61; } } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_61 = lean_ctor_get(x_24, 1); -x_62 = lean_ctor_get(x_24, 2); -x_63 = lean_ctor_get(x_24, 3); +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_62 = lean_ctor_get(x_25, 1); +x_63 = lean_ctor_get(x_25, 2); +x_64 = lean_ctor_get(x_25, 3); +lean_inc(x_64); lean_inc(x_63); lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_24); -x_64 = lean_ctor_get_uint8(x_26, sizeof(void*)*8); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - lean_ctor_release(x_26, 2); - lean_ctor_release(x_26, 3); - lean_ctor_release(x_26, 4); - lean_ctor_release(x_26, 5); - lean_ctor_release(x_26, 6); - lean_ctor_release(x_26, 7); - x_65 = x_26; +lean_dec(x_25); +x_65 = lean_ctor_get_uint8(x_27, sizeof(void*)*8); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + lean_ctor_release(x_27, 2); + lean_ctor_release(x_27, 3); + lean_ctor_release(x_27, 4); + lean_ctor_release(x_27, 5); + lean_ctor_release(x_27, 6); + lean_ctor_release(x_27, 7); + x_66 = x_27; } else { - lean_dec_ref(x_26); - x_65 = lean_box(0); + lean_dec_ref(x_27); + x_66 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(0, 8, 1); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 8, 1); } else { - x_66 = x_65; + x_67 = x_66; } -lean_ctor_set(x_66, 0, x_28); -lean_ctor_set(x_66, 1, x_29); -lean_ctor_set(x_66, 2, x_30); -lean_ctor_set(x_66, 3, x_31); -lean_ctor_set(x_66, 4, x_32); -lean_ctor_set(x_66, 5, x_33); -lean_ctor_set(x_66, 6, x_34); -lean_ctor_set(x_66, 7, x_35); -lean_ctor_set_uint8(x_66, sizeof(void*)*8, x_64); -x_67 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_61); -lean_ctor_set(x_67, 2, x_62); -lean_ctor_set(x_67, 3, x_63); -x_68 = lean_st_ref_set(x_7, x_67, x_27); -x_69 = lean_ctor_get(x_68, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_70 = x_68; +lean_ctor_set(x_67, 0, x_29); +lean_ctor_set(x_67, 1, x_30); +lean_ctor_set(x_67, 2, x_31); +lean_ctor_set(x_67, 3, x_32); +lean_ctor_set(x_67, 4, x_33); +lean_ctor_set(x_67, 5, x_34); +lean_ctor_set(x_67, 6, x_35); +lean_ctor_set(x_67, 7, x_36); +lean_ctor_set_uint8(x_67, sizeof(void*)*8, x_65); +x_68 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_62); +lean_ctor_set(x_68, 2, x_63); +lean_ctor_set(x_68, 3, x_64); +x_69 = lean_st_ref_set(x_8, x_68, x_28); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; } else { - lean_dec_ref(x_68); - x_70 = lean_box(0); + lean_dec_ref(x_69); + x_71 = lean_box(0); } -x_71 = lean_box(x_18); -if (lean_is_scalar(x_70)) { - x_72 = lean_alloc_ctor(0, 2, 0); +x_72 = lean_box(x_19); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_70; + x_73 = x_71; } -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_69); -return x_72; +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_70); +return x_73; } } else { -lean_object* x_73; uint8_t x_74; -x_73 = lean_ctor_get(x_23, 1); -lean_inc(x_73); -lean_dec(x_23); -x_74 = !lean_is_exclusive(x_20); -if (x_74 == 0) -{ -uint8_t x_75; -x_75 = !lean_is_exclusive(x_24); +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_24, 1); +lean_inc(x_74); +lean_dec(x_24); +x_75 = !lean_is_exclusive(x_21); if (x_75 == 0) { -lean_object* x_76; uint8_t x_77; lean_object* x_78; uint8_t x_79; -x_76 = lean_ctor_get(x_24, 0); -lean_dec(x_76); -x_77 = 1; -lean_ctor_set_uint8(x_20, sizeof(void*)*8, x_77); -lean_ctor_set(x_24, 0, x_20); -x_78 = lean_st_ref_set(x_7, x_24, x_73); -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) +uint8_t x_76; +x_76 = !lean_is_exclusive(x_25); +if (x_76 == 0) { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_78, 0); -lean_dec(x_80); -x_81 = lean_box(x_18); -lean_ctor_set(x_78, 0, x_81); -return x_78; +lean_object* x_77; uint8_t x_78; lean_object* x_79; uint8_t x_80; +x_77 = lean_ctor_get(x_25, 0); +lean_dec(x_77); +x_78 = 1; +lean_ctor_set_uint8(x_21, sizeof(void*)*8, x_78); +lean_ctor_set(x_25, 0, x_21); +x_79 = lean_st_ref_set(x_8, x_25, x_74); +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_79, 0); +lean_dec(x_81); +x_82 = lean_box(x_19); +lean_ctor_set(x_79, 0, x_82); +return x_79; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_78, 1); -lean_inc(x_82); -lean_dec(x_78); -x_83 = lean_box(x_18); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_82); -return x_84; +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_79, 1); +lean_inc(x_83); +lean_dec(x_79); +x_84 = lean_box(x_19); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t 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; -x_85 = lean_ctor_get(x_24, 1); -x_86 = lean_ctor_get(x_24, 2); -x_87 = lean_ctor_get(x_24, 3); +lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_86 = lean_ctor_get(x_25, 1); +x_87 = lean_ctor_get(x_25, 2); +x_88 = lean_ctor_get(x_25, 3); +lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_24); -x_88 = 1; -lean_ctor_set_uint8(x_20, sizeof(void*)*8, x_88); -x_89 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_89, 0, x_20); -lean_ctor_set(x_89, 1, x_85); -lean_ctor_set(x_89, 2, x_86); -lean_ctor_set(x_89, 3, x_87); -x_90 = lean_st_ref_set(x_7, x_89, x_73); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_92 = x_90; +lean_dec(x_25); +x_89 = 1; +lean_ctor_set_uint8(x_21, sizeof(void*)*8, x_89); +x_90 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_90, 0, x_21); +lean_ctor_set(x_90, 1, x_86); +lean_ctor_set(x_90, 2, x_87); +lean_ctor_set(x_90, 3, x_88); +x_91 = lean_st_ref_set(x_8, x_90, x_74); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; } else { - lean_dec_ref(x_90); - x_92 = lean_box(0); + lean_dec_ref(x_91); + x_93 = lean_box(0); } -x_93 = lean_box(x_18); -if (lean_is_scalar(x_92)) { - x_94 = lean_alloc_ctor(0, 2, 0); +x_94 = lean_box(x_19); +if (lean_is_scalar(x_93)) { + x_95 = lean_alloc_ctor(0, 2, 0); } else { - x_94 = x_92; + x_95 = x_93; } -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_91); -return x_94; +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_92); +return x_95; } } else { -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; uint8_t 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; -x_95 = lean_ctor_get(x_20, 0); -x_96 = lean_ctor_get(x_20, 1); -x_97 = lean_ctor_get(x_20, 2); -x_98 = lean_ctor_get(x_20, 3); -x_99 = lean_ctor_get(x_20, 4); -x_100 = lean_ctor_get(x_20, 5); -x_101 = lean_ctor_get(x_20, 6); -x_102 = lean_ctor_get(x_20, 7); +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; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_96 = lean_ctor_get(x_21, 0); +x_97 = lean_ctor_get(x_21, 1); +x_98 = lean_ctor_get(x_21, 2); +x_99 = lean_ctor_get(x_21, 3); +x_100 = lean_ctor_get(x_21, 4); +x_101 = lean_ctor_get(x_21, 5); +x_102 = lean_ctor_get(x_21, 6); +x_103 = lean_ctor_get(x_21, 7); +lean_inc(x_103); lean_inc(x_102); lean_inc(x_101); lean_inc(x_100); @@ -12693,432 +13310,432 @@ lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_20); -x_103 = lean_ctor_get(x_24, 1); -lean_inc(x_103); -x_104 = lean_ctor_get(x_24, 2); +lean_dec(x_21); +x_104 = lean_ctor_get(x_25, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_24, 3); +x_105 = lean_ctor_get(x_25, 2); lean_inc(x_105); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - lean_ctor_release(x_24, 2); - lean_ctor_release(x_24, 3); - x_106 = x_24; +x_106 = lean_ctor_get(x_25, 3); +lean_inc(x_106); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + lean_ctor_release(x_25, 2); + lean_ctor_release(x_25, 3); + x_107 = x_25; } else { - lean_dec_ref(x_24); - x_106 = lean_box(0); + lean_dec_ref(x_25); + x_107 = lean_box(0); } -x_107 = 1; -x_108 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_108, 0, x_95); -lean_ctor_set(x_108, 1, x_96); -lean_ctor_set(x_108, 2, x_97); -lean_ctor_set(x_108, 3, x_98); -lean_ctor_set(x_108, 4, x_99); -lean_ctor_set(x_108, 5, x_100); -lean_ctor_set(x_108, 6, x_101); -lean_ctor_set(x_108, 7, x_102); -lean_ctor_set_uint8(x_108, sizeof(void*)*8, x_107); -if (lean_is_scalar(x_106)) { - x_109 = lean_alloc_ctor(0, 4, 0); +x_108 = 1; +x_109 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_109, 0, x_96); +lean_ctor_set(x_109, 1, x_97); +lean_ctor_set(x_109, 2, x_98); +lean_ctor_set(x_109, 3, x_99); +lean_ctor_set(x_109, 4, x_100); +lean_ctor_set(x_109, 5, x_101); +lean_ctor_set(x_109, 6, x_102); +lean_ctor_set(x_109, 7, x_103); +lean_ctor_set_uint8(x_109, sizeof(void*)*8, x_108); +if (lean_is_scalar(x_107)) { + x_110 = lean_alloc_ctor(0, 4, 0); } else { - x_109 = x_106; + x_110 = x_107; } -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_103); -lean_ctor_set(x_109, 2, x_104); -lean_ctor_set(x_109, 3, x_105); -x_110 = lean_st_ref_set(x_7, x_109, x_73); -x_111 = lean_ctor_get(x_110, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_112 = x_110; +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_104); +lean_ctor_set(x_110, 2, x_105); +lean_ctor_set(x_110, 3, x_106); +x_111 = lean_st_ref_set(x_8, x_110, x_74); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_113 = x_111; } else { - lean_dec_ref(x_110); - x_112 = lean_box(0); + lean_dec_ref(x_111); + x_113 = lean_box(0); } -x_113 = lean_box(x_18); -if (lean_is_scalar(x_112)) { - x_114 = lean_alloc_ctor(0, 2, 0); +x_114 = lean_box(x_19); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); } else { - x_114 = x_112; + x_115 = x_113; } -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_111); -return x_114; +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_112); +return x_115; } } } } else { -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; uint8_t x_137; lean_object* x_138; uint8_t x_235; lean_object* x_236; lean_object* x_249; lean_object* x_250; uint8_t x_251; -x_129 = lean_ctor_get(x_1, 3); -lean_inc(x_129); -x_130 = lean_ctor_get(x_1, 4); +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; uint8_t x_236; lean_object* x_237; lean_object* x_250; lean_object* x_251; uint8_t x_252; +x_130 = lean_ctor_get(x_1, 3); lean_inc(x_130); +x_131 = lean_ctor_get(x_1, 4); +lean_inc(x_131); lean_dec(x_1); -x_131 = lean_st_ref_get(x_9, x_10); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -lean_dec(x_131); -x_133 = lean_st_ref_get(x_7, x_132); -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); +x_132 = lean_st_ref_get(x_10, x_11); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +lean_dec(x_132); +x_134 = lean_st_ref_get(x_8, x_133); +x_135 = lean_ctor_get(x_134, 0); lean_inc(x_135); -lean_dec(x_133); -x_136 = lean_ctor_get(x_134, 0); +x_136 = lean_ctor_get(x_134, 1); lean_inc(x_136); lean_dec(x_134); -x_249 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___closed__1; -x_250 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_250, 0, x_249); -lean_ctor_set(x_250, 1, x_136); -x_251 = l_Lean_Expr_hasFVar(x_129); -if (x_251 == 0) -{ -uint8_t x_252; -x_252 = l_Lean_Expr_hasMVar(x_129); +x_137 = lean_ctor_get(x_135, 0); +lean_inc(x_137); +lean_dec(x_135); +x_250 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___closed__1; +x_251 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_137); +x_252 = l_Lean_Expr_hasFVar(x_130); if (x_252 == 0) { uint8_t x_253; -lean_dec(x_129); -x_253 = 0; -x_235 = x_253; -x_236 = x_250; -goto block_248; +x_253 = l_Lean_Expr_hasMVar(x_130); +if (x_253 == 0) +{ +uint8_t x_254; +lean_dec(x_130); +x_254 = 0; +x_236 = x_254; +x_237 = x_251; +goto block_249; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; -x_254 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__35(x_2, x_129, x_250); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); +lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; +x_255 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__35(x_2, x_130, x_251); +x_256 = lean_ctor_get(x_255, 0); lean_inc(x_256); -lean_dec(x_254); -x_257 = lean_unbox(x_255); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); lean_dec(x_255); -x_235 = x_257; -x_236 = x_256; -goto block_248; +x_258 = lean_unbox(x_256); +lean_dec(x_256); +x_236 = x_258; +x_237 = x_257; +goto block_249; } } else { -lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; -x_258 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__43(x_2, x_129, x_250); -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); +lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; +x_259 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__43(x_2, x_130, x_251); +x_260 = lean_ctor_get(x_259, 0); lean_inc(x_260); -lean_dec(x_258); -x_261 = lean_unbox(x_259); +x_261 = lean_ctor_get(x_259, 1); +lean_inc(x_261); lean_dec(x_259); -x_235 = x_261; -x_236 = x_260; -goto block_248; +x_262 = lean_unbox(x_260); +lean_dec(x_260); +x_236 = x_262; +x_237 = x_261; +goto block_249; } -block_234: +block_235: { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -lean_dec(x_138); -x_140 = lean_st_ref_get(x_9, x_135); -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -lean_dec(x_140); -x_142 = lean_st_ref_take(x_7, x_141); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get_uint8(x_139, sizeof(void*)*8); -if (x_144 == 0) -{ -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; uint8_t x_155; -x_145 = lean_ctor_get(x_143, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_142, 1); -lean_inc(x_146); -lean_dec(x_142); -x_147 = lean_ctor_get(x_139, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_139, 1); -lean_inc(x_148); -x_149 = lean_ctor_get(x_139, 2); -lean_inc(x_149); -x_150 = lean_ctor_get(x_139, 3); -lean_inc(x_150); -x_151 = lean_ctor_get(x_139, 4); -lean_inc(x_151); -x_152 = lean_ctor_get(x_139, 5); -lean_inc(x_152); -x_153 = lean_ctor_get(x_139, 6); -lean_inc(x_153); -x_154 = lean_ctor_get(x_139, 7); -lean_inc(x_154); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_140 = lean_ctor_get(x_139, 1); +lean_inc(x_140); lean_dec(x_139); -x_155 = !lean_is_exclusive(x_143); -if (x_155 == 0) +x_141 = lean_st_ref_get(x_10, x_136); +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_st_ref_take(x_8, x_142); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get_uint8(x_140, sizeof(void*)*8); +if (x_145 == 0) { -lean_object* x_156; uint8_t x_157; -x_156 = lean_ctor_get(x_143, 0); -lean_dec(x_156); -x_157 = !lean_is_exclusive(x_145); -if (x_157 == 0) +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; uint8_t x_156; +x_146 = lean_ctor_get(x_144, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_143, 1); +lean_inc(x_147); +lean_dec(x_143); +x_148 = lean_ctor_get(x_140, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_140, 1); +lean_inc(x_149); +x_150 = lean_ctor_get(x_140, 2); +lean_inc(x_150); +x_151 = lean_ctor_get(x_140, 3); +lean_inc(x_151); +x_152 = lean_ctor_get(x_140, 4); +lean_inc(x_152); +x_153 = lean_ctor_get(x_140, 5); +lean_inc(x_153); +x_154 = lean_ctor_get(x_140, 6); +lean_inc(x_154); +x_155 = lean_ctor_get(x_140, 7); +lean_inc(x_155); +lean_dec(x_140); +x_156 = !lean_is_exclusive(x_144); +if (x_156 == 0) { -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; uint8_t x_167; -x_158 = lean_ctor_get(x_145, 7); -lean_dec(x_158); -x_159 = lean_ctor_get(x_145, 6); +lean_object* x_157; uint8_t x_158; +x_157 = lean_ctor_get(x_144, 0); +lean_dec(x_157); +x_158 = !lean_is_exclusive(x_146); +if (x_158 == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_159 = lean_ctor_get(x_146, 7); lean_dec(x_159); -x_160 = lean_ctor_get(x_145, 5); +x_160 = lean_ctor_get(x_146, 6); lean_dec(x_160); -x_161 = lean_ctor_get(x_145, 4); +x_161 = lean_ctor_get(x_146, 5); lean_dec(x_161); -x_162 = lean_ctor_get(x_145, 3); +x_162 = lean_ctor_get(x_146, 4); lean_dec(x_162); -x_163 = lean_ctor_get(x_145, 2); +x_163 = lean_ctor_get(x_146, 3); lean_dec(x_163); -x_164 = lean_ctor_get(x_145, 1); +x_164 = lean_ctor_get(x_146, 2); lean_dec(x_164); -x_165 = lean_ctor_get(x_145, 0); +x_165 = lean_ctor_get(x_146, 1); lean_dec(x_165); -lean_ctor_set(x_145, 7, x_154); -lean_ctor_set(x_145, 6, x_153); -lean_ctor_set(x_145, 5, x_152); -lean_ctor_set(x_145, 4, x_151); -lean_ctor_set(x_145, 3, x_150); -lean_ctor_set(x_145, 2, x_149); -lean_ctor_set(x_145, 1, x_148); -lean_ctor_set(x_145, 0, x_147); -x_166 = lean_st_ref_set(x_7, x_143, x_146); -x_167 = !lean_is_exclusive(x_166); -if (x_167 == 0) -{ -lean_object* x_168; lean_object* x_169; -x_168 = lean_ctor_get(x_166, 0); -lean_dec(x_168); -x_169 = lean_box(x_137); -lean_ctor_set(x_166, 0, x_169); -return x_166; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_166, 1); -lean_inc(x_170); +x_166 = lean_ctor_get(x_146, 0); lean_dec(x_166); -x_171 = lean_box(x_137); -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_170); -return x_172; +lean_ctor_set(x_146, 7, x_155); +lean_ctor_set(x_146, 6, x_154); +lean_ctor_set(x_146, 5, x_153); +lean_ctor_set(x_146, 4, x_152); +lean_ctor_set(x_146, 3, x_151); +lean_ctor_set(x_146, 2, x_150); +lean_ctor_set(x_146, 1, x_149); +lean_ctor_set(x_146, 0, x_148); +x_167 = lean_st_ref_set(x_8, x_144, x_147); +x_168 = !lean_is_exclusive(x_167); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_167, 0); +lean_dec(x_169); +x_170 = lean_box(x_138); +lean_ctor_set(x_167, 0, x_170); +return x_167; +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_167, 1); +lean_inc(x_171); +lean_dec(x_167); +x_172 = lean_box(x_138); +x_173 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +return x_173; } } else { -uint8_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_173 = lean_ctor_get_uint8(x_145, sizeof(void*)*8); -lean_dec(x_145); -x_174 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_174, 0, x_147); -lean_ctor_set(x_174, 1, x_148); -lean_ctor_set(x_174, 2, x_149); -lean_ctor_set(x_174, 3, x_150); -lean_ctor_set(x_174, 4, x_151); -lean_ctor_set(x_174, 5, x_152); -lean_ctor_set(x_174, 6, x_153); -lean_ctor_set(x_174, 7, x_154); -lean_ctor_set_uint8(x_174, sizeof(void*)*8, x_173); -lean_ctor_set(x_143, 0, x_174); -x_175 = lean_st_ref_set(x_7, x_143, x_146); -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_177 = x_175; +uint8_t 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; +x_174 = lean_ctor_get_uint8(x_146, sizeof(void*)*8); +lean_dec(x_146); +x_175 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_175, 0, x_148); +lean_ctor_set(x_175, 1, x_149); +lean_ctor_set(x_175, 2, x_150); +lean_ctor_set(x_175, 3, x_151); +lean_ctor_set(x_175, 4, x_152); +lean_ctor_set(x_175, 5, x_153); +lean_ctor_set(x_175, 6, x_154); +lean_ctor_set(x_175, 7, x_155); +lean_ctor_set_uint8(x_175, sizeof(void*)*8, x_174); +lean_ctor_set(x_144, 0, x_175); +x_176 = lean_st_ref_set(x_8, x_144, x_147); +x_177 = lean_ctor_get(x_176, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + x_178 = x_176; } else { - lean_dec_ref(x_175); - x_177 = lean_box(0); + lean_dec_ref(x_176); + x_178 = lean_box(0); } -x_178 = lean_box(x_137); -if (lean_is_scalar(x_177)) { - x_179 = lean_alloc_ctor(0, 2, 0); +x_179 = lean_box(x_138); +if (lean_is_scalar(x_178)) { + x_180 = lean_alloc_ctor(0, 2, 0); } else { - x_179 = x_177; + x_180 = x_178; } -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_176); -return x_179; +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_177); +return x_180; } } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t 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; -x_180 = lean_ctor_get(x_143, 1); -x_181 = lean_ctor_get(x_143, 2); -x_182 = lean_ctor_get(x_143, 3); +lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t 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; +x_181 = lean_ctor_get(x_144, 1); +x_182 = lean_ctor_get(x_144, 2); +x_183 = lean_ctor_get(x_144, 3); +lean_inc(x_183); lean_inc(x_182); lean_inc(x_181); -lean_inc(x_180); -lean_dec(x_143); -x_183 = lean_ctor_get_uint8(x_145, sizeof(void*)*8); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - lean_ctor_release(x_145, 2); - lean_ctor_release(x_145, 3); - lean_ctor_release(x_145, 4); - lean_ctor_release(x_145, 5); - lean_ctor_release(x_145, 6); - lean_ctor_release(x_145, 7); - x_184 = x_145; +lean_dec(x_144); +x_184 = lean_ctor_get_uint8(x_146, sizeof(void*)*8); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + lean_ctor_release(x_146, 2); + lean_ctor_release(x_146, 3); + lean_ctor_release(x_146, 4); + lean_ctor_release(x_146, 5); + lean_ctor_release(x_146, 6); + lean_ctor_release(x_146, 7); + x_185 = x_146; } else { - lean_dec_ref(x_145); - x_184 = lean_box(0); + lean_dec_ref(x_146); + x_185 = lean_box(0); } -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(0, 8, 1); +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(0, 8, 1); } else { - x_185 = x_184; + x_186 = x_185; } -lean_ctor_set(x_185, 0, x_147); -lean_ctor_set(x_185, 1, x_148); -lean_ctor_set(x_185, 2, x_149); -lean_ctor_set(x_185, 3, x_150); -lean_ctor_set(x_185, 4, x_151); -lean_ctor_set(x_185, 5, x_152); -lean_ctor_set(x_185, 6, x_153); -lean_ctor_set(x_185, 7, x_154); -lean_ctor_set_uint8(x_185, sizeof(void*)*8, x_183); -x_186 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_180); -lean_ctor_set(x_186, 2, x_181); -lean_ctor_set(x_186, 3, x_182); -x_187 = lean_st_ref_set(x_7, x_186, x_146); -x_188 = lean_ctor_get(x_187, 1); -lean_inc(x_188); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_189 = x_187; +lean_ctor_set(x_186, 0, x_148); +lean_ctor_set(x_186, 1, x_149); +lean_ctor_set(x_186, 2, x_150); +lean_ctor_set(x_186, 3, x_151); +lean_ctor_set(x_186, 4, x_152); +lean_ctor_set(x_186, 5, x_153); +lean_ctor_set(x_186, 6, x_154); +lean_ctor_set(x_186, 7, x_155); +lean_ctor_set_uint8(x_186, sizeof(void*)*8, x_184); +x_187 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_181); +lean_ctor_set(x_187, 2, x_182); +lean_ctor_set(x_187, 3, x_183); +x_188 = lean_st_ref_set(x_8, x_187, x_147); +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_190 = x_188; } else { - lean_dec_ref(x_187); - x_189 = lean_box(0); + lean_dec_ref(x_188); + x_190 = lean_box(0); } -x_190 = lean_box(x_137); -if (lean_is_scalar(x_189)) { - x_191 = lean_alloc_ctor(0, 2, 0); +x_191 = lean_box(x_138); +if (lean_is_scalar(x_190)) { + x_192 = lean_alloc_ctor(0, 2, 0); } else { - x_191 = x_189; + x_192 = x_190; } -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_188); -return x_191; +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_189); +return x_192; } } else { -lean_object* x_192; uint8_t x_193; -x_192 = lean_ctor_get(x_142, 1); -lean_inc(x_192); -lean_dec(x_142); -x_193 = !lean_is_exclusive(x_139); -if (x_193 == 0) -{ -uint8_t x_194; -x_194 = !lean_is_exclusive(x_143); +lean_object* x_193; uint8_t x_194; +x_193 = lean_ctor_get(x_143, 1); +lean_inc(x_193); +lean_dec(x_143); +x_194 = !lean_is_exclusive(x_140); if (x_194 == 0) { -lean_object* x_195; uint8_t x_196; lean_object* x_197; uint8_t x_198; -x_195 = lean_ctor_get(x_143, 0); -lean_dec(x_195); -x_196 = 1; -lean_ctor_set_uint8(x_139, sizeof(void*)*8, x_196); -lean_ctor_set(x_143, 0, x_139); -x_197 = lean_st_ref_set(x_7, x_143, x_192); -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) +uint8_t x_195; +x_195 = !lean_is_exclusive(x_144); +if (x_195 == 0) { -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_197, 0); -lean_dec(x_199); -x_200 = lean_box(x_137); -lean_ctor_set(x_197, 0, x_200); -return x_197; +lean_object* x_196; uint8_t x_197; lean_object* x_198; uint8_t x_199; +x_196 = lean_ctor_get(x_144, 0); +lean_dec(x_196); +x_197 = 1; +lean_ctor_set_uint8(x_140, sizeof(void*)*8, x_197); +lean_ctor_set(x_144, 0, x_140); +x_198 = lean_st_ref_set(x_8, x_144, x_193); +x_199 = !lean_is_exclusive(x_198); +if (x_199 == 0) +{ +lean_object* x_200; lean_object* x_201; +x_200 = lean_ctor_get(x_198, 0); +lean_dec(x_200); +x_201 = lean_box(x_138); +lean_ctor_set(x_198, 0, x_201); +return x_198; } else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_197, 1); -lean_inc(x_201); -lean_dec(x_197); -x_202 = lean_box(x_137); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -return x_203; +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_198, 1); +lean_inc(x_202); +lean_dec(x_198); +x_203 = lean_box(x_138); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +return x_204; } } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t 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; -x_204 = lean_ctor_get(x_143, 1); -x_205 = lean_ctor_get(x_143, 2); -x_206 = lean_ctor_get(x_143, 3); +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; lean_object* x_214; +x_205 = lean_ctor_get(x_144, 1); +x_206 = lean_ctor_get(x_144, 2); +x_207 = lean_ctor_get(x_144, 3); +lean_inc(x_207); lean_inc(x_206); lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_143); -x_207 = 1; -lean_ctor_set_uint8(x_139, sizeof(void*)*8, x_207); -x_208 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_208, 0, x_139); -lean_ctor_set(x_208, 1, x_204); -lean_ctor_set(x_208, 2, x_205); -lean_ctor_set(x_208, 3, x_206); -x_209 = lean_st_ref_set(x_7, x_208, x_192); -x_210 = lean_ctor_get(x_209, 1); -lean_inc(x_210); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_211 = x_209; +lean_dec(x_144); +x_208 = 1; +lean_ctor_set_uint8(x_140, sizeof(void*)*8, x_208); +x_209 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_209, 0, x_140); +lean_ctor_set(x_209, 1, x_205); +lean_ctor_set(x_209, 2, x_206); +lean_ctor_set(x_209, 3, x_207); +x_210 = lean_st_ref_set(x_8, x_209, x_193); +x_211 = lean_ctor_get(x_210, 1); +lean_inc(x_211); +if (lean_is_exclusive(x_210)) { + lean_ctor_release(x_210, 0); + lean_ctor_release(x_210, 1); + x_212 = x_210; } else { - lean_dec_ref(x_209); - x_211 = lean_box(0); + lean_dec_ref(x_210); + x_212 = lean_box(0); } -x_212 = lean_box(x_137); -if (lean_is_scalar(x_211)) { - x_213 = lean_alloc_ctor(0, 2, 0); +x_213 = lean_box(x_138); +if (lean_is_scalar(x_212)) { + x_214 = lean_alloc_ctor(0, 2, 0); } else { - x_213 = x_211; + x_214 = x_212; } -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_210); -return x_213; +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_211); +return x_214; } } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_214 = lean_ctor_get(x_139, 0); -x_215 = lean_ctor_get(x_139, 1); -x_216 = lean_ctor_get(x_139, 2); -x_217 = lean_ctor_get(x_139, 3); -x_218 = lean_ctor_get(x_139, 4); -x_219 = lean_ctor_get(x_139, 5); -x_220 = lean_ctor_get(x_139, 6); -x_221 = lean_ctor_get(x_139, 7); +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_215 = lean_ctor_get(x_140, 0); +x_216 = lean_ctor_get(x_140, 1); +x_217 = lean_ctor_get(x_140, 2); +x_218 = lean_ctor_get(x_140, 3); +x_219 = lean_ctor_get(x_140, 4); +x_220 = lean_ctor_get(x_140, 5); +x_221 = lean_ctor_get(x_140, 6); +x_222 = lean_ctor_get(x_140, 7); +lean_inc(x_222); lean_inc(x_221); lean_inc(x_220); lean_inc(x_219); @@ -13126,124 +13743,123 @@ lean_inc(x_218); lean_inc(x_217); lean_inc(x_216); lean_inc(x_215); -lean_inc(x_214); -lean_dec(x_139); -x_222 = lean_ctor_get(x_143, 1); -lean_inc(x_222); -x_223 = lean_ctor_get(x_143, 2); +lean_dec(x_140); +x_223 = lean_ctor_get(x_144, 1); lean_inc(x_223); -x_224 = lean_ctor_get(x_143, 3); +x_224 = lean_ctor_get(x_144, 2); lean_inc(x_224); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - lean_ctor_release(x_143, 2); - lean_ctor_release(x_143, 3); - x_225 = x_143; +x_225 = lean_ctor_get(x_144, 3); +lean_inc(x_225); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + lean_ctor_release(x_144, 2); + lean_ctor_release(x_144, 3); + x_226 = x_144; } else { - lean_dec_ref(x_143); - x_225 = lean_box(0); + lean_dec_ref(x_144); + x_226 = lean_box(0); } -x_226 = 1; -x_227 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_227, 0, x_214); -lean_ctor_set(x_227, 1, x_215); -lean_ctor_set(x_227, 2, x_216); -lean_ctor_set(x_227, 3, x_217); -lean_ctor_set(x_227, 4, x_218); -lean_ctor_set(x_227, 5, x_219); -lean_ctor_set(x_227, 6, x_220); -lean_ctor_set(x_227, 7, x_221); -lean_ctor_set_uint8(x_227, sizeof(void*)*8, x_226); -if (lean_is_scalar(x_225)) { - x_228 = lean_alloc_ctor(0, 4, 0); +x_227 = 1; +x_228 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_228, 0, x_215); +lean_ctor_set(x_228, 1, x_216); +lean_ctor_set(x_228, 2, x_217); +lean_ctor_set(x_228, 3, x_218); +lean_ctor_set(x_228, 4, x_219); +lean_ctor_set(x_228, 5, x_220); +lean_ctor_set(x_228, 6, x_221); +lean_ctor_set(x_228, 7, x_222); +lean_ctor_set_uint8(x_228, sizeof(void*)*8, x_227); +if (lean_is_scalar(x_226)) { + x_229 = lean_alloc_ctor(0, 4, 0); } else { - x_228 = x_225; + x_229 = x_226; } -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_222); -lean_ctor_set(x_228, 2, x_223); -lean_ctor_set(x_228, 3, x_224); -x_229 = lean_st_ref_set(x_7, x_228, x_192); -x_230 = lean_ctor_get(x_229, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - x_231 = x_229; +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_223); +lean_ctor_set(x_229, 2, x_224); +lean_ctor_set(x_229, 3, x_225); +x_230 = lean_st_ref_set(x_8, x_229, x_193); +x_231 = lean_ctor_get(x_230, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_232 = x_230; } else { - lean_dec_ref(x_229); - x_231 = lean_box(0); + lean_dec_ref(x_230); + x_232 = lean_box(0); } -x_232 = lean_box(x_137); -if (lean_is_scalar(x_231)) { - x_233 = lean_alloc_ctor(0, 2, 0); +x_233 = lean_box(x_138); +if (lean_is_scalar(x_232)) { + x_234 = lean_alloc_ctor(0, 2, 0); } else { - x_233 = x_231; + x_234 = x_232; } -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_230); -return x_233; +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_231); +return x_234; } } } -block_248: +block_249: { -if (x_235 == 0) -{ -uint8_t x_237; -x_237 = l_Lean_Expr_hasFVar(x_130); -if (x_237 == 0) +if (x_236 == 0) { uint8_t x_238; -x_238 = l_Lean_Expr_hasMVar(x_130); +x_238 = l_Lean_Expr_hasFVar(x_131); if (x_238 == 0) { uint8_t x_239; -lean_dec(x_130); -x_239 = 0; -x_137 = x_239; -x_138 = x_236; -goto block_234; +x_239 = l_Lean_Expr_hasMVar(x_131); +if (x_239 == 0) +{ +uint8_t x_240; +lean_dec(x_131); +x_240 = 0; +x_138 = x_240; +x_139 = x_237; +goto block_235; } else { -lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; -x_240 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__19(x_2, x_130, x_236); -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); +lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; +x_241 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__19(x_2, x_131, x_237); +x_242 = lean_ctor_get(x_241, 0); lean_inc(x_242); -lean_dec(x_240); -x_243 = lean_unbox(x_241); +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); lean_dec(x_241); -x_137 = x_243; -x_138 = x_242; -goto block_234; +x_244 = lean_unbox(x_242); +lean_dec(x_242); +x_138 = x_244; +x_139 = x_243; +goto block_235; } } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; -x_244 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__27(x_2, x_130, x_236); -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); +lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; +x_245 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__27(x_2, x_131, x_237); +x_246 = lean_ctor_get(x_245, 0); lean_inc(x_246); -lean_dec(x_244); -x_247 = lean_unbox(x_245); +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); lean_dec(x_245); -x_137 = x_247; -x_138 = x_246; -goto block_234; +x_248 = lean_unbox(x_246); +lean_dec(x_246); +x_138 = x_248; +x_139 = x_247; +goto block_235; } } else { -lean_dec(x_130); -x_137 = x_235; +lean_dec(x_131); x_138 = x_236; -goto block_234; +x_139 = x_237; +goto block_235; } } } @@ -13272,189 +13888,189 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -uint8_t x_18; -x_18 = lean_nat_dec_le(x_7, x_6); -if (x_18 == 0) +uint8_t x_19; +x_19 = lean_nat_dec_le(x_7, x_6); +if (x_19 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = lean_unsigned_to_nat(0u); -x_20 = lean_nat_dec_eq(x_5, x_19); -if (x_20 == 0) +lean_object* x_20; uint8_t x_21; +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_nat_dec_eq(x_5, x_20); +if (x_21 == 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_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_dec(x_9); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_sub(x_5, x_21); +x_22 = lean_unsigned_to_nat(1u); +x_23 = lean_nat_sub(x_5, x_22); lean_dec(x_5); -x_23 = l_Lean_instInhabitedExpr; -x_24 = lean_array_get(x_23, x_2, x_6); -x_25 = l_Lean_Expr_fvarId_x21(x_24); -lean_inc(x_13); -x_26 = l_Lean_Meta_getLocalDecl(x_25, x_13, x_14, x_15, x_16, x_17); -if (lean_obj_tag(x_26) == 0) +x_24 = l_Lean_instInhabitedExpr; +x_25 = lean_array_get(x_24, x_2, x_6); +x_26 = l_Lean_Expr_fvarId_x21(x_25); +lean_inc(x_14); +x_27 = l_Lean_Meta_getLocalDecl(x_26, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); -x_29 = 0; -x_30 = l_List_foldr___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__1(x_27, x_29, x_1); -if (x_30 == 0) -{ -lean_object* x_31; +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); lean_dec(x_27); -x_31 = lean_nat_add(x_6, x_8); +x_30 = 0; +x_31 = l_List_foldr___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__1(x_28, x_30, x_1); +if (x_31 == 0) +{ +lean_object* x_32; +lean_dec(x_28); +x_32 = lean_nat_add(x_6, x_8); lean_dec(x_6); lean_inc(x_4); { -lean_object* _tmp_4 = x_22; -lean_object* _tmp_5 = x_31; +lean_object* _tmp_4 = x_23; +lean_object* _tmp_5 = x_32; lean_object* _tmp_8 = x_4; -lean_object* _tmp_16 = x_28; +lean_object* _tmp_17 = x_29; x_5 = _tmp_4; x_6 = _tmp_5; x_9 = _tmp_8; -x_17 = _tmp_16; +x_18 = _tmp_17; } goto _start; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_inc(x_3); -x_33 = l_Lean_Expr_fvarId_x21(x_3); -x_34 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2(x_27, x_33, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_28); -lean_dec(x_33); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -lean_dec(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); +x_34 = l_Lean_Expr_fvarId_x21(x_3); +x_35 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2(x_28, x_34, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_29); lean_dec(x_34); -x_38 = lean_nat_add(x_6, x_8); +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; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_nat_add(x_6, x_8); lean_dec(x_6); lean_inc(x_4); { -lean_object* _tmp_4 = x_22; -lean_object* _tmp_5 = x_38; +lean_object* _tmp_4 = x_23; +lean_object* _tmp_5 = x_39; lean_object* _tmp_8 = x_4; -lean_object* _tmp_16 = x_37; +lean_object* _tmp_17 = x_38; x_5 = _tmp_4; x_6 = _tmp_5; x_9 = _tmp_8; -x_17 = _tmp_16; +x_18 = _tmp_17; } goto _start; } else { -uint8_t x_40; -lean_dec(x_22); -lean_dec(x_13); +uint8_t x_41; +lean_dec(x_23); +lean_dec(x_14); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_40 = !lean_is_exclusive(x_34); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_35); +if (x_41 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_34, 0); -lean_dec(x_41); -x_42 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51___closed__2; -lean_ctor_set(x_34, 0, x_42); -return x_34; +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_35, 0); +lean_dec(x_42); +x_43 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51___closed__2; +lean_ctor_set(x_35, 0, x_43); +return x_35; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_34, 1); -lean_inc(x_43); -lean_dec(x_34); -x_44 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51___closed__2; -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -return x_45; +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_35, 1); +lean_inc(x_44); +lean_dec(x_35); +x_45 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51___closed__2; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } } } else { -uint8_t x_46; -lean_dec(x_22); -lean_dec(x_13); +uint8_t x_47; +lean_dec(x_23); +lean_dec(x_14); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); -x_46 = !lean_is_exclusive(x_26); -if (x_46 == 0) +x_47 = !lean_is_exclusive(x_27); +if (x_47 == 0) { -return x_26; +return x_27; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_26, 0); -x_48 = lean_ctor_get(x_26, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_27, 0); +x_49 = lean_ctor_get(x_27, 1); +lean_inc(x_49); lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_26); -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; -} -} -} -else -{ -lean_object* x_50; -lean_dec(x_13); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_9); -lean_ctor_set(x_50, 1, x_17); +lean_dec(x_27); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); return x_50; } } +} else { lean_object* x_51; -lean_dec(x_13); +lean_dec(x_14); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); x_51 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_51, 0, x_9); -lean_ctor_set(x_51, 1, x_17); +lean_ctor_set(x_51, 1, x_18); return x_51; } } +else +{ +lean_object* x_52; +lean_dec(x_14); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_9); +lean_ctor_set(x_52, 1, x_18); +return x_52; } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_10; lean_object* x_11; lean_object* x_12; -x_10 = 0; -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_9); -return x_12; +uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_11 = 0; +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_10); +return x_13; } } static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__1() { @@ -13473,46 +14089,47 @@ static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArg _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1___boxed), 9, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1___boxed), 10, 0); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = l_Lean_instInhabitedExpr; -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_array_get(x_12, x_2, x_13); -x_15 = lean_array_get_size(x_2); -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__1; -x_17 = lean_unsigned_to_nat(1u); -lean_inc(x_7); -lean_inc(x_15); -x_18 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(x_1, x_2, x_14, x_16, x_15, x_17, x_15, x_17, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -if (lean_obj_tag(x_18) == 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; +x_13 = l_Lean_instInhabitedExpr; +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_array_get(x_13, x_2, x_14); +x_16 = lean_array_get_size(x_2); +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__1; +x_18 = lean_unsigned_to_nat(1u); +lean_inc(x_8); +lean_inc(x_16); +x_19 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(x_1, x_2, x_15, x_17, x_16, x_18, x_16, x_18, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_16); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); +lean_object* x_20; lean_object* x_21; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_18, 1); +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_18); -x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__2; -x_23 = lean_box(0); -x_24 = lean_apply_9(x_22, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21); -return x_24; +lean_dec(x_20); +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_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__2; +x_24 = lean_box(0); +x_25 = lean_apply_10(x_23, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +return x_25; } else { -uint8_t x_25; +uint8_t x_26; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -13520,156 +14137,159 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_25 = !lean_is_exclusive(x_18); -if (x_25 == 0) +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_18, 0); -lean_dec(x_26); -x_27 = lean_ctor_get(x_20, 0); -lean_inc(x_27); -lean_dec(x_20); -lean_ctor_set(x_18, 0, x_27); -return x_18; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_18, 1); +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_19, 0); +lean_dec(x_27); +x_28 = lean_ctor_get(x_21, 0); lean_inc(x_28); -lean_dec(x_18); -x_29 = lean_ctor_get(x_20, 0); -lean_inc(x_29); -lean_dec(x_20); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -return x_30; -} -} -} -else -{ -uint8_t x_31; -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); -x_31 = !lean_is_exclusive(x_18); -if (x_31 == 0) -{ -return x_18; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_18, 0); -x_33 = lean_ctor_get(x_18, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_18); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_9 = lean_st_ref_get(x_7, x_8); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_1, x_10); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); -x_15 = lean_ctor_get(x_13, 3); -lean_inc(x_15); -x_16 = l_List_isEmpty___rarg(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_free_object(x_11); -x_17 = lean_ctor_get(x_13, 1); -lean_inc(x_17); -lean_dec(x_13); -x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___boxed), 11, 1); -lean_closure_set(x_18, 0, x_15); -x_19 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_17, x_18, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_28); return x_19; } else { -uint8_t x_20; lean_object* x_21; -lean_dec(x_15); -lean_dec(x_13); -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_20 = 0; -x_21 = lean_box(x_20); -lean_ctor_set(x_11, 0, x_21); -return x_11; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = lean_ctor_get(x_11, 0); -x_23 = lean_ctor_get(x_11, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_11); -x_24 = lean_ctor_get(x_22, 3); -lean_inc(x_24); -x_25 = l_List_isEmpty___rarg(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___boxed), 11, 1); -lean_closure_set(x_27, 0, x_24); -x_28 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_26, x_27, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_23); -return x_28; -} -else -{ -uint8_t x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_24); -lean_dec(x_22); -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_29 = 0; -x_30 = lean_box(x_29); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_dec(x_19); +x_30 = lean_ctor_get(x_21, 0); +lean_inc(x_30); +lean_dec(x_21); x_31 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_23); +lean_ctor_set(x_31, 1, x_29); return x_31; } } } +else +{ +uint8_t x_32; +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); +x_32 = !lean_is_exclusive(x_19); +if (x_32 == 0) +{ +return x_19; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_st_ref_get(x_2, x_11); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +x_16 = lean_ctor_get(x_14, 3); +lean_inc(x_16); +x_17 = l_List_isEmpty___rarg(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_free_object(x_12); +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___boxed), 12, 1); +lean_closure_set(x_19, 0, x_16); +x_20 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_18, x_19, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +return x_20; +} +else +{ +uint8_t x_21; lean_object* x_22; +lean_dec(x_16); +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); +lean_dec(x_2); +lean_dec(x_1); +x_21 = 0; +x_22 = lean_box(x_21); +lean_ctor_set(x_12, 0, x_22); +return x_12; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_12, 0); +x_24 = lean_ctor_get(x_12, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_12); +x_25 = lean_ctor_get(x_23, 3); +lean_inc(x_25); +x_26 = l_List_isEmpty___rarg(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___boxed), 12, 1); +lean_closure_set(x_28, 0, x_25); +x_29 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg(x_27, x_28, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); +return x_29; +} +else +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_25); +lean_dec(x_23); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_30 = 0; +x_31 = lean_box(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_24); +return x_32; +} +} +} } LEAN_EXPORT lean_object* l_List_foldr___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -14236,11 +14856,12 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___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_EXPORT lean_object* l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___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) { _start: { -lean_object* x_11; -x_11 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_12; +x_12 = l_Lean_localDeclDependsOn___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -14249,7 +14870,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_11; +return x_12; } } LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51___boxed(lean_object** _args) { @@ -14270,13 +14891,15 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; _start: { -lean_object* x_18; -x_18 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_object* x_19; +x_19 = l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__51(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); -lean_dec(x_14); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -14284,14 +14907,15 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -return x_18; +return x_19; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_11; +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -14300,21 +14924,21 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_10; +return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___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_12; -x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_object* x_13; +x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_12; +return x_13; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -14422,11 +15046,19 @@ return x_38; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -14437,7 +15069,16 @@ lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -14931,11 +15572,19 @@ return x_136; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___rarg___boxed), 8, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -14946,87 +15595,698 @@ lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = lean_apply_9(x_1, x_5, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___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; lean_object* x_14; -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1), 10, 4); -lean_closure_set(x_13, 0, x_4); -lean_closure_set(x_13, 1, x_5); -lean_closure_set(x_13, 2, x_6); -lean_closure_set(x_13, 3, x_7); -x_14 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(x_1, x_2, x_3, x_13, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_14) == 0) -{ -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -return x_14; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_14); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_14); -if (x_19 == 0) -{ -return x_14; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_14, 0); -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_14); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___boxed), 12, 0); +x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(x_1); +lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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_EXPORT uint8_t l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_11 = lean_st_ref_get(x_9, x_10); -x_12 = lean_ctor_get(x_11, 1); +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_nat_dec_eq(x_3, x_2); +lean_dec(x_2); +return x_4; +} +case 7: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_1, 2); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_add(x_2, x_6); +lean_dec(x_2); +x_1 = x_5; +x_2 = x_7; +goto _start; +} +default: +{ +uint8_t x_9; +lean_dec(x_2); +x_9 = 0; +return x_9; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType(x_1, x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +lean_dec(x_2); +x_6 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams(x_1, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +lean_object* x_5; lean_object* x_6; uint64_t x_7; uint8_t x_8; uint8_t x_9; +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_8 = (uint8_t)((x_7 << 24) >> 61); +x_9 = l_Lean_BinderInfo_isInstImplicit(x_8); +if (x_9 == 0) +{ +x_1 = x_6; +goto _start; +} +else +{ +lean_object* x_11; +x_11 = l_Lean_Expr_getAppFn(x_5); +if (lean_obj_tag(x_11) == 4) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); -x_13 = lean_st_ref_take(x_3, x_12); +x_13 = lean_st_ref_get(x_3, x_4); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_has_out_params(x_17, x_12); +if (x_18 == 0) +{ +lean_free_object(x_13); +x_1 = x_6; +x_4 = x_16; +goto _start; +} +else +{ +uint8_t x_20; lean_object* x_21; +x_20 = 1; +x_21 = lean_box(x_20); +lean_ctor_set(x_13, 0, x_21); +return x_13; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_22 = lean_ctor_get(x_13, 0); +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_13); +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_has_out_params(x_24, x_12); +if (x_25 == 0) +{ +x_1 = x_6; +x_4 = x_23; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +x_27 = 1; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_23); +return x_29; +} +} +} +else +{ +lean_dec(x_11); +x_1 = x_6; +goto _start; +} +} +} +else +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_4); +return x_33; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_5); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_1, x_11); +lean_dec(x_1); +x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf(x_2, x_12, x_3, x_4, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_get_size(x_3); +x_11 = lean_nat_dec_lt(x_2, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* 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_2); +lean_dec(x_1); +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_9); +return x_14; +} +else +{ +lean_object* x_15; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_15 = lean_whnf(x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 7) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_ctor_get(x_15, 0); +lean_dec(x_19); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +x_21 = lean_ctor_get(x_16, 2); +lean_inc(x_21); +lean_dec(x_16); +x_22 = lean_array_fget(x_3, x_2); +x_23 = lean_expr_eqv(x_22, x_1); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_20); +lean_free_object(x_15); +x_24 = lean_box(0); +x_25 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1(x_2, x_1, x_3, x_21, x_24, x_5, x_6, x_7, x_8, x_18); +return x_25; +} +else +{ +uint8_t x_26; +x_26 = lean_is_out_param(x_20); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_free_object(x_15); +x_27 = lean_box(0); +x_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1(x_2, x_1, x_3, x_21, x_27, x_5, x_6, x_7, x_8, x_18); +return x_28; +} +else +{ +uint8_t x_29; lean_object* x_30; +lean_dec(x_21); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_29 = 1; +x_30 = lean_box(x_29); +lean_ctor_set(x_15, 0, x_30); +return x_15; +} +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_31 = lean_ctor_get(x_15, 1); +lean_inc(x_31); +lean_dec(x_15); +x_32 = lean_ctor_get(x_16, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_16, 2); +lean_inc(x_33); +lean_dec(x_16); +x_34 = lean_array_fget(x_3, x_2); +x_35 = lean_expr_eqv(x_34, x_1); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_32); +x_36 = lean_box(0); +x_37 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1(x_2, x_1, x_3, x_33, x_36, x_5, x_6, x_7, x_8, x_31); +return x_37; +} +else +{ +uint8_t x_38; +x_38 = lean_is_out_param(x_32); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_box(0); +x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1(x_2, x_1, x_3, x_33, x_39, x_5, x_6, x_7, x_8, x_31); +return x_40; +} +else +{ +uint8_t x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_33); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_41 = 1; +x_42 = lean_box(x_41); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_31); +return x_43; +} +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_15); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_15, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +lean_ctor_set(x_15, 0, x_47); +return x_15; +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_15, 1); +lean_inc(x_48); +lean_dec(x_15); +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; +} +} +} +else +{ +uint8_t x_52; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_15); +if (x_52 == 0) +{ +return x_15; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_15, 0); +x_54 = lean_ctor_get(x_15, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_15); +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_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_dec(x_3); +x_9 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance(x_1, x_2, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_levelZero; +x_2 = l_Lean_mkSort(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +if (lean_obj_tag(x_2) == 7) +{ +lean_object* x_8; lean_object* x_9; uint64_t x_10; uint8_t x_11; uint8_t x_12; +x_8 = lean_ctor_get(x_2, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 2); +lean_inc(x_9); +x_10 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_dec(x_2); +x_11 = (uint8_t)((x_10 << 24) >> 61); +x_12 = l_Lean_BinderInfo_isInstImplicit(x_11); +if (x_12 == 0) +{ +lean_dec(x_8); +x_2 = x_9; +goto _start; +} +else +{ +lean_object* x_14; +x_14 = l_Lean_Expr_getAppFn(x_8); +if (lean_obj_tag(x_14) == 4) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_st_ref_get(x_6, x_7); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_has_out_params(x_19, x_15); +if (x_20 == 0) +{ +lean_dec(x_14); +lean_dec(x_8); +x_2 = x_9; +x_7 = x_18; +goto _start; +} +else +{ +lean_object* x_22; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_22 = lean_infer_type(x_14, x_3, x_4, x_5, x_6, x_18); +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; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Lean_Expr_getAppNumArgsAux(x_8, x_25); +x_27 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___closed__1; +lean_inc(x_26); +x_28 = lean_mk_array(x_26, x_27); +x_29 = lean_unsigned_to_nat(1u); +x_30 = lean_nat_sub(x_26, x_29); +lean_dec(x_26); +x_31 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_8, x_28, x_30); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_32 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOf(x_1, x_25, x_31, x_23, x_3, x_4, x_5, x_6, x_24); +lean_dec(x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_unbox(x_33); +lean_dec(x_33); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_2 = x_9; +x_7 = x_35; +goto _start; +} +else +{ +uint8_t x_37; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_32); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_32, 0); +lean_dec(x_38); +x_39 = 1; +x_40 = lean_box(x_39); +lean_ctor_set(x_32, 0, x_40); +return x_32; +} +else +{ +lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); +lean_dec(x_32); +x_42 = 1; +x_43 = lean_box(x_42); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_45 = !lean_is_exclusive(x_32); +if (x_45 == 0) +{ +return x_32; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_32, 0); +x_47 = lean_ctor_get(x_32, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_32); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_49 = !lean_is_exclusive(x_22); +if (x_49 == 0) +{ +return x_22; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_22, 0); +x_51 = lean_ctor_get(x_22, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_22); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +} +else +{ +lean_dec(x_14); +lean_dec(x_8); +x_2 = x_9; +goto _start; +} +} +} +else +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +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_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_7); +return x_56; +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = lean_st_ref_get(x_1, x_2); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 2); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +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; +x_8 = lean_ctor_get(x_5, 0); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_inc(x_8); +x_10 = lean_name_mk_numeral(x_8, x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_9, x_11); +lean_dec(x_9); +lean_ctor_set(x_5, 1, x_12); +x_13 = lean_st_ref_take(x_1, x_6); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -15035,137 +16295,664 @@ lean_dec(x_13); x_16 = !lean_is_exclusive(x_14); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_17 = lean_ctor_get(x_14, 5); -lean_inc(x_2); -x_18 = lean_array_push(x_17, x_2); -lean_ctor_set(x_14, 5, x_18); -x_19 = lean_st_ref_set(x_3, x_14, x_15); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l_Lean_Elab_Term_ElabAppArgs_main(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); -return x_23; +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_14, 2); +lean_dec(x_17); +lean_ctor_set(x_14, 2, x_5); +x_18 = lean_st_ref_set(x_1, x_14, x_15); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_10); +return x_18; } else { -uint8_t 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_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; lean_object* x_41; -x_24 = lean_ctor_get_uint8(x_14, sizeof(void*)*8); -x_25 = lean_ctor_get(x_14, 0); -x_26 = lean_ctor_get(x_14, 1); -x_27 = lean_ctor_get(x_14, 2); -x_28 = lean_ctor_get(x_14, 3); -x_29 = lean_ctor_get_uint8(x_14, sizeof(void*)*8 + 1); -x_30 = lean_ctor_get(x_14, 4); -x_31 = lean_ctor_get(x_14, 5); -x_32 = lean_ctor_get(x_14, 6); -x_33 = lean_ctor_get(x_14, 7); -x_34 = lean_ctor_get_uint8(x_14, sizeof(void*)*8 + 2); +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_10); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +x_25 = lean_ctor_get(x_14, 3); +x_26 = lean_ctor_get(x_14, 4); +x_27 = lean_ctor_get(x_14, 5); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_28 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_24); +lean_ctor_set(x_28, 2, x_5); +lean_ctor_set(x_28, 3, x_25); +lean_ctor_set(x_28, 4, x_26); +lean_ctor_set(x_28, 5, x_27); +x_29 = lean_st_ref_set(x_1, x_28, x_15); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_31 = x_29; +} else { + lean_dec_ref(x_29); + x_31 = lean_box(0); +} +if (lean_is_scalar(x_31)) { + x_32 = lean_alloc_ctor(0, 2, 0); +} else { + x_32 = x_31; +} +lean_ctor_set(x_32, 0, x_10); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 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; +x_33 = lean_ctor_get(x_5, 0); +x_34 = lean_ctor_get(x_5, 1); +lean_inc(x_34); lean_inc(x_33); +lean_dec(x_5); +lean_inc(x_34); +lean_inc(x_33); +x_35 = lean_name_mk_numeral(x_33, x_34); +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_34, x_36); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_33); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_st_ref_take(x_1, x_6); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_40, 3); +lean_inc(x_44); +x_45 = lean_ctor_get(x_40, 4); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 5); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + lean_ctor_release(x_40, 3); + lean_ctor_release(x_40, 4); + lean_ctor_release(x_40, 5); + x_47 = x_40; +} else { + lean_dec_ref(x_40); + x_47 = lean_box(0); +} +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(0, 6, 0); +} else { + x_48 = x_47; +} +lean_ctor_set(x_48, 0, x_42); +lean_ctor_set(x_48, 1, x_43); +lean_ctor_set(x_48, 2, x_38); +lean_ctor_set(x_48, 3, x_44); +lean_ctor_set(x_48, 4, x_45); +lean_ctor_set(x_48, 5, x_46); +x_49 = lean_st_ref_set(x_1, x_48, x_41); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_51 = x_49; +} else { + lean_dec_ref(x_49); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_35); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___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) { +_start: +{ +lean_object* x_8; +x_8 = lean_alloc_closure((void*)(l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___rarg___boxed), 2, 0); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___rarg(x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_hasLocalInstaceWithOutParams(x_1, x_9, x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +uint8_t x_15; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 0); +lean_dec(x_16); +x_17 = 0; +x_18 = lean_box(x_17); +lean_ctor_set(x_12, 0, x_18); +return x_12; +} +else +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_dec(x_12); +x_20 = 0; +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_dec(x_12); +x_24 = l_Lean_mkFreshFVarId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_mkFVar(x_25); +x_28 = lean_expr_instantiate1(x_1, x_27); +x_29 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance(x_27, x_28, x_7, x_8, x_9, x_10, x_26); +return x_29; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +lean_dec(x_1); +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_3, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Expr_bindingBody_x21(x_17); +lean_dec(x_17); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType(x_18, x_19); +if (x_20 == 0) +{ +uint8_t x_21; lean_object* x_22; +lean_dec(x_18); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_21 = 0; +x_22 = lean_box(x_21); +lean_ctor_set(x_13, 0, x_22); +return x_13; +} +else +{ +lean_object* x_23; lean_object* x_24; +lean_free_object(x_13); +x_23 = lean_box(0); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1(x_18, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_18); +return x_24; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_13); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Expr_bindingBody_x21(x_27); +lean_dec(x_27); +x_29 = lean_unsigned_to_nat(0u); +x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isResultType(x_28, x_29); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_28); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_26); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_box(0); +x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1(x_28, x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_28); +return x_35; +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__2), 10, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = lean_ctor_get_uint8(x_1, 2); +if (x_10 == 0) +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; +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_11 = 0; +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___closed__1; +x_15 = lean_box(0); +x_16 = lean_apply_10(x_14, x_15, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_mkFreshId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_mkFreshFVarId___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = lean_apply_10(x_1, x_6, x_2, x_3, x_4, x_5, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___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, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___lambda__1), 11, 5); +lean_closure_set(x_14, 0, x_4); +lean_closure_set(x_14, 1, x_5); +lean_closure_set(x_14, 2, x_6); +lean_closure_set(x_14, 3, x_7); +lean_closure_set(x_14, 4, x_8); +x_15 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(x_1, x_2, x_3, x_14, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg___boxed), 13, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_12 = lean_st_ref_get(x_10, x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_take(x_4, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_18 = lean_ctor_get(x_15, 5); +lean_inc(x_2); +x_19 = lean_array_push(x_18, x_2); +lean_ctor_set(x_15, 5, x_19); +x_20 = lean_st_ref_set(x_4, x_15, x_16); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Lean_Elab_Term_ElabAppArgs_main(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +x_27 = lean_ctor_get(x_15, 2); +x_28 = lean_ctor_get(x_15, 3); +x_29 = lean_ctor_get(x_15, 4); +x_30 = lean_ctor_get(x_15, 5); +x_31 = lean_ctor_get(x_15, 6); +x_32 = lean_ctor_get(x_15, 7); +x_33 = lean_ctor_get_uint8(x_15, sizeof(void*)*9); +x_34 = lean_ctor_get(x_15, 8); +lean_inc(x_34); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); +lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); -lean_dec(x_14); +lean_dec(x_15); lean_inc(x_2); -x_35 = lean_array_push(x_31, x_2); -x_36 = lean_alloc_ctor(0, 8, 3); +x_35 = lean_array_push(x_30, x_2); +x_36 = lean_alloc_ctor(0, 9, 1); lean_ctor_set(x_36, 0, x_25); lean_ctor_set(x_36, 1, x_26); lean_ctor_set(x_36, 2, x_27); lean_ctor_set(x_36, 3, x_28); -lean_ctor_set(x_36, 4, x_30); +lean_ctor_set(x_36, 4, x_29); lean_ctor_set(x_36, 5, x_35); -lean_ctor_set(x_36, 6, x_32); -lean_ctor_set(x_36, 7, x_33); -lean_ctor_set_uint8(x_36, sizeof(void*)*8, x_24); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 1, x_29); -lean_ctor_set_uint8(x_36, sizeof(void*)*8 + 2, x_34); -x_37 = lean_st_ref_set(x_3, x_36, x_15); +lean_ctor_set(x_36, 6, x_31); +lean_ctor_set(x_36, 7, x_32); +lean_ctor_set(x_36, 8, x_34); +lean_ctor_set_uint8(x_36, sizeof(void*)*9, x_33); +x_37 = lean_st_ref_set(x_4, x_36, x_16); x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); -x_39 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38); +x_39 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_38); x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); lean_dec(x_39); -x_41 = l_Lean_Elab_Term_ElabAppArgs_main(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40); +x_41 = l_Lean_Elab_Term_ElabAppArgs_main(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); return x_41; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getBindingName___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___lambda__1), 11, 1); +lean_closure_set(x_17, 0, x_1); +x_18 = 0; +x_19 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(x_12, x_18, x_15, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +x_13 = l_Lean_Expr_isForall(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_dec(x_11); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___lambda__1), 10, 1); -lean_closure_set(x_16, 0, x_1); -x_17 = 0; -x_18 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(x_11, x_17, x_14, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -return x_18; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_ElabAppArgs_main(lean_object* x_1, lean_object* x_2, 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: +x_16 = lean_unbox(x_15); +lean_dec(x_15); +if (x_16 == 0) { -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_App_0__Lean_Elab_Term_ElabAppArgs_normalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_Expr_isForall(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_10); -x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_unbox(x_14); +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); lean_dec(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_dec(x_13); -x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_16); -return x_17; +x_18 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +return x_18; } else { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_dec(x_13); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); @@ -15173,19 +16960,20 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_19 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_18); -if (lean_obj_tag(x_19) == 0) +x_20 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_8 = x_20; +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_9 = x_21; goto _start; } else { -uint8_t x_22; +uint8_t x_23; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15193,92 +16981,93 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_22 = !lean_is_exclusive(x_19); -if (x_22 == 0) +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) { -return x_19; +return x_20; } else { -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_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_20, 0); +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); -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; +lean_dec(x_20); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } } else { -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; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_26 = l_Lean_Expr_bindingName_x21(x_10); -x_27 = l_Lean_Expr_bindingInfo_x21(x_10); -x_28 = lean_unbox(x_27); -lean_dec(x_27); -x_29 = lean_st_ref_get(x_7, x_11); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_st_ref_get(x_1, x_30); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); +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_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_27 = l_Lean_Expr_bindingName_x21(x_11); +x_28 = l_Lean_Expr_bindingInfo_x21(x_11); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +x_30 = lean_st_ref_get(x_8, x_12); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = lean_st_ref_get(x_2, x_31); +x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); -lean_dec(x_31); -lean_inc(x_26); -x_34 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); -lean_closure_set(x_34, 0, x_26); -x_35 = lean_ctor_get(x_32, 3); -lean_inc(x_35); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); lean_dec(x_32); -x_36 = l_List_find_x3f___rarg(x_34, x_35); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; -x_37 = lean_box(x_28); -switch (lean_obj_tag(x_37)) { -case 1: +lean_inc(x_27); +x_35 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed), 2, 1); +lean_closure_set(x_35, 0, x_27); +x_36 = lean_ctor_get(x_33, 3); +lean_inc(x_36); +lean_dec(x_33); +x_37 = l_List_find_x3f___rarg(x_35, x_36); +if (lean_obj_tag(x_37) == 0) { lean_object* x_38; -x_38 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_33); -return x_38; +x_38 = lean_box(x_29); +switch (lean_obj_tag(x_38)) { +case 1: +{ +lean_object* x_39; +x_39 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(x_27, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +return x_39; } case 2: { -lean_object* x_39; -x_39 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processStrictImplicitArg(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_33); -return x_39; +lean_object* x_40; +x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processStrictImplicitArg(x_27, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +return x_40; } case 3: { -lean_object* x_40; -x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_33); -return x_40; +lean_object* x_41; +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(x_27, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +return x_41; } default: { -lean_object* x_41; -lean_dec(x_37); -x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_33); -return x_41; +lean_object* x_42; +lean_dec(x_38); +x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_27, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +return x_42; } } } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_36, 0); -lean_inc(x_42); -lean_dec(x_36); -x_43 = lean_ctor_get(x_42, 2); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 0); lean_inc(x_43); -lean_dec(x_42); +lean_dec(x_37); +x_44 = lean_ctor_get(x_43, 2); +lean_inc(x_44); +lean_dec(x_43); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); @@ -15286,38 +17075,39 @@ lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -lean_inc(x_43); -x_44 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_43, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_33); -if (lean_obj_tag(x_44) == 0) +lean_inc(x_44); +x_45 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_44, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec(x_44); -lean_inc(x_26); -x_46 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_45); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +lean_inc(x_27); +x_47 = l_Lean_Elab_Term_ElabAppArgs_eraseNamedArg(x_27, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_46); +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +lean_dec(x_47); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_48 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_26, x_43, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_47); -if (lean_obj_tag(x_48) == 0) +x_49 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_27, x_44, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_49; -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_8 = x_49; +lean_object* x_50; +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec(x_49); +x_9 = x_50; goto _start; } else { -uint8_t x_51; +uint8_t x_52; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15325,63 +17115,32 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_48); -if (x_51 == 0) +x_52 = !lean_is_exclusive(x_49); +if (x_52 == 0) { -return x_48; +return x_49; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_48, 0); -x_53 = lean_ctor_get(x_48, 1); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_49, 0); +x_54 = lean_ctor_get(x_49, 1); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_48); -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_49); +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; -lean_dec(x_43); -lean_dec(x_26); -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_55 = !lean_is_exclusive(x_44); -if (x_55 == 0) -{ -return x_44; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_44, 0); -x_57 = lean_ctor_get(x_44, 1); -lean_inc(x_57); -lean_inc(x_56); +uint8_t x_56; lean_dec(x_44); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -} -} -else -{ -uint8_t x_59; +lean_dec(x_27); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -15389,62 +17148,95 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_9); -if (x_59 == 0) +x_56 = !lean_is_exclusive(x_45); +if (x_56 == 0) { -return x_9; +return x_45; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_9, 0); -x_61 = lean_ctor_get(x_9, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_45, 0); +x_58 = lean_ctor_get(x_45, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_45); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_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_60 = !lean_is_exclusive(x_10); +if (x_60 == 0) +{ +return x_10; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_10, 0); +x_62 = lean_ctor_get(x_10, 1); +lean_inc(x_62); lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_9); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_dec(x_10); +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; } } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_7, 5); -x_11 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_5, x_6, x_7, x_8, x_9); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_8, 5); +x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_10); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_13); -lean_ctor_set_tag(x_11, 1); -lean_ctor_set(x_11, 0, x_14); -return x_11; +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_14); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 0, x_15); +return x_12; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -lean_inc(x_10); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_10); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); +lean_dec(x_12); +lean_inc(x_11); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_11); lean_ctor_set(x_18, 1, x_16); -return x_18; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; } } } @@ -15462,12 +17254,12 @@ lean_ctor_set(x_6, 1, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = lean_alloc_closure((void*)(l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___rarg___boxed), 3, 0); -return x_6; +lean_object* x_7; +x_7 = lean_alloc_closure((void*)(l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___rarg___boxed), 3, 0); +return x_7; } } static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1() { @@ -15495,52 +17287,64 @@ x_1 = lean_mk_string_from_bytes("by", 2); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; lean_object* x_14; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_st_ref_get(x_2, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_13, 2); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_st_ref_get(x_9, x_10); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_st_ref_get(x_3, x_12); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_12, 1); +x_15 = lean_ctor_get(x_14, 2); lean_inc(x_15); -lean_dec(x_12); -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -x_17 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); -if (x_17 == 0) +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +x_18 = lean_ctor_get_uint8(x_2, 1); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); lean_inc(x_19); -lean_dec(x_16); -x_20 = l_Lean_Expr_getOptParamDefault_x3f(x_18); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; -x_21 = l_Lean_Expr_getAutoParamTactic_x3f(x_18); -lean_dec(x_18); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = l_Lean_Expr_getOptParamDefault_x3f(x_19); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; uint8_t x_23; -x_22 = lean_ctor_get(x_13, 3); -lean_inc(x_22); -lean_dec(x_13); -x_23 = l_List_isEmpty___rarg(x_22); -lean_dec(x_22); -if (x_23 == 0) +lean_object* x_22; +x_22 = l_Lean_Expr_getAutoParamTactic_x3f(x_19); +lean_dec(x_19); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_24; +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; +x_23 = lean_st_ref_get(x_9, x_20); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_st_ref_get(x_3, x_24); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 3); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_List_isEmpty___rarg(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -15548,36 +17352,37 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); -if (lean_obj_tag(x_24) == 0) +x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_25; uint8_t x_26; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_unbox(x_25); -lean_dec(x_25); -if (x_26 == 0) +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_unbox(x_31); +lean_dec(x_31); +if (x_32 == 0) { -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 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_27); -return x_28; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_33); +return x_34; } else { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_24, 1); -lean_inc(x_29); -lean_dec(x_24); -x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -return x_30; +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_30, 1); +lean_inc(x_35); +lean_dec(x_30); +x_36 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +return x_36; } } else { -uint8_t x_31; +uint8_t x_37; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -15586,29 +17391,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_24); -if (x_31 == 0) +x_37 = !lean_is_exclusive(x_30); +if (x_37 == 0) { -return x_24; +return x_30; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_24, 0); -x_33 = lean_ctor_get(x_24, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_24); -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_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; } } } else { -lean_object* x_35; +lean_object* x_41; +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -15616,62 +17422,52 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_35 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); -if (lean_obj_tag(x_35) == 0) +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_fTypeHasOptAutoParams(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27); +if (lean_obj_tag(x_41) == 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; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_st_ref_get(x_8, x_38); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_41 = lean_st_ref_get(x_2, x_40); +lean_object* x_42; uint8_t x_43; x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -x_43 = lean_ctor_get_uint8(x_42, sizeof(void*)*8 + 1); +x_43 = lean_unbox(x_42); lean_dec(x_42); if (x_43 == 0) { -lean_object* x_44; lean_object* x_45; +uint8_t x_44; +x_44 = lean_ctor_get_uint8(x_2, 0); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_dec(x_1); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); +x_45 = lean_ctor_get(x_41, 1); +lean_inc(x_45); lean_dec(x_41); -x_45 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_44); -return x_45; +x_46 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_45); +return x_46; } else { -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); lean_dec(x_41); -x_47 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_46); -return x_47; +x_48 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_47); +return x_48; } } else { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_35, 1); -lean_inc(x_48); -lean_dec(x_35); -x_49 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48); -return x_49; +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_41, 1); +lean_inc(x_49); +lean_dec(x_41); +x_50 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_49); +return x_50; } } else { -uint8_t x_50; +uint8_t x_51; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -15680,65 +17476,65 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_50 = !lean_is_exclusive(x_35); -if (x_50 == 0) +x_51 = !lean_is_exclusive(x_41); +if (x_51 == 0) { -return x_35; +return x_41; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_35, 0); -x_52 = lean_ctor_get(x_35, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_41, 0); +x_53 = lean_ctor_get(x_41, 1); +lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_35); -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_41); +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; -lean_dec(x_13); -x_54 = lean_ctor_get(x_21, 0); -lean_inc(x_54); -lean_dec(x_21); -if (lean_obj_tag(x_54) == 4) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_55 = lean_ctor_get(x_54, 0); +lean_object* x_55; +x_55 = lean_ctor_get(x_22, 0); lean_inc(x_55); -lean_dec(x_54); -x_56 = lean_st_ref_get(x_8, x_19); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +lean_dec(x_22); +if (lean_obj_tag(x_55) == 4) +{ +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; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +lean_dec(x_55); +x_57 = lean_st_ref_get(x_9, x_20); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_ctor_get(x_57, 0); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); lean_dec(x_57); -x_60 = lean_ctor_get(x_7, 2); +x_60 = lean_ctor_get(x_58, 0); lean_inc(x_60); -x_61 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(x_59, x_60, x_55); -lean_dec(x_60); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_1); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); +lean_dec(x_58); +x_61 = lean_ctor_get(x_8, 2); +lean_inc(x_61); +x_62 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe(x_60, x_61, x_56); lean_dec(x_61); -x_63 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 1, 0); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_1); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +lean_dec(x_62); +x_64 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_64, 0, x_63); -x_65 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_58); +x_65 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_66 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(x_65, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_59); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -15746,40 +17542,41 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_65; +return x_66; } else { -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; -x_66 = lean_ctor_get(x_61, 0); -lean_inc(x_66); -lean_dec(x_61); -lean_inc(x_7); -x_67 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___rarg(x_7, x_8, x_58); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +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; +x_67 = lean_ctor_get(x_62, 0); +lean_inc(x_67); +lean_dec(x_62); +lean_inc(x_8); +x_68 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___rarg(x_8, x_9, x_59); +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -x_70 = lean_st_ref_get(x_8, x_69); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3; -x_73 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_73, 0, x_68); -lean_ctor_set(x_73, 1, x_72); -x_74 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__3; -x_75 = lean_array_push(x_74, x_73); -x_76 = lean_array_push(x_75, x_66); -x_77 = lean_box(2); -x_78 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__12; -x_79 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -lean_ctor_set(x_79, 2, x_76); -x_80 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_80, 0, x_79); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_st_ref_get(x_9, x_70); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__3; +x_74 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_74, 0, x_69); +lean_ctor_set(x_74, 1, x_73); +x_75 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__3; +x_76 = lean_array_push(x_75, x_74); +x_77 = lean_array_push(x_76, x_67); +x_78 = lean_box(2); +x_79 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__12; +x_80 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +lean_ctor_set(x_80, 2, x_77); +x_81 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_81, 0, x_80); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -15787,33 +17584,34 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_80); -x_81 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_71); -if (lean_obj_tag(x_81) == 0) +lean_inc(x_81); +x_82 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_81, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_72); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec(x_81); +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +lean_dec(x_82); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_83 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_82); -if (lean_obj_tag(x_83) == 0) +x_84 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_81, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_83); +if (lean_obj_tag(x_84) == 0) { -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); -x_85 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_84); -return x_85; +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +lean_dec(x_84); +x_86 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_85); +return x_86; } else { -uint8_t x_86; +uint8_t x_87; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -15821,66 +17619,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_86 = !lean_is_exclusive(x_83); -if (x_86 == 0) +x_87 = !lean_is_exclusive(x_84); +if (x_87 == 0) { -return x_83; +return x_84; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_83, 0); -x_88 = lean_ctor_get(x_83, 1); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_84, 0); +x_89 = lean_ctor_get(x_84, 1); +lean_inc(x_89); lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_83); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -return x_89; +lean_dec(x_84); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } else { -uint8_t x_90; -lean_dec(x_80); -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_90 = !lean_is_exclusive(x_81); -if (x_90 == 0) -{ -return x_81; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_81, 0); -x_92 = lean_ctor_get(x_81, 1); -lean_inc(x_92); -lean_inc(x_91); +uint8_t x_91; lean_dec(x_81); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; -} -} -} -} -else -{ -lean_object* x_94; lean_object* x_95; -lean_dec(x_54); -lean_dec(x_1); -x_94 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2; -x_95 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(x_94, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -15888,40 +17651,87 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_95; +lean_dec(x_1); +x_91 = !lean_is_exclusive(x_82); +if (x_91 == 0) +{ +return x_82; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_82, 0); +x_93 = lean_ctor_get(x_82, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_82); +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_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_18); -lean_dec(x_13); -x_96 = lean_ctor_get(x_20, 0); -lean_inc(x_96); -lean_dec(x_20); -x_97 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_96, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_98); -return x_99; +lean_object* x_95; lean_object* x_96; +lean_dec(x_55); +lean_dec(x_1); +x_95 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2; +x_96 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(x_95, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_96; +} } } else { -lean_object* x_100; lean_object* x_101; uint8_t x_102; -x_100 = lean_ctor_get(x_16, 1); -lean_inc(x_100); -lean_dec(x_16); -x_101 = lean_ctor_get(x_13, 3); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_19); +x_97 = lean_ctor_get(x_21, 0); +lean_inc(x_97); +lean_dec(x_21); +x_98 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_97, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_99); +return x_100; +} +} +else +{ +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; uint8_t x_108; +x_101 = lean_ctor_get(x_17, 1); lean_inc(x_101); -lean_dec(x_13); -x_102 = l_List_isEmpty___rarg(x_101); -lean_dec(x_101); -if (x_102 == 0) +lean_dec(x_17); +x_102 = lean_st_ref_get(x_9, x_101); +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +lean_dec(x_102); +x_104 = lean_st_ref_get(x_3, x_103); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = lean_ctor_get(x_105, 3); +lean_inc(x_107); +lean_dec(x_105); +x_108 = l_List_isEmpty___rarg(x_107); +lean_dec(x_107); +if (x_108 == 0) { -lean_object* x_103; +lean_object* x_109; +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -15929,140 +17739,37 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_103 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); -if (lean_obj_tag(x_103) == 0) +x_109 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_106); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_104; uint8_t x_105; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_unbox(x_104); -lean_dec(x_104); -if (x_105 == 0) +lean_object* x_110; uint8_t x_111; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_unbox(x_110); +lean_dec(x_110); +if (x_111 == 0) { -lean_object* x_106; lean_object* x_107; -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); -lean_dec(x_103); -x_107 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_106); -return x_107; -} -else -{ -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_103, 1); -lean_inc(x_108); -lean_dec(x_103); -x_109 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_108); -return x_109; -} -} -else -{ -uint8_t x_110; -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_110 = !lean_is_exclusive(x_103); -if (x_110 == 0) -{ -return x_103; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_103, 0); -x_112 = lean_ctor_get(x_103, 1); +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_109, 1); lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_103); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); +lean_dec(x_109); +x_113 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_112); return x_113; } +else +{ +lean_object* x_114; lean_object* x_115; +x_114 = lean_ctor_get(x_109, 1); +lean_inc(x_114); +lean_dec(x_109); +x_115 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_114); +return x_115; } } else { -lean_object* x_114; -lean_dec(x_1); -x_114 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_100); -return x_114; -} -} -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -lean_dec(x_13); -x_115 = lean_ctor_get(x_12, 1); -lean_inc(x_115); -lean_dec(x_12); -x_116 = lean_ctor_get(x_14, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_14, 1); -lean_inc(x_117); -lean_dec(x_14); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_116); -x_118 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_115); -if (lean_obj_tag(x_118) == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -lean_dec(x_118); -x_120 = lean_st_ref_get(x_8, x_119); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_122 = lean_st_ref_take(x_2, x_121); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); -lean_inc(x_124); -lean_dec(x_122); -x_125 = !lean_is_exclusive(x_123); -if (x_125 == 0) -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_126 = lean_ctor_get(x_123, 2); -lean_dec(x_126); -lean_ctor_set(x_123, 2, x_117); -x_127 = lean_st_ref_set(x_2, x_123, x_124); -x_128 = lean_ctor_get(x_127, 1); -lean_inc(x_128); -lean_dec(x_127); -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_129 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_128); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; lean_object* x_131; -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -lean_dec(x_129); -x_131 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_130); -return x_131; -} -else -{ -uint8_t x_132; +uint8_t x_116; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16070,82 +17777,187 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_132 = !lean_is_exclusive(x_129); -if (x_132 == 0) +lean_dec(x_1); +x_116 = !lean_is_exclusive(x_109); +if (x_116 == 0) { -return x_129; +return x_109; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_129, 0); -x_134 = lean_ctor_get(x_129, 1); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_109, 0); +x_118 = lean_ctor_get(x_109, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_109); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +else +{ +lean_object* x_120; +lean_dec(x_1); +x_120 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_106); +return x_120; +} +} +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_13, 1); +lean_inc(x_121); +lean_dec(x_13); +x_122 = lean_ctor_get(x_15, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_15, 1); +lean_inc(x_123); +lean_dec(x_15); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_122); +x_124 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_propagateExpectedType(x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_121); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +lean_dec(x_124); +x_126 = lean_st_ref_get(x_9, x_125); +x_127 = lean_ctor_get(x_126, 1); +lean_inc(x_127); +lean_dec(x_126); +x_128 = lean_st_ref_take(x_3, x_127); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = !lean_is_exclusive(x_129); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_132 = lean_ctor_get(x_129, 2); +lean_dec(x_132); +lean_ctor_set(x_129, 2, x_123); +x_133 = lean_st_ref_set(x_3, x_129, x_130); +x_134 = lean_ctor_get(x_133, 1); lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_129); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); +lean_dec(x_133); +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_135 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_134); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +lean_dec(x_135); +x_137 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_136); +return x_137; +} +else +{ +uint8_t x_138; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_138 = !lean_is_exclusive(x_135); +if (x_138 == 0) +{ return x_135; } +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_135, 0); +x_140 = lean_ctor_get(x_135, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_135); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} } } else { -uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_136 = lean_ctor_get_uint8(x_123, sizeof(void*)*8); -x_137 = lean_ctor_get(x_123, 0); -x_138 = lean_ctor_get(x_123, 1); -x_139 = lean_ctor_get(x_123, 3); -x_140 = lean_ctor_get_uint8(x_123, sizeof(void*)*8 + 1); -x_141 = lean_ctor_get(x_123, 4); -x_142 = lean_ctor_get(x_123, 5); -x_143 = lean_ctor_get(x_123, 6); -x_144 = lean_ctor_get(x_123, 7); -x_145 = lean_ctor_get_uint8(x_123, sizeof(void*)*8 + 2); +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; uint8_t x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_142 = lean_ctor_get(x_129, 0); +x_143 = lean_ctor_get(x_129, 1); +x_144 = lean_ctor_get(x_129, 3); +x_145 = lean_ctor_get(x_129, 4); +x_146 = lean_ctor_get(x_129, 5); +x_147 = lean_ctor_get(x_129, 6); +x_148 = lean_ctor_get(x_129, 7); +x_149 = lean_ctor_get_uint8(x_129, sizeof(void*)*9); +x_150 = lean_ctor_get(x_129, 8); +lean_inc(x_150); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_inc(x_145); lean_inc(x_144); lean_inc(x_143); lean_inc(x_142); -lean_inc(x_141); -lean_inc(x_139); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_123); -x_146 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_146, 0, x_137); -lean_ctor_set(x_146, 1, x_138); -lean_ctor_set(x_146, 2, x_117); -lean_ctor_set(x_146, 3, x_139); -lean_ctor_set(x_146, 4, x_141); -lean_ctor_set(x_146, 5, x_142); -lean_ctor_set(x_146, 6, x_143); -lean_ctor_set(x_146, 7, x_144); -lean_ctor_set_uint8(x_146, sizeof(void*)*8, x_136); -lean_ctor_set_uint8(x_146, sizeof(void*)*8 + 1, x_140); -lean_ctor_set_uint8(x_146, sizeof(void*)*8 + 2, x_145); -x_147 = lean_st_ref_set(x_2, x_146, x_124); -x_148 = lean_ctor_get(x_147, 1); -lean_inc(x_148); -lean_dec(x_147); +lean_dec(x_129); +x_151 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_151, 0, x_142); +lean_ctor_set(x_151, 1, x_143); +lean_ctor_set(x_151, 2, x_123); +lean_ctor_set(x_151, 3, x_144); +lean_ctor_set(x_151, 4, x_145); +lean_ctor_set(x_151, 5, x_146); +lean_ctor_set(x_151, 6, x_147); +lean_ctor_set(x_151, 7, x_148); +lean_ctor_set(x_151, 8, x_150); +lean_ctor_set_uint8(x_151, sizeof(void*)*9, x_149); +x_152 = lean_st_ref_set(x_3, x_151, x_130); +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +lean_dec(x_152); +lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_3); -x_149 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_148); -if (lean_obj_tag(x_149) == 0) +x_154 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_elabAndAddNewArg(x_1, x_122, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_153); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -lean_dec(x_149); -x_151 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_150); -return x_151; +lean_object* x_155; lean_object* x_156; +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +lean_dec(x_154); +x_156 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_155); +return x_156; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16153,34 +17965,35 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_152 = lean_ctor_get(x_149, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_149, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_154 = x_149; +x_157 = lean_ctor_get(x_154, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_154, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_159 = x_154; } else { - lean_dec_ref(x_149); - x_154 = lean_box(0); + lean_dec_ref(x_154); + x_159 = lean_box(0); } -if (lean_is_scalar(x_154)) { - x_155 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(1, 2, 0); } else { - x_155 = x_154; + x_160 = x_159; } -lean_ctor_set(x_155, 0, x_152); -lean_ctor_set(x_155, 1, x_153); -return x_155; +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_158); +return x_160; } } } else { -uint8_t x_156; -lean_dec(x_117); -lean_dec(x_116); +uint8_t x_161; +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16189,383 +18002,301 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_156 = !lean_is_exclusive(x_118); -if (x_156 == 0) +x_161 = !lean_is_exclusive(x_124); +if (x_161 == 0) { -return x_118; +return x_124; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_118, 0); -x_158 = lean_ctor_get(x_118, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_118); -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_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_124, 0); +x_163 = lean_ctor_get(x_124, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_124); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; } } } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_10 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, 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_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_12 = lean_st_ref_get(x_10, x_11); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_take(x_4, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_18 = lean_ctor_get(x_15, 6); +x_19 = l_Lean_Expr_mvarId_x21(x_2); +x_20 = lean_array_push(x_18, x_19); +lean_ctor_set(x_15, 6, x_20); +x_21 = lean_st_ref_set(x_4, x_15, x_16); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_22); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +x_25 = l_Lean_Elab_Term_ElabAppArgs_main(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_24); +return x_25; +} +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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_26 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_15, 1); +x_28 = lean_ctor_get(x_15, 2); +x_29 = lean_ctor_get(x_15, 3); +x_30 = lean_ctor_get(x_15, 4); +x_31 = lean_ctor_get(x_15, 5); +x_32 = lean_ctor_get(x_15, 6); +x_33 = lean_ctor_get(x_15, 7); +x_34 = lean_ctor_get_uint8(x_15, sizeof(void*)*9); +x_35 = lean_ctor_get(x_15, 8); +lean_inc(x_35); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_15); +x_36 = l_Lean_Expr_mvarId_x21(x_2); +x_37 = lean_array_push(x_32, x_36); +x_38 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_38, 0, x_26); +lean_ctor_set(x_38, 1, x_27); +lean_ctor_set(x_38, 2, x_28); +lean_ctor_set(x_38, 3, x_29); +lean_ctor_set(x_38, 4, x_30); +lean_ctor_set(x_38, 5, x_31); +lean_ctor_set(x_38, 6, x_37); +lean_ctor_set(x_38, 7, x_33); +lean_ctor_set(x_38, 8, x_35); +lean_ctor_set_uint8(x_38, sizeof(void*)*9, x_34); +x_39 = lean_st_ref_set(x_4, x_38, x_16); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); +x_43 = l_Lean_Elab_Term_ElabAppArgs_main(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_42); +return x_43; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(x_3, x_4, x_5, 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_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_11); -x_14 = 0; -x_15 = lean_box(0); +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_16 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_13, x_14, x_15, x_5, x_6, x_7, x_8, x_12); -x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_14 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +if (lean_obj_tag(x_14) == 0) +{ +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; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_st_ref_get(x_8, x_18); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_st_ref_take(x_2, x_20); +lean_dec(x_14); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_12); +x_19 = 0; +x_20 = lean_box(0); +lean_inc(x_6); +x_21 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_18, x_19, x_20, x_6, x_7, x_8, x_9, x_17); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); -x_24 = !lean_is_exclusive(x_22); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_25 = lean_ctor_get(x_22, 6); -x_26 = l_Lean_Expr_mvarId_x21(x_17); -x_27 = lean_array_push(x_25, x_26); -lean_ctor_set(x_22, 6, x_27); -x_28 = lean_st_ref_set(x_2, x_22, x_23); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_32 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); -return x_32; -} -else -{ -uint8_t 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_33 = lean_ctor_get_uint8(x_22, sizeof(void*)*8); -x_34 = lean_ctor_get(x_22, 0); -x_35 = lean_ctor_get(x_22, 1); -x_36 = lean_ctor_get(x_22, 2); -x_37 = lean_ctor_get(x_22, 3); -x_38 = lean_ctor_get_uint8(x_22, sizeof(void*)*8 + 1); -x_39 = lean_ctor_get(x_22, 4); -x_40 = lean_ctor_get(x_22, 5); -x_41 = lean_ctor_get(x_22, 6); -x_42 = lean_ctor_get(x_22, 7); -x_43 = lean_ctor_get_uint8(x_22, sizeof(void*)*8 + 2); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_22); -x_44 = l_Lean_Expr_mvarId_x21(x_17); -x_45 = lean_array_push(x_41, x_44); -x_46 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_46, 0, x_34); -lean_ctor_set(x_46, 1, x_35); -lean_ctor_set(x_46, 2, x_36); -lean_ctor_set(x_46, 3, x_37); -lean_ctor_set(x_46, 4, x_39); -lean_ctor_set(x_46, 5, x_40); -lean_ctor_set(x_46, 6, x_45); -lean_ctor_set(x_46, 7, x_42); -lean_ctor_set_uint8(x_46, sizeof(void*)*8, x_33); -lean_ctor_set_uint8(x_46, sizeof(void*)*8 + 1, x_38); -lean_ctor_set_uint8(x_46, sizeof(void*)*8 + 2, x_43); -x_47 = lean_st_ref_set(x_2, x_46, x_23); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_50); -return x_51; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processStrictImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_st_ref_get(x_2, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -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) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_1); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(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_16, 1); -lean_inc(x_21); -lean_dec(x_16); -x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(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; -x_23 = lean_ctor_get(x_12, 1); -lean_inc(x_23); -lean_dec(x_12); -x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg___lambda__1(x_1, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); return x_24; } -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_st_ref_get(x_2, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*8); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_17); -x_20 = 1; -x_21 = lean_box(0); -lean_inc(x_5); -x_22 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_19, x_20, x_21, x_5, x_6, x_7, x_8, x_18); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_Expr_mvarId_x21(x_23); -x_26 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_24); -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_27); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_30 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_29); -return x_30; -} else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_12, 1); +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; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_25 = lean_ctor_get(x_14, 1); +lean_inc(x_25); +lean_dec(x_14); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_12); +x_27 = 0; +x_28 = lean_box(0); +lean_inc(x_6); +x_29 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_26, x_27, x_28, x_6, x_7, x_8, x_9, x_25); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -lean_dec(x_12); -x_32 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); -x_33 = lean_ctor_get(x_32, 0); +lean_dec(x_29); +x_32 = lean_st_ref_get(x_9, x_31); +x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); -x_34 = lean_unbox(x_33); -lean_dec(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); +lean_dec(x_32); +x_34 = lean_st_ref_take(x_3, x_33); +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_32); -x_36 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_35); -return x_36; -} -else +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t 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; uint8_t x_52; -x_37 = lean_ctor_get(x_32, 1); -lean_inc(x_37); -lean_dec(x_32); -x_38 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_37); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_38 = lean_ctor_get(x_35, 8); lean_dec(x_38); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_39); -x_42 = 1; -x_43 = lean_box(0); -lean_inc(x_5); -x_44 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_41, x_42, x_43, x_5, x_6, x_7, x_8, x_40); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_st_ref_get(x_8, x_46); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = lean_st_ref_take(x_2, x_48); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = !lean_is_exclusive(x_50); -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_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_53 = lean_ctor_get(x_50, 2); -x_54 = l_List_tail_x21___rarg(x_53); -lean_ctor_set(x_50, 2, x_54); -x_55 = lean_st_ref_set(x_2, x_50, x_51); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = l_Lean_Expr_mvarId_x21(x_45); -x_58 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_56); -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_59); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_61); -return x_62; +x_39 = l_Lean_Expr_mvarId_x21(x_30); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = 0; +lean_ctor_set(x_35, 8, x_40); +lean_ctor_set_uint8(x_35, sizeof(void*)*9, x_41); +x_42 = lean_st_ref_set(x_3, x_35, x_36); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg___lambda__1(x_1, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_43); +return x_44; } else { -uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; 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; 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; -x_63 = lean_ctor_get_uint8(x_50, sizeof(void*)*8); -x_64 = lean_ctor_get(x_50, 0); -x_65 = lean_ctor_get(x_50, 1); -x_66 = lean_ctor_get(x_50, 2); -x_67 = lean_ctor_get(x_50, 3); -x_68 = lean_ctor_get_uint8(x_50, sizeof(void*)*8 + 1); -x_69 = lean_ctor_get(x_50, 4); -x_70 = lean_ctor_get(x_50, 5); -x_71 = lean_ctor_get(x_50, 6); -x_72 = lean_ctor_get(x_50, 7); -x_73 = lean_ctor_get_uint8(x_50, sizeof(void*)*8 + 2); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_50); -x_74 = l_List_tail_x21___rarg(x_66); -x_75 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_75, 0, x_64); -lean_ctor_set(x_75, 1, x_65); -lean_ctor_set(x_75, 2, x_74); -lean_ctor_set(x_75, 3, x_67); -lean_ctor_set(x_75, 4, x_69); -lean_ctor_set(x_75, 5, x_70); -lean_ctor_set(x_75, 6, x_71); -lean_ctor_set(x_75, 7, x_72); -lean_ctor_set_uint8(x_75, sizeof(void*)*8, x_63); -lean_ctor_set_uint8(x_75, sizeof(void*)*8 + 1, x_68); -lean_ctor_set_uint8(x_75, sizeof(void*)*8 + 2, x_73); -x_76 = lean_st_ref_set(x_2, x_75, x_51); -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -lean_dec(x_76); -x_78 = l_Lean_Expr_mvarId_x21(x_45); -x_79 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_78, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_77); -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec(x_79); -x_81 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_80); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec(x_81); -x_83 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_82); -return x_83; +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; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_45 = lean_ctor_get(x_35, 0); +x_46 = lean_ctor_get(x_35, 1); +x_47 = lean_ctor_get(x_35, 2); +x_48 = lean_ctor_get(x_35, 3); +x_49 = lean_ctor_get(x_35, 4); +x_50 = lean_ctor_get(x_35, 5); +x_51 = lean_ctor_get(x_35, 6); +x_52 = lean_ctor_get(x_35, 7); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_35); +x_53 = l_Lean_Expr_mvarId_x21(x_30); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = 0; +x_56 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_56, 0, x_45); +lean_ctor_set(x_56, 1, x_46); +lean_ctor_set(x_56, 2, x_47); +lean_ctor_set(x_56, 3, x_48); +lean_ctor_set(x_56, 4, x_49); +lean_ctor_set(x_56, 5, x_50); +lean_ctor_set(x_56, 6, x_51); +lean_ctor_set(x_56, 7, x_52); +lean_ctor_set(x_56, 8, x_54); +lean_ctor_set_uint8(x_56, sizeof(void*)*9, x_55); +x_57 = lean_st_ref_set(x_3, x_56, x_36); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg___lambda__1(x_1, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_58); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_12); +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_60 = !lean_is_exclusive(x_14); +if (x_60 == 0) +{ +return x_14; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_14, 0); +x_62 = lean_ctor_get(x_14, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_14); +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; } } } } -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processStrictImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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; uint8_t x_14; -x_10 = lean_st_ref_get(x_8, x_9); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_st_ref_get(x_2, x_11); +uint8_t x_11; +x_11 = lean_ctor_get_uint8(x_2, 1); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasArgsToProcess___rarg(x_3, x_4, x_5, x_6, 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_uint8(x_13, sizeof(void*)*8); +x_14 = lean_unbox(x_13); lean_dec(x_13); if (x_14 == 0) { lean_object* x_15; lean_object* x_16; +lean_dec(x_1); x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); lean_dec(x_12); -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); return x_16; } else @@ -16574,26 +18305,218 @@ lean_object* x_17; lean_object* x_18; x_17 = lean_ctor_get(x_12, 1); lean_inc(x_17); lean_dec(x_12); -x_18 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +x_18 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17); return x_18; } } +else +{ +lean_object* x_19; +x_19 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_19; } -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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, lean_object* x_11, lean_object* x_12) { +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processInstImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_13; lean_object* x_14; -x_13 = lean_unbox(x_2); +uint8_t x_11; +x_11 = lean_ctor_get_uint8(x_2, 1); +if (x_11 == 0) +{ +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; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(x_3, x_4, x_5, x_6, 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 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_13); +x_16 = 1; +x_17 = lean_box(0); +lean_inc(x_6); +x_18 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_15, x_16, x_17, x_6, x_7, x_8, x_9, x_14); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Expr_mvarId_x21(x_19); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextArgHole___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_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; uint8_t x_47; +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_dec(x_27); +x_33 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getArgExpectedType___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_32); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_34); +x_37 = 1; +x_38 = lean_box(0); +lean_inc(x_6); +x_39 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_36, x_37, x_38, x_6, x_7, x_8, x_9, x_35); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_st_ref_get(x_9, x_41); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_st_ref_take(x_3, x_43); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = !lean_is_exclusive(x_45); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_48 = lean_ctor_get(x_45, 2); +x_49 = l_List_tail_x21___rarg(x_48); +lean_ctor_set(x_45, 2, x_49); +x_50 = lean_st_ref_set(x_3, x_45, x_46); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = l_Lean_Expr_mvarId_x21(x_40); +x_53 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_52, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_51); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_54); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_56); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_58 = lean_ctor_get(x_45, 0); +x_59 = lean_ctor_get(x_45, 1); +x_60 = lean_ctor_get(x_45, 2); +x_61 = lean_ctor_get(x_45, 3); +x_62 = lean_ctor_get(x_45, 4); +x_63 = lean_ctor_get(x_45, 5); +x_64 = lean_ctor_get(x_45, 6); +x_65 = lean_ctor_get(x_45, 7); +x_66 = lean_ctor_get_uint8(x_45, sizeof(void*)*9); +x_67 = lean_ctor_get(x_45, 8); +lean_inc(x_67); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_45); +x_68 = l_List_tail_x21___rarg(x_60); +x_69 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_69, 0, x_58); +lean_ctor_set(x_69, 1, x_59); +lean_ctor_set(x_69, 2, x_68); +lean_ctor_set(x_69, 3, x_61); +lean_ctor_set(x_69, 4, x_62); +lean_ctor_set(x_69, 5, x_63); +lean_ctor_set(x_69, 6, x_64); +lean_ctor_set(x_69, 7, x_65); +lean_ctor_set(x_69, 8, x_67); +lean_ctor_set_uint8(x_69, sizeof(void*)*9, x_66); +x_70 = lean_st_ref_set(x_3, x_69, x_46); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_72 = l_Lean_Expr_mvarId_x21(x_40); +x_73 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addInstMVar(x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_71); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addNewArg(x_1, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_74); +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +lean_dec(x_75); +x_77 = l_Lean_Elab_Term_ElabAppArgs_main(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_76); +return x_77; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processImplicitArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_ctor_get_uint8(x_2, 1); +if (x_11 == 0) +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addImplicitArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +else +{ +lean_object* x_13; +x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___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, 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_2); lean_dec(x_2); -x_14 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___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; +x_15 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_addEtaArg___spec__1___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___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_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___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) { _start: { -lean_object* x_10; -x_10 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_11; +x_11 = l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -16601,7 +18524,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_10; +return x_11; } } LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -16613,17 +18536,18 @@ lean_dec(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_object* x_7; +x_7 = l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_6; +return x_7; } } LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_propagateExpectedTypeFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -16729,236 +18653,240 @@ lean_dec(x_1); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__1(lean_object* x_1, uint8_t x_2, uint8_t 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, 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; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_16 = l___private_Lean_Elab_App_0__Lean_Elab_Term_propagateExpectedTypeFor(x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_array_to_list(lean_box(0), x_2); -x_20 = lean_array_to_list(lean_box(0), x_3); -x_21 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; -x_22 = lean_alloc_ctor(0, 8, 3); -lean_ctor_set(x_22, 0, x_1); -lean_ctor_set(x_22, 1, x_5); -lean_ctor_set(x_22, 2, x_19); -lean_ctor_set(x_22, 3, x_20); -lean_ctor_set(x_22, 4, x_7); -lean_ctor_set(x_22, 5, x_21); -lean_ctor_set(x_22, 6, x_21); -lean_ctor_set(x_22, 7, x_21); -lean_ctor_set_uint8(x_22, sizeof(void*)*8, x_4); -lean_ctor_set_uint8(x_22, sizeof(void*)*8 + 1, x_6); -x_23 = lean_unbox(x_17); -lean_dec(x_17); -lean_ctor_set_uint8(x_22, sizeof(void*)*8 + 2, x_23); -x_24 = lean_st_ref_get(x_14, x_18); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_st_mk_ref(x_22, x_25); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -lean_inc(x_14); -lean_inc(x_27); -x_29 = l_Lean_Elab_Term_ElabAppArgs_main(x_27, x_9, x_10, x_11, x_12, x_13, x_14, x_28); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_st_ref_get(x_14, x_31); -lean_dec(x_14); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = lean_st_ref_get(x_27, x_33); -lean_dec(x_27); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_34, 0); -lean_dec(x_36); -lean_ctor_set(x_34, 0, x_30); -return x_34; -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_30); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -else -{ -uint8_t x_39; -lean_dec(x_27); -lean_dec(x_14); -x_39 = !lean_is_exclusive(x_29); -if (x_39 == 0) -{ -return x_29; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_29, 0); -x_41 = lean_ctor_get(x_29, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_29); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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) { -_start: -{ -uint8_t x_16; -lean_dec(x_8); -x_16 = l_Array_isEmpty___rarg(x_3); -if (x_16 == 0) -{ -lean_object* x_17; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_5); -x_17 = l_Lean_Elab_Term_tryPostponeIfMVar(x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_17 = l___private_Lean_Elab_App_0__Lean_Elab_Term_propagateExpectedTypeFor(x_1, x_10, x_11, x_12, x_13, x_14, x_15, x_16); 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 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_2, 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_19); +x_20 = lean_alloc_ctor(0, 0, 3); +lean_ctor_set_uint8(x_20, 0, x_2); +lean_ctor_set_uint8(x_20, 1, x_3); +lean_ctor_set_uint8(x_20, 2, x_4); +x_21 = lean_array_to_list(lean_box(0), x_5); +x_22 = lean_array_to_list(lean_box(0), x_6); +x_23 = lean_box(0); +x_24 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; +x_25 = lean_alloc_ctor(0, 9, 1); +lean_ctor_set(x_25, 0, x_1); +lean_ctor_set(x_25, 1, x_7); +lean_ctor_set(x_25, 2, x_21); +lean_ctor_set(x_25, 3, x_22); +lean_ctor_set(x_25, 4, x_8); +lean_ctor_set(x_25, 5, x_24); +lean_ctor_set(x_25, 6, x_24); +lean_ctor_set(x_25, 7, x_24); +lean_ctor_set(x_25, 8, x_23); +x_26 = lean_unbox(x_18); lean_dec(x_18); -return x_20; +lean_ctor_set_uint8(x_25, sizeof(void*)*9, x_26); +x_27 = lean_st_ref_get(x_15, x_19); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = lean_st_mk_ref(x_25, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_15); +lean_inc(x_30); +x_32 = l_Lean_Elab_Term_ElabAppArgs_main(x_20, x_30, x_10, x_11, x_12, x_13, x_14, x_15, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_st_ref_get(x_15, x_34); +lean_dec(x_15); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_st_ref_get(x_30, x_36); +lean_dec(x_30); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_33); +return x_37; } else { -uint8_t x_21; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_33); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_30); +lean_dec(x_15); +x_42 = !lean_is_exclusive(x_32); +if (x_42 == 0) +{ +return x_32; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_32, 0); +x_44 = lean_ctor_get(x_32, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_32); +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_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___lambda__2(lean_object* x_1, uint8_t x_2, uint8_t 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, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +uint8_t x_17; lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_17); -if (x_21 == 0) +x_17 = l_Array_isEmpty___rarg(x_6); +if (x_17 == 0) { -return x_17; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -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(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -uint8_t x_25; -x_25 = l_Array_isEmpty___rarg(x_2); -if (x_25 == 0) -{ -lean_object* x_26; +lean_object* x_18; +lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_5); -x_26 = l_Lean_Elab_Term_tryPostponeIfMVar(x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_26) == 0) +lean_inc(x_10); +lean_inc(x_7); +x_18 = l_Lean_Elab_Term_tryPostponeIfMVar(x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_27, x_9, x_10, x_11, x_12, x_13, x_14, x_28); -lean_dec(x_27); -return x_29; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19, x_10, x_11, x_12, x_13, x_14, x_15, x_20); +lean_dec(x_19); +return x_21; } else { -uint8_t x_30; +uint8_t x_22; +lean_dec(x_15); 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_3); -lean_dec(x_2); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) { -return x_26; +return x_18; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_26, 0); -x_32 = lean_ctor_get(x_26, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_18); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +uint8_t x_26; +x_26 = l_Array_isEmpty___rarg(x_5); +if (x_26 == 0) +{ +lean_object* x_27; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_10); +lean_inc(x_7); +x_27 = l_Lean_Elab_Term_tryPostponeIfMVar(x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +lean_dec(x_28); +return x_30; +} +else +{ +uint8_t x_31; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) +{ +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_26); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_box(0); -x_35 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_34, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_35; +lean_object* x_35; lean_object* x_36; +x_35 = lean_box(0); +x_36 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_35, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_36; } } } @@ -17119,212 +19047,430 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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) { +static lean_object* _init_l_Lean_Elab_Term_elabAppArgs___closed__17() { _start: { -lean_object* x_14; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Internal", 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_elabAppArgs___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_shouldPropagateExpectedTypeFor___closed__2; +x_2 = l_Lean_Elab_Term_elabAppArgs___closed__17; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_elabAppArgs___closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("coeM", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_elabAppArgs___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_elabAppArgs___closed__18; +x_2 = l_Lean_Elab_Term_elabAppArgs___closed__19; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; +x_63 = lean_st_ref_get(x_13, x_14); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_ctor_get(x_64, 0); +lean_inc(x_66); +lean_dec(x_64); +x_67 = l_Lean_Elab_Term_elabAppArgs___closed__20; +x_68 = l_Lean_Environment_contains(x_66, x_67); +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_inc(x_1); -x_14 = lean_infer_type(x_1, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_14) == 0) +x_69 = lean_infer_type(x_1, x_10, x_11, x_12, x_13, x_65); +if (x_68 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_16); -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 = l_Lean_Elab_Term_elabAppArgs___closed__2; -x_50 = lean_st_ref_get(x_12, x_19); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_51, 3); -lean_inc(x_52); -lean_dec(x_51); -x_53 = lean_ctor_get_uint8(x_52, sizeof(void*)*1); -lean_dec(x_52); -if (x_53 == 0) +if (lean_obj_tag(x_69) == 0) { -lean_object* x_54; uint8_t x_55; -x_54 = lean_ctor_get(x_50, 1); -lean_inc(x_54); -lean_dec(x_50); -x_55 = 0; -x_21 = x_55; -x_22 = x_54; -goto block_49; +lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = 0; +x_15 = x_72; +x_16 = x_70; +x_17 = x_71; +goto block_62; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_56 = lean_ctor_get(x_50, 1); -lean_inc(x_56); -lean_dec(x_50); -x_57 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_56); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_unbox(x_58); -lean_dec(x_58); -x_21 = x_60; -x_22 = x_59; -goto block_49; -} -block_49: -{ -if (x_21 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_box(0); -x_24 = l_Lean_Elab_Term_elabAppArgs___lambda__2(x_1, x_3, x_2, x_5, x_18, x_6, x_4, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -return x_24; -} -else -{ -lean_object* x_25; lean_object* x_26; -lean_inc(x_1); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_1); -lean_inc(x_18); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_18); -if (x_5 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_27 = l_Lean_Elab_Term_elabAppArgs___closed__11; -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_25); -x_29 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4; -x_30 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_26); -x_32 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_20, x_33, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Elab_Term_elabAppArgs___lambda__2(x_1, x_3, x_2, x_5, x_18, x_6, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_36); -return x_37; -} -else -{ -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; -x_38 = l_Lean_Elab_Term_elabAppArgs___closed__16; -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_25); -x_40 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4; -x_41 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_26); -x_43 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_20, x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -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_Lean_Elab_Term_elabAppArgs___lambda__2(x_1, x_3, x_2, x_5, x_18, x_6, x_4, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_47); -return x_48; -} -} -} -} -else -{ -uint8_t x_61; +uint8_t x_73; +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_14); -if (x_61 == 0) +x_73 = !lean_is_exclusive(x_69); +if (x_73 == 0) { -return x_14; +return x_69; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_14, 0); -x_63 = lean_ctor_get(x_14, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_14); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_69, 0); +x_75 = lean_ctor_get(x_69, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_69); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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: +else { -uint8_t x_16; uint8_t x_17; lean_object* x_18; -x_16 = lean_unbox(x_4); -lean_dec(x_4); -x_17 = lean_unbox(x_6); -lean_dec(x_6); -x_18 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_2, x_3, x_16, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (x_7 == 0) +{ +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_77 = lean_ctor_get(x_69, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_69, 1); +lean_inc(x_78); +lean_dec(x_69); +x_79 = 0; +x_15 = x_79; +x_16 = x_77; +x_17 = x_78; +goto block_62; +} +else +{ +uint8_t x_80; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); -return x_18; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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: -{ -uint8_t x_16; uint8_t x_17; lean_object* x_18; -x_16 = lean_unbox(x_4); lean_dec(x_4); -x_17 = lean_unbox(x_6); -lean_dec(x_6); -x_18 = l_Lean_Elab_Term_elabAppArgs___lambda__2(x_1, x_2, x_3, x_16, x_5, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -return x_18; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_80 = !lean_is_exclusive(x_69); +if (x_80 == 0) +{ +return x_69; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_69, 0); +x_82 = lean_ctor_get(x_69, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_69); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +} +else +{ +if (x_5 == 0) +{ +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_84 = lean_ctor_get(x_69, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_69, 1); +lean_inc(x_85); +lean_dec(x_69); +x_86 = 1; +x_15 = x_86; +x_16 = x_84; +x_17 = x_85; +goto block_62; +} +else +{ +uint8_t x_87; +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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_87 = !lean_is_exclusive(x_69); +if (x_87 == 0) +{ +return x_69; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_69, 0); +x_89 = lean_ctor_get(x_69, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_69); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +else +{ +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_69, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_69, 1); +lean_inc(x_92); +lean_dec(x_69); +x_93 = 0; +x_15 = x_93; +x_16 = x_91; +x_17 = x_92; +goto block_62; +} +else +{ +uint8_t x_94; +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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_94 = !lean_is_exclusive(x_69); +if (x_94 == 0) +{ +return x_69; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_69, 0); +x_96 = lean_ctor_get(x_69, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_69); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +} +} +block_62: +{ +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_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_18 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_16, x_8, x_9, x_10, x_11, x_12, x_13, 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_Elab_Term_elabAppArgs___closed__2; +x_51 = lean_st_ref_get(x_13, x_20); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_52, 3); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_ctor_get_uint8(x_53, sizeof(void*)*1); +lean_dec(x_53); +if (x_54 == 0) +{ +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_51, 1); +lean_inc(x_55); +lean_dec(x_51); +x_56 = 0; +x_22 = x_56; +x_23 = x_55; +goto block_50; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_57 = lean_ctor_get(x_51, 1); +lean_inc(x_57); +lean_dec(x_51); +x_58 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_57); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = lean_unbox(x_59); +lean_dec(x_59); +x_22 = x_61; +x_23 = x_60; +goto block_50; +} +block_50: +{ +if (x_22 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +x_25 = l_Lean_Elab_Term_elabAppArgs___lambda__2(x_1, x_6, x_5, x_15, x_3, x_2, x_19, x_4, x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_23); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_inc(x_1); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_1); +lean_inc(x_19); +x_27 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_27, 0, x_19); +if (x_5 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_28 = l_Lean_Elab_Term_elabAppArgs___closed__11; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +x_30 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4; +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 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_27); +x_33 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_21, x_34, x_8, x_9, x_10, x_11, x_12, x_13, x_23); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_Elab_Term_elabAppArgs___lambda__2(x_1, x_6, x_5, x_15, x_3, x_2, x_19, x_4, x_36, x_8, x_9, x_10, x_11, x_12, x_13, x_37); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_39 = l_Lean_Elab_Term_elabAppArgs___closed__16; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_26); +x_41 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_27); +x_44 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; +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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_21, x_45, x_8, x_9, x_10, x_11, x_12, x_13, x_23); +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_Elab_Term_elabAppArgs___lambda__2(x_1, x_6, x_5, x_15, x_3, x_2, x_19, x_4, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_48); +return x_49; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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) { _start: { -uint8_t x_14; uint8_t x_15; lean_object* x_16; -x_14 = lean_unbox(x_5); +uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_17 = lean_unbox(x_2); +lean_dec(x_2); +x_18 = lean_unbox(x_3); +lean_dec(x_3); +x_19 = lean_unbox(x_4); +lean_dec(x_4); +x_20 = l_Lean_Elab_Term_elabAppArgs___lambda__1(x_1, x_17, x_18, x_19, 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); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___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; uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_17 = lean_unbox(x_2); +lean_dec(x_2); +x_18 = lean_unbox(x_3); +lean_dec(x_3); +x_19 = lean_unbox(x_4); +lean_dec(x_4); +x_20 = l_Lean_Elab_Term_elabAppArgs___lambda__2(x_1, x_17, x_18, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAppArgs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; +x_15 = lean_unbox(x_5); lean_dec(x_5); -x_15 = lean_unbox(x_6); +x_16 = lean_unbox(x_6); lean_dec(x_6); -x_16 = l_Lean_Elab_Term_elabAppArgs(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_16; +x_17 = lean_unbox(x_7); +lean_dec(x_7); +x_18 = l_Lean_Elab_Term_elabAppArgs(x_1, x_2, x_3, x_4, x_15, x_16, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_18; } } LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___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) { @@ -20944,7 +23090,7 @@ lean_inc(x_3); x_14 = l_Lean_Elab_Term_mkConst(x_11, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); @@ -20963,29 +23109,30 @@ x_22 = lean_array_push(x_21, x_20); x_23 = lean_box(0); x_24 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; x_25 = 0; +x_26 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_26 = l_Lean_Elab_Term_elabAppArgs(x_15, x_22, x_24, x_23, x_25, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_16); -if (lean_obj_tag(x_26) == 0) +x_27 = l_Lean_Elab_Term_elabAppArgs(x_15, x_22, x_24, x_23, x_25, x_25, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); x_1 = x_12; -x_2 = x_27; -x_9 = x_28; +x_2 = x_28; +x_9 = x_29; goto _start; } else { -uint8_t x_30; +uint8_t x_31; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -20993,29 +23140,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) { -return x_26; +return x_27; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_26, 0); -x_32 = lean_ctor_get(x_26, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_26); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_dec(x_27); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -uint8_t x_34; +uint8_t x_35; lean_dec(x_12); lean_dec(x_8); lean_dec(x_7); @@ -21024,23 +23171,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_14); -if (x_34 == 0) +x_35 = !lean_is_exclusive(x_14); +if (x_35 == 0) { return x_14; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_14, 0); -x_36 = lean_ctor_get(x_14, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_14, 0); +x_37 = lean_ctor_get(x_14, 1); +lean_inc(x_37); lean_inc(x_36); -lean_inc(x_35); lean_dec(x_14); -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; +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; } } } @@ -22947,7 +25094,7 @@ lean_dec(x_27); x_30 = l_List_isEmpty___rarg(x_3); if (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_alloc_ctor(1, 1, 0); lean_ctor_set(x_31, 0, x_4); x_32 = lean_box(0); @@ -22959,27 +25106,28 @@ lean_ctor_set(x_34, 2, x_31); x_35 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__3; x_36 = lean_array_push(x_35, x_34); x_37 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; +x_38 = 1; lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_38 = l_Lean_Elab_Term_elabAppArgs(x_28, x_36, x_37, x_24, x_26, x_26, x_11, x_12, x_13, x_14, x_15, x_16, x_29); -if (lean_obj_tag(x_38) == 0) +x_39 = l_Lean_Elab_Term_elabAppArgs(x_28, x_36, x_37, x_24, x_26, x_26, x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_29); +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___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_5, x_6, x_7, x_8, x_9, x_39, x_3, x_11, x_12, x_13, x_14, x_15, x_16, x_40); -return x_41; +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_5, x_6, x_7, x_8, x_9, x_40, x_3, x_11, x_12, x_13, x_14, x_15, x_16, x_41); +return x_42; } else { -uint8_t x_42; +uint8_t x_43; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -22990,57 +25138,58 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -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; } } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_dec(x_3); -x_46 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_46, 0, x_4); -x_47 = lean_box(0); -x_48 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; -x_49 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -lean_ctor_set(x_49, 2, x_46); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_4); +x_48 = lean_box(0); +x_49 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; +x_50 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_50, 2, x_47); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -x_50 = l_Lean_Elab_Term_addNamedArg(x_5, x_49, x_13, x_14, x_15, x_16, x_29); -if (lean_obj_tag(x_50) == 0) +x_51 = l_Lean_Elab_Term_addNamedArg(x_5, x_50, x_13, x_14, x_15, x_16, x_29); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); +lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_dec(x_50); -x_53 = l_Lean_Elab_Term_elabAppArgs(x_28, x_51, x_6, x_7, x_8, x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_52); -return x_53; +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = 1; +x_55 = l_Lean_Elab_Term_elabAppArgs(x_28, x_52, x_6, x_7, x_8, x_9, x_54, x_11, x_12, x_13, x_14, x_15, x_16, x_53); +return x_55; } else { -uint8_t x_54; +uint8_t x_56; lean_dec(x_28); lean_dec(x_16); lean_dec(x_15); @@ -23050,30 +25199,30 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_7); lean_dec(x_6); -x_54 = !lean_is_exclusive(x_50); -if (x_54 == 0) +x_56 = !lean_is_exclusive(x_51); +if (x_56 == 0) { -return x_50; +return x_51; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_50, 0); -x_56 = lean_ctor_get(x_50, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_50); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_51, 0); +x_58 = lean_ctor_get(x_51, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_51); +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_58; +uint8_t x_60; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -23085,29 +25234,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_58 = !lean_is_exclusive(x_27); -if (x_58 == 0) +x_60 = !lean_is_exclusive(x_27); +if (x_60 == 0) { return x_27; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_27, 0); -x_60 = lean_ctor_get(x_27, 1); -lean_inc(x_60); -lean_inc(x_59); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_27, 0); +x_62 = lean_ctor_get(x_27, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_27); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } else { -uint8_t x_62; +uint8_t x_64; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -23120,23 +25269,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_62 = !lean_is_exclusive(x_20); -if (x_62 == 0) +x_64 = !lean_is_exclusive(x_20); +if (x_64 == 0) { return x_20; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_20, 0); -x_64 = lean_ctor_get(x_20, 1); -lean_inc(x_64); -lean_inc(x_63); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_20, 0); +x_66 = lean_ctor_get(x_20, 1); +lean_inc(x_66); +lean_inc(x_65); lean_dec(x_20); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } } @@ -23184,7 +25333,7 @@ lean_dec(x_26); x_29 = l_List_isEmpty___rarg(x_3); if (x_29 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +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_dec(x_9); lean_dec(x_1); x_30 = lean_alloc_ctor(1, 1, 0); @@ -23192,27 +25341,28 @@ lean_ctor_set(x_30, 0, x_10); x_31 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__3; x_32 = lean_array_push(x_31, x_30); x_33 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; +x_34 = 1; lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_34 = l_Lean_Elab_Term_elabAppArgs(x_27, x_33, x_32, x_23, x_25, x_25, x_11, x_12, x_13, x_14, x_15, x_16, x_28); -if (lean_obj_tag(x_34) == 0) +x_35 = l_Lean_Elab_Term_elabAppArgs(x_27, x_33, x_32, x_23, x_25, x_25, x_34, x_11, x_12, x_13, x_14, x_15, x_16, x_28); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -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; lean_object* x_38; +x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -lean_dec(x_34); -x_37 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_4, x_5, x_6, x_7, x_8, x_35, x_3, x_11, x_12, x_13, x_14, x_15, x_16, x_36); -return x_37; +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_4, x_5, x_6, x_7, x_8, x_36, x_3, x_11, x_12, x_13, x_14, x_15, x_16, x_37); +return x_38; } else { -uint8_t x_38; +uint8_t x_39; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -23223,70 +25373,71 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) { -return x_34; +return x_35; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_35, 0); +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_34); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_dec(x_35); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -lean_object* x_42; +lean_object* x_43; lean_dec(x_3); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_27); -x_42 = lean_infer_type(x_27, x_13, x_14, x_15, x_16, x_28); -if (lean_obj_tag(x_42) == 0) +x_43 = lean_infer_type(x_27, x_13, x_14, x_15, x_16, x_28); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_45 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_9, x_1, x_10, x_5, x_4, x_43, x_11, x_12, x_13, x_14, x_15, x_16, x_44); -if (lean_obj_tag(x_45) == 0) +x_46 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_9, x_1, x_10, x_5, x_4, x_44, x_11, x_12, x_13, x_14, x_15, x_16, x_45); +if (lean_obj_tag(x_46) == 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_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; +x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_ctor_get(x_46, 0); +x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); lean_dec(x_46); -x_50 = l_Lean_Elab_Term_elabAppArgs(x_27, x_49, x_48, x_6, x_7, x_8, x_11, x_12, x_13, x_14, x_15, x_16, x_47); -return x_50; +x_49 = lean_ctor_get(x_47, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_dec(x_47); +x_51 = 1; +x_52 = l_Lean_Elab_Term_elabAppArgs(x_27, x_50, x_49, x_6, x_7, x_8, x_51, x_11, x_12, x_13, x_14, x_15, x_16, x_48); +return x_52; } else { -uint8_t x_51; +uint8_t x_53; lean_dec(x_27); lean_dec(x_16); lean_dec(x_15); @@ -23295,29 +25446,29 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_6); -x_51 = !lean_is_exclusive(x_45); -if (x_51 == 0) +x_53 = !lean_is_exclusive(x_46); +if (x_53 == 0) { -return x_45; +return x_46; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_45, 0); -x_53 = lean_ctor_get(x_45, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_45); -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_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_46, 0); +x_55 = lean_ctor_get(x_46, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_46); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -uint8_t x_55; +uint8_t x_57; lean_dec(x_27); lean_dec(x_16); lean_dec(x_15); @@ -23331,30 +25482,30 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_42); -if (x_55 == 0) +x_57 = !lean_is_exclusive(x_43); +if (x_57 == 0) { -return x_42; +return x_43; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_42, 0); -x_57 = lean_ctor_get(x_42, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_42); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_43, 0); +x_59 = lean_ctor_get(x_43, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_43); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } } else { -uint8_t x_59; +uint8_t x_61; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -23368,29 +25519,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_26); -if (x_59 == 0) +x_61 = !lean_is_exclusive(x_26); +if (x_61 == 0) { return x_26; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_26, 0); -x_61 = lean_ctor_get(x_26, 1); -lean_inc(x_61); -lean_inc(x_60); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_26, 0); +x_63 = lean_ctor_get(x_26, 1); +lean_inc(x_63); +lean_inc(x_62); lean_dec(x_26); -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_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; } } } else { -uint8_t x_63; +uint8_t x_65; lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -23405,23 +25556,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_63 = !lean_is_exclusive(x_19); -if (x_63 == 0) +x_65 = !lean_is_exclusive(x_19); +if (x_65 == 0) { return x_19; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_19, 0); -x_65 = lean_ctor_get(x_19, 1); -lean_inc(x_65); -lean_inc(x_64); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_19, 0); +x_67 = lean_ctor_get(x_19, 1); +lean_inc(x_67); +lean_inc(x_66); lean_dec(x_19); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; } } } @@ -23456,7 +25607,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__1; x_2 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__2; -x_3 = lean_unsigned_to_nat(769u); +x_3 = lean_unsigned_to_nat(884u); x_4 = lean_unsigned_to_nat(8u); x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -23535,36 +25686,36 @@ return x_3; LEAN_EXPORT lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___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, 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, lean_object* x_16) { _start: { -uint8_t x_17; uint8_t x_217; +uint8_t x_17; uint8_t x_221; lean_dec(x_9); -x_217 = l_Array_isEmpty___rarg(x_4); -if (x_217 == 0) +x_221 = l_Array_isEmpty___rarg(x_4); +if (x_221 == 0) { -uint8_t x_218; -x_218 = 1; -x_17 = x_218; -goto block_216; +uint8_t x_222; +x_222 = 1; +x_17 = x_222; +goto block_220; } else { -uint8_t x_219; -x_219 = l_Array_isEmpty___rarg(x_5); -if (x_219 == 0) +uint8_t x_223; +x_223 = l_Array_isEmpty___rarg(x_5); +if (x_223 == 0) { -uint8_t x_220; -x_220 = 1; -x_17 = x_220; -goto block_216; +uint8_t x_224; +x_224 = 1; +x_17 = x_224; +goto block_220; } else { -uint8_t x_221; -x_221 = 0; -x_17 = x_221; -goto block_216; +uint8_t x_225; +x_225 = 0; +x_17 = x_225; +goto block_220; } } -block_216: +block_220: { lean_object* x_18; lean_inc(x_15); @@ -23999,7 +26150,7 @@ lean_dec(x_110); x_113 = l_List_isEmpty___rarg(x_3); if (x_113 == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_dec(x_104); lean_dec(x_103); x_114 = lean_alloc_ctor(1, 1, 0); @@ -24007,27 +26158,28 @@ lean_ctor_set(x_114, 0, x_102); x_115 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__3; x_116 = lean_array_push(x_115, x_114); x_117 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; +x_118 = 1; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_118 = l_Lean_Elab_Term_elabAppArgs(x_111, x_117, x_116, x_107, x_109, x_109, x_10, x_11, x_12, x_13, x_14, x_15, x_112); -if (lean_obj_tag(x_118) == 0) +x_119 = l_Lean_Elab_Term_elabAppArgs(x_111, x_117, x_116, x_107, x_109, x_109, x_118, x_10, x_11, x_12, x_13, x_14, x_15, x_112); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_119, 0); lean_inc(x_120); -lean_dec(x_118); -x_121 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_4, x_5, x_6, x_7, x_8, x_119, x_3, x_10, x_11, x_12, x_13, x_14, x_15, x_120); -return x_121; +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_122 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_4, x_5, x_6, x_7, x_8, x_120, x_3, x_10, x_11, x_12, x_13, x_14, x_15, x_121); +return x_122; } else { -uint8_t x_122; +uint8_t x_123; lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -24038,70 +26190,71 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_122 = !lean_is_exclusive(x_118); -if (x_122 == 0) +x_123 = !lean_is_exclusive(x_119); +if (x_123 == 0) { -return x_118; +return x_119; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_118, 0); -x_124 = lean_ctor_get(x_118, 1); +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_119, 0); +x_125 = lean_ctor_get(x_119, 1); +lean_inc(x_125); lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_118); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -return x_125; +lean_dec(x_119); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; } } } else { -lean_object* x_126; +lean_object* x_127; lean_dec(x_3); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_111); -x_126 = lean_infer_type(x_111, x_12, x_13, x_14, x_15, x_112); -if (lean_obj_tag(x_126) == 0) +x_127 = lean_infer_type(x_111, x_12, x_13, x_14, x_15, x_112); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -lean_dec(x_126); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_129 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_103, x_104, x_102, x_5, x_4, x_127, x_10, x_11, x_12, x_13, x_14, x_15, x_128); -if (lean_obj_tag(x_129) == 0) +x_130 = l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg(x_103, x_104, x_102, x_5, x_4, x_128, x_10, x_11, x_12, x_13, x_14, x_15, x_129); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; +x_131 = lean_ctor_get(x_130, 0); lean_inc(x_131); -lean_dec(x_129); -x_132 = lean_ctor_get(x_130, 0); +x_132 = lean_ctor_get(x_130, 1); lean_inc(x_132); -x_133 = lean_ctor_get(x_130, 1); -lean_inc(x_133); lean_dec(x_130); -x_134 = l_Lean_Elab_Term_elabAppArgs(x_111, x_133, x_132, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_131); -return x_134; +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_dec(x_131); +x_135 = 1; +x_136 = l_Lean_Elab_Term_elabAppArgs(x_111, x_134, x_133, x_6, x_7, x_8, x_135, x_10, x_11, x_12, x_13, x_14, x_15, x_132); +return x_136; } else { -uint8_t x_135; +uint8_t x_137; lean_dec(x_111); lean_dec(x_15); lean_dec(x_14); @@ -24110,29 +26263,29 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_6); -x_135 = !lean_is_exclusive(x_129); -if (x_135 == 0) +x_137 = !lean_is_exclusive(x_130); +if (x_137 == 0) { -return x_129; +return x_130; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_129, 0); -x_137 = lean_ctor_get(x_129, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_129); -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; +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_130, 0); +x_139 = lean_ctor_get(x_130, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_130); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; } } } else { -uint8_t x_139; +uint8_t x_141; lean_dec(x_111); lean_dec(x_104); lean_dec(x_103); @@ -24146,30 +26299,30 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_139 = !lean_is_exclusive(x_126); -if (x_139 == 0) +x_141 = !lean_is_exclusive(x_127); +if (x_141 == 0) { -return x_126; +return x_127; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_126, 0); -x_141 = lean_ctor_get(x_126, 1); -lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_126); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_127, 0); +x_143 = lean_ctor_get(x_127, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_127); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; } } } } else { -uint8_t x_143; +uint8_t x_145; lean_dec(x_104); lean_dec(x_103); lean_dec(x_102); @@ -24183,119 +26336,120 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_143 = !lean_is_exclusive(x_110); -if (x_143 == 0) +x_145 = !lean_is_exclusive(x_110); +if (x_145 == 0) { return x_110; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_110, 0); -x_145 = lean_ctor_get(x_110, 1); -lean_inc(x_145); -lean_inc(x_144); +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_110, 0); +x_147 = lean_ctor_get(x_110, 1); +lean_inc(x_147); +lean_inc(x_146); lean_dec(x_110); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +return x_148; } } } default: { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_147 = lean_ctor_get(x_18, 1); -lean_inc(x_147); -lean_dec(x_18); -x_148 = lean_ctor_get(x_19, 0); -lean_inc(x_148); -lean_dec(x_19); -x_149 = lean_ctor_get(x_20, 0); +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_149 = lean_ctor_get(x_18, 1); lean_inc(x_149); -x_150 = lean_ctor_get(x_20, 1); +lean_dec(x_18); +x_150 = lean_ctor_get(x_19, 0); lean_inc(x_150); +lean_dec(x_19); +x_151 = lean_ctor_get(x_20, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_20, 1); +lean_inc(x_152); lean_dec(x_20); -x_151 = lean_box(0); +x_153 = lean_box(0); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_10); -x_152 = l_Lean_Elab_Term_mkConst(x_149, x_151, x_10, x_11, x_12, x_13, x_14, x_15, x_147); -if (lean_obj_tag(x_152) == 0) +x_154 = l_Lean_Elab_Term_mkConst(x_151, x_153, x_10, x_11, x_12, x_13, x_14, x_15, x_149); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -x_155 = l_Lean_Elab_Term_LVal_getRef(x_2); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; lean_object* x_161; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_157 = l_Lean_Elab_Term_LVal_getRef(x_2); lean_dec(x_2); -x_156 = lean_box(0); -x_157 = lean_box(0); -x_158 = 0; +x_158 = lean_box(0); +x_159 = lean_box(0); +x_160 = 0; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_159 = l_Lean_Elab_Term_addTermInfo(x_155, x_153, x_156, x_156, x_157, x_158, x_10, x_11, x_12, x_13, x_14, x_15, x_154); -if (lean_obj_tag(x_159) == 0) +x_161 = l_Lean_Elab_Term_addTermInfo(x_157, x_155, x_158, x_158, x_159, x_160, x_10, x_11, x_12, x_13, x_14, x_15, x_156); +if (lean_obj_tag(x_161) == 0) { -lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_159, 1); -lean_inc(x_161); -lean_dec(x_159); -x_162 = l_List_isEmpty___rarg(x_3); -if (x_162 == 0) +lean_object* x_162; lean_object* x_163; uint8_t x_164; +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); +x_164 = l_List_isEmpty___rarg(x_3); +if (x_164 == 0) { -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; -x_163 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_163, 0, x_148); -x_164 = lean_box(0); -x_165 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; -x_166 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -lean_ctor_set(x_166, 2, x_163); -x_167 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_167, 0, x_150); -x_168 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__12; -x_169 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_169, 0, x_164); -lean_ctor_set(x_169, 1, x_168); -lean_ctor_set(x_169, 2, x_167); -x_170 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__3; -x_171 = lean_array_push(x_170, x_166); -x_172 = lean_array_push(x_171, x_169); -x_173 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; +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; uint8_t x_176; lean_object* x_177; +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_150); +x_166 = lean_box(0); +x_167 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; +x_168 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +lean_ctor_set(x_168, 2, x_165); +x_169 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_169, 0, x_152); +x_170 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__12; +x_171 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_171, 0, x_166); +lean_ctor_set(x_171, 1, x_170); +lean_ctor_set(x_171, 2, x_169); +x_172 = l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__3; +x_173 = lean_array_push(x_172, x_168); +x_174 = lean_array_push(x_173, x_171); +x_175 = l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1; +x_176 = 1; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_174 = l_Lean_Elab_Term_elabAppArgs(x_160, x_172, x_173, x_156, x_158, x_158, x_10, x_11, x_12, x_13, x_14, x_15, x_161); -if (lean_obj_tag(x_174) == 0) +x_177 = l_Lean_Elab_Term_elabAppArgs(x_162, x_174, x_175, x_158, x_160, x_160, x_176, x_10, x_11, x_12, x_13, x_14, x_15, x_163); +if (lean_obj_tag(x_177) == 0) { -lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -lean_dec(x_174); -x_177 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_4, x_5, x_6, x_7, x_8, x_175, x_3, x_10, x_11, x_12, x_13, x_14, x_15, x_176); -return x_177; +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +x_180 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(x_4, x_5, x_6, x_7, x_8, x_178, x_3, x_10, x_11, x_12, x_13, x_14, x_15, x_179); +return x_180; } else { -uint8_t x_178; +uint8_t x_181; lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -24306,111 +26460,79 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_178 = !lean_is_exclusive(x_174); -if (x_178 == 0) +x_181 = !lean_is_exclusive(x_177); +if (x_181 == 0) { -return x_174; +return x_177; } else { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_174, 0); -x_180 = lean_ctor_get(x_174, 1); -lean_inc(x_180); -lean_inc(x_179); -lean_dec(x_174); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -return x_181; +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_177, 0); +x_183 = lean_ctor_get(x_177, 1); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_177); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +return x_184; } } } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_dec(x_3); -x_182 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_182, 0, x_148); -x_183 = lean_box(0); -x_184 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; -x_185 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -lean_ctor_set(x_185, 2, x_182); +x_185 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_185, 0, x_150); +x_186 = lean_box(0); +x_187 = l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_mkBaseProjections___spec__1___closed__2; +x_188 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +lean_ctor_set(x_188, 2, x_185); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_186 = l_Lean_Elab_Term_addNamedArg(x_4, x_185, x_12, x_13, x_14, x_15, x_161); -if (lean_obj_tag(x_186) == 0) +x_189 = l_Lean_Elab_Term_addNamedArg(x_4, x_188, x_12, x_13, x_14, x_15, x_163); +if (lean_obj_tag(x_189) == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -lean_dec(x_186); -x_189 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_189, 0, x_150); -x_190 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__12; -x_191 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_191, 0, x_183); -lean_ctor_set(x_191, 1, x_190); -lean_ctor_set(x_191, 2, 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; +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +lean_dec(x_189); +x_192 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_192, 0, x_152); +x_193 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__12; +x_194 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_194, 0, x_186); +lean_ctor_set(x_194, 1, x_193); +lean_ctor_set(x_194, 2, x_192); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_192 = l_Lean_Elab_Term_addNamedArg(x_187, x_191, x_12, x_13, x_14, x_15, x_188); -if (lean_obj_tag(x_192) == 0) +x_195 = l_Lean_Elab_Term_addNamedArg(x_190, x_194, x_12, x_13, x_14, x_15, x_191); +if (lean_obj_tag(x_195) == 0) { -lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_192, 1); -lean_inc(x_194); -lean_dec(x_192); -x_195 = l_Lean_Elab_Term_elabAppArgs(x_160, x_193, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_15, x_194); -return x_195; -} -else -{ -uint8_t x_196; -lean_dec(x_160); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -x_196 = !lean_is_exclusive(x_192); -if (x_196 == 0) -{ -return x_192; -} -else -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_192, 0); -x_198 = lean_ctor_get(x_192, 1); -lean_inc(x_198); +lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); lean_inc(x_197); -lean_dec(x_192); -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_197); -lean_ctor_set(x_199, 1, x_198); +lean_dec(x_195); +x_198 = 1; +x_199 = l_Lean_Elab_Term_elabAppArgs(x_162, x_196, x_5, x_6, x_7, x_8, x_198, x_10, x_11, x_12, x_13, x_14, x_15, x_197); return x_199; } -} -} else { uint8_t x_200; -lean_dec(x_160); -lean_dec(x_150); +lean_dec(x_162); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -24419,19 +26541,19 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); -x_200 = !lean_is_exclusive(x_186); +x_200 = !lean_is_exclusive(x_195); if (x_200 == 0) { -return x_186; +return x_195; } else { lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_186, 0); -x_202 = lean_ctor_get(x_186, 1); +x_201 = lean_ctor_get(x_195, 0); +x_202 = lean_ctor_get(x_195, 1); lean_inc(x_202); lean_inc(x_201); -lean_dec(x_186); +lean_dec(x_195); x_203 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_203, 0, x_201); lean_ctor_set(x_203, 1, x_202); @@ -24439,12 +26561,11 @@ return x_203; } } } -} else { uint8_t x_204; -lean_dec(x_150); -lean_dec(x_148); +lean_dec(x_162); +lean_dec(x_152); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -24453,21 +26574,19 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_204 = !lean_is_exclusive(x_159); +x_204 = !lean_is_exclusive(x_189); if (x_204 == 0) { -return x_159; +return x_189; } else { lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_159, 0); -x_206 = lean_ctor_get(x_159, 1); +x_205 = lean_ctor_get(x_189, 0); +x_206 = lean_ctor_get(x_189, 1); lean_inc(x_206); lean_inc(x_205); -lean_dec(x_159); +lean_dec(x_189); x_207 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_207, 0, x_205); lean_ctor_set(x_207, 1, x_206); @@ -24475,11 +26594,12 @@ return x_207; } } } +} else { uint8_t x_208; +lean_dec(x_152); lean_dec(x_150); -lean_dec(x_148); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -24490,20 +26610,19 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -x_208 = !lean_is_exclusive(x_152); +x_208 = !lean_is_exclusive(x_161); if (x_208 == 0) { -return x_152; +return x_161; } else { lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_152, 0); -x_210 = lean_ctor_get(x_152, 1); +x_209 = lean_ctor_get(x_161, 0); +x_210 = lean_ctor_get(x_161, 1); lean_inc(x_210); lean_inc(x_209); -lean_dec(x_152); +lean_dec(x_161); x_211 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_211, 0, x_209); lean_ctor_set(x_211, 1, x_210); @@ -24511,11 +26630,11 @@ return x_211; } } } -} -} else { uint8_t x_212; +lean_dec(x_152); +lean_dec(x_150); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -24527,23 +26646,59 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_212 = !lean_is_exclusive(x_18); +x_212 = !lean_is_exclusive(x_154); if (x_212 == 0) { +return x_154; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_154, 0); +x_214 = lean_ctor_get(x_154, 1); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_154); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; +} +} +} +} +} +else +{ +uint8_t x_216; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_216 = !lean_is_exclusive(x_18); +if (x_216 == 0) +{ return x_18; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_18, 0); -x_214 = lean_ctor_get(x_18, 1); -lean_inc(x_214); -lean_inc(x_213); +lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_217 = lean_ctor_get(x_18, 0); +x_218 = lean_ctor_get(x_18, 1); +lean_inc(x_218); +lean_inc(x_217); lean_dec(x_18); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +return x_219; } } } @@ -24554,49 +26709,50 @@ _start: { if (lean_obj_tag(x_7) == 0) { -lean_object* x_15; -x_15 = l_Lean_Elab_Term_elabAppArgs(x_6, x_1, x_2, x_3, x_4, x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -return x_15; +uint8_t x_15; lean_object* x_16; +x_15 = 1; +x_16 = l_Lean_Elab_Term_elabAppArgs(x_6, x_1, x_2, x_3, x_4, x_5, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_16; } else { -lean_object* x_16; -x_16 = lean_ctor_get(x_7, 0); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 1) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_17 = lean_ctor_get(x_7, 1); +lean_object* x_17; +x_17 = lean_ctor_get(x_7, 0); lean_inc(x_17); -lean_dec(x_7); -x_18 = lean_ctor_get(x_16, 0); +if (lean_obj_tag(x_17) == 1) +{ +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_7, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 3); +lean_dec(x_7); +x_19 = lean_ctor_get(x_17, 0); lean_inc(x_19); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_18); +x_20 = lean_ctor_get(x_17, 3); +lean_inc(x_20); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_19); lean_inc(x_11); lean_inc(x_8); lean_inc(x_3); lean_inc(x_6); -x_21 = l_Lean_Elab_Term_addDotCompletionInfo(x_19, x_6, x_3, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +x_22 = l_Lean_Elab_Term_addDotCompletionInfo(x_20, x_6, x_3, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3(x_6, x_16, x_17, x_1, x_2, x_3, x_4, x_5, x_22, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -return x_24; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3(x_6, x_17, x_18, x_1, x_2, x_3, x_4, x_5, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_24); +return x_25; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_7, 1); -lean_inc(x_25); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_7, 1); +lean_inc(x_26); lean_dec(x_7); -x_26 = lean_box(0); -x_27 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3(x_6, x_16, x_25, x_1, x_2, x_3, x_4, x_5, x_26, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -return x_27; +x_27 = lean_box(0); +x_28 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3(x_6, x_17, x_26, x_1, x_2, x_3, x_4, x_5, x_27, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_28; } } } @@ -32976,7 +35132,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2___closed__1; -x_3 = lean_unsigned_to_nat(976u); +x_3 = lean_unsigned_to_nat(1091u); x_4 = lean_unsigned_to_nat(57u); x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -33750,7 +35906,7 @@ x_13 = l___private_Lean_Elab_App_0__Lean_Elab_Term_mkProjAndCheck___closed__8; x_14 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4; +x_15 = l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -33812,7 +35968,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__4___closed__1; -x_3 = lean_unsigned_to_nat(991u); +x_3 = lean_unsigned_to_nat(1106u); x_4 = lean_unsigned_to_nat(35u); x_5 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop___lambda__3___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -34769,7 +36925,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabApp_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1005u); +x_1 = lean_unsigned_to_nat(1120u); x_2 = lean_unsigned_to_nat(23u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -34781,7 +36937,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabApp_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1008u); +x_1 = lean_unsigned_to_nat(1123u); x_2 = lean_unsigned_to_nat(90u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -34809,7 +36965,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabApp_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1005u); +x_1 = lean_unsigned_to_nat(1120u); x_2 = lean_unsigned_to_nat(27u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -34821,7 +36977,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabApp_declRange___clos _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1005u); +x_1 = lean_unsigned_to_nat(1120u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -34978,7 +37134,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1013u); +x_1 = lean_unsigned_to_nat(1128u); x_2 = lean_unsigned_to_nat(25u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -34990,7 +37146,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1013u); +x_1 = lean_unsigned_to_nat(1128u); x_2 = lean_unsigned_to_nat(61u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35018,7 +37174,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1013u); +x_1 = lean_unsigned_to_nat(1128u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35030,7 +37186,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabIdent_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1013u); +x_1 = lean_unsigned_to_nat(1128u); x_2 = lean_unsigned_to_nat(38u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35154,7 +37310,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1015u); +x_1 = lean_unsigned_to_nat(1130u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35166,7 +37322,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1015u); +x_1 = lean_unsigned_to_nat(1130u); x_2 = lean_unsigned_to_nat(75u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35194,7 +37350,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1015u); +x_1 = lean_unsigned_to_nat(1130u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35206,7 +37362,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNamedPattern_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1015u); +x_1 = lean_unsigned_to_nat(1130u); x_2 = lean_unsigned_to_nat(52u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35302,7 +37458,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1016u); +x_1 = lean_unsigned_to_nat(1131u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35314,7 +37470,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1016u); +x_1 = lean_unsigned_to_nat(1131u); x_2 = lean_unsigned_to_nat(67u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35342,7 +37498,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1016u); +x_1 = lean_unsigned_to_nat(1131u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35354,7 +37510,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabDotIdent_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1016u); +x_1 = lean_unsigned_to_nat(1131u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35468,7 +37624,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1018u); +x_1 = lean_unsigned_to_nat(1133u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35480,7 +37636,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1018u); +x_1 = lean_unsigned_to_nat(1133u); x_2 = lean_unsigned_to_nat(75u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35508,7 +37664,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1018u); +x_1 = lean_unsigned_to_nat(1133u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35520,7 +37676,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicitUniv_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1018u); +x_1 = lean_unsigned_to_nat(1133u); x_2 = lean_unsigned_to_nat(52u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35803,7 +37959,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1020u); +x_1 = lean_unsigned_to_nat(1135u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35815,7 +37971,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1025u); +x_1 = lean_unsigned_to_nat(1140u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35843,7 +37999,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1020u); +x_1 = lean_unsigned_to_nat(1135u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -35855,7 +38011,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPipeProj_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1020u); +x_1 = lean_unsigned_to_nat(1135u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36108,7 +38264,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1030u); +x_1 = lean_unsigned_to_nat(1145u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36120,7 +38276,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1036u); +x_1 = lean_unsigned_to_nat(1151u); x_2 = lean_unsigned_to_nat(50u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36148,7 +38304,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1030u); +x_1 = lean_unsigned_to_nat(1145u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36160,7 +38316,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabExplicit_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1030u); +x_1 = lean_unsigned_to_nat(1145u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36256,7 +38412,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1038u); +x_1 = lean_unsigned_to_nat(1153u); x_2 = lean_unsigned_to_nat(26u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36268,7 +38424,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1038u); +x_1 = lean_unsigned_to_nat(1153u); x_2 = lean_unsigned_to_nat(63u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36296,7 +38452,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1038u); +x_1 = lean_unsigned_to_nat(1153u); x_2 = lean_unsigned_to_nat(30u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36308,7 +38464,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabChoice_declRange___c _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1038u); +x_1 = lean_unsigned_to_nat(1153u); x_2 = lean_unsigned_to_nat(40u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36404,7 +38560,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabProj_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1039u); +x_1 = lean_unsigned_to_nat(1154u); x_2 = lean_unsigned_to_nat(24u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36416,7 +38572,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabProj_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1039u); +x_1 = lean_unsigned_to_nat(1154u); x_2 = lean_unsigned_to_nat(59u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36444,7 +38600,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabProj_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1039u); +x_1 = lean_unsigned_to_nat(1154u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36456,7 +38612,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabProj_declRange___clo _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1039u); +x_1 = lean_unsigned_to_nat(1154u); x_2 = lean_unsigned_to_nat(36u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36552,7 +38708,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1040u); +x_1 = lean_unsigned_to_nat(1155u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36564,7 +38720,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1040u); +x_1 = lean_unsigned_to_nat(1155u); x_2 = lean_unsigned_to_nat(67u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36592,7 +38748,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1040u); +x_1 = lean_unsigned_to_nat(1155u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36604,7 +38760,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRef_declRange__ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1040u); +x_1 = lean_unsigned_to_nat(1155u); x_2 = lean_unsigned_to_nat(44u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36700,7 +38856,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1041u); +x_1 = lean_unsigned_to_nat(1156u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36712,7 +38868,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1041u); +x_1 = lean_unsigned_to_nat(1156u); x_2 = lean_unsigned_to_nat(73u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36740,7 +38896,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1041u); +x_1 = lean_unsigned_to_nat(1156u); x_2 = lean_unsigned_to_nat(35u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36752,7 +38908,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefOpt_declRang _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1041u); +x_1 = lean_unsigned_to_nat(1156u); x_2 = lean_unsigned_to_nat(50u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36848,7 +39004,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1042u); +x_1 = lean_unsigned_to_nat(1157u); x_2 = lean_unsigned_to_nat(33u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36860,7 +39016,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1042u); +x_1 = lean_unsigned_to_nat(1157u); x_2 = lean_unsigned_to_nat(77u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36888,7 +39044,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1042u); +x_1 = lean_unsigned_to_nat(1157u); x_2 = lean_unsigned_to_nat(37u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36900,7 +39056,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRa _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1042u); +x_1 = lean_unsigned_to_nat(1157u); x_2 = lean_unsigned_to_nat(54u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -36946,7 +39102,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_14008_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_15381_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -37057,7 +39213,6 @@ l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__5 = _init_l_ lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__5); l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__6 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__6(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_tryCoeFun_x3f___closed__6); -l_Lean_Elab_Term_ElabAppArgs_State_ellipsis___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_ellipsis___default(); l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1 = _init_l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default___closed__1); l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_etaArgs___default(); @@ -37066,6 +39221,8 @@ l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default = _init_l_Lean_Elab_T lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_toSetErrorCtx___default); l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default(); lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_instMVars___default); +l_Lean_Elab_Term_ElabAppArgs_State_resultTypeOutParam_x3f___default = _init_l_Lean_Elab_Term_ElabAppArgs_State_resultTypeOutParam_x3f___default(); +lean_mark_persistent(l_Lean_Elab_Term_ElabAppArgs_State_resultTypeOutParam_x3f___default); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__1(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__1); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___closed__2(); @@ -37146,12 +39303,14 @@ l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___c lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__3___closed__2); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__1(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__1); -l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__2); -l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__3); -l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__4___closed__4); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__3 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__3); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__5___closed__4); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__1); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___closed__2(); @@ -37166,6 +39325,10 @@ l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurr lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__1); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__2(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___lambda__2___closed__2); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult_isOutParamOfLocalInstance___closed__1); +l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_isNextOutParamOfLocalInstanceAndResult___closed__1); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__1); l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___closed__2(); @@ -37204,6 +39367,14 @@ l_Lean_Elab_Term_elabAppArgs___closed__15 = _init_l_Lean_Elab_Term_elabAppArgs__ lean_mark_persistent(l_Lean_Elab_Term_elabAppArgs___closed__15); l_Lean_Elab_Term_elabAppArgs___closed__16 = _init_l_Lean_Elab_Term_elabAppArgs___closed__16(); lean_mark_persistent(l_Lean_Elab_Term_elabAppArgs___closed__16); +l_Lean_Elab_Term_elabAppArgs___closed__17 = _init_l_Lean_Elab_Term_elabAppArgs___closed__17(); +lean_mark_persistent(l_Lean_Elab_Term_elabAppArgs___closed__17); +l_Lean_Elab_Term_elabAppArgs___closed__18 = _init_l_Lean_Elab_Term_elabAppArgs___closed__18(); +lean_mark_persistent(l_Lean_Elab_Term_elabAppArgs___closed__18); +l_Lean_Elab_Term_elabAppArgs___closed__19 = _init_l_Lean_Elab_Term_elabAppArgs___closed__19(); +lean_mark_persistent(l_Lean_Elab_Term_elabAppArgs___closed__19); +l_Lean_Elab_Term_elabAppArgs___closed__20 = _init_l_Lean_Elab_Term_elabAppArgs___closed__20(); +lean_mark_persistent(l_Lean_Elab_Term_elabAppArgs___closed__20); l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__1); l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2 = _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___rarg___closed__2(); @@ -37791,7 +39962,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange__ res = l___regBuiltin_Lean_Elab_Term_elabArrayRefPanic_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_14008_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_15381_(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 c74ec225ec..b4908a6bd2 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -40,6 +40,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetDecl(lean_object*, lean_object* lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderIdent___closed__4; static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__3; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandMatchAltsIntoMatchAux___closed__7; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addTermInfo_x27(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*); @@ -458,7 +459,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Binders static lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__5; static lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___closed__1; static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_registerFailedToInferBinderTypeInfo___closed__1; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandBinderModifier___closed__15; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -502,7 +502,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDelayedDecl___closed__4 LEAN_EXPORT lean_object* l_Lean_Elab_Term_FunBinders_State_expectedType_x3f___default; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetFunDecl___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_declareTacticSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabFun___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__16; @@ -660,6 +659,7 @@ static lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__3___closed__2; LEAN_EXPORT uint8_t l_List_foldlM___at_Lean_Elab_Term_declareTacticSyntax___spec__6___lambda__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabForall_declRange___closed__6; lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabFun___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__11; LEAN_EXPORT lean_object* l_Lean_mkFreshId___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4423,7 +4423,7 @@ lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint x_48 = lean_ctor_get(x_42, 1); lean_inc(x_48); lean_dec(x_42); -x_49 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_48); +x_49 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_48); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_49, 1); @@ -4451,7 +4451,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean lean_inc(x_27); x_35 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_35, 0, x_27); -x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_29, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_29, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_31); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -27935,7 +27935,7 @@ lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint x_55 = lean_ctor_get(x_49, 1); lean_inc(x_55); lean_dec(x_49); -x_56 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_26, x_10, x_11, x_12, x_13, x_14, x_15, x_55); +x_56 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_26, x_10, x_11, x_12, x_13, x_14, x_15, x_55); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); @@ -27989,7 +27989,7 @@ lean_ctor_set(x_42, 1, x_41); x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_33); -x_44 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_26, x_43, x_10, x_11, x_12, x_13, x_14, x_15, x_28); +x_44 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_26, x_43, x_10, x_11, x_12, x_13, x_14, x_15, x_28); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 81b8c1ca49..b2c4c3ee1b 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -187,6 +187,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_docString(lean_ static lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen___closed__1; static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__2; +lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave___closed__3; static lean_object* l_Lean_Elab_Term_expandSuffices___closed__4; @@ -18632,7 +18633,7 @@ static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__10() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("\n.However, the equality ", 24); +x_1 = lean_mk_string_from_bytes("\nhowever, the equality ", 23); return x_1; } } @@ -18743,42 +18744,43 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; x_23 = l_Lean_Syntax_getArg(x_19, x_16); lean_dec(x_19); -x_24 = lean_box(0); -x_25 = 1; +x_24 = 1; +x_25 = 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); -lean_inc(x_17); -x_26 = l_Lean_Elab_Term_elabTerm(x_17, x_24, x_25, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_26 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_24, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12); if (lean_obj_tag(x_26) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); lean_dec(x_26); +x_28 = lean_box(0); +x_29 = lean_box(x_24); +x_30 = lean_box(x_24); +lean_inc(x_17); +x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4); +lean_closure_set(x_31, 0, x_17); +lean_closure_set(x_31, 1, x_28); +lean_closure_set(x_31, 2, x_29); +lean_closure_set(x_31, 3, x_30); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_27); -x_29 = lean_infer_type(x_27, x_5, x_6, x_7, x_8, x_28); -if (lean_obj_tag(x_29) == 0) +lean_inc(x_4); +lean_inc(x_3); +x_32 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_31, x_25, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_27); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +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); @@ -18789,416 +18791,436 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_33); -x_35 = l_Lean_Meta_matchEq_x3f(x_33, x_5, x_6, x_7, x_8, x_34); +x_35 = lean_infer_type(x_33, x_5, x_6, x_7, x_8, x_34); if (lean_obj_tag(x_35) == 0) { -lean_object* x_36; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); -if (lean_obj_tag(x_36) == 0) +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_37); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_39); +x_41 = l_Lean_Meta_matchEq_x3f(x_39, x_5, x_6, x_7, x_8, x_40); +if (lean_obj_tag(x_41) == 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_42; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_23); lean_dec(x_17); lean_dec(x_11); lean_dec(x_1); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_indentExpr(x_27); -x_39 = l_Lean_Elab_Term_elabSubst___closed__3; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Elab_Term_elabSubst___closed__5; -x_42 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_indentExpr(x_33); -x_44 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_Elab_Term_elabSubst___closed__7; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = l_Lean_indentExpr(x_33); +x_45 = l_Lean_Elab_Term_elabSubst___closed__3; x_46 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -x_47 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_37); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = l_Lean_Elab_Term_elabSubst___closed__5; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Lean_indentExpr(x_39); +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_Elab_Term_elabSubst___closed__7; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_43); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_47; +return x_53; } else { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_36, 0); -lean_inc(x_48); -lean_dec(x_36); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_42, 0); +lean_inc(x_54); +lean_dec(x_42); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); if (lean_obj_tag(x_11) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_33); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_39); lean_dec(x_17); lean_dec(x_1); -x_50 = lean_ctor_get(x_35, 1); -lean_inc(x_50); -lean_dec(x_35); -x_51 = lean_ctor_get(x_48, 0); -lean_inc(x_51); -lean_dec(x_48); -x_52 = lean_ctor_get(x_49, 0); -lean_inc(x_52); -lean_dec(x_49); -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_53 = l_Lean_Elab_Term_elabTerm(x_23, x_24, x_25, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_50); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_54); -x_56 = lean_infer_type(x_54, x_5, x_6, x_7, x_8, x_55); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 0); +x_56 = lean_ctor_get(x_41, 1); +lean_inc(x_56); +lean_dec(x_41); +x_57 = lean_ctor_get(x_54, 0); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +lean_dec(x_54); +x_58 = lean_ctor_get(x_55, 0); lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_box(0); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_52); -x_60 = l_Lean_Meta_kabstract(x_57, x_52, x_59, x_5, x_6, x_7, x_8, x_58); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__2; -x_64 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_63, x_7, x_8, x_62); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_67 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__2), 10, 2); -lean_closure_set(x_67, 0, x_52); -lean_closure_set(x_67, 1, x_61); -x_68 = 0; +lean_dec(x_55); 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_69 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_65, x_68, x_51, x_67, x_3, x_4, x_5, x_6, x_7, x_8, x_66); -if (lean_obj_tag(x_69) == 0) +x_59 = l_Lean_Elab_Term_elabTerm(x_23, x_28, x_24, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_56); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_70); -x_72 = l_Lean_Meta_isTypeCorrect(x_70, x_5, x_6, x_7, x_8, x_71); -if (lean_obj_tag(x_72) == 0) +lean_inc(x_60); +x_62 = lean_infer_type(x_60, x_5, x_6, x_7, x_8, x_61); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_73; uint8_t x_74; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_unbox(x_73); -lean_dec(x_73); -if (x_74 == 0) +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_box(0); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_58); +x_66 = l_Lean_Meta_kabstract(x_63, x_58, x_65, x_5, x_6, x_7, x_8, x_64); +if (lean_obj_tag(x_66) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +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; uint8_t x_74; lean_object* x_75; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__2; +x_70 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_69, x_7, x_8, x_68); +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); -lean_dec(x_54); -lean_dec(x_27); -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); -lean_dec(x_72); -x_76 = l_Lean_Elab_Term_elabSubst___lambda__8___closed__2; -x_77 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_76, x_3, x_4, x_5, x_6, x_7, x_8, x_75); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_78 = !lean_is_exclusive(x_77); -if (x_78 == 0) +x_73 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__2), 10, 2); +lean_closure_set(x_73, 0, x_58); +lean_closure_set(x_73, 1, x_67); +x_74 = 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_75 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_71, x_74, x_57, x_73, x_3, x_4, x_5, x_6, x_7, x_8, x_72); +if (lean_obj_tag(x_75) == 0) { -return x_77; -} -else +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_76); +x_78 = l_Lean_Meta_isTypeCorrect(x_76, x_5, x_6, x_7, x_8, x_77); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_77, 0); -x_80 = lean_ctor_get(x_77, 1); -lean_inc(x_80); +lean_object* x_79; uint8_t x_80; +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec(x_77); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -else +x_80 = lean_unbox(x_79); +lean_dec(x_79); +if (x_80 == 0) { -lean_object* x_82; lean_object* x_83; -lean_dec(x_4); -lean_dec(x_3); -x_82 = lean_ctor_get(x_72, 1); -lean_inc(x_82); -lean_dec(x_72); -x_83 = l_Lean_Meta_mkEqRec(x_70, x_54, x_27, x_5, x_6, x_7, x_8, x_82); -return x_83; -} -} -else -{ -uint8_t x_84; -lean_dec(x_70); -lean_dec(x_54); -lean_dec(x_27); +lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +lean_dec(x_76); +lean_dec(x_60); +lean_dec(x_33); +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +lean_dec(x_78); +x_82 = l_Lean_Elab_Term_elabSubst___lambda__8___closed__2; +x_83 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_82, x_3, x_4, x_5, x_6, x_7, x_8, x_81); 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_84 = !lean_is_exclusive(x_72); +x_84 = !lean_is_exclusive(x_83); if (x_84 == 0) { -return x_72; +return x_83; } else { lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_72, 0); -x_86 = lean_ctor_get(x_72, 1); +x_85 = lean_ctor_get(x_83, 0); +x_86 = lean_ctor_get(x_83, 1); lean_inc(x_86); lean_inc(x_85); -lean_dec(x_72); +lean_dec(x_83); x_87 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_87, 0, x_85); lean_ctor_set(x_87, 1, x_86); return x_87; } } -} else { -uint8_t x_88; -lean_dec(x_54); -lean_dec(x_27); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_88; lean_object* x_89; lean_dec(x_4); lean_dec(x_3); -x_88 = !lean_is_exclusive(x_69); -if (x_88 == 0) -{ -return x_69; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_69, 0); -x_90 = lean_ctor_get(x_69, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_69); -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; -} +x_88 = lean_ctor_get(x_78, 1); +lean_inc(x_88); +lean_dec(x_78); +x_89 = l_Lean_Meta_mkEqRec(x_76, x_60, x_33, x_5, x_6, x_7, x_8, x_88); +return x_89; } } else { -uint8_t x_92; -lean_dec(x_54); -lean_dec(x_52); -lean_dec(x_51); -lean_dec(x_27); -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_92 = !lean_is_exclusive(x_60); -if (x_92 == 0) -{ -return x_60; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_60, 0); -x_94 = lean_ctor_get(x_60, 1); -lean_inc(x_94); -lean_inc(x_93); +uint8_t x_90; +lean_dec(x_76); lean_dec(x_60); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; -} -} -} -else -{ -uint8_t x_96; -lean_dec(x_54); -lean_dec(x_52); -lean_dec(x_51); -lean_dec(x_27); +lean_dec(x_33); 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_96 = !lean_is_exclusive(x_56); -if (x_96 == 0) +x_90 = !lean_is_exclusive(x_78); +if (x_90 == 0) { -return x_56; +return x_78; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_56, 0); -x_98 = lean_ctor_get(x_56, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_56); -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; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_78, 0); +x_92 = lean_ctor_get(x_78, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_78); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; } } } else { -uint8_t x_100; -lean_dec(x_52); -lean_dec(x_51); -lean_dec(x_27); +uint8_t x_94; +lean_dec(x_60); +lean_dec(x_33); 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_100 = !lean_is_exclusive(x_53); -if (x_100 == 0) +x_94 = !lean_is_exclusive(x_75); +if (x_94 == 0) { -return x_53; +return x_75; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_53, 0); -x_102 = lean_ctor_get(x_53, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_53); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_75, 0); +x_96 = lean_ctor_get(x_75, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_75); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; } } } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_104 = lean_ctor_get(x_35, 1); +uint8_t x_98; +lean_dec(x_60); +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_33); +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_98 = !lean_is_exclusive(x_66); +if (x_98 == 0) +{ +return x_66; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_66, 0); +x_100 = lean_ctor_get(x_66, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_66); +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; +} +} +} +else +{ +uint8_t x_102; +lean_dec(x_60); +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_33); +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_102 = !lean_is_exclusive(x_62); +if (x_102 == 0) +{ +return x_62; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_62, 0); +x_104 = lean_ctor_get(x_62, 1); lean_inc(x_104); -lean_dec(x_35); -x_105 = lean_ctor_get(x_48, 0); -lean_inc(x_105); -lean_dec(x_48); -x_106 = lean_ctor_get(x_49, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_49, 1); -lean_inc(x_107); -lean_dec(x_49); -x_108 = lean_ctor_get(x_11, 0); +lean_inc(x_103); +lean_dec(x_62); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +return x_105; +} +} +} +else +{ +uint8_t x_106; +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_33); +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_106 = !lean_is_exclusive(x_59); +if (x_106 == 0) +{ +return x_59; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_59, 0); +x_108 = lean_ctor_get(x_59, 1); lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_59); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} +} +else +{ +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; +x_110 = lean_ctor_get(x_41, 1); +lean_inc(x_110); +lean_dec(x_41); +x_111 = lean_ctor_get(x_54, 0); +lean_inc(x_111); +lean_dec(x_54); +x_112 = lean_ctor_get(x_55, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_55, 1); +lean_inc(x_113); +lean_dec(x_55); +x_114 = lean_ctor_get(x_11, 0); +lean_inc(x_114); lean_dec(x_11); -x_109 = lean_box(0); +x_115 = lean_box(0); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_107); -lean_inc(x_108); -x_110 = l_Lean_Meta_kabstract(x_108, x_107, x_109, x_5, x_6, x_7, x_8, x_104); -if (lean_obj_tag(x_110) == 0) +lean_inc(x_113); +lean_inc(x_114); +x_116 = l_Lean_Meta_kabstract(x_114, x_113, x_115, x_5, x_6, x_7, x_8, x_110); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -lean_dec(x_110); -x_113 = l_Lean_Elab_Term_elabAnonymousCtor___closed__3; -x_114 = l_Lean_Elab_Term_elabAnonymousCtor___closed__2; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +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 = l_Lean_Elab_Term_elabAnonymousCtor___closed__3; +x_120 = l_Lean_Elab_Term_elabAnonymousCtor___closed__2; lean_inc(x_17); lean_inc(x_23); lean_inc(x_1); -lean_inc(x_108); -lean_inc(x_105); -x_115 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__8___boxed), 20, 8); -lean_closure_set(x_115, 0, x_105); -lean_closure_set(x_115, 1, x_113); -lean_closure_set(x_115, 2, x_114); -lean_closure_set(x_115, 3, x_108); -lean_closure_set(x_115, 4, x_1); -lean_closure_set(x_115, 5, x_23); -lean_closure_set(x_115, 6, x_17); -lean_closure_set(x_115, 7, x_24); -x_116 = l_Lean_Expr_hasLooseBVars(x_111); -if (x_116 == 0) +lean_inc(x_114); +lean_inc(x_111); +x_121 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__8___boxed), 20, 8); +lean_closure_set(x_121, 0, x_111); +lean_closure_set(x_121, 1, x_119); +lean_closure_set(x_121, 2, x_120); +lean_closure_set(x_121, 3, x_114); +lean_closure_set(x_121, 4, x_1); +lean_closure_set(x_121, 5, x_23); +lean_closure_set(x_121, 6, x_17); +lean_closure_set(x_121, 7, x_28); +x_122 = l_Lean_Expr_hasLooseBVars(x_117); +if (x_122 == 0) { -lean_object* x_117; +lean_object* x_123; +lean_dec(x_117); lean_dec(x_111); -lean_dec(x_105); lean_dec(x_23); lean_dec(x_17); lean_dec(x_1); @@ -19206,161 +19228,113 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_106); -lean_inc(x_108); -x_117 = l_Lean_Meta_kabstract(x_108, x_106, x_109, x_5, x_6, x_7, x_8, x_112); -if (lean_obj_tag(x_117) == 0) +lean_inc(x_112); +lean_inc(x_114); +x_123 = l_Lean_Meta_kabstract(x_114, x_112, x_115, x_5, x_6, x_7, x_8, x_118); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); -lean_inc(x_119); -lean_dec(x_117); -x_120 = l_Lean_Expr_hasLooseBVars(x_118); -if (x_120 == 0) +lean_object* x_124; lean_object* x_125; uint8_t x_126; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = l_Lean_Expr_hasLooseBVars(x_124); +if (x_126 == 0) { -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; uint8_t x_135; -lean_dec(x_118); -lean_dec(x_115); -lean_dec(x_107); -lean_dec(x_106); -x_121 = l_Lean_indentExpr(x_108); -x_122 = l_Lean_Elab_Term_elabSubst___closed__9; -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_Elab_Term_elabSubst___closed__11; -x_125 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -x_126 = l_Lean_indentExpr(x_27); -x_127 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -x_128 = l_Lean_Elab_Term_elabSubst___closed__13; +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; uint8_t x_141; +lean_dec(x_124); +lean_dec(x_121); +lean_dec(x_113); +lean_dec(x_112); +x_127 = l_Lean_indentExpr(x_114); +x_128 = l_Lean_Elab_Term_elabSubst___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); -x_130 = l_Lean_indentExpr(x_33); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +x_130 = l_Lean_Elab_Term_elabSubst___closed__11; x_131 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_131, 0, x_129); lean_ctor_set(x_131, 1, x_130); -x_132 = l_Lean_Elab_Term_elabSubst___closed__15; +x_132 = l_Lean_indentExpr(x_33); x_133 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_133, 0, x_131); lean_ctor_set(x_133, 1, x_132); -x_134 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_133, x_3, x_4, x_5, x_6, x_7, x_8, x_119); +x_134 = l_Lean_Elab_Term_elabSubst___closed__13; +x_135 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +x_136 = l_Lean_indentExpr(x_39); +x_137 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = l_Lean_Elab_Term_elabSubst___closed__15; +x_139 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +x_140 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_125); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -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_139; lean_object* x_140; -lean_dec(x_108); -lean_dec(x_33); -x_139 = lean_box(0); -x_140 = l_Lean_Elab_Term_elabSubst___lambda__9(x_115, x_118, x_27, x_106, x_107, x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_119); -return x_140; -} -} -else -{ -uint8_t x_141; -lean_dec(x_115); -lean_dec(x_108); -lean_dec(x_107); -lean_dec(x_106); -lean_dec(x_33); -lean_dec(x_27); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_141 = !lean_is_exclusive(x_117); +x_141 = !lean_is_exclusive(x_140); if (x_141 == 0) { -return x_117; +return x_140; } else { lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_117, 0); -x_143 = lean_ctor_get(x_117, 1); +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_dec(x_117); +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; } } -} else { lean_object* x_145; lean_object* x_146; -lean_dec(x_115); -lean_dec(x_33); +lean_dec(x_114); +lean_dec(x_39); x_145 = lean_box(0); -x_146 = l_Lean_Elab_Term_elabSubst___lambda__8(x_105, x_113, x_114, x_108, x_1, x_23, x_17, x_24, x_111, x_27, x_106, x_107, x_145, x_3, x_4, x_5, x_6, x_7, x_8, x_112); +x_146 = l_Lean_Elab_Term_elabSubst___lambda__9(x_121, x_124, x_33, x_112, x_113, x_145, x_3, x_4, x_5, x_6, x_7, x_8, x_125); return x_146; } } else { uint8_t x_147; -lean_dec(x_108); -lean_dec(x_107); -lean_dec(x_106); -lean_dec(x_105); +lean_dec(x_121); +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_39); lean_dec(x_33); -lean_dec(x_27); -lean_dec(x_23); -lean_dec(x_17); 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_147 = !lean_is_exclusive(x_110); +x_147 = !lean_is_exclusive(x_123); if (x_147 == 0) { -return x_110; +return x_123; } else { lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_110, 0); -x_149 = lean_ctor_get(x_110, 1); +x_148 = lean_ctor_get(x_123, 0); +x_149 = lean_ctor_get(x_123, 1); lean_inc(x_149); lean_inc(x_148); -lean_dec(x_110); +lean_dec(x_123); x_150 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_150, 0, x_148); lean_ctor_set(x_150, 1, x_149); @@ -19368,13 +19342,61 @@ return x_150; } } } +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_121); +lean_dec(x_39); +x_151 = lean_box(0); +x_152 = l_Lean_Elab_Term_elabSubst___lambda__8(x_111, x_119, x_120, x_114, x_1, x_23, x_17, x_28, x_117, x_33, x_112, x_113, x_151, x_3, x_4, x_5, x_6, x_7, x_8, x_118); +return x_152; } } else { -uint8_t x_151; +uint8_t x_153; +lean_dec(x_114); +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_111); +lean_dec(x_39); +lean_dec(x_33); +lean_dec(x_23); +lean_dec(x_17); +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_153 = !lean_is_exclusive(x_116); +if (x_153 == 0) +{ +return x_116; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_116, 0); +x_155 = lean_ctor_get(x_116, 1); +lean_inc(x_155); +lean_inc(x_154); +lean_dec(x_116); +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_154); +lean_ctor_set(x_156, 1, x_155); +return x_156; +} +} +} +} +} +else +{ +uint8_t x_157; +lean_dec(x_39); lean_dec(x_33); -lean_dec(x_27); lean_dec(x_23); lean_dec(x_17); lean_dec(x_11); @@ -19385,30 +19407,63 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_151 = !lean_is_exclusive(x_35); -if (x_151 == 0) +x_157 = !lean_is_exclusive(x_41); +if (x_157 == 0) +{ +return x_41; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_158 = lean_ctor_get(x_41, 0); +x_159 = lean_ctor_get(x_41, 1); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_41); +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 +{ +uint8_t x_161; +lean_dec(x_33); +lean_dec(x_23); +lean_dec(x_17); +lean_dec(x_11); +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_161 = !lean_is_exclusive(x_35); +if (x_161 == 0) { return x_35; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_35, 0); -x_153 = lean_ctor_get(x_35, 1); -lean_inc(x_153); -lean_inc(x_152); +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_35, 0); +x_163 = lean_ctor_get(x_35, 1); +lean_inc(x_163); +lean_inc(x_162); lean_dec(x_35); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -return x_154; +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; } } } else { -uint8_t x_155; -lean_dec(x_27); +uint8_t x_165; lean_dec(x_23); lean_dec(x_17); lean_dec(x_11); @@ -19419,29 +19474,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_155 = !lean_is_exclusive(x_29); -if (x_155 == 0) +x_165 = !lean_is_exclusive(x_32); +if (x_165 == 0) { -return x_29; +return x_32; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_29, 0); -x_157 = lean_ctor_get(x_29, 1); -lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_29); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -return x_158; +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_32, 0); +x_167 = lean_ctor_get(x_32, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_32); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; } } } else { -uint8_t x_159; +uint8_t x_169; lean_dec(x_23); lean_dec(x_17); lean_dec(x_11); @@ -19452,23 +19507,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_159 = !lean_is_exclusive(x_26); -if (x_159 == 0) +x_169 = !lean_is_exclusive(x_26); +if (x_169 == 0) { return x_26; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_26, 0); -x_161 = lean_ctor_get(x_26, 1); -lean_inc(x_161); -lean_inc(x_160); +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_26, 0); +x_171 = lean_ctor_get(x_26, 1); +lean_inc(x_171); +lean_inc(x_170); lean_dec(x_26); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); +return x_172; } } } @@ -19476,7 +19531,7 @@ return x_162; } else { -uint8_t x_163; +uint8_t x_173; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -19484,23 +19539,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_163 = !lean_is_exclusive(x_10); -if (x_163 == 0) +x_173 = !lean_is_exclusive(x_10); +if (x_173 == 0) { return x_10; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_10, 0); -x_165 = lean_ctor_get(x_10, 1); -lean_inc(x_165); -lean_inc(x_164); +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_10, 0); +x_175 = lean_ctor_get(x_10, 1); +lean_inc(x_175); +lean_inc(x_174); lean_dec(x_10); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set(x_176, 1, x_175); +return x_176; } } } @@ -19675,7 +19730,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(367u); +x_1 = lean_unsigned_to_nat(368u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20151,7 +20206,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(369u); +x_1 = lean_unsigned_to_nat(370u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20163,7 +20218,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(378u); +x_1 = lean_unsigned_to_nat(379u); x_2 = lean_unsigned_to_nat(32u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20191,7 +20246,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(369u); +x_1 = lean_unsigned_to_nat(370u); x_2 = lean_unsigned_to_nat(33u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20203,7 +20258,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(369u); +x_1 = lean_unsigned_to_nat(370u); x_2 = lean_unsigned_to_nat(46u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20377,7 +20432,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(380u); +x_1 = lean_unsigned_to_nat(381u); x_2 = lean_unsigned_to_nat(27u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20389,7 +20444,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(382u); +x_1 = lean_unsigned_to_nat(383u); x_2 = lean_unsigned_to_nat(40u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20417,7 +20472,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(380u); +x_1 = lean_unsigned_to_nat(381u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -20429,7 +20484,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(380u); +x_1 = lean_unsigned_to_nat(381u); x_2 = lean_unsigned_to_nat(42u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index f820eebd01..c6715868a7 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -33,6 +33,7 @@ LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at_Lean_Elab_Command_elab lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_expandDeclNamespace_x3f___closed__1; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabAxiom___lambda__5___closed__5; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addTermInfo_x27(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*); @@ -310,7 +311,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1___boxed(lean_ lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAttr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(lean_object*); @@ -356,7 +356,6 @@ lean_object* l_Lean_Syntax_getSepArgs(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabAxiom___lambda__7___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize_declRange(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*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualElement_declRange___closed__1; static lean_object* l_Lean_Elab_Command_expandInitCmd___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize_declRange___closed__1; @@ -493,6 +492,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_ static lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr_declRange___closed__7; static lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_expandDeclNamespace_x3f___closed__15; static lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__4; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutual___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___closed__2; @@ -4024,7 +4024,7 @@ lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint x_83 = lean_ctor_get(x_78, 1); lean_inc(x_83); lean_dec(x_78); -x_84 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_60, x_10, x_11, x_12, x_13, x_14, x_15, x_83); +x_84 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_60, x_10, x_11, x_12, x_13, x_14, x_15, x_83); x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); x_86 = lean_ctor_get(x_84, 1); @@ -4069,7 +4069,7 @@ lean_ctor_set(x_71, 1, x_70); x_72 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_66); -x_73 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_60, x_72, x_10, x_11, x_12, x_13, x_14, x_15, x_62); +x_73 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_60, x_72, x_10, x_11, x_12, x_13, x_14, x_15, x_62); x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_73, 1); diff --git a/stage0/stdlib/Lean/Elab/Deriving/BEq.c b/stage0/stdlib/Lean/Elab/Deriving/BEq.c index 2dd7081326..ab61853294 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/BEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/BEq.c @@ -21,6 +21,7 @@ static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch___closed__2; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__10; size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__8; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(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*); static lean_object* l_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___closed__17; static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__14; @@ -150,7 +151,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_BEq_mkBEqHeader(lean_object*, lean static lean_object* l_Lean_Elab_Deriving_BEq_mkMutualBlock___closed__4; size_t lean_usize_of_nat(lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__9; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__23; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__16; @@ -173,7 +173,6 @@ LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_Elab_Deriving_BEq_mkBEqInst static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___spec__1___closed__5; static lean_object* l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqEnumFun___closed__10; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__4___closed__7; -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*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__22; lean_object* lean_environment_main_module(lean_object*); static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__15; @@ -239,6 +238,7 @@ extern lean_object* l_Lean_instInhabitedInductiveVal; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__28; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__14; static lean_object* l_Lean_Elab_Deriving_BEq_mkAuxFunction___lambda__1___closed__5; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_BEq_mkMatch_mkElseAlt___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_BEq_mkMatch_mkAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_betaReduce___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -5051,7 +5051,7 @@ lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint x_52 = lean_ctor_get(x_46, 1); lean_inc(x_52); lean_dec(x_46); -x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); @@ -5101,7 +5101,7 @@ x_38 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanc 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -6040,7 +6040,7 @@ lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); lean_dec(x_44); -x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_50); +x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_50); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -6090,7 +6090,7 @@ x_36 = l___private_Lean_Elab_Deriving_BEq_0__Lean_Elab_Deriving_BEq_mkBEqInstanc x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_26, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_28); +x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_26, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_28); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); diff --git a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c index ecdebb1fed..89a10e647f 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/DecEq.c +++ b/stage0/stdlib/Lean/Elab/Deriving/DecEq.c @@ -25,6 +25,7 @@ static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__3 size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__25; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2___closed__22; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__4; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2___closed__37; @@ -261,7 +262,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_DecEq_mk size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2___closed__29; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch___closed__3; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2___closed__36; LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -282,7 +282,6 @@ static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2 LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_DecEq_mkMatch_mkAlts___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2___closed__57; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2___closed__4; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__69; @@ -381,6 +380,7 @@ static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2 static lean_object* l_Lean_Elab_Deriving_DecEq_mkEnumOfNat_mkDecTree___closed__7; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__44; static lean_object* l_Lean_Elab_Deriving_DecEq_mkMatch_mkSameCtorRhs___lambda__2___closed__40; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_DecEq_mkAuxFunction___closed__12; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__23; static lean_object* l_Lean_Elab_Deriving_DecEq_mkDecEqEnum___closed__41; @@ -6327,7 +6327,7 @@ lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint x_51 = lean_ctor_get(x_46, 1); lean_inc(x_51); lean_dec(x_46); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_51); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -6377,7 +6377,7 @@ x_38 = l_Lean_Elab_Deriving_DecEq_mkDecEqCmds___closed__10; 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Hashable.c b/stage0/stdlib/Lean/Elab/Deriving/Hashable.c index ff983f5bec..8b78c1be06 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Hashable.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Hashable.c @@ -17,6 +17,7 @@ lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -124,7 +125,6 @@ static lean_object* l_Lean_Elab_Deriving_Hashable_mkMatch___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Deriving_Hashable_mkHashableHandler___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___spec__4___boxed(lean_object**); static lean_object* l_Lean_Elab_Deriving_Hashable_mkAuxFunction___closed__9; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Hashable_0__Lean_Elab_Deriving_Hashable_mkHashableInstanceCmds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Hashable_mkMatch___closed__4; @@ -143,7 +143,6 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Hashable_mkMa static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___spec__4___closed__4; lean_object* l_List_redLength___rarg(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Hashable_0__Lean_Elab_Deriving_Hashable_mkHashableInstanceCmds___closed__2; -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*); static lean_object* l_Lean_Elab_Deriving_Hashable_mkAuxFunction___closed__8; static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___spec__1___closed__4; static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_Hashable_mkMatch_mkAlts___spec__1___closed__1; @@ -193,6 +192,7 @@ static lean_object* l___private_Lean_Elab_Deriving_Hashable_0__Lean_Elab_Derivin static lean_object* l_Lean_Elab_Deriving_Hashable_initFn____x40_Lean_Elab_Deriving_Hashable___hyg_2330____closed__1; static lean_object* l_Lean_Elab_Deriving_Hashable_mkAuxFunction___closed__12; static lean_object* l_Lean_Elab_Deriving_Hashable_mkHashFuncs___closed__5; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Hashable_mkMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4282,7 +4282,7 @@ lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint x_52 = lean_ctor_get(x_46, 1); lean_inc(x_52); lean_dec(x_46); -x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); @@ -4332,7 +4332,7 @@ x_38 = l___private_Lean_Elab_Deriving_Hashable_0__Lean_Elab_Deriving_Hashable_mk 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c index 1b975a2bcf..5b1dad3a3d 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Inhabited.c @@ -23,6 +23,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_m static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___lambda__2___closed__10; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_mkInhabitedInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -174,7 +175,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_mkInhabitedIns static lean_object* l_List_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___spec__3___closed__1; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__7(lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__4___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); @@ -200,7 +200,6 @@ static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInha static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__24; lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___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* 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*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__7; LEAN_EXPORT lean_object* l_Std_RBNode_revFold___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts(lean_object*, lean_object*, lean_object*); @@ -264,6 +263,7 @@ lean_object* lean_mk_syntax_ident(lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___closed__5; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__6___closed__1; static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__3; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__7___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___lambda__2___closed__6; @@ -2922,7 +2922,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint x_35 = lean_ctor_get(x_29, 1); lean_inc(x_35); lean_dec(x_29); -x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_35); +x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_35); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -2957,7 +2957,7 @@ x_22 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_14, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_14, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_16); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -9670,7 +9670,7 @@ x_66 = lean_ctor_get(x_60, 1); lean_inc(x_66); lean_dec(x_60); lean_inc(x_5); -x_67 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_66); +x_67 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_66); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); x_69 = lean_ctor_get(x_67, 1); @@ -9743,7 +9743,7 @@ lean_ctor_set(x_38, 1, x_33); x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_34); -x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_5, x_39, x_10, x_11, x_12, x_13, x_14, x_15, x_27); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_5, x_39, x_10, x_11, x_12, x_13, x_14, x_15, x_27); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -9776,7 +9776,7 @@ x_49 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_5, x_50, x_10, x_11, x_12, x_13, x_14, x_15, x_27); +x_51 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_5, x_50, x_10, x_11, x_12, x_13, x_14, x_15, x_27); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -9910,7 +9910,7 @@ x_131 = lean_ctor_get(x_125, 1); lean_inc(x_131); lean_dec(x_125); lean_inc(x_5); -x_132 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_131); +x_132 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_5, x_10, x_11, x_12, x_13, x_14, x_15, x_131); x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); x_134 = lean_ctor_get(x_132, 1); @@ -9983,7 +9983,7 @@ lean_ctor_set(x_103, 1, x_98); x_104 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_104, 0, x_103); lean_ctor_set(x_104, 1, x_99); -x_105 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_5, x_104, x_10, x_11, x_12, x_13, x_14, x_15, x_92); +x_105 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_5, x_104, x_10, x_11, x_12, x_13, x_14, x_15, x_92); x_106 = lean_ctor_get(x_105, 0); lean_inc(x_106); x_107 = lean_ctor_get(x_105, 1); @@ -10016,7 +10016,7 @@ x_114 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanc x_115 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_115, 0, x_113); lean_ctor_set(x_115, 1, x_114); -x_116 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_5, x_115, x_10, x_11, x_12, x_13, x_14, x_15, x_92); +x_116 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_5, x_115, x_10, x_11, x_12, x_13, x_14, x_15, x_92); x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); x_118 = lean_ctor_get(x_116, 1); @@ -10214,7 +10214,7 @@ lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint x_92 = lean_ctor_get(x_86, 1); lean_inc(x_92); lean_dec(x_86); -x_93 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_35, x_10, x_11, x_12, x_13, x_14, x_15, x_92); +x_93 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_35, x_10, x_11, x_12, x_13, x_14, x_15, x_92); x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); x_95 = lean_ctor_get(x_93, 1); @@ -10360,7 +10360,7 @@ x_63 = l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__ x_64 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_64, 0, x_62); lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_35, x_64, x_10, x_11, x_12, x_13, x_14, x_15, x_37); +x_65 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_35, x_64, x_10, x_11, x_12, x_13, x_14, x_15, x_37); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); @@ -10927,7 +10927,7 @@ x_36 = lean_ctor_get(x_30, 1); lean_inc(x_36); lean_dec(x_30); lean_inc(x_4); -x_37 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_36); +x_37 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_36); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); @@ -10967,7 +10967,7 @@ x_23 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); -x_25 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_4, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_17); +x_25 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_4, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_17); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); @@ -11155,7 +11155,7 @@ lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint x_71 = lean_ctor_get(x_65, 1); lean_inc(x_71); lean_dec(x_65); -x_72 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_71); +x_72 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_71); x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); x_74 = lean_ctor_get(x_72, 1); @@ -11215,7 +11215,7 @@ lean_ctor_set(x_47, 1, x_42); x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_43); -x_49 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_29, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +x_49 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_29, x_48, x_7, x_8, x_9, x_10, x_11, x_12, x_31); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_49, 1); @@ -11245,7 +11245,7 @@ x_58 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance 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_60 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_29, x_59, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +x_60 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_29, x_59, x_7, x_8, x_9, x_10, x_11, x_12, x_31); x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Ord.c b/stage0/stdlib/Lean/Elab/Deriving/Ord.c index 7d88e67597..80ac0a740a 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Ord.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Ord.c @@ -20,6 +20,7 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_m uint8_t l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__5___lambda__1___closed__52; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(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_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Elab_Deriving_Ord_0__Lean_Elab_Deriving_Ord_mkOrdInstanceCmds___spec__1(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); @@ -146,7 +147,6 @@ lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_obj LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__7___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__5___lambda__1___closed__21; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__5___lambda__1___closed__38; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__7___lambda__2___closed__3; @@ -165,7 +165,6 @@ static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts static lean_object* l___private_Lean_Elab_Deriving_Ord_0__Lean_Elab_Deriving_Ord_mkOrdInstanceCmds___closed__10; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__5___lambda__1___closed__42; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__7___lambda__2___closed__4; -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMutualBlock___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__7___lambda__2___closed__8; lean_object* lean_environment_main_module(lean_object*); @@ -216,6 +215,7 @@ static lean_object* l___private_Lean_Elab_Deriving_Ord_0__Lean_Elab_Deriving_Ord static lean_object* l___private_Lean_Elab_Deriving_Ord_0__Lean_Elab_Deriving_Ord_mkOrdInstanceCmds___closed__4; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__3___closed__7; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__5___lambda__1___closed__15; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__5___lambda__1___closed__3; static lean_object* l_Lean_Elab_Deriving_Ord_mkAuxFunction___lambda__1___closed__26; LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_Ord_mkMatch_mkAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5221,7 +5221,7 @@ lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint x_52 = lean_ctor_get(x_46, 1); lean_inc(x_52); lean_dec(x_46); -x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); @@ -5271,7 +5271,7 @@ x_38 = l___private_Lean_Elab_Deriving_Ord_0__Lean_Elab_Deriving_Ord_mkOrdInstanc 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Repr.c b/stage0/stdlib/Lean/Elab/Deriving/Repr.c index 7030fdd0ed..a5838be1ca 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Repr.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Repr.c @@ -21,6 +21,7 @@ static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__1___clos static lean_object* l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInstanceCmds___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___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*); size_t lean_usize_add(size_t, size_t); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__1___closed__1; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_Repr_mkReprInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,7 +204,6 @@ lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_obj static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__2___closed__15; size_t lean_usize_of_nat(lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__3___lambda__1___closed__47; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___lambda__1___closed__13; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__2___closed__5; @@ -219,7 +219,6 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_Repr_mkBodyFo static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__2___closed__10; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__1___closed__6; static lean_object* l_Lean_Elab_Deriving_Repr_mkBodyForStruct___lambda__2___closed__14; -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*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__26; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__3___lambda__1___closed__26; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -280,6 +279,7 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyFo static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__3___lambda__1___closed__10; static lean_object* l_List_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__3___lambda__1___closed__32; static lean_object* l_Lean_Elab_Deriving_Repr_mkAuxFunction___lambda__1___closed__2; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isInductive___at_Lean_Elab_Deriving_Repr_mkReprInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_Repr_mkReprHeader___closed__11; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_Repr_mkBodyForInduct_mkAlts___spec__2___closed__5; @@ -7465,7 +7465,7 @@ lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint x_52 = lean_ctor_get(x_46, 1); lean_inc(x_52); lean_dec(x_46); -x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); +x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_52); x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); @@ -7515,7 +7515,7 @@ x_38 = l___private_Lean_Elab_Deriving_Repr_0__Lean_Elab_Deriving_Repr_mkReprInst 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_28, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); diff --git a/stage0/stdlib/Lean/Elab/Deriving/Util.c b/stage0/stdlib/Lean/Elab/Deriving/Util.c index 2912323a88..28d1d311e6 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/Util.c +++ b/stage0/stdlib/Lean/Elab/Deriving/Util.c @@ -19,6 +19,7 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkImplicitBin static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___lambda__1___closed__1; size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___closed__12; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -137,7 +138,6 @@ static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_mkInductArgNames___closed__1; size_t lean_usize_of_nat(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkLocalInstanceLetDecls___spec__1___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkInstanceCmds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkHeader___spec__1___closed__2; @@ -145,7 +145,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_mkHeader(lean_object*, lean_object static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkLocalInstanceLetDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkHeader___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___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*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkHeader___spec__2___closed__1; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___lambda__1___closed__7; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkDiscrs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -181,6 +180,7 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkLocalInstan static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkHeader___spec__1___closed__1; lean_object* lean_mk_syntax_ident(lean_object*); extern lean_object* l_Lean_instInhabitedInductiveVal; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_mkInductiveApp___closed__13; static lean_object* l_Lean_Elab_Deriving_implicitBinderF___closed__1; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_mkImplicitBinders___spec__1___closed__4; @@ -1882,7 +1882,7 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint x_44 = lean_ctor_get(x_38, 1); lean_inc(x_44); lean_dec(x_38); -x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_44); +x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_44); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -1926,7 +1926,7 @@ lean_ctor_set(x_31, 1, x_29); x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_21, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +x_33 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_21, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_23); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 1496e01868..68f09c13e8 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -52,6 +52,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermUnless___closed__1; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__2; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__10; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_mkSimpleJmp___closed__8; @@ -68,6 +69,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_Kind_toCtorIdx(uint8_t); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__8; static lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__5; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__34; static lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; LEAN_EXPORT lean_object* l_Std_RBNode_del___at_Lean_Elab_Term_Do_eraseVars___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__13; @@ -211,6 +213,7 @@ static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbidd LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__9___boxed(lean_object*, 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*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_seqToTerm___closed__6; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__36; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__8; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__11; @@ -349,6 +352,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_Do_elabDo___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_mkFreshJP___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethod(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__35; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCodeBlock_doIfToCode___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__6; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3___closed__4; @@ -799,7 +803,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_CodeBlock_uvars___default; static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange___closed__4; static lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__1; static lean_object* l_Lean_addTrace___at_Lean_Elab_Term_Do_mkJmp___spec__3___closed__2; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_getDoLetArrowVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -861,7 +864,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_toDoElem(lea LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__5(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__15; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30645_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30724_(lean_object*); static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__9; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__3; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___closed__3; @@ -898,7 +901,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_getDoPatDeclVars(lean_object*, lean static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__15; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_eraseVars___spec__3(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Term_Do_elabDo___closed__2; -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*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeq(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_mkIte(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1038,6 +1040,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__2 static lean_object* l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___closed__5; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_Do_getLetDeclVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkNotShadowingMutable___spec__1___closed__4; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33; static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__9; static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermReturn___closed__1; LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_Do_extendUpdatedVarsAux_update___spec__1___boxed(lean_object*, lean_object*); @@ -1204,6 +1207,7 @@ LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do LEAN_EXPORT lean_object* l_Std_RBNode_erase___at_Lean_Elab_Term_Do_eraseVars___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRange___closed__7; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3___closed__8; @@ -38001,26 +38005,52 @@ static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("toStream", 8); +x_1 = lean_mk_string_from_bytes("explicit", 8); return x_1; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__6; +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("@", 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("toStream", 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__4; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__6() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__1; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__4; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__2; +x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___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); @@ -38028,40 +38058,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("ToStream", 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__6; -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__1; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -38069,13 +38071,9 @@ return x_3; static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__8() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__7; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("ToStream", 8); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__9() { @@ -38084,13 +38082,45 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__9; +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__10; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__11; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__10() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__13() { _start: { lean_object* x_1; @@ -38098,7 +38128,7 @@ x_1 = lean_mk_string_from_bytes("mut", 3); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__11() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__14() { _start: { lean_object* x_1; @@ -38106,22 +38136,22 @@ x_1 = lean_mk_string_from_bytes("s", 1); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__12() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__11; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__14; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__13() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__11; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__14; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__12; +x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__15; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -38129,41 +38159,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__11; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__15() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("for", 3); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__16() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes(",", 1); -return x_1; -} -} static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(2); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__16; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__14; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -38171,26 +38173,54 @@ static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__ _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Stream.next?", 12); +x_1 = lean_mk_string_from_bytes("for", 3); return x_1; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__19() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__18; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(",", 1); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__20() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(2); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__19; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Stream.next?", 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__21; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__23() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__18; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__21; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__19; +x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__22; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -38198,7 +38228,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__21() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__24() { _start: { lean_object* x_1; @@ -38206,59 +38236,69 @@ x_1 = lean_mk_string_from_bytes("Stream", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__22() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__21; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__23() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("next?", 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__24() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__22; -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__23; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__24; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__26() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("next?", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__25; +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__26; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__28() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__25; +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__27; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__29() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__28; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__27() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__30() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; +x_2 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__31() { _start: { lean_object* x_1; @@ -38266,17 +38306,17 @@ x_1 = lean_mk_string_from_bytes("tupleTail", 9); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__28() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__6; -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__27; +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__31; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__29() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33() { _start: { lean_object* x_1; @@ -38284,22 +38324,22 @@ x_1 = lean_mk_string_from_bytes("s'", 2); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__30() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__34() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__29; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__31() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__35() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__29; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__30; +x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__34; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -38307,12 +38347,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__32() { +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__36() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__29; +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -38320,7 +38360,7 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; x_14 = lean_ctor_get(x_11, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_11, 1); @@ -38374,470 +38414,522 @@ x_33 = lean_ctor_get(x_31, 0); lean_inc(x_33); lean_dec(x_31); x_34 = lean_environment_main_module(x_33); -x_35 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__4; +x_35 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__3; +lean_inc(x_28); +x_36 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__7; lean_inc(x_24); -x_36 = l_Lean_addMacroScope(x_34, x_35, x_24); -x_37 = lean_box(0); -x_38 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__3; -x_39 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__9; -x_40 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_40, 0, x_28); -lean_ctor_set(x_40, 1, x_38); -lean_ctor_set(x_40, 2, x_36); -lean_ctor_set(x_40, 3, x_39); -lean_inc(x_11); -x_41 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_11, x_12, x_32); -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 = lean_st_ref_get(x_12, x_43); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_ctor_get(x_45, 0); -lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_environment_main_module(x_47); -x_49 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__1; -lean_inc(x_42); +x_38 = l_Lean_addMacroScope(x_34, x_37, x_24); +x_39 = lean_box(0); +x_40 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__6; +x_41 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__12; +lean_inc(x_28); +x_42 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_42, 0, x_28); +lean_ctor_set(x_42, 1, x_40); +lean_ctor_set(x_42, 2, x_38); +lean_ctor_set(x_42, 3, x_41); +x_43 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; +x_44 = lean_array_push(x_43, x_36); +x_45 = lean_array_push(x_44, x_42); +x_46 = lean_box(2); +x_47 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__2; +x_48 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_45); +x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__15; x_50 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_50, 0, x_42); +lean_ctor_set(x_50, 0, x_28); lean_ctor_set(x_50, 1, x_49); -x_51 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; -lean_inc(x_42); -x_52 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_52, 0, x_42); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__10; -lean_inc(x_42); -x_54 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_54, 0, x_42); +x_51 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; +x_52 = lean_array_push(x_51, x_50); +x_53 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__10; +x_54 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_54, 0, x_46); lean_ctor_set(x_54, 1, x_53); -x_55 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; +lean_ctor_set(x_54, 2, x_52); +x_55 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; +lean_inc(x_54); x_56 = lean_array_push(x_55, x_54); -x_57 = lean_box(2); -x_58 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; -x_59 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_59, 2, x_56); -x_60 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__14; -lean_inc(x_24); -lean_inc(x_48); -x_61 = l_Lean_addMacroScope(x_48, x_60, x_24); -x_62 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__13; -lean_inc(x_42); -x_63 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_63, 0, x_42); -lean_ctor_set(x_63, 1, x_62); -lean_ctor_set(x_63, 2, x_61); -lean_ctor_set(x_63, 3, x_37); -x_64 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; -lean_inc(x_42); -x_65 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_65, 0, x_42); +lean_inc(x_54); +x_57 = lean_array_push(x_56, x_54); +x_58 = lean_array_push(x_57, x_54); +x_59 = lean_array_push(x_58, x_1); +x_60 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; +x_61 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_61, 0, x_46); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_61, 2, x_59); +x_62 = lean_array_push(x_43, x_48); +x_63 = lean_array_push(x_62, x_61); +x_64 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; +x_65 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_65, 0, x_46); lean_ctor_set(x_65, 1, x_64); -x_66 = lean_array_push(x_55, x_1); -x_67 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_67, 0, x_57); -lean_ctor_set(x_67, 1, x_58); -lean_ctor_set(x_67, 2, x_66); -x_68 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; -x_69 = lean_array_push(x_68, x_40); -x_70 = lean_array_push(x_69, x_67); -x_71 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -x_72 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_72, 0, x_57); -lean_ctor_set(x_72, 1, x_71); -lean_ctor_set(x_72, 2, x_70); -x_73 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; -lean_inc(x_63); -x_74 = lean_array_push(x_73, x_63); -x_75 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; -x_76 = lean_array_push(x_74, x_75); -x_77 = lean_array_push(x_76, x_75); -x_78 = lean_array_push(x_77, x_65); -lean_inc(x_78); -x_79 = lean_array_push(x_78, x_72); -x_80 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; +lean_ctor_set(x_65, 2, x_63); +lean_inc(x_11); +x_66 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_11, x_12, x_32); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_st_ref_get(x_12, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_72 = lean_ctor_get(x_70, 0); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_environment_main_module(x_72); +x_74 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__1; +lean_inc(x_67); +x_75 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_75, 0, x_67); +lean_ctor_set(x_75, 1, x_74); +x_76 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; +lean_inc(x_67); +x_77 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_77, 0, x_67); +lean_ctor_set(x_77, 1, x_76); +x_78 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__13; +lean_inc(x_67); +x_79 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_79, 0, x_67); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_array_push(x_51, x_79); x_81 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_81, 0, x_57); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_81, 2, x_79); -x_82 = lean_array_push(x_55, x_81); -x_83 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__10; -x_84 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_84, 0, x_57); -lean_ctor_set(x_84, 1, x_83); -lean_ctor_set(x_84, 2, x_82); -x_85 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; -x_86 = lean_array_push(x_85, x_52); -x_87 = lean_array_push(x_86, x_59); -x_88 = lean_array_push(x_87, x_84); -x_89 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__12; -x_90 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_90, 0, x_57); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_90, 2, x_88); -x_91 = lean_array_push(x_68, x_90); -x_92 = lean_array_push(x_91, x_75); -x_93 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__3; -x_94 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_94, 0, x_57); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_94, 2, x_92); -x_95 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__15; -lean_inc(x_42); -x_96 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_96, 0, x_42); +lean_ctor_set(x_81, 0, x_46); +lean_ctor_set(x_81, 1, x_60); +lean_ctor_set(x_81, 2, x_80); +x_82 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__17; +lean_inc(x_24); +lean_inc(x_73); +x_83 = l_Lean_addMacroScope(x_73, x_82, x_24); +x_84 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__16; +lean_inc(x_67); +x_85 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_85, 0, x_67); +lean_ctor_set(x_85, 1, x_84); +lean_ctor_set(x_85, 2, x_83); +lean_ctor_set(x_85, 3, x_39); +x_86 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; +lean_inc(x_67); +x_87 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_87, 0, x_67); +lean_ctor_set(x_87, 1, x_86); +x_88 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; +lean_inc(x_85); +x_89 = lean_array_push(x_88, x_85); +x_90 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; +x_91 = lean_array_push(x_89, x_90); +x_92 = lean_array_push(x_91, x_90); +x_93 = lean_array_push(x_92, x_87); +lean_inc(x_93); +x_94 = lean_array_push(x_93, x_65); +x_95 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; +x_96 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_96, 0, x_46); lean_ctor_set(x_96, 1, x_95); -x_97 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__17; -x_98 = l_Lean_mkSepArray(x_7, x_97); +lean_ctor_set(x_96, 2, x_94); +x_97 = lean_array_push(x_51, x_96); +x_98 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__10; +x_99 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_99, 0, x_46); +lean_ctor_set(x_99, 1, x_98); +lean_ctor_set(x_99, 2, x_97); +x_100 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; +x_101 = lean_array_push(x_100, x_77); +x_102 = lean_array_push(x_101, x_81); +x_103 = lean_array_push(x_102, x_99); +x_104 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__12; +x_105 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_105, 0, x_46); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_105, 2, x_103); +x_106 = lean_array_push(x_43, x_105); +x_107 = lean_array_push(x_106, x_90); +x_108 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__3; +x_109 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_109, 0, x_46); +lean_ctor_set(x_109, 1, x_108); +lean_ctor_set(x_109, 2, x_107); +x_110 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__18; +lean_inc(x_67); +x_111 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_111, 0, x_67); +lean_ctor_set(x_111, 1, x_110); +x_112 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__20; +x_113 = l_Lean_mkSepArray(x_7, x_112); lean_dec(x_7); -x_99 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; -x_100 = l_Array_append___rarg(x_99, x_98); -x_101 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_101, 0, x_57); -lean_ctor_set(x_101, 1, x_58); -lean_ctor_set(x_101, 2, x_100); -x_102 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__16; -lean_inc(x_42); -x_103 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_103, 0, x_42); -lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__24; +x_114 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +x_115 = l_Array_append___rarg(x_114, x_113); +x_116 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_116, 0, x_46); +lean_ctor_set(x_116, 1, x_60); +lean_ctor_set(x_116, 2, x_115); +x_117 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__16; +lean_inc(x_67); +x_118 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_118, 0, x_67); +lean_ctor_set(x_118, 1, x_117); +lean_inc(x_67); +x_119 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_119, 0, x_67); +lean_ctor_set(x_119, 1, x_35); +x_120 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__27; lean_inc(x_24); -lean_inc(x_48); -x_105 = l_Lean_addMacroScope(x_48, x_104, x_24); -x_106 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__20; -x_107 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__26; -lean_inc(x_42); -x_108 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_108, 0, x_42); -lean_ctor_set(x_108, 1, x_106); -lean_ctor_set(x_108, 2, x_105); -lean_ctor_set(x_108, 3, x_107); -x_109 = lean_array_push(x_55, x_63); -x_110 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_110, 0, x_57); -lean_ctor_set(x_110, 1, x_58); -lean_ctor_set(x_110, 2, x_109); -x_111 = lean_array_push(x_68, x_108); -x_112 = lean_array_push(x_111, x_110); -x_113 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_113, 0, x_57); -lean_ctor_set(x_113, 1, x_71); -lean_ctor_set(x_113, 2, x_112); -x_114 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__10; -x_115 = lean_array_push(x_114, x_113); -x_116 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__9; -x_117 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_117, 0, x_57); -lean_ctor_set(x_117, 1, x_116); -lean_ctor_set(x_117, 2, x_115); -x_118 = lean_array_push(x_55, x_117); -x_119 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_119, 0, x_57); -lean_ctor_set(x_119, 1, x_58); -lean_ctor_set(x_119, 2, x_118); -x_120 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__10; -lean_inc(x_42); -x_121 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_121, 0, x_42); -lean_ctor_set(x_121, 1, x_120); -x_122 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__12; -lean_inc(x_42); -x_123 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_123, 0, x_42); -lean_ctor_set(x_123, 1, x_122); -x_124 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; -lean_inc(x_24); -lean_inc(x_48); -x_125 = l_Lean_addMacroScope(x_48, x_124, x_24); -x_126 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; -x_127 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; -lean_inc(x_42); -x_128 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_128, 0, x_42); -lean_ctor_set(x_128, 1, x_126); -lean_ctor_set(x_128, 2, x_125); -lean_ctor_set(x_128, 3, x_127); -x_129 = lean_array_push(x_55, x_128); +lean_inc(x_73); +x_121 = l_Lean_addMacroScope(x_73, x_120, x_24); +x_122 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__23; +x_123 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__29; +lean_inc(x_67); +x_124 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_124, 0, x_67); +lean_ctor_set(x_124, 1, x_122); +lean_ctor_set(x_124, 2, x_121); +lean_ctor_set(x_124, 3, x_123); +x_125 = lean_array_push(x_43, x_119); +x_126 = lean_array_push(x_125, x_124); +x_127 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_127, 0, x_46); +lean_ctor_set(x_127, 1, x_47); +lean_ctor_set(x_127, 2, x_126); +lean_inc(x_67); +x_128 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_128, 0, x_67); +lean_ctor_set(x_128, 1, x_49); +x_129 = lean_array_push(x_51, x_128); x_130 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_130, 0, x_57); -lean_ctor_set(x_130, 1, x_58); +lean_ctor_set(x_130, 0, x_46); +lean_ctor_set(x_130, 1, x_53); lean_ctor_set(x_130, 2, x_129); +lean_inc(x_130); x_131 = lean_array_push(x_55, x_130); -x_132 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_132, 0, x_57); -lean_ctor_set(x_132, 1, x_58); -lean_ctor_set(x_132, 2, x_131); -x_133 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; -lean_inc(x_42); -x_134 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_134, 0, x_42); -lean_ctor_set(x_134, 1, x_133); -x_135 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__6; -lean_inc(x_42); -x_136 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_136, 0, x_42); -lean_ctor_set(x_136, 1, x_135); -x_137 = lean_array_push(x_55, x_136); -x_138 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__16; -x_139 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_139, 0, x_57); -lean_ctor_set(x_139, 1, x_138); -lean_ctor_set(x_139, 2, x_137); -x_140 = lean_array_push(x_68, x_139); -x_141 = lean_array_push(x_140, x_75); +lean_inc(x_130); +x_132 = lean_array_push(x_131, x_130); +x_133 = lean_array_push(x_132, x_130); +x_134 = lean_array_push(x_133, x_85); +x_135 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_135, 0, x_46); +lean_ctor_set(x_135, 1, x_60); +lean_ctor_set(x_135, 2, x_134); +x_136 = lean_array_push(x_43, x_127); +x_137 = lean_array_push(x_136, x_135); +x_138 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_138, 0, x_46); +lean_ctor_set(x_138, 1, x_64); +lean_ctor_set(x_138, 2, x_137); +x_139 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__30; +x_140 = lean_array_push(x_139, x_138); +x_141 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__9; x_142 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_142, 0, x_57); -lean_ctor_set(x_142, 1, x_93); -lean_ctor_set(x_142, 2, x_141); -x_143 = lean_array_push(x_55, x_142); +lean_ctor_set(x_142, 0, x_46); +lean_ctor_set(x_142, 1, x_141); +lean_ctor_set(x_142, 2, x_140); +x_143 = lean_array_push(x_51, x_142); x_144 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_144, 0, x_57); -lean_ctor_set(x_144, 1, x_58); +lean_ctor_set(x_144, 0, x_46); +lean_ctor_set(x_144, 1, x_60); lean_ctor_set(x_144, 2, x_143); -x_145 = lean_array_push(x_55, x_144); -x_146 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__10; -x_147 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_147, 0, x_57); -lean_ctor_set(x_147, 1, x_146); -lean_ctor_set(x_147, 2, x_145); -x_148 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; -x_149 = lean_array_push(x_148, x_123); -lean_inc(x_149); -x_150 = lean_array_push(x_149, x_132); -lean_inc(x_134); -x_151 = lean_array_push(x_150, x_134); -x_152 = lean_array_push(x_151, x_147); -x_153 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToTerm_toTerm___spec__1___closed__1; -x_154 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_154, 0, x_57); -lean_ctor_set(x_154, 1, x_153); -lean_ctor_set(x_154, 2, x_152); -x_155 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__15; +x_145 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__10; +lean_inc(x_67); +x_146 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_146, 0, x_67); +lean_ctor_set(x_146, 1, x_145); +x_147 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__12; +lean_inc(x_67); +x_148 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_148, 0, x_67); +lean_ctor_set(x_148, 1, x_147); +x_149 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; lean_inc(x_24); -lean_inc(x_48); -x_156 = l_Lean_addMacroScope(x_48, x_155, x_24); -x_157 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__14; -x_158 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__20; -lean_inc(x_42); -x_159 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_159, 0, x_42); -lean_ctor_set(x_159, 1, x_157); -lean_ctor_set(x_159, 2, x_156); -lean_ctor_set(x_159, 3, x_158); -x_160 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_42); +lean_inc(x_73); +x_150 = l_Lean_addMacroScope(x_73, x_149, x_24); +x_151 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; +x_152 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; +lean_inc(x_67); +x_153 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_153, 0, x_67); +lean_ctor_set(x_153, 1, x_151); +lean_ctor_set(x_153, 2, x_150); +lean_ctor_set(x_153, 3, x_152); +x_154 = lean_array_push(x_51, x_153); +x_155 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_155, 0, x_46); +lean_ctor_set(x_155, 1, x_60); +lean_ctor_set(x_155, 2, x_154); +x_156 = lean_array_push(x_51, x_155); +x_157 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_157, 0, x_46); +lean_ctor_set(x_157, 1, x_60); +lean_ctor_set(x_157, 2, x_156); +x_158 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; +lean_inc(x_67); +x_159 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_159, 0, x_67); +lean_ctor_set(x_159, 1, x_158); +x_160 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__6; +lean_inc(x_67); x_161 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_161, 0, x_42); +lean_ctor_set(x_161, 0, x_67); lean_ctor_set(x_161, 1, x_160); -x_162 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__16; -lean_inc(x_42); -x_163 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_163, 0, x_42); -lean_ctor_set(x_163, 1, x_162); -x_164 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__32; -x_165 = l_Lean_addMacroScope(x_48, x_164, x_24); -x_166 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__31; -lean_inc(x_42); -x_167 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_167, 0, x_42); -lean_ctor_set(x_167, 1, x_166); -lean_ctor_set(x_167, 2, x_165); -lean_ctor_set(x_167, 3, x_37); -lean_inc(x_167); -x_168 = lean_array_push(x_55, x_167); +x_162 = lean_array_push(x_51, x_161); +x_163 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__16; +x_164 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_164, 0, x_46); +lean_ctor_set(x_164, 1, x_163); +lean_ctor_set(x_164, 2, x_162); +x_165 = lean_array_push(x_43, x_164); +x_166 = lean_array_push(x_165, x_90); +x_167 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_167, 0, x_46); +lean_ctor_set(x_167, 1, x_108); +lean_ctor_set(x_167, 2, x_166); +x_168 = lean_array_push(x_51, x_167); x_169 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_169, 0, x_57); -lean_ctor_set(x_169, 1, x_58); +lean_ctor_set(x_169, 0, x_46); +lean_ctor_set(x_169, 1, x_60); lean_ctor_set(x_169, 2, x_168); -x_170 = lean_array_push(x_68, x_163); -x_171 = lean_array_push(x_170, x_169); -x_172 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__28; -x_173 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_173, 0, x_57); -lean_ctor_set(x_173, 1, x_172); -lean_ctor_set(x_173, 2, x_171); -x_174 = lean_array_push(x_55, x_173); -x_175 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_175, 0, x_57); -lean_ctor_set(x_175, 1, x_58); -lean_ctor_set(x_175, 2, x_174); -x_176 = lean_array_push(x_68, x_8); -x_177 = lean_array_push(x_176, x_175); +x_170 = lean_array_push(x_51, x_169); +x_171 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__10; +x_172 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_172, 0, x_46); +lean_ctor_set(x_172, 1, x_171); +lean_ctor_set(x_172, 2, x_170); +x_173 = lean_array_push(x_55, x_148); +lean_inc(x_173); +x_174 = lean_array_push(x_173, x_157); +lean_inc(x_159); +x_175 = lean_array_push(x_174, x_159); +x_176 = lean_array_push(x_175, x_172); +x_177 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToTerm_toTerm___spec__1___closed__1; x_178 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_178, 0, x_57); -lean_ctor_set(x_178, 1, x_58); -lean_ctor_set(x_178, 2, x_177); -x_179 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; -x_180 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_180, 0, x_42); -lean_ctor_set(x_180, 1, x_179); -x_181 = lean_array_push(x_85, x_161); -x_182 = lean_array_push(x_181, x_178); -x_183 = lean_array_push(x_182, x_180); -x_184 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -x_185 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_185, 0, x_57); +lean_ctor_set(x_178, 0, x_46); +lean_ctor_set(x_178, 1, x_177); +lean_ctor_set(x_178, 2, x_176); +x_179 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__15; +lean_inc(x_24); +lean_inc(x_73); +x_180 = l_Lean_addMacroScope(x_73, x_179, x_24); +x_181 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__14; +x_182 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__20; +lean_inc(x_67); +x_183 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_183, 0, x_67); +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 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_67); +x_185 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_185, 0, x_67); lean_ctor_set(x_185, 1, x_184); -lean_ctor_set(x_185, 2, x_183); -x_186 = lean_array_push(x_55, x_185); -x_187 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_187, 0, x_57); -lean_ctor_set(x_187, 1, x_58); -lean_ctor_set(x_187, 2, x_186); -x_188 = lean_array_push(x_68, x_159); -x_189 = lean_array_push(x_188, x_187); -x_190 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_190, 0, x_57); -lean_ctor_set(x_190, 1, x_71); -lean_ctor_set(x_190, 2, x_189); -x_191 = lean_array_push(x_55, x_190); -x_192 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_192, 0, x_57); -lean_ctor_set(x_192, 1, x_58); -lean_ctor_set(x_192, 2, x_191); -x_193 = lean_array_push(x_55, x_192); -x_194 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_194, 0, x_57); -lean_ctor_set(x_194, 1, x_58); -lean_ctor_set(x_194, 2, x_193); -x_195 = lean_array_push(x_78, x_167); -x_196 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_196, 0, x_57); -lean_ctor_set(x_196, 1, x_80); -lean_ctor_set(x_196, 2, x_195); -x_197 = lean_array_push(x_55, x_196); -x_198 = l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__2; +x_186 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__19; +lean_inc(x_67); +x_187 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_187, 0, x_67); +lean_ctor_set(x_187, 1, x_186); +x_188 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__36; +x_189 = l_Lean_addMacroScope(x_73, x_188, x_24); +x_190 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__35; +lean_inc(x_67); +x_191 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_191, 0, x_67); +lean_ctor_set(x_191, 1, x_190); +lean_ctor_set(x_191, 2, x_189); +lean_ctor_set(x_191, 3, x_39); +lean_inc(x_191); +x_192 = lean_array_push(x_51, x_191); +x_193 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_193, 0, x_46); +lean_ctor_set(x_193, 1, x_60); +lean_ctor_set(x_193, 2, x_192); +x_194 = lean_array_push(x_43, x_187); +x_195 = lean_array_push(x_194, x_193); +x_196 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__32; +x_197 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_197, 0, x_46); +lean_ctor_set(x_197, 1, x_196); +lean_ctor_set(x_197, 2, x_195); +x_198 = lean_array_push(x_51, x_197); x_199 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_199, 0, x_57); -lean_ctor_set(x_199, 1, x_198); -lean_ctor_set(x_199, 2, x_197); -x_200 = lean_array_push(x_68, x_199); -x_201 = lean_array_push(x_200, x_75); +lean_ctor_set(x_199, 0, x_46); +lean_ctor_set(x_199, 1, x_60); +lean_ctor_set(x_199, 2, x_198); +x_200 = lean_array_push(x_43, x_8); +x_201 = lean_array_push(x_200, x_199); x_202 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_202, 0, x_57); -lean_ctor_set(x_202, 1, x_93); +lean_ctor_set(x_202, 0, x_46); +lean_ctor_set(x_202, 1, x_60); lean_ctor_set(x_202, 2, x_201); -lean_inc(x_50); -x_203 = lean_array_push(x_68, x_50); -lean_inc(x_203); -x_204 = lean_array_push(x_203, x_9); -x_205 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__12; -x_206 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_206, 0, x_57); -lean_ctor_set(x_206, 1, x_205); -lean_ctor_set(x_206, 2, x_204); -x_207 = lean_array_push(x_68, x_206); -x_208 = lean_array_push(x_207, x_75); +x_203 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; +x_204 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_204, 0, x_67); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_array_push(x_100, x_185); +x_206 = lean_array_push(x_205, x_202); +x_207 = lean_array_push(x_206, x_204); +x_208 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; x_209 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_209, 0, x_57); -lean_ctor_set(x_209, 1, x_93); -lean_ctor_set(x_209, 2, x_208); -x_210 = lean_array_push(x_68, x_202); -x_211 = lean_array_push(x_210, x_209); -x_212 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_212, 0, x_57); -lean_ctor_set(x_212, 1, x_58); -lean_ctor_set(x_212, 2, x_211); -x_213 = lean_array_push(x_55, x_212); +lean_ctor_set(x_209, 0, x_46); +lean_ctor_set(x_209, 1, x_208); +lean_ctor_set(x_209, 2, x_207); +x_210 = lean_array_push(x_51, x_209); +x_211 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_211, 0, x_46); +lean_ctor_set(x_211, 1, x_60); +lean_ctor_set(x_211, 2, x_210); +x_212 = lean_array_push(x_43, x_183); +x_213 = lean_array_push(x_212, x_211); x_214 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_214, 0, x_57); -lean_ctor_set(x_214, 1, x_146); +lean_ctor_set(x_214, 0, x_46); +lean_ctor_set(x_214, 1, x_64); lean_ctor_set(x_214, 2, x_213); -x_215 = lean_array_push(x_149, x_194); -x_216 = lean_array_push(x_215, x_134); -x_217 = lean_array_push(x_216, x_214); +x_215 = lean_array_push(x_51, x_214); +x_216 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_216, 0, x_46); +lean_ctor_set(x_216, 1, x_60); +lean_ctor_set(x_216, 2, x_215); +x_217 = lean_array_push(x_51, x_216); x_218 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_218, 0, x_57); -lean_ctor_set(x_218, 1, x_153); +lean_ctor_set(x_218, 0, x_46); +lean_ctor_set(x_218, 1, x_60); lean_ctor_set(x_218, 2, x_217); -x_219 = lean_array_push(x_68, x_154); -x_220 = lean_array_push(x_219, x_218); -x_221 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_221, 0, x_57); -lean_ctor_set(x_221, 1, x_58); -lean_ctor_set(x_221, 2, x_220); -x_222 = lean_array_push(x_55, x_221); -x_223 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__4; -x_224 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_224, 0, x_57); -lean_ctor_set(x_224, 1, x_223); -lean_ctor_set(x_224, 2, x_222); -x_225 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__4; -x_226 = lean_array_push(x_225, x_103); -x_227 = lean_array_push(x_226, x_75); -x_228 = lean_array_push(x_227, x_75); -x_229 = lean_array_push(x_228, x_119); -x_230 = lean_array_push(x_229, x_121); -x_231 = lean_array_push(x_230, x_224); -x_232 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__8; +x_219 = lean_array_push(x_93, x_191); +x_220 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_220, 0, x_46); +lean_ctor_set(x_220, 1, x_95); +lean_ctor_set(x_220, 2, x_219); +x_221 = lean_array_push(x_51, x_220); +x_222 = l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__2; +x_223 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_223, 0, x_46); +lean_ctor_set(x_223, 1, x_222); +lean_ctor_set(x_223, 2, x_221); +x_224 = lean_array_push(x_43, x_223); +x_225 = lean_array_push(x_224, x_90); +x_226 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_226, 0, x_46); +lean_ctor_set(x_226, 1, x_108); +lean_ctor_set(x_226, 2, x_225); +lean_inc(x_75); +x_227 = lean_array_push(x_43, x_75); +lean_inc(x_227); +x_228 = lean_array_push(x_227, x_9); +x_229 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__12; +x_230 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_230, 0, x_46); +lean_ctor_set(x_230, 1, x_229); +lean_ctor_set(x_230, 2, x_228); +x_231 = lean_array_push(x_43, x_230); +x_232 = lean_array_push(x_231, x_90); x_233 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_233, 0, x_57); -lean_ctor_set(x_233, 1, x_232); -lean_ctor_set(x_233, 2, x_231); -x_234 = lean_array_push(x_68, x_233); -x_235 = lean_array_push(x_234, x_75); +lean_ctor_set(x_233, 0, x_46); +lean_ctor_set(x_233, 1, x_108); +lean_ctor_set(x_233, 2, x_232); +x_234 = lean_array_push(x_43, x_226); +x_235 = lean_array_push(x_234, x_233); x_236 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_236, 0, x_57); -lean_ctor_set(x_236, 1, x_93); +lean_ctor_set(x_236, 0, x_46); +lean_ctor_set(x_236, 1, x_60); lean_ctor_set(x_236, 2, x_235); -x_237 = lean_array_push(x_55, x_236); +x_237 = lean_array_push(x_51, x_236); x_238 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_238, 0, x_57); -lean_ctor_set(x_238, 1, x_58); +lean_ctor_set(x_238, 0, x_46); +lean_ctor_set(x_238, 1, x_171); lean_ctor_set(x_238, 2, x_237); -x_239 = lean_array_push(x_55, x_238); -x_240 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_240, 0, x_57); -lean_ctor_set(x_240, 1, x_146); -lean_ctor_set(x_240, 2, x_239); -x_241 = lean_array_push(x_148, x_96); -x_242 = lean_array_push(x_241, x_101); -x_243 = lean_array_push(x_242, x_50); -x_244 = lean_array_push(x_243, x_240); -x_245 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__8; -x_246 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_246, 0, x_57); -lean_ctor_set(x_246, 1, x_245); -lean_ctor_set(x_246, 2, x_244); -x_247 = lean_array_push(x_68, x_246); -x_248 = lean_array_push(x_247, x_75); -x_249 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_249, 0, x_57); -lean_ctor_set(x_249, 1, x_93); -lean_ctor_set(x_249, 2, x_248); -x_250 = lean_array_push(x_68, x_94); -x_251 = lean_array_push(x_250, x_249); -x_252 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_252, 0, x_57); -lean_ctor_set(x_252, 1, x_58); -lean_ctor_set(x_252, 2, x_251); -x_253 = lean_array_push(x_55, x_252); -x_254 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_254, 0, x_57); -lean_ctor_set(x_254, 1, x_146); -lean_ctor_set(x_254, 2, x_253); -x_255 = lean_array_push(x_203, x_254); -x_256 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__2; +x_239 = lean_array_push(x_173, x_218); +x_240 = lean_array_push(x_239, x_159); +x_241 = lean_array_push(x_240, x_238); +x_242 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_242, 0, x_46); +lean_ctor_set(x_242, 1, x_177); +lean_ctor_set(x_242, 2, x_241); +x_243 = lean_array_push(x_43, x_178); +x_244 = lean_array_push(x_243, x_242); +x_245 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_245, 0, x_46); +lean_ctor_set(x_245, 1, x_60); +lean_ctor_set(x_245, 2, x_244); +x_246 = lean_array_push(x_51, x_245); +x_247 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__4; +x_248 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_248, 0, x_46); +lean_ctor_set(x_248, 1, x_247); +lean_ctor_set(x_248, 2, x_246); +x_249 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__4; +x_250 = lean_array_push(x_249, x_118); +x_251 = lean_array_push(x_250, x_90); +x_252 = lean_array_push(x_251, x_90); +x_253 = lean_array_push(x_252, x_144); +x_254 = lean_array_push(x_253, x_146); +x_255 = lean_array_push(x_254, x_248); +x_256 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__8; x_257 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_257, 0, x_57); +lean_ctor_set(x_257, 0, x_46); lean_ctor_set(x_257, 1, x_256); lean_ctor_set(x_257, 2, x_255); -x_258 = lean_unsigned_to_nat(1u); -x_259 = l_Lean_Syntax_getArg(x_257, x_258); -lean_dec(x_257); -x_260 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_259); -x_261 = l_List_appendTR___rarg(x_260, x_10); -x_262 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_261, x_2, x_3, x_4, x_5, x_6, x_11, x_12, x_46); -return x_262; +x_258 = lean_array_push(x_43, x_257); +x_259 = lean_array_push(x_258, x_90); +x_260 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_260, 0, x_46); +lean_ctor_set(x_260, 1, x_108); +lean_ctor_set(x_260, 2, x_259); +x_261 = lean_array_push(x_51, x_260); +x_262 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_262, 0, x_46); +lean_ctor_set(x_262, 1, x_60); +lean_ctor_set(x_262, 2, x_261); +x_263 = lean_array_push(x_51, x_262); +x_264 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_264, 0, x_46); +lean_ctor_set(x_264, 1, x_171); +lean_ctor_set(x_264, 2, x_263); +x_265 = lean_array_push(x_55, x_111); +x_266 = lean_array_push(x_265, x_116); +x_267 = lean_array_push(x_266, x_75); +x_268 = lean_array_push(x_267, x_264); +x_269 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__8; +x_270 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_270, 0, x_46); +lean_ctor_set(x_270, 1, x_269); +lean_ctor_set(x_270, 2, x_268); +x_271 = lean_array_push(x_43, x_270); +x_272 = lean_array_push(x_271, x_90); +x_273 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_273, 0, x_46); +lean_ctor_set(x_273, 1, x_108); +lean_ctor_set(x_273, 2, x_272); +x_274 = lean_array_push(x_43, x_109); +x_275 = lean_array_push(x_274, x_273); +x_276 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_276, 0, x_46); +lean_ctor_set(x_276, 1, x_60); +lean_ctor_set(x_276, 2, x_275); +x_277 = lean_array_push(x_51, x_276); +x_278 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_278, 0, x_46); +lean_ctor_set(x_278, 1, x_171); +lean_ctor_set(x_278, 2, x_277); +x_279 = lean_array_push(x_227, x_278); +x_280 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__2; +x_281 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_281, 0, x_46); +lean_ctor_set(x_281, 1, x_280); +lean_ctor_set(x_281, 2, x_279); +x_282 = lean_unsigned_to_nat(1u); +x_283 = l_Lean_Syntax_getArg(x_281, x_282); +lean_dec(x_281); +x_284 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_283); +x_285 = l_List_appendTR___rarg(x_284, x_10); +x_286 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_285, x_2, x_3, x_4, x_5, x_6, x_11, x_12, x_71); +return x_286; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { @@ -41957,7 +42049,7 @@ lean_ctor_set(x_63, 2, x_62); x_64 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__11; lean_inc(x_6); x_65 = lean_name_mk_string(x_6, x_64); -x_66 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__10; +x_66 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__13; lean_inc(x_15); x_67 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_67, 0, x_15); @@ -43029,7 +43121,7 @@ lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint x_47 = lean_ctor_get(x_41, 1); lean_inc(x_47); lean_dec(x_41); -x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_47); +x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_47); x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); @@ -43057,7 +43149,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean lean_inc(x_28); x_35 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_35, 0, x_28); -x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_30, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_32); +x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_30, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_32); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -43251,7 +43343,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1598u); +x_1 = lean_unsigned_to_nat(1600u); x_2 = lean_unsigned_to_nat(24u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43263,7 +43355,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1605u); +x_1 = lean_unsigned_to_nat(1607u); x_2 = lean_unsigned_to_nat(84u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43291,7 +43383,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1598u); +x_1 = lean_unsigned_to_nat(1600u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43303,7 +43395,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1598u); +x_1 = lean_unsigned_to_nat(1600u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43349,7 +43441,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30645_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30724_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -43505,7 +43597,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1616u); +x_1 = lean_unsigned_to_nat(1618u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43517,7 +43609,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1616u); +x_1 = lean_unsigned_to_nat(1618u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43545,7 +43637,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1616u); +x_1 = lean_unsigned_to_nat(1618u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43557,7 +43649,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1616u); +x_1 = lean_unsigned_to_nat(1618u); x_2 = lean_unsigned_to_nat(17u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43663,7 +43755,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1619u); +x_1 = lean_unsigned_to_nat(1621u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43675,7 +43767,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1619u); +x_1 = lean_unsigned_to_nat(1621u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43703,7 +43795,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1619u); +x_1 = lean_unsigned_to_nat(1621u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43715,7 +43807,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1619u); +x_1 = lean_unsigned_to_nat(1621u); x_2 = lean_unsigned_to_nat(17u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43821,7 +43913,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1624u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43833,7 +43925,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1624u); x_2 = lean_unsigned_to_nat(68u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43861,7 +43953,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1624u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43873,7 +43965,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1622u); +x_1 = lean_unsigned_to_nat(1624u); x_2 = lean_unsigned_to_nat(20u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43979,7 +44071,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1627u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43991,7 +44083,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1627u); x_2 = lean_unsigned_to_nat(68u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44019,7 +44111,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1627u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44031,7 +44123,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1625u); +x_1 = lean_unsigned_to_nat(1627u); x_2 = lean_unsigned_to_nat(20u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -45296,6 +45388,14 @@ l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__31 = _init_l_L lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__31); l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__32 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__32(); lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__32); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__33); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__34 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__34(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__34); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__35 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__35(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__35); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__36 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__36(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__36); l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__1 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__1); l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2(); @@ -45364,7 +45464,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___closed_ res = l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30645_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30724_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Extra.c b/stage0/stdlib/Lean/Elab/Extra.c index 474569623b..dcde1401e8 100644 --- a/stage0/stdlib/Lean/Elab/Extra.c +++ b/stage0/stdlib/Lean/Elab/Extra.c @@ -28,6 +28,7 @@ static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_ LEAN_EXPORT lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_BinOp_elabBinRelCore(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabForIn_x27___closed__8; static lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__1; lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -220,7 +221,7 @@ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_BinOp_elabBinCalc LEAN_EXPORT lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_BinOp_elabBinCalc(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_BinOp_elabBinCalc___spec__3___closed__2; -lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_relation_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabForIn_x27___closed__4; static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp___closed__20; @@ -275,7 +276,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinRelNoProp_declRan static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_BinOp_elabBinCalc___spec__3___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_6221_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_6225_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabForIn_x27___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_throwForInFailure___closed__2; LEAN_EXPORT uint8_t l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(lean_object*); @@ -288,7 +289,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOpLazy_declRange_ size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinCalc(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabForIn_x27___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Term_elabForIn___closed__7; @@ -327,7 +327,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinCalc___closed__3; lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_BinOp_elabBinCalc___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabForIn___closed__29; LEAN_EXPORT lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___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*); @@ -441,6 +440,7 @@ lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinRel_declRange___closed__2; static lean_object* l_Lean_Elab_Term_BinOp_elabDefaultOrNonempty___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_declRange___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinCalc_declRange___closed__7; lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -851,7 +851,7 @@ x_29 = lean_array_push(x_28, x_25); x_30 = lean_array_push(x_29, x_26); x_31 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__5; x_32 = 0; -x_33 = l_Lean_Elab_Term_elabAppArgs(x_22, x_31, x_30, x_4, x_32, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_33 = l_Lean_Elab_Term_elabAppArgs(x_22, x_31, x_30, x_4, x_32, x_32, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_23); return x_33; } else @@ -2271,7 +2271,7 @@ x_29 = lean_array_push(x_28, x_25); x_30 = lean_array_push(x_29, x_26); x_31 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__5; x_32 = 0; -x_33 = l_Lean_Elab_Term_elabAppArgs(x_22, x_31, x_30, x_4, x_32, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_33 = l_Lean_Elab_Term_elabAppArgs(x_22, x_31, x_30, x_4, x_32, x_32, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_23); return x_33; } else @@ -7340,7 +7340,7 @@ x_15 = lean_array_push(x_14, x_12); x_16 = lean_box(0); x_17 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__5; x_18 = 0; -x_19 = l_Lean_Elab_Term_elabAppArgs(x_1, x_17, x_15, x_16, x_18, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_19 = l_Lean_Elab_Term_elabAppArgs(x_1, x_17, x_15, x_16, x_18, x_18, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_19; } } @@ -8620,7 +8620,7 @@ x_47 = lean_ctor_get(x_41, 1); lean_inc(x_47); lean_dec(x_41); lean_inc(x_5); -x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_47); +x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_47); x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); @@ -8676,7 +8676,7 @@ x_34 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_33); lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_5, x_35, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_5, x_35, x_8, x_9, x_10, x_11, x_12, x_13, x_20); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -8941,7 +8941,7 @@ lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint x_49 = lean_ctor_get(x_43, 1); lean_inc(x_49); lean_dec(x_43); -x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_49); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -8996,7 +8996,7 @@ x_36 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_20, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_22); +x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_20, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_22); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); @@ -9492,7 +9492,7 @@ x_51 = lean_ctor_get(x_45, 1); lean_inc(x_51); lean_dec(x_45); lean_inc(x_4); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_51); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -9528,7 +9528,7 @@ x_38 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___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); -x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_4, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_32); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_4, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_32); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -9935,7 +9935,7 @@ lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint x_61 = lean_ctor_get(x_55, 1); lean_inc(x_61); lean_dec(x_55); -x_62 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_61); +x_62 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_61); x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); x_64 = lean_ctor_get(x_62, 1); @@ -9969,7 +9969,7 @@ 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; x_23 = l_Lean_Elab_Term_BinOp_elabBinOp___closed__14; -x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_16, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_18); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -9994,7 +9994,7 @@ x_32 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_16, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_18); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); @@ -10013,7 +10013,7 @@ if (lean_obj_tag(x_38) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_39 = l_Lean_Elab_Term_BinOp_elabBinOp___closed__21; -x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_16, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_18); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -10038,7 +10038,7 @@ x_48 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; x_49 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +x_50 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_16, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_18); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -10874,7 +10874,7 @@ x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); lean_dec(x_33); lean_inc(x_2); -x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_39); +x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_39); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -10922,7 +10922,7 @@ x_25 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_2, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +x_27 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_2, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_20); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -11247,7 +11247,7 @@ x_41 = lean_array_push(x_40, x_38); x_42 = lean_array_push(x_41, x_39); x_43 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__5; x_44 = 0; -x_45 = l_Lean_Elab_Term_elabAppArgs(x_5, x_43, x_42, x_6, x_44, x_44, x_11, x_12, x_13, x_14, x_15, x_16, x_37); +x_45 = l_Lean_Elab_Term_elabAppArgs(x_5, x_43, x_42, x_6, x_44, x_44, x_44, x_11, x_12, x_13, x_14, x_15, x_16, x_37); return x_45; } else @@ -11613,7 +11613,7 @@ lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint x_86 = lean_ctor_get(x_81, 1); lean_inc(x_86); lean_dec(x_81); -x_87 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_86); +x_87 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_ctor_get(x_87, 1); @@ -11647,7 +11647,7 @@ 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 = l_Lean_Elab_Term_BinOp_elabBinOp___closed__14; -x_50 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_42, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +x_50 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_42, x_49, x_6, x_7, x_8, x_9, x_10, x_11, x_44); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -11672,7 +11672,7 @@ x_58 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___closed__6; 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_60 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_42, x_59, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +x_60 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_42, x_59, x_6, x_7, x_8, x_9, x_10, x_11, x_44); x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); @@ -11691,7 +11691,7 @@ if (lean_obj_tag(x_64) == 0) { lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; x_65 = l_Lean_Elab_Term_BinOp_elabBinOp___closed__21; -x_66 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_42, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +x_66 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_42, x_65, x_6, x_7, x_8, x_9, x_10, x_11, x_44); x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); x_68 = lean_ctor_get(x_66, 1); @@ -11716,7 +11716,7 @@ x_74 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_getMonadForIn___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); -x_76 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_42, x_75, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +x_76 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_42, x_75, x_6, x_7, x_8, x_9, x_10, x_11, x_44); x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); @@ -16744,7 +16744,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_6221_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_6225_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -17353,7 +17353,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_BinOp_elabDefaultOrNonempty_d res = l___regBuiltin_Lean_Elab_Term_BinOp_elabDefaultOrNonempty_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_6221_(lean_io_mk_world()); +res = l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_6225_(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/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 39500b5f16..2a8740d5f9 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -33,6 +33,7 @@ uint8_t l_Lean_Level_isNeverZero(lean_object*); lean_object* l_Std_HashMap_insert___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___lambda__7(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lambda__4___closed__1; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___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_Expr_mvarId_x21(lean_object*); LEAN_EXPORT 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*); @@ -493,7 +494,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_up static lean_object* l_Lean_Elab_Command_instInhabitedInductiveView___closed__1; LEAN_EXPORT 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_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT 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_EXPORT lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_replaceIndFVarsWithConsts___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_applyRefMap___spec__1(lean_object*, lean_object*); @@ -552,7 +552,6 @@ LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_In LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkInductiveDecl___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Lean_mkRecOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1___closed__8; -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_Array_indexOfAux___at___private_Lean_Elab_PreDefinition_Structural_FindRecArg_0__Lean_Elab_Structural_getIndexMinPos___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapTRAux___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams___spec__5___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams___spec__6___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams___spec__7___closed__3; LEAN_EXPORT lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -751,6 +750,7 @@ static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__ static lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___closed__4; LEAN_EXPORT lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams_go(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_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_accLevelAtCtor___lambda__2___closed__7; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_computeFixedIndexBitMask_go___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -2047,7 +2047,7 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); lean_dec(x_34); -x_41 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +x_41 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_40); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); @@ -2101,7 +2101,7 @@ x_27 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lamb x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_12, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +x_29 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_12, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_14); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); @@ -8300,7 +8300,7 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint x_53 = lean_ctor_get(x_47, 1); lean_inc(x_53); lean_dec(x_47); -x_54 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_53); +x_54 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_53); x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); x_56 = lean_ctor_get(x_54, 1); @@ -8348,7 +8348,7 @@ x_40 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_elabCtorTy x_41 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_27, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +x_42 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_27, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_29); x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); x_44 = lean_ctor_get(x_42, 1); @@ -8601,7 +8601,7 @@ x_51 = lean_ctor_get(x_46, 1); lean_inc(x_51); lean_dec(x_46); lean_inc(x_6); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_51); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -8654,7 +8654,7 @@ lean_ctor_set(x_39, 1, x_38); x_40 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_34); -x_41 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_40, x_8, x_9, x_10, x_11, x_12, x_13, x_29); +x_41 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_6, x_40, x_8, x_9, x_10, x_11, x_12, x_13, x_29); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); @@ -8860,7 +8860,7 @@ lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint x_49 = lean_ctor_get(x_44, 1); lean_inc(x_49); lean_dec(x_44); -x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_49); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -8898,7 +8898,7 @@ x_37 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lamb 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_26, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_28); +x_39 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_26, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_28); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); @@ -15277,7 +15277,7 @@ lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint x_51 = lean_ctor_get(x_45, 1); lean_inc(x_51); lean_dec(x_45); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -15344,7 +15344,7 @@ x_38 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lamb 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_17, x_39, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_17, x_39, x_7, x_8, x_9, x_10, x_11, x_12, x_19); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -30133,7 +30133,7 @@ x_53 = lean_ctor_get(x_48, 1); lean_inc(x_53); lean_dec(x_48); lean_inc(x_9); -x_54 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_53); +x_54 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_53); x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); x_56 = lean_ctor_get(x_54, 1); @@ -30172,7 +30172,7 @@ x_41 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lamb x_42 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_42, 0, x_40); lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_42, x_11, x_12, x_13, x_14, x_15, x_16, x_33); +x_43 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_42, x_11, x_12, x_13, x_14, x_15, x_16, x_33); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -30338,7 +30338,7 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); lean_dec(x_34); -x_41 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_16, x_9, x_10, x_11, x_12, x_13, x_14, x_40); +x_41 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_16, x_9, x_10, x_11, x_12, x_13, x_14, x_40); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); @@ -30377,7 +30377,7 @@ x_27 = l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___lamb x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_28, x_9, x_10, x_11, x_12, x_13, x_14, x_18); +x_29 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_16, x_28, x_9, x_10, x_11, x_12, x_13, x_14, x_18); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index d656f1a90d..72988cd990 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -42,6 +42,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabMatch_elabMat lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_normalize_addVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isAuxDiscrName(lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addTermInfo_x27(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*); @@ -617,7 +618,6 @@ static lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___rarg___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__3; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedTypeAndDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___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*); @@ -691,7 +691,6 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__L static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_packMatchTypePatterns___spec__1___closed__1; lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___rarg___lambda__4___boxed(lean_object**); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_isExplicitPatternVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__9___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -956,6 +955,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Match_0 LEAN_EXPORT lean_object* l_Lean_Elab_Term_precheckMatch___lambda__2(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMatcher___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__19; @@ -2237,7 +2237,7 @@ lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint x_88 = lean_ctor_get(x_82, 1); lean_inc(x_88); lean_dec(x_82); -x_89 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_88); +x_89 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_88); x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); x_91 = lean_ctor_get(x_89, 1); @@ -2306,7 +2306,7 @@ x_72 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_73 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_73, 0, x_71); lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_51, x_73, x_6, x_7, x_8, x_9, x_10, x_11, x_53); +x_74 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_51, x_73, x_6, x_7, x_8, x_9, x_10, x_11, x_53); x_75 = lean_ctor_get(x_74, 0); lean_inc(x_75); x_76 = lean_ctor_get(x_74, 1); @@ -2440,7 +2440,7 @@ lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; x_150 = lean_ctor_get(x_144, 1); lean_inc(x_150); lean_dec(x_144); -x_151 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_113, x_6, x_7, x_8, x_9, x_10, x_11, x_150); +x_151 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_113, x_6, x_7, x_8, x_9, x_10, x_11, x_150); x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); x_153 = lean_ctor_get(x_151, 1); @@ -2509,7 +2509,7 @@ x_134 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Ter x_135 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_135, 0, x_133); lean_ctor_set(x_135, 1, x_134); -x_136 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_113, x_135, x_6, x_7, x_8, x_9, x_10, x_11, x_115); +x_136 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_113, x_135, x_6, x_7, x_8, x_9, x_10, x_11, x_115); x_137 = lean_ctor_get(x_136, 0); lean_inc(x_137); x_138 = lean_ctor_get(x_136, 1); @@ -26366,7 +26366,7 @@ x_46 = lean_ctor_get(x_40, 1); lean_inc(x_46); lean_dec(x_40); lean_inc(x_3); -x_47 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_46); +x_47 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_46); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -26415,7 +26415,7 @@ x_33 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_3, x_34, x_7, x_8, x_9, x_10, x_11, x_12, x_20); +x_35 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_3, x_34, x_7, x_8, x_9, x_10, x_11, x_12, x_20); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); @@ -26662,7 +26662,7 @@ x_45 = lean_ctor_get(x_39, 1); lean_inc(x_45); lean_dec(x_39); lean_inc(x_9); -x_46 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_45); +x_46 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_45); x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); x_48 = lean_ctor_get(x_46, 1); @@ -26699,7 +26699,7 @@ 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_9); -x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_27); +x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_27); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); @@ -26912,7 +26912,7 @@ lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint x_65 = lean_ctor_get(x_59, 1); lean_inc(x_65); lean_dec(x_59); -x_66 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_65); +x_66 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_65); x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); x_68 = lean_ctor_get(x_66, 1); @@ -26952,7 +26952,7 @@ x_50 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_51 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_51, 0, x_49); lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_37, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_39); +x_52 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_37, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_39); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -27384,7 +27384,7 @@ lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint x_78 = lean_ctor_get(x_73, 1); lean_inc(x_78); lean_dec(x_73); -x_79 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_78); +x_79 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_78); x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); x_81 = lean_ctor_get(x_79, 1); @@ -27481,7 +27481,7 @@ x_55 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_33, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_35); +x_57 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_33, x_56, x_6, x_7, x_8, x_9, x_10, x_11, x_35); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); @@ -30539,7 +30539,7 @@ lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint x_43 = lean_ctor_get(x_37, 1); lean_inc(x_43); lean_dec(x_37); -x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_43); +x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -30582,7 +30582,7 @@ x_30 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_15, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +x_32 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_15, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_17); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -32204,7 +32204,7 @@ x_31 = lean_ctor_get(x_25, 1); lean_inc(x_31); lean_dec(x_25); lean_inc(x_2); -x_32 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_31); +x_32 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_31); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -32240,7 +32240,7 @@ x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_2, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_12); +x_20 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_2, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_12); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); @@ -32819,7 +32819,7 @@ x_35 = lean_ctor_get(x_29, 1); lean_inc(x_35); lean_dec(x_29); lean_inc(x_6); -x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_35); +x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_35); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -32855,7 +32855,7 @@ x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); lean_inc(x_6); -x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_16); +x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_6, x_23, x_8, x_9, x_10, x_11, x_12, x_13, x_16); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -32984,7 +32984,7 @@ lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint x_41 = lean_ctor_get(x_35, 1); lean_inc(x_41); lean_dec(x_35); -x_42 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_41); +x_42 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_41); x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); x_44 = lean_ctor_get(x_42, 1); @@ -33022,7 +33022,7 @@ x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_17, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_19); +x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_17, x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_19); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -37069,7 +37069,7 @@ x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); lean_dec(x_36); lean_inc(x_9); -x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_42); +x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_9, x_11, x_12, x_13, x_14, x_15, x_16, x_42); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -37108,7 +37108,7 @@ x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_20); +x_31 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_20); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); @@ -37578,7 +37578,7 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint x_68 = lean_ctor_get(x_62, 1); lean_inc(x_68); lean_dec(x_62); -x_69 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_47, x_7, x_8, x_9, x_10, x_11, x_12, x_68); +x_69 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_47, x_7, x_8, x_9, x_10, x_11, x_12, x_68); x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); x_71 = lean_ctor_get(x_69, 1); @@ -37613,7 +37613,7 @@ x_55 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_47, x_56, x_7, x_8, x_9, x_10, x_11, x_12, x_49); +x_57 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_47, x_56, x_7, x_8, x_9, x_10, x_11, x_12, x_49); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); @@ -41087,7 +41087,7 @@ lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint x_45 = lean_ctor_get(x_39, 1); lean_inc(x_45); lean_dec(x_39); -x_46 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +x_46 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_45); x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); x_48 = lean_ctor_get(x_46, 1); @@ -41122,7 +41122,7 @@ x_32 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_24, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_26); +x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_24, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_26); x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); @@ -41498,7 +41498,7 @@ lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint x_79 = lean_ctor_get(x_73, 1); lean_inc(x_79); lean_dec(x_73); -x_80 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_58, x_7, x_8, x_9, x_10, x_11, x_12, x_79); +x_80 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_58, x_7, x_8, x_9, x_10, x_11, x_12, x_79); x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); x_82 = lean_ctor_get(x_80, 1); @@ -41545,7 +41545,7 @@ x_65 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term x_66 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_66, 0, x_64); lean_ctor_set(x_66, 1, x_65); -x_67 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_58, x_66, x_7, x_8, x_9, x_10, x_11, x_12, x_60); +x_67 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_58, x_66, x_7, x_8, x_9, x_10, x_11, x_12, x_60); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -43278,7 +43278,7 @@ lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint x_77 = lean_ctor_get(x_71, 1); lean_inc(x_77); lean_dec(x_71); -x_78 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_40, x_5, x_6, x_7, x_8, x_9, x_10, x_77); +x_78 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_40, x_5, x_6, x_7, x_8, x_9, x_10, x_77); x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); x_80 = lean_ctor_get(x_78, 1); @@ -43366,7 +43366,7 @@ x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term 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_60 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_40, x_59, x_5, x_6, x_7, x_8, x_9, x_10, x_42); +x_60 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_40, x_59, x_5, x_6, x_7, x_8, x_9, x_10, x_42); x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 90ca38f8c8..c3e116327f 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -35,6 +35,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAl LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isMultiConstant_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__4(lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_isAuxDiscrName(lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); @@ -451,8 +452,10 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClos LEAN_EXPORT lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__1; lean_object* l_Lean_Elab_Term_addLocalVarInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__3; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1; lean_object* l_List_findSome_x3f___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -485,6 +488,7 @@ static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getPendind LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__3; LEAN_EXPORT lean_object* l_Std_RBNode_insert___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__4(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMutualDef___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -585,7 +589,6 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0_ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -647,7 +650,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_remov uint8_t l_Lean_isAttribute(lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_processDefDeriving___spec__2___closed__2; lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -868,6 +870,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_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*, lean_object*); @@ -884,6 +887,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_mkIns LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__6; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5(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_Lean_pp_universes; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__6; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___closed__3; @@ -4362,7 +4366,7 @@ lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint x_49 = lean_ctor_get(x_43, 1); lean_inc(x_49); lean_dec(x_43); -x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_49); +x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_49); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -4407,7 +4411,7 @@ x_36 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___clo x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_23, x_37, x_9, x_10, x_11, x_12, x_13, x_14, x_25); +x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_23, x_37, x_9, x_10, x_11, x_12, x_13, x_14, x_25); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); @@ -34861,7 +34865,7 @@ lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); lean_dec(x_44); -x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_50); +x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_50); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -34924,7 +34928,7 @@ lean_ctor_set(x_35, 1, x_34); x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_24); -x_37 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_15, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_37 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_15, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_17); x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); @@ -35155,6 +35159,147 @@ goto _start; } } } +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("after eraseAuxDiscr, ", 21); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_usize_dec_lt(x_3, x_2); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_dec(x_4); +x_14 = lean_array_uget(x_1, x_3); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__6___lambda__4___closed__4; +x_45 = lean_st_ref_get(x_10, x_11); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_46, 3); +lean_inc(x_47); +lean_dec(x_46); +x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*1); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_49; uint8_t x_50; +x_49 = lean_ctor_get(x_45, 1); +lean_inc(x_49); +lean_dec(x_45); +x_50 = 0; +x_16 = x_50; +x_17 = x_49; +goto block_44; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_51 = lean_ctor_get(x_45, 1); +lean_inc(x_51); +lean_dec(x_45); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_51); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_unbox(x_53); +lean_dec(x_53); +x_16 = x_55; +x_17 = x_54; +goto block_44; +} +block_44: +{ +if (x_16 == 0) +{ +size_t x_18; size_t x_19; lean_object* x_20; +lean_dec(x_14); +x_18 = 1; +x_19 = lean_usize_add(x_3, x_18); +x_20 = lean_box(0); +x_3 = x_19; +x_4 = x_20; +x_11 = x_17; +goto _start; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 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; size_t x_40; size_t x_41; lean_object* x_42; +x_22 = lean_ctor_get(x_14, 3); +lean_inc(x_22); +x_23 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__2; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__2; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_ctor_get(x_14, 4); +lean_inc(x_28); +x_29 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_27); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__4; +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 = lean_ctor_get(x_14, 5); +lean_inc(x_33); +lean_dec(x_14); +x_34 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_34, 0, x_33); +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_34); +x_36 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__6; +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_15, x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = 1; +x_41 = lean_usize_add(x_3, x_40); +x_42 = lean_box(0); +x_3 = x_41; +x_4 = x_42; +x_11 = x_39; +goto _start; +} +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_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) { _start: { @@ -35226,12 +35371,19 @@ lean_inc(x_15); x_37 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDef_go___spec__4(x_36, x_5, x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_34); if (lean_obj_tag(x_37) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_38; lean_object* x_39; lean_object* x_40; size_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); +x_40 = lean_array_get_size(x_38); +x_41 = lean_usize_of_nat(x_40); +lean_dec(x_40); +x_42 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5(x_38, x_41, x_5, x_23, x_11, x_12, x_13, x_14, x_15, x_16, x_39); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -35239,65 +35391,33 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_38); -x_40 = l_Lean_Elab_Term_checkForHiddenUnivLevels(x_7, x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_39); -if (lean_obj_tag(x_40) == 0) +x_44 = l_Lean_Elab_Term_checkForHiddenUnivLevels(x_7, x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_43); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_42 = l_Lean_Elab_addPreDefinitions(x_38, x_8, x_11, x_12, x_13, x_14, x_15, x_16, x_41); -if (lean_obj_tag(x_42) == 0) +x_46 = l_Lean_Elab_addPreDefinitions(x_38, x_8, x_11, x_12, x_13, x_14, x_15, x_16, x_45); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = l_Lean_Elab_Term_elabMutualDef_processDeriving(x_9, x_1, x_11, x_12, x_13, x_14, x_15, x_16, x_43); -lean_dec(x_1); -return x_44; -} -else -{ -uint8_t x_45; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_1); -x_45 = !lean_is_exclusive(x_42); -if (x_45 == 0) -{ -return x_42; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 0); -x_47 = lean_ctor_get(x_42, 1); +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_46, 1); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_42); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); +lean_dec(x_46); +x_48 = l_Lean_Elab_Term_elabMutualDef_processDeriving(x_9, x_1, x_11, x_12, x_13, x_14, x_15, x_16, x_47); +lean_dec(x_1); return x_48; } -} -} else { uint8_t x_49; -lean_dec(x_38); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -35305,21 +35425,20 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); -lean_dec(x_8); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_40); +x_49 = !lean_is_exclusive(x_46); if (x_49 == 0) { -return x_40; +return x_46; } else { lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_40, 0); -x_51 = lean_ctor_get(x_40, 1); +x_50 = lean_ctor_get(x_46, 0); +x_51 = lean_ctor_get(x_46, 1); lean_inc(x_51); lean_inc(x_50); -lean_dec(x_40); +lean_dec(x_46); x_52 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); @@ -35330,6 +35449,7 @@ return x_52; else { uint8_t x_53; +lean_dec(x_38); lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); @@ -35338,21 +35458,20 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_1); -x_53 = !lean_is_exclusive(x_37); +x_53 = !lean_is_exclusive(x_44); if (x_53 == 0) { -return x_37; +return x_44; } else { lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_37, 0); -x_55 = lean_ctor_get(x_37, 1); +x_54 = lean_ctor_get(x_44, 0); +x_55 = lean_ctor_get(x_44, 1); lean_inc(x_55); lean_inc(x_54); -lean_dec(x_37); +lean_dec(x_44); x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); @@ -35373,19 +35492,19 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_57 = !lean_is_exclusive(x_32); +x_57 = !lean_is_exclusive(x_37); if (x_57 == 0) { -return x_32; +return x_37; } else { lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_32, 0); -x_59 = lean_ctor_get(x_32, 1); +x_58 = lean_ctor_get(x_37, 0); +x_59 = lean_ctor_get(x_37, 1); lean_inc(x_59); lean_inc(x_58); -lean_dec(x_32); +lean_dec(x_37); x_60 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_60, 0, x_58); lean_ctor_set(x_60, 1, x_59); @@ -35405,25 +35524,58 @@ lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_1); +x_61 = !lean_is_exclusive(x_32); +if (x_61 == 0) +{ +return x_32; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_32, 0); +x_63 = lean_ctor_get(x_32, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_32); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_18); -if (x_61 == 0) +x_65 = !lean_is_exclusive(x_18); +if (x_65 == 0) { return x_18; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_18, 0); -x_63 = lean_ctor_get(x_18, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_18, 0); +x_67 = lean_ctor_get(x_18, 1); +lean_inc(x_67); +lean_inc(x_66); lean_dec(x_18); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; } } } @@ -35843,6 +35995,25 @@ lean_dec(x_4); return x_13; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_14; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabMutualDef_go___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; @@ -38331,6 +38502,10 @@ l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__3); l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__4(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__3___closed__4); +l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__5___closed__2); l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1 = _init_l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_Term_elabMutualDef_go___lambda__2___boxed__const__1); l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1 = _init_l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index 5b41bb9722..8bf68a4554 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -20,6 +20,7 @@ lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTer LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions___spec__7___boxed(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_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions___spec__7___closed__1; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__15(lean_object*, size_t, size_t); @@ -240,7 +241,6 @@ lean_object* l_Lean_Elab_addAndCompilePartialRec(lean_object*, lean_object*, lea lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__8___rarg___closed__2; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__21___lambda__4___closed__2; static lean_object* l_Lean_Elab_addPreDefinitions___closed__5; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__21___lambda__4___closed__1; @@ -262,7 +262,6 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___sp LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__21___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26(lean_object*, size_t, size_t, lean_object*); @@ -332,6 +331,7 @@ static lean_object* l_Lean_Elab_addPreDefinitions___closed__13; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__8; lean_object* l_Lean_Elab_WF_TerminationBy_find_x3f(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__22___closed__1; @@ -860,7 +860,7 @@ lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint x_71 = lean_ctor_get(x_65, 1); lean_inc(x_71); lean_dec(x_65); -x_72 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_71); +x_72 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_71); x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); x_74 = lean_ctor_get(x_72, 1); @@ -990,7 +990,7 @@ x_42 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__L x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_17, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +x_44 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_17, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_19); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -4689,7 +4689,7 @@ lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); lean_dec(x_44); -x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_50); +x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_50); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_51, 1); @@ -4752,7 +4752,7 @@ lean_ctor_set(x_35, 1, x_34); x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_24); -x_37 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_15, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_37 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_15, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_17); x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); @@ -9090,7 +9090,7 @@ lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint x_83 = lean_ctor_get(x_77, 1); lean_inc(x_83); lean_dec(x_77); -x_84 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_83); +x_84 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_83); x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); x_86 = lean_ctor_get(x_84, 1); @@ -9224,7 +9224,7 @@ lean_ctor_set(x_53, 1, x_51); x_54 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); -x_55 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_23, x_54, x_9, x_10, x_11, x_12, x_13, x_14, x_25); +x_55 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_23, x_54, x_9, x_10, x_11, x_12, x_13, x_14, x_25); x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c index 69966fe34b..2460fcfd48 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c @@ -23,6 +23,7 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_r LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__8; size_t lean_usize_add(size_t, size_t); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_HasConstCache_containsUnsafe(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); @@ -174,7 +175,6 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinitio size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn(lean_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_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__4(lean_object*, lean_object*); @@ -190,7 +190,6 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinitio lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -lean_object* l___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_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -238,6 +237,7 @@ LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_El lean_object* l_Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setUserName(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__5___lambda__2___closed__6; @@ -5161,7 +5161,7 @@ x_45 = lean_ctor_get(x_39, 1); lean_inc(x_45); lean_dec(x_39); lean_inc(x_6); -x_46 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_45); +x_46 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_45); x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); x_48 = lean_ctor_get(x_46, 1); @@ -5219,7 +5219,7 @@ lean_ctor_set(x_28, 1, x_27); x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_23); -x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_6, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_21); +x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_6, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_21); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -5368,7 +5368,7 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint x_34 = lean_ctor_get(x_28, 1); lean_inc(x_34); lean_dec(x_28); -x_35 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_34); +x_35 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_34); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); @@ -5402,7 +5402,7 @@ x_21 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__L x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_13, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +x_23 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_13, x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_15); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c index aae8882a3c..00237dd0e9 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c @@ -15,6 +15,7 @@ extern "C" { #endif lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(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_EXPORT lean_object* l_Lean_Elab_getFixedPrefix___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_wfRecursion___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -133,7 +134,6 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_addAndCompilePartialRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum(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_isLambda(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_withCommonTelescope_go___spec__1(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -141,7 +141,6 @@ static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinitio LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_getFixedPrefix___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs(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_WF_elabWFRel___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*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__3; @@ -187,6 +186,7 @@ lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_ob lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getFixedPrefix___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_withCommonTelescope_go___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_getFixedPrefix___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panic___at_Lean_Meta_whnfCore_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___spec__1___closed__8; @@ -1120,7 +1120,7 @@ lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint x_90 = lean_ctor_get(x_84, 1); lean_inc(x_90); lean_dec(x_84); -x_91 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_36, x_11, x_12, x_13, x_14, x_15, x_16, x_90); +x_91 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_36, x_11, x_12, x_13, x_14, x_15, x_16, x_90); x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); x_93 = lean_ctor_get(x_91, 1); @@ -1271,7 +1271,7 @@ lean_ctor_set(x_62, 1, x_61); x_63 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_57); -x_64 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_36, x_63, x_11, x_12, x_13, x_14, x_15, x_16, x_38); +x_64 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_36, x_63, x_11, x_12, x_13, x_14, x_15, x_16, x_38); x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); @@ -4580,7 +4580,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint x_35 = lean_ctor_get(x_29, 1); lean_inc(x_35); lean_dec(x_29); -x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_35); +x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_35); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -4615,7 +4615,7 @@ x_22 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__ x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_14, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_14, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_16); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -5117,7 +5117,7 @@ lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; x_113 = lean_ctor_get(x_107, 1); lean_inc(x_113); lean_dec(x_107); -x_114 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_73, x_4, x_5, x_6, x_7, x_8, x_9, x_113); +x_114 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_73, x_4, x_5, x_6, x_7, x_8, x_9, x_113); x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); x_116 = lean_ctor_get(x_114, 1); @@ -5210,7 +5210,7 @@ x_91 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__ x_92 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_92, 0, x_90); lean_ctor_set(x_92, 1, x_91); -x_93 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_73, x_92, x_4, x_5, x_6, x_7, x_8, x_9, x_75); +x_93 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_73, x_92, x_4, x_5, x_6, x_7, x_8, x_9, x_75); x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); x_95 = lean_ctor_get(x_93, 1); @@ -5427,7 +5427,7 @@ lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint x_57 = lean_ctor_get(x_51, 1); lean_inc(x_57); lean_dec(x_51); -x_58 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_57); +x_58 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_57); x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); x_60 = lean_ctor_get(x_58, 1); @@ -5474,7 +5474,7 @@ x_44 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__ 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_30, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_32); +x_46 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_30, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_32); x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); x_48 = lean_ctor_get(x_46, 1); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c index ff549693a7..c52e013e87 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c @@ -18,6 +18,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_WF_generateCombinations_x3f(lean_object*, l lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary___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*); size_t lean_usize_add(size_t, size_t); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_getNumCandidateArgs___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); @@ -157,7 +158,6 @@ size_t lean_usize_of_nat(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary_go___closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_WF_generateCombinations_x3f_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_getRefFromElems___boxed(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); static lean_object* l_panic___at___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackMutual_go___spec__1___closed__1; @@ -171,7 +171,6 @@ lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary___spec__3(lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabWFRel___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); @@ -236,6 +235,7 @@ LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_go___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_elabWFRel___rarg___closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary_go___closed__2; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_elabWFRel_guess___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*); static lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_WF_getForbiddenByTrivialSizeOf___spec__1___closed__4; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -936,7 +936,7 @@ lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint x_48 = lean_ctor_get(x_42, 1); lean_inc(x_48); lean_dec(x_42); -x_49 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_48); +x_49 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_48); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_49, 1); @@ -997,7 +997,7 @@ x_35 = l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary_go x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_14, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +x_37 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_14, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_16); x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); @@ -10509,7 +10509,7 @@ lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint x_49 = lean_ctor_get(x_43, 1); lean_inc(x_49); lean_dec(x_43); -x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_49); +x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_49); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -10554,7 +10554,7 @@ x_36 = l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary_go x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_22, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +x_38 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_22, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_31); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index 1e1ae936b7..b1e6fc734b 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -49,6 +49,7 @@ static lean_object* l_Lean_Elab_Term_Quotation_getQuotKind___closed__3; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_Quotation_getQuotKind___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__2; static lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__21; +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Quotation_getQuotKind___closed__29; lean_object* l_List_tail_x21___rarg(lean_object*); uint8_t l_Lean_Syntax_isTokenAntiquot(lean_object*); @@ -766,7 +767,6 @@ static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Quotation_resolveSectionVariable(lean_object*, lean_object*); uint8_t l_List_foldr___at_List_and___spec__1(uint8_t, lean_object*); static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___closed__2; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_foldlM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__17___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__15(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -865,7 +865,6 @@ static lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__49; LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4922__declRange___closed__1; -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*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__25___closed__48; static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepStxFromSplice___lambda__2___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1136,6 +1135,7 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_ LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_4892____closed__2; static lean_object* l___private_Init_Meta_0__Lean_quoteList___at_Lean_Elab_Term_Quotation_ArrayStxBuilder_build___spec__1___closed__5; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__3___rarg___closed__2; static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__10___closed__21; @@ -45234,7 +45234,7 @@ lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); lean_dec(x_33); -x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_39); +x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_39); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -45283,7 +45283,7 @@ x_26 = l_Lean_Elab_Term_Quotation_getQuotKind___closed__3; x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_10, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_28 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_10, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -46022,7 +46022,7 @@ lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint x_43 = lean_ctor_get(x_37, 1); lean_inc(x_43); lean_dec(x_37); -x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_43); +x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -46068,7 +46068,7 @@ lean_ctor_set(x_29, 1, x_27); 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_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_23, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_25); +x_31 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_23, x_30, x_6, x_7, x_8, x_9, x_10, x_11, x_25); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 2a8f7a5f95..24159e0710 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -30,6 +30,7 @@ size_t lean_usize_add(size_t, size_t); lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_expandStructInstExpectedType_declRange___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_Field_expr_x3f___default; @@ -496,7 +497,6 @@ static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructIns static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___lambda__2___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_getFieldIdx(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_isLambda(lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_Struct_structName___boxed(lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___lambda__3___closed__8; @@ -554,7 +554,6 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_expandStructIn lean_object* l_Lean_Syntax_getSepArgs(lean_object*); static lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__2; lean_object* l_Lean_Expr_getAppNumArgsAux(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*); static lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__1; static lean_object* l_Lean_Elab_Term_StructInst_expandStructInstFieldAbbrev___lambda__1___closed__10; lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); @@ -725,6 +724,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_s static lean_object* l_List_mapM___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_groupFields___spec__8___closed__1; LEAN_EXPORT lean_object* l_List_findSomeM_x3f___at_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___spec__4___closed__3; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandParentFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_isModifyOp_x3f___spec__3___closed__3; lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -5071,7 +5071,7 @@ x_131 = lean_ctor_get(x_125, 1); lean_inc(x_131); lean_dec(x_125); lean_inc(x_13); -x_132 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_13, x_15, x_16, x_17, x_18, x_19, x_20, x_131); +x_132 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_13, x_15, x_16, x_17, x_18, x_19, x_20, x_131); x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); x_134 = lean_ctor_get(x_132, 1); @@ -5116,7 +5116,7 @@ lean_ctor_set(x_118, 1, x_117); x_119 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_119, 0, x_118); lean_ctor_set(x_119, 1, x_113); -x_120 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_13, x_119, x_15, x_16, x_17, x_18, x_19, x_20, x_109); +x_120 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_13, x_119, x_15, x_16, x_17, x_18, x_19, x_20, x_109); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_ctor_get(x_120, 1); @@ -5407,7 +5407,7 @@ lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint x_84 = lean_ctor_get(x_48, 1); lean_inc(x_84); lean_dec(x_48); -x_85 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_84); +x_85 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_84); x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); x_87 = lean_ctor_get(x_85, 1); @@ -5452,7 +5452,7 @@ lean_ctor_set(x_71, 1, x_70); x_72 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_66); -x_73 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_47, x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_61); +x_73 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_47, x_72, x_6, x_7, x_8, x_9, x_10, x_11, x_61); x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_73, 1); @@ -5663,7 +5663,7 @@ lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; x_201 = lean_ctor_get(x_195, 1); lean_inc(x_201); lean_dec(x_195); -x_202 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_177, x_6, x_7, x_8, x_9, x_10, x_11, x_201); +x_202 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_177, x_6, x_7, x_8, x_9, x_10, x_11, x_201); x_203 = lean_ctor_get(x_202, 0); lean_inc(x_203); x_204 = lean_ctor_get(x_202, 1); @@ -5707,7 +5707,7 @@ lean_ctor_set(x_188, 1, x_187); x_189 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_189, 0, x_188); lean_ctor_set(x_189, 1, x_183); -x_190 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_177, x_189, x_6, x_7, x_8, x_9, x_10, x_11, x_179); +x_190 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_177, x_189, x_6, x_7, x_8, x_9, x_10, x_11, x_179); x_191 = lean_ctor_get(x_190, 0); lean_inc(x_191); x_192 = lean_ctor_get(x_190, 1); @@ -18193,7 +18193,7 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint x_68 = lean_ctor_get(x_62, 1); lean_inc(x_68); lean_dec(x_62); -x_69 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_68); +x_69 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_68); x_70 = lean_ctor_get(x_69, 0); lean_inc(x_70); x_71 = lean_ctor_get(x_69, 1); @@ -18249,7 +18249,7 @@ x_55 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyO x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_41, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_43); +x_57 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_41, x_56, x_5, x_6, x_7, x_8, x_9, x_10, x_43); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); @@ -26103,7 +26103,7 @@ x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); lean_dec(x_33); lean_inc(x_3); -x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_39); +x_40 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_39); x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); @@ -26139,7 +26139,7 @@ x_26 = l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyO x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); -x_28 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_3, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +x_28 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_3, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_20); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); @@ -26262,7 +26262,7 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); lean_dec(x_36); -x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_42); +x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_42); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -26297,7 +26297,7 @@ lean_ctor_set(x_29, 1, x_27); 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_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_21, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +x_31 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_21, x_30, x_4, x_5, x_6, x_7, x_8, x_9, x_23); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index a06ce64a4b..8dd3f5b9c0 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -40,6 +40,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_ge static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_go___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___lambda__3___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); @@ -585,7 +586,6 @@ static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Structure LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldKind____x40_Lean_Elab_Structure___hyg_327____closed__5; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_522____closed__26; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -654,7 +654,6 @@ uint8_t l_Lean_isAttribute(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabStructure___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_toVisibility___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -880,6 +879,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0_ lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkCoercionToCopiedParent___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__6(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*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_reprStructFieldInfo____x40_Lean_Elab_Structure___hyg_522____closed__16; static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___closed__8; @@ -26707,7 +26707,7 @@ lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint x_43 = lean_ctor_get(x_37, 1); lean_inc(x_43); lean_dec(x_37); -x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_22, x_10, x_11, x_12, x_13, x_14, x_15, x_43); +x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_22, x_10, x_11, x_12, x_13, x_14, x_15, x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -26744,7 +26744,7 @@ x_30 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_22, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_24); +x_32 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_22, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_24); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index 07cbfe2489..09e1da78da 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -22,6 +22,7 @@ LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVa LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__2; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); @@ -32,7 +33,6 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Synthet lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__7; static lean_object* l_Std_RBNode_forIn_visit___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___spec__2___closed__3; -static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__12(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*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__16; LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_Term_runTactic___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -41,13 +41,13 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef(lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignment_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_processPostponedUniverseContraints___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__1; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__11; LEAN_EXPORT lean_object* l_Std_HashSetImp_contains___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__2___boxed(lean_object*, lean_object*); @@ -57,7 +57,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_runTactic lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__2; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__10; LEAN_EXPORT lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,6 +68,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, le LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_reportStuckSyntheticMVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at_Lean_Elab_Term_runTactic___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,11 +87,13 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_isClass_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instInhabitedPostponedEntry; +lean_object* l_Lean_Meta_isSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___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_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_processPostponedUniverseContraints(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__2; lean_object* l_Std_mkHashSetImp___rarg(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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*); size_t lean_usize_shift_right(size_t, size_t); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___closed__2; lean_object* l_Lean_Expr_appArg_x21(lean_object*); @@ -122,7 +124,6 @@ static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__7(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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* l_Lean_mkAppN(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__12; @@ -130,11 +131,12 @@ size_t lean_uint64_to_usize(uint64_t); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__3; lean_object* l_Std_PersistentHashMap_insert___at_Lean_instantiateMVarDeclMVars___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__5; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__2___closed__2; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__13(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_PersistentHashMap_insert___at_Lean_Elab_assignInfoHoleId___spec__1(lean_object*, lean_object*, lean_object*); @@ -153,7 +155,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733_(lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091_(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_assignExprMVar___at_Lean_Elab_Term_exprToSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -168,8 +171,9 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVa lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePending___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__7; -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___lambda__1___boxed(lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__3; uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -184,9 +188,11 @@ static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0_ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__2; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsNoPostponing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__7___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__8(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__5; @@ -196,6 +202,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Synth LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__7; lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,6 +217,7 @@ LEAN_EXPORT uint8_t l_List_elem___at___private_Lean_Elab_SyntheticMVars_0__Lean_ lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__8; +lean_object* lean_expr_dbg_to_string(lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__4; extern lean_object* l_Lean_instInhabitedExpr; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -238,13 +246,13 @@ size_t lean_usize_of_nat(lean_object*); static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_elem___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__14; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__2; size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); @@ -264,17 +272,14 @@ lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object*, lean_object lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__13; -static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__4; static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1___closed__1; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__21; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_instInhabitedInfoTree; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSomeUsingDefaultPrio_visit___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_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_postponeExceptionId; static lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__7; @@ -291,6 +296,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize(lean_object*, lean_obje LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___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_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__15___closed__1; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___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*); lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_replace___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__9___boxed(lean_object*, lean_object*, lean_object*); @@ -306,6 +312,7 @@ lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Binders_0__Lean_Elab_T LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesizeLight(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstances___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVarDeclMVars___at_Lean_Elab_Term_runTactic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withSavedContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -323,6 +330,7 @@ LEAN_EXPORT lean_object* l_Lean_occursCheck_visit___at___private_Lean_Elab_Synth lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_runTactic___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, lean_object*, lean_object*, uint8_t); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__1; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___closed__1; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -345,19 +353,25 @@ static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_runTactic___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashSetImp_insert___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2; lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_getSomeSynthethicMVarsRef___rarg___lambda__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__1; static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__22; LEAN_EXPORT uint8_t l_Std_HashSetImp_contains___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__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*); +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_foldlM___at_Lean_Elab_Term_runTactic___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashSetImp_moveEntries___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___spec__1___rarg(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__3; +static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__5; LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); @@ -386,6 +400,7 @@ lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_runTactic___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Lean_Elab_Term_runTactic___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__2___closed__1; @@ -1004,7 +1019,7 @@ return x_35; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_36 = lean_ctor_get(x_18, 1); lean_inc(x_36); lean_dec(x_18); @@ -1017,8 +1032,10 @@ lean_dec(x_21); x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); lean_dec(x_38); -x_40 = l_Lean_occursCheck_visit___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__2(x_1, x_39, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_36); -return x_40; +x_2 = x_39; +x_3 = x_37; +x_10 = x_36; +goto _start; } } else @@ -3818,7 +3835,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1; x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__2___closed__1; -x_3 = lean_unsigned_to_nat(96u); +x_3 = lean_unsigned_to_nat(99u); x_4 = lean_unsigned_to_nat(33u); x_5 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4184,125 +4201,112 @@ return x_35; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___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) { +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___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, 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; lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_dec(x_9); +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_12, 2); +lean_inc(x_19); +x_20 = lean_ctor_get(x_12, 3); +lean_inc(x_20); +x_21 = lean_ctor_get(x_12, 4); +lean_inc(x_21); +x_22 = lean_ctor_get(x_12, 5); +lean_inc(x_22); +x_23 = !lean_is_exclusive(x_17); +if (x_23 == 0) +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_24 = 1; +lean_ctor_set_uint8(x_17, 5, x_24); +x_25 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_18); +lean_ctor_set(x_25, 2, x_19); +lean_ctor_set(x_25, 3, x_20); +lean_ctor_set(x_25, 4, x_21); +lean_ctor_set(x_25, 5, x_22); +lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); lean_inc(x_2); lean_inc(x_1); -x_16 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_16) == 0) +x_26 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_25, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_26) == 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) +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_unbox(x_27); +lean_dec(x_27); +if (x_28 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_box(0); -x_21 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__2(x_3, x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_19); -return x_21; +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_box(0); +x_31 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__2(x_3, x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_30, x_10, x_11, x_12, x_13, x_14, x_15, x_29); +return x_31; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; 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_22 = lean_ctor_get(x_16, 1); -lean_inc(x_22); -lean_dec(x_16); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_dec(x_26); +lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -lean_inc(x_9); lean_inc(x_4); -x_23 = l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(x_8, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_unbox(x_24); -lean_dec(x_24); -if (x_25 == 0) +x_33 = l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(x_8, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_32); +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) { -uint8_t x_26; +uint8_t x_36; +lean_dec(x_15); 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_4); -x_26 = !lean_is_exclusive(x_23); -if (x_26 == 0) -{ -lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_23, 0); -lean_dec(x_27); -x_28 = 0; -x_29 = lean_box(x_28); -lean_ctor_set(x_23, 0, x_29); -return x_23; -} -else -{ -lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_23, 1); -lean_inc(x_30); -lean_dec(x_23); -x_31 = 0; -x_32 = lean_box(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -return x_33; -} -} -else -{ -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_ctor_get(x_23, 1); -lean_inc(x_34); -lean_dec(x_23); -x_35 = l_Lean_assignExprMVar___at_Lean_Elab_Term_exprToSyntax___spec__2(x_8, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_34); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -x_36 = !lean_is_exclusive(x_35); +x_36 = !lean_is_exclusive(x_33); if (x_36 == 0) { lean_object* x_37; uint8_t x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); +x_37 = lean_ctor_get(x_33, 0); lean_dec(x_37); -x_38 = 1; +x_38 = 0; x_39 = lean_box(x_38); -lean_ctor_set(x_35, 0, x_39); -return x_35; +lean_ctor_set(x_33, 0, x_39); +return x_33; } else { lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_35, 1); +x_40 = lean_ctor_get(x_33, 1); lean_inc(x_40); -lean_dec(x_35); -x_41 = 1; +lean_dec(x_33); +x_41 = 0; x_42 = lean_box(x_41); x_43 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_43, 0, x_42); @@ -4310,11 +4314,311 @@ lean_ctor_set(x_43, 1, x_40); return x_43; } } +else +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = lean_ctor_get(x_33, 1); +lean_inc(x_44); +lean_dec(x_33); +x_45 = l_Lean_assignExprMVar___at_Lean_Elab_Term_exprToSyntax___spec__2(x_8, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_44); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +x_48 = 1; +x_49 = lean_box(x_48); +lean_ctor_set(x_45, 0, x_49); +return x_45; +} +else +{ +lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_45, 1); +lean_inc(x_50); +lean_dec(x_45); +x_51 = 1; +x_52 = lean_box(x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_50); +return x_53; +} +} } } else { -uint8_t x_44; +uint8_t x_54; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +lean_dec(x_1); +x_54 = !lean_is_exclusive(x_26); +if (x_54 == 0) +{ +return x_26; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_26, 0); +x_56 = lean_ctor_get(x_26, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_26); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_58 = lean_ctor_get_uint8(x_17, 0); +x_59 = lean_ctor_get_uint8(x_17, 1); +x_60 = lean_ctor_get_uint8(x_17, 2); +x_61 = lean_ctor_get_uint8(x_17, 3); +x_62 = lean_ctor_get_uint8(x_17, 4); +x_63 = lean_ctor_get_uint8(x_17, 6); +x_64 = lean_ctor_get_uint8(x_17, 7); +x_65 = lean_ctor_get_uint8(x_17, 8); +x_66 = lean_ctor_get_uint8(x_17, 9); +x_67 = lean_ctor_get_uint8(x_17, 10); +x_68 = lean_ctor_get_uint8(x_17, 11); +x_69 = lean_ctor_get_uint8(x_17, 12); +x_70 = lean_ctor_get_uint8(x_17, 13); +lean_dec(x_17); +x_71 = 1; +x_72 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_72, 0, x_58); +lean_ctor_set_uint8(x_72, 1, x_59); +lean_ctor_set_uint8(x_72, 2, x_60); +lean_ctor_set_uint8(x_72, 3, x_61); +lean_ctor_set_uint8(x_72, 4, x_62); +lean_ctor_set_uint8(x_72, 5, x_71); +lean_ctor_set_uint8(x_72, 6, x_63); +lean_ctor_set_uint8(x_72, 7, x_64); +lean_ctor_set_uint8(x_72, 8, x_65); +lean_ctor_set_uint8(x_72, 9, x_66); +lean_ctor_set_uint8(x_72, 10, x_67); +lean_ctor_set_uint8(x_72, 11, x_68); +lean_ctor_set_uint8(x_72, 12, x_69); +lean_ctor_set_uint8(x_72, 13, x_70); +x_73 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_18); +lean_ctor_set(x_73, 2, x_19); +lean_ctor_set(x_73, 3, x_20); +lean_ctor_set(x_73, 4, x_21); +lean_ctor_set(x_73, 5, x_22); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_2); +lean_inc(x_1); +x_74 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_73, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; uint8_t x_76; +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_unbox(x_75); +lean_dec(x_75); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_74, 1); +lean_inc(x_77); +lean_dec(x_74); +x_78 = lean_box(0); +x_79 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__2(x_3, x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_78, x_10, x_11, x_12, x_13, x_14, x_15, x_77); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +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_80 = lean_ctor_get(x_74, 1); +lean_inc(x_80); +lean_dec(x_74); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_4); +x_81 = l_Lean_occursCheck___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__1(x_8, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_80); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_unbox(x_82); +lean_dec(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_4); +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_85 = x_81; +} else { + lean_dec_ref(x_81); + x_85 = lean_box(0); +} +x_86 = 0; +x_87 = lean_box(x_86); +if (lean_is_scalar(x_85)) { + x_88 = lean_alloc_ctor(0, 2, 0); +} else { + x_88 = x_85; +} +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_84); +return x_88; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; +x_89 = lean_ctor_get(x_81, 1); +lean_inc(x_89); +lean_dec(x_81); +x_90 = l_Lean_assignExprMVar___at_Lean_Elab_Term_exprToSyntax___spec__2(x_8, x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_89); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_92 = x_90; +} else { + lean_dec_ref(x_90); + x_92 = lean_box(0); +} +x_93 = 1; +x_94 = lean_box(x_93); +if (lean_is_scalar(x_92)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_92; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_91); +return x_95; +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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); +lean_dec(x_2); +lean_dec(x_1); +x_96 = lean_ctor_get(x_74, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_74, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_98 = x_74; +} else { + lean_dec_ref(x_74); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_1, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_Meta_isSyntheticMVar(x_17, x_11, x_12, x_13, x_14, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_box(0); +x_24 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__3(x_2, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_23, x_9, x_10, x_11, x_12, x_13, x_14, x_22); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_17); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -4328,24 +4632,66 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_16); -if (x_44 == 0) +x_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) { -return x_16; +lean_object* x_26; uint8_t x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_19, 0); +lean_dec(x_26); +x_27 = 0; +x_28 = lean_box(x_27); +lean_ctor_set(x_19, 0, x_28); +return x_19; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_16, 0); -x_46 = lean_ctor_get(x_16, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_16); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_dec(x_19); +x_30 = 0; +x_31 = lean_box(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_29); +return x_32; +} +} +} +else +{ +uint8_t x_33; +lean_dec(x_17); +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); +x_33 = !lean_is_exclusive(x_19); +if (x_33 == 0) +{ +return x_19; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_19, 0); +x_35 = lean_ctor_get(x_19, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_19); +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; } } } @@ -4358,9 +4704,9 @@ x_15 = l_Lean_Expr_appArg_x21(x_3); x_16 = l_Lean_Expr_mvarId_x21(x_15); lean_dec(x_15); lean_inc(x_16); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__3), 15, 8); -lean_closure_set(x_17, 0, x_4); -lean_closure_set(x_17, 1, x_5); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__4), 15, 8); +lean_closure_set(x_17, 0, x_5); +lean_closure_set(x_17, 1, x_4); lean_closure_set(x_17, 2, x_2); lean_closure_set(x_17, 3, x_6); lean_closure_set(x_17, 4, x_7); @@ -6150,7 +6496,730 @@ return x_35; } } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_3); +x_11 = lean_box(0); +x_12 = lean_array_get_size(x_1); +x_13 = lean_unsigned_to_nat(0u); +x_14 = lean_unsigned_to_nat(1u); +lean_inc(x_12); +x_15 = l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___spec__1(x_2, x_1, x_12, x_13, x_12, x_14, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_12); +lean_dec(x_1); +lean_dec(x_2); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePending(x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_17); +return x_18; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("isDefEq worked ", 15); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" : ", 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" =?= ", 5); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("", 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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_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_dec(x_6); +x_14 = l_Lean_mkMVar(x_1); +x_15 = lean_ctor_get(x_9, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_9, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_9, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_9, 4); +lean_inc(x_19); +x_20 = lean_ctor_get(x_9, 5); +lean_inc(x_20); +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_22 = 1; +lean_ctor_set_uint8(x_15, 10, x_22); +x_23 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_23, 0, x_15); +lean_ctor_set(x_23, 1, x_16); +lean_ctor_set(x_23, 2, x_17); +lean_ctor_set(x_23, 3, x_18); +lean_ctor_set(x_23, 4, x_19); +lean_ctor_set(x_23, 5, x_20); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_2); +lean_inc(x_14); +x_24 = l_Lean_Meta_isExprDefEqGuarded(x_14, x_2, x_23, x_10, x_11, x_12, x_13); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +uint8_t x_27; +lean_dec(x_14); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_24, 0); +lean_dec(x_28); +x_29 = 0; +x_30 = lean_box(x_29); +lean_ctor_set(x_24, 0, x_30); +return x_24; +} +else +{ +lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_dec(x_24); +x_32 = 0; +x_33 = lean_box(x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_31); +return x_34; +} +} +else +{ +lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_35 = lean_ctor_get(x_24, 1); +lean_inc(x_35); +lean_dec(x_24); +x_75 = lean_st_ref_get(x_12, x_35); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_76, 3); +lean_inc(x_77); +lean_dec(x_76); +x_78 = lean_ctor_get_uint8(x_77, sizeof(void*)*1); +lean_dec(x_77); +if (x_78 == 0) +{ +lean_object* x_79; uint8_t x_80; +x_79 = lean_ctor_get(x_75, 1); +lean_inc(x_79); +lean_dec(x_75); +x_80 = 0; +x_36 = x_80; +x_37 = x_79; +goto block_74; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_81 = lean_ctor_get(x_75, 1); +lean_inc(x_81); +lean_dec(x_75); +lean_inc(x_5); +x_82 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_81); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_unbox(x_83); +lean_dec(x_83); +x_36 = x_85; +x_37 = x_84; +goto block_74; +} +block_74: +{ +if (x_36 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_2); +x_38 = lean_box(0); +x_39 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(x_3, x_4, x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_37); +return x_39; +} +else +{ +lean_object* x_40; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_14); +x_40 = lean_infer_type(x_14, x_9, x_10, x_11, x_12, x_37); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_2); +x_43 = lean_infer_type(x_2, x_9, x_10, x_11, x_12, x_42); +if (lean_obj_tag(x_43) == 0) +{ +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; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_46, 0, x_14); +x_47 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_51, 0, x_41); +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_55, 0, x_2); +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 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_49); +x_58 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_58, 0, x_44); +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_60 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; +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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_5, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_45); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(x_3, x_4, x_63, x_7, x_8, x_9, x_10, x_11, x_12, x_64); +return x_65; +} +else +{ +uint8_t x_66; +lean_dec(x_41); +lean_dec(x_14); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_66 = !lean_is_exclusive(x_43); +if (x_66 == 0) +{ +return x_43; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_43, 0); +x_68 = lean_ctor_get(x_43, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_43); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +else +{ +uint8_t x_70; +lean_dec(x_14); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_70 = !lean_is_exclusive(x_40); +if (x_70 == 0) +{ +return x_40; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_40, 0); +x_72 = lean_ctor_get(x_40, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_40); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +} +} +} +else +{ +uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_86 = lean_ctor_get_uint8(x_15, 0); +x_87 = lean_ctor_get_uint8(x_15, 1); +x_88 = lean_ctor_get_uint8(x_15, 2); +x_89 = lean_ctor_get_uint8(x_15, 3); +x_90 = lean_ctor_get_uint8(x_15, 4); +x_91 = lean_ctor_get_uint8(x_15, 5); +x_92 = lean_ctor_get_uint8(x_15, 6); +x_93 = lean_ctor_get_uint8(x_15, 7); +x_94 = lean_ctor_get_uint8(x_15, 8); +x_95 = lean_ctor_get_uint8(x_15, 9); +x_96 = lean_ctor_get_uint8(x_15, 11); +x_97 = lean_ctor_get_uint8(x_15, 12); +x_98 = lean_ctor_get_uint8(x_15, 13); +lean_dec(x_15); +x_99 = 1; +x_100 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_100, 0, x_86); +lean_ctor_set_uint8(x_100, 1, x_87); +lean_ctor_set_uint8(x_100, 2, x_88); +lean_ctor_set_uint8(x_100, 3, x_89); +lean_ctor_set_uint8(x_100, 4, x_90); +lean_ctor_set_uint8(x_100, 5, x_91); +lean_ctor_set_uint8(x_100, 6, x_92); +lean_ctor_set_uint8(x_100, 7, x_93); +lean_ctor_set_uint8(x_100, 8, x_94); +lean_ctor_set_uint8(x_100, 9, x_95); +lean_ctor_set_uint8(x_100, 10, x_99); +lean_ctor_set_uint8(x_100, 11, x_96); +lean_ctor_set_uint8(x_100, 12, x_97); +lean_ctor_set_uint8(x_100, 13, x_98); +x_101 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_16); +lean_ctor_set(x_101, 2, x_17); +lean_ctor_set(x_101, 3, x_18); +lean_ctor_set(x_101, 4, x_19); +lean_ctor_set(x_101, 5, x_20); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_2); +lean_inc(x_14); +x_102 = l_Lean_Meta_isExprDefEqGuarded(x_14, x_2, x_101, x_10, x_11, x_12, x_13); +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; uint8_t x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_14); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_105 = lean_ctor_get(x_102, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_106 = x_102; +} else { + lean_dec_ref(x_102); + x_106 = lean_box(0); +} +x_107 = 0; +x_108 = lean_box(x_107); +if (lean_is_scalar(x_106)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_106; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_105); +return x_109; +} +else +{ +lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; +x_110 = lean_ctor_get(x_102, 1); +lean_inc(x_110); +lean_dec(x_102); +x_150 = lean_st_ref_get(x_12, x_110); +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_151, 3); +lean_inc(x_152); +lean_dec(x_151); +x_153 = lean_ctor_get_uint8(x_152, sizeof(void*)*1); +lean_dec(x_152); +if (x_153 == 0) +{ +lean_object* x_154; uint8_t x_155; +x_154 = lean_ctor_get(x_150, 1); +lean_inc(x_154); +lean_dec(x_150); +x_155 = 0; +x_111 = x_155; +x_112 = x_154; +goto block_149; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; +x_156 = lean_ctor_get(x_150, 1); +lean_inc(x_156); +lean_dec(x_150); +lean_inc(x_5); +x_157 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_156); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); +x_160 = lean_unbox(x_158); +lean_dec(x_158); +x_111 = x_160; +x_112 = x_159; +goto block_149; +} +block_149: +{ +if (x_111 == 0) +{ +lean_object* x_113; lean_object* x_114; +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_2); +x_113 = lean_box(0); +x_114 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(x_3, x_4, x_113, x_7, x_8, x_9, x_10, x_11, x_12, x_112); +return x_114; +} +else +{ +lean_object* x_115; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_14); +x_115 = lean_infer_type(x_14, x_9, x_10, x_11, x_12, x_112); +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +lean_dec(x_115); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_2); +x_118 = lean_infer_type(x_2, x_9, x_10, x_11, x_12, x_117); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +x_121 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_121, 0, x_14); +x_122 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2; +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___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4; +x_125 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +x_126 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_126, 0, x_116); +x_127 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +x_128 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6; +x_129 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +x_130 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_130, 0, x_2); +x_131 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +x_132 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_124); +x_133 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_133, 0, x_119); +x_134 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +x_135 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; +x_136 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +x_137 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_5, x_136, x_7, x_8, x_9, x_10, x_11, x_12, x_120); +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_140 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1(x_3, x_4, x_138, x_7, x_8, x_9, x_10, x_11, x_12, x_139); +return x_140; +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_116); +lean_dec(x_14); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_141 = lean_ctor_get(x_118, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_118, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_143 = x_118; +} else { + lean_dec_ref(x_118); + x_143 = lean_box(0); +} +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_143; +} +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_14); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_145 = lean_ctor_get(x_115, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_115, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_147 = x_115; +} else { + lean_dec_ref(x_115); + x_147 = lean_box(0); +} +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); +} else { + x_148 = x_147; +} +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; +} +} +} +} +} +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("Elab", 4); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("defaultInstance", 15); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(", ", 2); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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) { _start: { lean_object* x_10; @@ -6191,7 +7260,7 @@ lean_inc(x_5); x_19 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(x_14, x_17, x_16, x_18, x_5, x_6, x_7, x_8, x_15); if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +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_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_20, 1); @@ -6207,19 +7276,147 @@ lean_inc(x_24); lean_dec(x_21); lean_inc(x_23); x_25 = l_Lean_mkAppN(x_11, x_23); -x_26 = l_Lean_mkMVar(x_2); +x_26 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__4; +x_71 = lean_st_ref_get(x_8, x_22); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_72, 3); +lean_inc(x_73); +lean_dec(x_72); +x_74 = lean_ctor_get_uint8(x_73, sizeof(void*)*1); +lean_dec(x_73); +if (x_74 == 0) +{ +lean_object* x_75; uint8_t x_76; +x_75 = lean_ctor_get(x_71, 1); +lean_inc(x_75); +lean_dec(x_71); +x_76 = 0; +x_27 = x_76; +x_28 = x_75; +goto block_70; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_77 = lean_ctor_get(x_71, 1); +lean_inc(x_77); +lean_dec(x_71); +x_78 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_77); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_81 = lean_unbox(x_79); +lean_dec(x_79); +x_27 = x_81; +x_28 = x_80; +goto block_70; +} +block_70: +{ +if (x_27 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_box(0); +x_30 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2(x_2, x_25, x_24, x_23, x_26, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_28); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; +lean_inc(x_2); +x_31 = l_Lean_mkMVar(x_2); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_27 = l_Lean_Meta_isExprDefEqGuarded(x_26, x_25, x_5, x_6, x_7, x_8, x_22); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_unbox(x_28); -lean_dec(x_28); -if (x_29 == 0) +lean_inc(x_31); +x_32 = lean_infer_type(x_31, x_5, x_6, x_7, x_8, x_28); +if (lean_obj_tag(x_32) == 0) { -uint8_t x_30; +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_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_25); +x_35 = lean_infer_type(x_25, x_5, x_6, x_7, x_8, x_34); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; 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; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_expr_dbg_to_string(x_31); +x_39 = l_Lean_stringToMessageData(x_38); +lean_dec(x_38); +x_40 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__6; +x_43 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_44, 0, x_31); +x_45 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +x_46 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_48, 0, x_33); +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_inc(x_25); +x_52 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_52, 0, x_25); +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_46); +x_55 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_55, 0, x_36); +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 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_40); +x_58 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_26, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_37); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2(x_2, x_25, x_24, x_23, x_26, x_59, x_3, x_4, x_5, x_6, x_7, x_8, x_60); +return x_61; +} +else +{ +uint8_t x_62; +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_25); lean_dec(x_24); lean_dec(x_23); lean_dec(x_8); @@ -6228,58 +7425,66 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_30 = !lean_is_exclusive(x_27); -if (x_30 == 0) +lean_dec(x_2); +x_62 = !lean_is_exclusive(x_35); +if (x_62 == 0) { -lean_object* x_31; uint8_t x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); +return x_35; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_35, 0); +x_64 = lean_ctor_get(x_35, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_35); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +} +else +{ +uint8_t x_66; lean_dec(x_31); -x_32 = 0; -x_33 = lean_box(x_32); -lean_ctor_set(x_27, 0, x_33); -return x_27; -} -else -{ -lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_27, 1); -lean_inc(x_34); -lean_dec(x_27); -x_35 = 0; -x_36 = lean_box(x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_34); -return x_37; -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_38 = lean_ctor_get(x_27, 1); -lean_inc(x_38); -lean_dec(x_27); -x_39 = lean_box(0); -x_40 = lean_array_get_size(x_24); -x_41 = lean_unsigned_to_nat(0u); -x_42 = lean_unsigned_to_nat(1u); -lean_inc(x_40); -x_43 = l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___spec__1(x_23, x_24, x_40, x_41, x_40, x_42, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_38); -lean_dec(x_40); +lean_dec(x_25); lean_dec(x_24); lean_dec(x_23); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePending(x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_45); -return x_46; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_66 = !lean_is_exclusive(x_32); +if (x_66 == 0) +{ +return x_32; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_32, 0); +x_68 = lean_ctor_get(x_32, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_32); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} } } else { -uint8_t x_47; +uint8_t x_82; lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -6288,29 +7493,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_47 = !lean_is_exclusive(x_19); -if (x_47 == 0) +x_82 = !lean_is_exclusive(x_19); +if (x_82 == 0) { return x_19; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_19, 0); -x_49 = lean_ctor_get(x_19, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_19, 0); +x_84 = lean_ctor_get(x_19, 1); +lean_inc(x_84); +lean_inc(x_83); lean_dec(x_19); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; } } } else { -uint8_t x_51; +uint8_t x_86; lean_dec(x_11); lean_dec(x_8); lean_dec(x_7); @@ -6319,29 +7524,29 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_51 = !lean_is_exclusive(x_13); -if (x_51 == 0) +x_86 = !lean_is_exclusive(x_13); +if (x_86 == 0) { return x_13; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_13, 0); -x_53 = lean_ctor_get(x_13, 1); -lean_inc(x_53); -lean_inc(x_52); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_13, 0); +x_88 = lean_ctor_get(x_13, 1); +lean_inc(x_88); +lean_inc(x_87); lean_dec(x_13); -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; +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -uint8_t x_55; +uint8_t x_90; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6349,23 +7554,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_55 = !lean_is_exclusive(x_10); -if (x_55 == 0) +x_90 = !lean_is_exclusive(x_10); +if (x_90 == 0) { return x_10; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_10, 0); -x_57 = lean_ctor_get(x_10, 1); -lean_inc(x_57); -lean_inc(x_56); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_10, 0); +x_92 = lean_ctor_get(x_10, 1); +lean_inc(x_92); +lean_inc(x_91); lean_dec(x_10); -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_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; } } } @@ -6374,7 +7579,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_ _start: { lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__1), 9, 2); +x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3), 9, 2); lean_closure_set(x_10, 0, x_2); lean_closure_set(x_10, 1, x_1); x_11 = l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); @@ -7966,23 +9171,6 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("", 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -8016,7 +9204,7 @@ x_20 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__2; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; +x_22 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -8056,7 +9244,7 @@ x_32 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__2; x_33 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_33, 0, x_32); lean_ctor_set(x_33, 1, x_31); -x_34 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; +x_34 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_33); lean_ctor_set(x_35, 1, x_34); @@ -8143,7 +9331,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1; x_2 = l_Lean_Elab_Term_reportStuckSyntheticMVar___closed__1; -x_3 = lean_unsigned_to_nat(243u); +x_3 = lean_unsigned_to_nat(251u); x_4 = lean_unsigned_to_nat(11u); x_5 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12380,7 +13568,7 @@ x_76 = l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Te x_77 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_77, 0, x_76); lean_ctor_set(x_77, 1, x_75); -x_78 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; +x_78 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; x_79 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_79, 0, x_77); lean_ctor_set(x_79, 1, x_78); @@ -12412,7 +13600,7 @@ x_86 = lean_ctor_get(x_81, 1); lean_inc(x_86); lean_dec(x_81); lean_inc(x_24); -x_87 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_86); +x_87 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_86); x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); x_89 = lean_unbox(x_88); @@ -12450,7 +13638,7 @@ x_94 = lean_ctor_get(x_92, 1); lean_inc(x_94); lean_dec(x_92); lean_inc(x_24); -x_95 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_24, x_93, x_6, x_7, x_8, x_9, x_10, x_11, x_94); +x_95 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_24, x_93, x_6, x_7, x_8, x_9, x_10, x_11, x_94); x_96 = lean_ctor_get(x_95, 1); lean_inc(x_96); lean_dec(x_95); @@ -12564,7 +13752,7 @@ x_63 = lean_ctor_get(x_57, 1); lean_inc(x_63); lean_dec(x_57); lean_inc(x_24); -x_64 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_63); +x_64 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_63); x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); @@ -12605,7 +13793,7 @@ if (x_37 == 0) { lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; x_38 = l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__4; -x_39 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_24, x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +x_39 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_24, x_38, x_6, x_7, x_8, x_9, x_10, x_11, x_30); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); @@ -12630,7 +13818,7 @@ else { lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; x_47 = l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__7; -x_48 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_24, x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +x_48 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_24, x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_30); x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); @@ -12795,7 +13983,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__10; -x_2 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; x_3 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -12847,7 +14035,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__15; -x_2 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; x_3 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -12895,7 +14083,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__19; -x_2 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; x_3 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -12919,7 +14107,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___closed__21; -x_2 = l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4; +x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8; x_3 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -12967,7 +14155,7 @@ static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("Elab", 4); +x_1 = lean_mk_string_from_bytes("resuming", 8); return x_1; } } @@ -12975,30 +14163,12 @@ static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2; x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("resuming", 8); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; -x_2 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(uint8_t 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) { _start: { @@ -13008,7 +14178,7 @@ lean_inc(x_3); x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___lambda__1___boxed), 3, 2); lean_closure_set(x_11, 0, x_3); lean_closure_set(x_11, 1, x_10); -x_12 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__4; +x_12 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -13057,7 +14227,7 @@ x_32 = lean_ctor_get(x_31, 1); lean_inc(x_32); lean_dec(x_31); x_33 = l_List_reverse___rarg(x_20); -x_34 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; +x_34 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2; lean_inc(x_8); lean_inc(x_4); x_35 = l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1(x_1, x_2, x_34, x_33, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_32); @@ -13270,7 +14440,7 @@ x_93 = lean_ctor_get(x_92, 1); lean_inc(x_93); lean_dec(x_92); x_94 = l_List_reverse___rarg(x_20); -x_95 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; +x_95 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2; lean_inc(x_8); lean_inc(x_4); x_96 = l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1(x_1, x_2, x_95, x_94, x_90, x_3, x_4, x_5, x_6, x_7, x_8, x_93); @@ -17957,7 +19127,7 @@ return x_47; } } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__1() { _start: { lean_object* x_1; @@ -17965,21 +19135,21 @@ x_1 = lean_mk_string_from_bytes("resume", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__1; +x_1 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -18045,14 +19215,38 @@ l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPri lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___closed__1); l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___closed__2 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___closed__2(); lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___closed__2); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__1 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__1); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__2); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__3 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__3); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__4); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__5 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__5); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__6); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__7 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__7); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__2___closed__8); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__1); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__2); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__3 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__3); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__4 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__4); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__5 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__5); +l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__6 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___lambda__3___closed__6); l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__1 = _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__1); l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__2 = _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__2); -l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__3 = _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__3); -l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4 = _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__4); l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__1 = _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__1); l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__2 = _init_l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__2(); @@ -18143,10 +19337,6 @@ l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsS lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__1); l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2(); lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__3 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__3); -l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__4 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__4); l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___closed__1 = _init_l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___closed__1(); lean_mark_persistent(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___closed__1); l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_Term_runTactic___spec__5___closed__1 = _init_l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Elab_Term_runTactic___spec__5___closed__1(); @@ -18167,11 +19357,11 @@ l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__7 lean_mark_persistent(l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__7); l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1 = _init_l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_withSynthesizeLight___rarg___closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733____closed__2); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_4733_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091____closed__2); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_SyntheticMVars___hyg_5091_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index e4c231f78d..b251fdabfa 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -38,7 +38,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tacti lean_object* lean_erase_macro_scopes(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalInduction___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388_(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalInduction_checkTargets___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___closed__6; @@ -355,6 +355,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tacti lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_isMultiAlt___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388____closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_expandInductionAlts_x3f___spec__1(lean_object*, size_t, size_t); @@ -579,7 +580,6 @@ static lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_In lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getElimNameInfo___spec__3___closed__1; lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); -static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411____closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalInduction_checkTargets(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -21129,7 +21129,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411____closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -21139,11 +21139,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411____closed__1; +x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -21528,9 +21528,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange___close res = l___regBuiltin_Lean_Elab_Tactic_evalCases_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411____closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411____closed__1); -res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7411_(lean_io_mk_world()); +l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388____closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388____closed__1); +res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Induction___hyg_7388_(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/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 367053fd5c..2ec94f8e22 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -53,6 +53,7 @@ lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(lean_ static lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__1; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__12; @@ -121,6 +122,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__4; lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotCompletionInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostpone___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -129,7 +131,6 @@ uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__28___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__2; LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_setLevelNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__8; @@ -200,9 +201,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_isMonadApp(lean_object*, lean_object*, LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_letRecsToLift___default; -static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7; static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___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_EXPORT lean_object* l_Lean_Elab_Term_collectUnassignedMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyResult___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withInfoContext_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -272,6 +273,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MVarErrorInfo_argName_x3f___default; LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_abortCommandExceptionId; @@ -309,7 +311,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___lambda__1__ lean_object* l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_exprToSyntax___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -386,7 +387,9 @@ static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__13; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkCoe___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*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__3; lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__6; static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__8; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda__2___closed__1; static lean_object* l_Lean_Elab_Term_instToStringMVarErrorKind___closed__2; @@ -401,7 +404,6 @@ LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___at_Lean_Elab_Term_addAutoBo lean_object* l_Lean_Meta_ppGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__5; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit___closed__1; @@ -417,11 +419,13 @@ static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_observing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__51___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__16; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_expandDeclId___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2; extern lean_object* l_Lean_maxRecDepth; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTacticOrPostponedHole_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__2; @@ -433,6 +437,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringMVarErrorKind___boxed(lean static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_LVal_getRef___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___closed__1; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedCacheKey___closed__1; static uint64_t l_Lean_Elab_Term_instInhabitedMVarErrorKind___closed__1; @@ -466,9 +471,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_isSaveInfoAnnotation_x3f(lean_object*) LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeAscription(lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__5; uint8_t l_Lean_Name_hasMacroScopes(lean_object*); +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__1; static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__13; lean_object* l_List_mapTRAux___at_Lean_MessageData_instCoeListExprMessageData___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__1; lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); @@ -480,6 +487,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_LVal_isFieldName___boxed(lean_object*) LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__1; static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__16; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicit_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___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*); @@ -497,7 +505,6 @@ static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expa uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__41(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__4; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__1; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__15; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_loop(lean_object*, lean_object*, lean_object*, lean_object*); @@ -513,7 +520,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedTermElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__11; lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__1; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_observing(lean_object*); uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); @@ -567,7 +573,6 @@ static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTypeMismatchError___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__2; static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -585,6 +590,7 @@ lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint LEAN_EXPORT lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__3; static lean_object* l_Lean_Elab_Term_GetOpKind_opName___closed__1; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__3; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__18(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_levelMVarToParam___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -608,7 +614,6 @@ static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__15; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAutoBoundImplicit(lean_object*); -static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -619,11 +624,9 @@ lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lea LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_levelMVarToParam___lambda__1___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__3; static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__21; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__4; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getMVarDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -648,6 +651,7 @@ static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_blockImplicitLambda___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_GetOpKind_noConfusion___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_GetOpKind_opName___boxed(lean_object*); +static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__1; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__7; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__50___closed__1; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__3(lean_object*, lean_object*, lean_object*); @@ -661,7 +665,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_levelMVarToParam___boxed(lean_object*, LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutSavingRecAppSyntax(lean_object*); lean_object* l_Lean_Syntax_identComponents(lean_object*, lean_object*); -static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; lean_object* l_Nat_repr(lean_object*); @@ -685,9 +688,9 @@ lean_object* l_Lean_Core_getMessageLog___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__28(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_commitIfDidNotPostpone(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403_(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setElabConfig(lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__14; @@ -728,12 +731,12 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_collectUn LEAN_EXPORT lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError_appendExtra(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__1; LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_errToSorry___default; LEAN_EXPORT lean_object* l_Lean_getDelayedMVarRoot___at_Lean_Elab_Term_isLetRecAuxMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedTermElabResult(lean_object*); static lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Term_expandDeclId___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_GetOpKind_toCtorIdx(uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_GetOpKind_noConfusion___rarg___lambda__1___boxed(lean_object*); @@ -757,12 +760,12 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___la LEAN_EXPORT lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_of_nat(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__4; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isExprMVarAssigned___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__13; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars___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_EXPORT lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -770,7 +773,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Ela static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_resolveName_process___closed__3; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__4; static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__2; lean_object* l_Lean_Meta_getMVarsAtDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_475_(lean_object*); @@ -807,12 +809,14 @@ uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_isMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorHoleInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___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*); static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__42___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_checkMaxHeartbeats(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTacticOrPostponedHole_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__2; extern lean_object* l_Lean_Meta_instMonadMetaM; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkConst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -850,7 +854,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_LVal_getRef(lean_object*); lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__46(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_autoBoundImplicit___default; LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__5(lean_object*, lean_object*); @@ -944,9 +947,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits___boxed(lean_obj LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__2; -LEAN_EXPORT 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*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__18; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___boxed(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__2; extern lean_object* l_Lean_instInhabitedTraceElem; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__3; lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); @@ -975,7 +978,6 @@ extern lean_object* l_Lean_Elab_postponeExceptionId; LEAN_EXPORT lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___rarg(lean_object*); lean_object* lean_environment_main_module(lean_object*); static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__9; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__1; uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT uint64_t l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_hashCacheKey____x40_Lean_Elab_Term___hyg_694_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -984,6 +986,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___lambda_ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__19(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldr___at_Lean_Elab_Term_isLetRecAuxMVar___spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwTypeMismatchError___spec__1(lean_object*); +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__1; LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Elab_Term_registerMVarErrorInfo___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__1; uint8_t l_Lean_Expr_isMVar(lean_object*); @@ -1076,6 +1079,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWi static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__2; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_isSaveInfoAnnotation_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1___rarg(lean_object*); @@ -1165,9 +1169,9 @@ static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__L LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveName_x27___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___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*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint32_t l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__4; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__2; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_collectUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1249,7 +1253,7 @@ static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__17; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Elab_Term_isLetRecAuxMVar___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619_(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1257,6 +1261,7 @@ LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Term_synthesiz static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Term_exprToSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Tactic_beqCacheKey____x40_Lean_Elab_Term___hyg_623____boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5; LEAN_EXPORT 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*); LEAN_EXPORT lean_object* l_Lean_Elab_withoutModifyingStateWithInfoAndMessages___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); @@ -1267,7 +1272,6 @@ LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_ static lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___closed__3; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at_Lean_Elab_Term_exprToSyntax___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__6; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__3; @@ -1275,6 +1279,7 @@ LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBou LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f___closed__2; LEAN_EXPORT lean_object* l_Std_PersistentArray_forMAux___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; @@ -1394,6 +1399,7 @@ lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*) LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Elab_Term_resolveName_x27___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getMVarErrorInfo_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__1; +static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__3; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1405,7 +1411,6 @@ static lean_object* l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec__2(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__8; @@ -1422,13 +1427,14 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyAttributesAt___boxed(lean_object* LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__3; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__4; -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__2; +static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__4; static lean_object* l_Lean_Elab_Term_resolveId_x3f___lambda__2___closed__5; static lean_object* l_Lean_Elab_Term_instInhabitedLetRecToLift___closed__9; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__8(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__47(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___closed__3; LEAN_EXPORT uint8_t l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock(lean_object*); +static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__7; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__2; @@ -19639,7 +19645,7 @@ goto block_95; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; x_113 = lean_ctor_get(x_108, 1); lean_inc(x_113); lean_dec(x_108); @@ -19649,45 +19655,46 @@ lean_dec(x_110); x_115 = lean_ctor_get(x_114, 1); lean_inc(x_115); lean_dec(x_114); +x_116 = l_Lean_mkMVar(x_115); lean_inc(x_8); lean_inc(x_2); -x_116 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_115, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_113); -if (lean_obj_tag(x_116) == 0) +x_117 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_116, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_113); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_117; lean_object* x_118; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -lean_dec(x_116); -x_66 = x_117; -x_67 = x_118; +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_66 = x_118; +x_67 = x_119; goto block_95; } else { -uint8_t x_119; +uint8_t x_120; lean_dec(x_15); lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_119 = !lean_is_exclusive(x_116); -if (x_119 == 0) +x_120 = !lean_is_exclusive(x_117); +if (x_120 == 0) { -return x_116; +return x_117; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_116, 0); -x_121 = lean_ctor_get(x_116, 1); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_117, 0); +x_122 = lean_ctor_get(x_117, 1); +lean_inc(x_122); lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_116); -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; +lean_dec(x_117); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; } } } @@ -19802,11 +19809,11 @@ return x_94; } case 5: { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_155; -x_123 = lean_ctor_get(x_1, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_1, 1); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_156; +x_124 = lean_ctor_get(x_1, 0); lean_inc(x_124); +x_125 = lean_ctor_get(x_1, 1); +lean_inc(x_125); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -19814,83 +19821,83 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_155 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_123, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); -if (lean_obj_tag(x_155) == 0) -{ -lean_object* x_156; -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); +x_156 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_124, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_156) == 0) { -lean_object* x_157; lean_object* x_158; -lean_dec(x_124); +lean_object* x_157; +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_158; lean_object* x_159; +lean_dec(x_125); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec(x_155); -x_158 = lean_box(0); -x_125 = x_158; -x_126 = x_157; -goto block_154; +x_158 = lean_ctor_get(x_156, 1); +lean_inc(x_158); +lean_dec(x_156); +x_159 = lean_box(0); +x_126 = x_159; +x_127 = x_158; +goto block_155; } else { -lean_object* x_159; lean_object* x_160; +lean_object* x_160; lean_object* x_161; +lean_dec(x_157); +x_160 = lean_ctor_get(x_156, 1); +lean_inc(x_160); lean_dec(x_156); -x_159 = lean_ctor_get(x_155, 1); -lean_inc(x_159); -lean_dec(x_155); lean_inc(x_8); lean_inc(x_2); -x_160 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_124, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_159); -if (lean_obj_tag(x_160) == 0) +x_161 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_125, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_160); +if (lean_obj_tag(x_161) == 0) { -lean_object* x_161; lean_object* x_162; -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); +lean_object* x_162; lean_object* x_163; +x_162 = lean_ctor_get(x_161, 0); lean_inc(x_162); -lean_dec(x_160); -x_125 = x_161; +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); x_126 = x_162; -goto block_154; +x_127 = x_163; +goto block_155; } else { -uint8_t x_163; +uint8_t x_164; lean_dec(x_15); lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_163 = !lean_is_exclusive(x_160); -if (x_163 == 0) +x_164 = !lean_is_exclusive(x_161); +if (x_164 == 0) { -return x_160; +return x_161; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_160, 0); -x_165 = lean_ctor_get(x_160, 1); +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_161, 0); +x_166 = lean_ctor_get(x_161, 1); +lean_inc(x_166); lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_160); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; +lean_dec(x_161); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); +return x_167; } } } } else { -uint8_t x_167; -lean_dec(x_124); +uint8_t x_168; +lean_dec(x_125); lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); @@ -19900,140 +19907,140 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_167 = !lean_is_exclusive(x_155); -if (x_167 == 0) +x_168 = !lean_is_exclusive(x_156); +if (x_168 == 0) { -return x_155; +return x_156; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_155, 0); -x_169 = lean_ctor_get(x_155, 1); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_156, 0); +x_170 = lean_ctor_get(x_156, 1); +lean_inc(x_170); lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_155); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -return x_170; +lean_dec(x_156); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } -block_154: +block_155: { -if (lean_obj_tag(x_125) == 0) +if (lean_obj_tag(x_126) == 0) { -lean_object* x_127; lean_object* x_128; +lean_object* x_128; lean_object* x_129; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_127 = lean_box(0); +x_128 = lean_box(0); if (lean_is_scalar(x_15)) { - x_128 = lean_alloc_ctor(0, 2, 0); + x_129 = lean_alloc_ctor(0, 2, 0); } else { - x_128 = x_15; + x_129 = x_15; } -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_126); -return x_128; +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +return x_129; } else { -uint8_t x_129; +uint8_t x_130; lean_dec(x_15); -x_129 = !lean_is_exclusive(x_125); -if (x_129 == 0) +x_130 = !lean_is_exclusive(x_126); +if (x_130 == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_130 = lean_ctor_get(x_125, 0); -x_131 = lean_st_ref_get(x_8, x_126); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; +x_131 = lean_ctor_get(x_126, 0); +x_132 = lean_st_ref_get(x_8, x_127); lean_dec(x_8); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -lean_dec(x_131); -x_133 = lean_st_ref_take(x_2, x_132); -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +lean_dec(x_132); +x_134 = lean_st_ref_take(x_2, x_133); +x_135 = lean_ctor_get(x_134, 0); lean_inc(x_135); -lean_dec(x_133); -lean_inc(x_130); -x_136 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_134, x_1, x_130); -x_137 = lean_st_ref_set(x_2, x_136, x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +lean_inc(x_131); +x_137 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_135, x_1, x_131); +x_138 = lean_st_ref_set(x_2, x_137, x_136); lean_dec(x_2); -x_138 = !lean_is_exclusive(x_137); -if (x_138 == 0) +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) { -lean_object* x_139; -x_139 = lean_ctor_get(x_137, 0); -lean_dec(x_139); -lean_ctor_set(x_137, 0, x_125); -return x_137; +lean_object* x_140; +x_140 = lean_ctor_get(x_138, 0); +lean_dec(x_140); +lean_ctor_set(x_138, 0, x_126); +return x_138; } else { -lean_object* x_140; lean_object* x_141; -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -lean_dec(x_137); -x_141 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_141, 0, x_125); -lean_ctor_set(x_141, 1, x_140); -return x_141; +lean_object* x_141; lean_object* x_142; +x_141 = lean_ctor_get(x_138, 1); +lean_inc(x_141); +lean_dec(x_138); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_126); +lean_ctor_set(x_142, 1, x_141); +return x_142; } } else { -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; -x_142 = lean_ctor_get(x_125, 0); -lean_inc(x_142); -lean_dec(x_125); -x_143 = lean_st_ref_get(x_8, x_126); +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; +x_143 = lean_ctor_get(x_126, 0); +lean_inc(x_143); +lean_dec(x_126); +x_144 = lean_st_ref_get(x_8, x_127); lean_dec(x_8); -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -lean_dec(x_143); -x_145 = lean_st_ref_take(x_2, x_144); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); +x_146 = lean_st_ref_take(x_2, x_145); +x_147 = lean_ctor_get(x_146, 0); lean_inc(x_147); -lean_dec(x_145); -lean_inc(x_142); -x_148 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_146, x_1, x_142); -x_149 = lean_st_ref_set(x_2, x_148, x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +lean_inc(x_143); +x_149 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_147, x_1, x_143); +x_150 = lean_st_ref_set(x_2, x_149, x_148); lean_dec(x_2); -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_151 = x_149; +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; } else { - lean_dec_ref(x_149); - x_151 = lean_box(0); + lean_dec_ref(x_150); + x_152 = lean_box(0); } -x_152 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_152, 0, x_142); -if (lean_is_scalar(x_151)) { - x_153 = lean_alloc_ctor(0, 2, 0); +x_153 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_153, 0, x_143); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 2, 0); } else { - x_153 = x_151; + x_154 = x_152; } -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_150); -return x_153; +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_151); +return x_154; } } } } case 6: { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_203; -x_171 = lean_ctor_get(x_1, 1); -lean_inc(x_171); -x_172 = lean_ctor_get(x_1, 2); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_204; +x_172 = lean_ctor_get(x_1, 1); lean_inc(x_172); +x_173 = lean_ctor_get(x_1, 2); +lean_inc(x_173); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -20041,83 +20048,83 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_203 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_171, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); -if (lean_obj_tag(x_203) == 0) -{ -lean_object* x_204; -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); +x_204 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_172, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_204) == 0) { -lean_object* x_205; lean_object* x_206; -lean_dec(x_172); +lean_object* x_205; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; lean_object* x_207; +lean_dec(x_173); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -lean_dec(x_203); -x_206 = lean_box(0); -x_173 = x_206; -x_174 = x_205; -goto block_202; +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +lean_dec(x_204); +x_207 = lean_box(0); +x_174 = x_207; +x_175 = x_206; +goto block_203; } else { -lean_object* x_207; lean_object* x_208; +lean_object* x_208; lean_object* x_209; +lean_dec(x_205); +x_208 = lean_ctor_get(x_204, 1); +lean_inc(x_208); lean_dec(x_204); -x_207 = lean_ctor_get(x_203, 1); -lean_inc(x_207); -lean_dec(x_203); lean_inc(x_8); lean_inc(x_2); -x_208 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_172, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_207); -if (lean_obj_tag(x_208) == 0) +x_209 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_173, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_208); +if (lean_obj_tag(x_209) == 0) { -lean_object* x_209; lean_object* x_210; -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); +lean_object* x_210; lean_object* x_211; +x_210 = lean_ctor_get(x_209, 0); lean_inc(x_210); -lean_dec(x_208); -x_173 = x_209; +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec(x_209); x_174 = x_210; -goto block_202; +x_175 = x_211; +goto block_203; } else { -uint8_t x_211; +uint8_t x_212; lean_dec(x_15); lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_211 = !lean_is_exclusive(x_208); -if (x_211 == 0) +x_212 = !lean_is_exclusive(x_209); +if (x_212 == 0) { -return x_208; +return x_209; } else { -lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_212 = lean_ctor_get(x_208, 0); -x_213 = lean_ctor_get(x_208, 1); +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_209, 0); +x_214 = lean_ctor_get(x_209, 1); +lean_inc(x_214); lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_208); -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_212); -lean_ctor_set(x_214, 1, x_213); -return x_214; +lean_dec(x_209); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; } } } } else { -uint8_t x_215; -lean_dec(x_172); +uint8_t x_216; +lean_dec(x_173); lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); @@ -20127,140 +20134,140 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_215 = !lean_is_exclusive(x_203); -if (x_215 == 0) +x_216 = !lean_is_exclusive(x_204); +if (x_216 == 0) { -return x_203; +return x_204; } else { -lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_216 = lean_ctor_get(x_203, 0); -x_217 = lean_ctor_get(x_203, 1); +lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_217 = lean_ctor_get(x_204, 0); +x_218 = lean_ctor_get(x_204, 1); +lean_inc(x_218); lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_203); -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; +lean_dec(x_204); +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +return x_219; } } -block_202: +block_203: { -if (lean_obj_tag(x_173) == 0) +if (lean_obj_tag(x_174) == 0) { -lean_object* x_175; lean_object* x_176; +lean_object* x_176; lean_object* x_177; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_175 = lean_box(0); +x_176 = lean_box(0); if (lean_is_scalar(x_15)) { - x_176 = lean_alloc_ctor(0, 2, 0); + x_177 = lean_alloc_ctor(0, 2, 0); } else { - x_176 = x_15; + x_177 = x_15; } -lean_ctor_set(x_176, 0, x_175); -lean_ctor_set(x_176, 1, x_174); -return x_176; +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_175); +return x_177; } else { -uint8_t x_177; +uint8_t x_178; lean_dec(x_15); -x_177 = !lean_is_exclusive(x_173); -if (x_177 == 0) +x_178 = !lean_is_exclusive(x_174); +if (x_178 == 0) { -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; uint8_t x_186; -x_178 = lean_ctor_get(x_173, 0); -x_179 = lean_st_ref_get(x_8, x_174); +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; uint8_t x_187; +x_179 = lean_ctor_get(x_174, 0); +x_180 = lean_st_ref_get(x_8, x_175); lean_dec(x_8); -x_180 = lean_ctor_get(x_179, 1); -lean_inc(x_180); -lean_dec(x_179); -x_181 = lean_st_ref_take(x_2, x_180); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); +x_181 = lean_ctor_get(x_180, 1); +lean_inc(x_181); +lean_dec(x_180); +x_182 = lean_st_ref_take(x_2, x_181); +x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); -lean_dec(x_181); -lean_inc(x_178); -x_184 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_182, x_1, x_178); -x_185 = lean_st_ref_set(x_2, x_184, x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +lean_inc(x_179); +x_185 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_183, x_1, x_179); +x_186 = lean_st_ref_set(x_2, x_185, x_184); lean_dec(x_2); -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) +x_187 = !lean_is_exclusive(x_186); +if (x_187 == 0) { -lean_object* x_187; -x_187 = lean_ctor_get(x_185, 0); -lean_dec(x_187); -lean_ctor_set(x_185, 0, x_173); -return x_185; +lean_object* x_188; +x_188 = lean_ctor_get(x_186, 0); +lean_dec(x_188); +lean_ctor_set(x_186, 0, x_174); +return x_186; } else { -lean_object* x_188; lean_object* x_189; -x_188 = lean_ctor_get(x_185, 1); -lean_inc(x_188); -lean_dec(x_185); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_173); -lean_ctor_set(x_189, 1, x_188); -return x_189; +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_186, 1); +lean_inc(x_189); +lean_dec(x_186); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_174); +lean_ctor_set(x_190, 1, x_189); +return x_190; } } else { -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; -x_190 = lean_ctor_get(x_173, 0); -lean_inc(x_190); -lean_dec(x_173); -x_191 = lean_st_ref_get(x_8, x_174); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_191 = lean_ctor_get(x_174, 0); +lean_inc(x_191); +lean_dec(x_174); +x_192 = lean_st_ref_get(x_8, x_175); lean_dec(x_8); -x_192 = lean_ctor_get(x_191, 1); -lean_inc(x_192); -lean_dec(x_191); -x_193 = lean_st_ref_take(x_2, x_192); -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 1); +x_193 = lean_ctor_get(x_192, 1); +lean_inc(x_193); +lean_dec(x_192); +x_194 = lean_st_ref_take(x_2, x_193); +x_195 = lean_ctor_get(x_194, 0); lean_inc(x_195); -lean_dec(x_193); -lean_inc(x_190); -x_196 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_194, x_1, x_190); -x_197 = lean_st_ref_set(x_2, x_196, x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +lean_inc(x_191); +x_197 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_195, x_1, x_191); +x_198 = lean_st_ref_set(x_2, x_197, x_196); lean_dec(x_2); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_199 = x_197; +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_200 = x_198; } else { - lean_dec_ref(x_197); - x_199 = lean_box(0); + lean_dec_ref(x_198); + x_200 = lean_box(0); } -x_200 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_200, 0, x_190); -if (lean_is_scalar(x_199)) { - x_201 = lean_alloc_ctor(0, 2, 0); +x_201 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_201, 0, x_191); +if (lean_is_scalar(x_200)) { + x_202 = lean_alloc_ctor(0, 2, 0); } else { - x_201 = x_199; + x_202 = x_200; } -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_198); -return x_201; +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_199); +return x_202; } } } } case 7: { -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_251; -x_219 = lean_ctor_get(x_1, 1); -lean_inc(x_219); -x_220 = lean_ctor_get(x_1, 2); +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_252; +x_220 = lean_ctor_get(x_1, 1); lean_inc(x_220); +x_221 = lean_ctor_get(x_1, 2); +lean_inc(x_221); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -20268,83 +20275,83 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_251 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_219, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); -if (lean_obj_tag(x_251) == 0) -{ -lean_object* x_252; -x_252 = lean_ctor_get(x_251, 0); -lean_inc(x_252); +x_252 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_220, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_252) == 0) { -lean_object* x_253; lean_object* x_254; -lean_dec(x_220); +lean_object* x_253; +x_253 = lean_ctor_get(x_252, 0); +lean_inc(x_253); +if (lean_obj_tag(x_253) == 0) +{ +lean_object* x_254; lean_object* x_255; +lean_dec(x_221); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_253 = lean_ctor_get(x_251, 1); -lean_inc(x_253); -lean_dec(x_251); -x_254 = lean_box(0); -x_221 = x_254; -x_222 = x_253; -goto block_250; +x_254 = lean_ctor_get(x_252, 1); +lean_inc(x_254); +lean_dec(x_252); +x_255 = lean_box(0); +x_222 = x_255; +x_223 = x_254; +goto block_251; } else { -lean_object* x_255; lean_object* x_256; +lean_object* x_256; lean_object* x_257; +lean_dec(x_253); +x_256 = lean_ctor_get(x_252, 1); +lean_inc(x_256); lean_dec(x_252); -x_255 = lean_ctor_get(x_251, 1); -lean_inc(x_255); -lean_dec(x_251); lean_inc(x_8); lean_inc(x_2); -x_256 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_220, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_255); -if (lean_obj_tag(x_256) == 0) +x_257 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_221, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256); +if (lean_obj_tag(x_257) == 0) { -lean_object* x_257; lean_object* x_258; -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_257, 0); lean_inc(x_258); -lean_dec(x_256); -x_221 = x_257; +x_259 = lean_ctor_get(x_257, 1); +lean_inc(x_259); +lean_dec(x_257); x_222 = x_258; -goto block_250; +x_223 = x_259; +goto block_251; } else { -uint8_t x_259; +uint8_t x_260; lean_dec(x_15); lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_259 = !lean_is_exclusive(x_256); -if (x_259 == 0) +x_260 = !lean_is_exclusive(x_257); +if (x_260 == 0) { -return x_256; +return x_257; } else { -lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_260 = lean_ctor_get(x_256, 0); -x_261 = lean_ctor_get(x_256, 1); +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_257, 0); +x_262 = lean_ctor_get(x_257, 1); +lean_inc(x_262); lean_inc(x_261); -lean_inc(x_260); -lean_dec(x_256); -x_262 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_262, 0, x_260); -lean_ctor_set(x_262, 1, x_261); -return x_262; +lean_dec(x_257); +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +return x_263; } } } } else { -uint8_t x_263; -lean_dec(x_220); +uint8_t x_264; +lean_dec(x_221); lean_dec(x_15); lean_dec(x_8); lean_dec(x_7); @@ -20354,142 +20361,142 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_263 = !lean_is_exclusive(x_251); -if (x_263 == 0) +x_264 = !lean_is_exclusive(x_252); +if (x_264 == 0) { -return x_251; +return x_252; } else { -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = lean_ctor_get(x_251, 0); -x_265 = lean_ctor_get(x_251, 1); +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_252, 0); +x_266 = lean_ctor_get(x_252, 1); +lean_inc(x_266); lean_inc(x_265); -lean_inc(x_264); -lean_dec(x_251); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_264); -lean_ctor_set(x_266, 1, x_265); -return x_266; +lean_dec(x_252); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_265); +lean_ctor_set(x_267, 1, x_266); +return x_267; } } -block_250: +block_251: { -if (lean_obj_tag(x_221) == 0) +if (lean_obj_tag(x_222) == 0) { -lean_object* x_223; lean_object* x_224; +lean_object* x_224; lean_object* x_225; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_223 = lean_box(0); +x_224 = lean_box(0); if (lean_is_scalar(x_15)) { - x_224 = lean_alloc_ctor(0, 2, 0); + x_225 = lean_alloc_ctor(0, 2, 0); } else { - x_224 = x_15; + x_225 = x_15; } -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_222); -return x_224; +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_223); +return x_225; } else { -uint8_t x_225; +uint8_t x_226; lean_dec(x_15); -x_225 = !lean_is_exclusive(x_221); -if (x_225 == 0) +x_226 = !lean_is_exclusive(x_222); +if (x_226 == 0) { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; -x_226 = lean_ctor_get(x_221, 0); -x_227 = lean_st_ref_get(x_8, x_222); +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; +x_227 = lean_ctor_get(x_222, 0); +x_228 = lean_st_ref_get(x_8, x_223); lean_dec(x_8); -x_228 = lean_ctor_get(x_227, 1); -lean_inc(x_228); -lean_dec(x_227); -x_229 = lean_st_ref_take(x_2, x_228); -x_230 = lean_ctor_get(x_229, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_229, 1); +x_229 = lean_ctor_get(x_228, 1); +lean_inc(x_229); +lean_dec(x_228); +x_230 = lean_st_ref_take(x_2, x_229); +x_231 = lean_ctor_get(x_230, 0); lean_inc(x_231); -lean_dec(x_229); -lean_inc(x_226); -x_232 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_230, x_1, x_226); -x_233 = lean_st_ref_set(x_2, x_232, x_231); +x_232 = lean_ctor_get(x_230, 1); +lean_inc(x_232); +lean_dec(x_230); +lean_inc(x_227); +x_233 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_231, x_1, x_227); +x_234 = lean_st_ref_set(x_2, x_233, x_232); lean_dec(x_2); -x_234 = !lean_is_exclusive(x_233); -if (x_234 == 0) +x_235 = !lean_is_exclusive(x_234); +if (x_235 == 0) { -lean_object* x_235; -x_235 = lean_ctor_get(x_233, 0); -lean_dec(x_235); -lean_ctor_set(x_233, 0, x_221); -return x_233; +lean_object* x_236; +x_236 = lean_ctor_get(x_234, 0); +lean_dec(x_236); +lean_ctor_set(x_234, 0, x_222); +return x_234; } else { -lean_object* x_236; lean_object* x_237; -x_236 = lean_ctor_get(x_233, 1); -lean_inc(x_236); -lean_dec(x_233); -x_237 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_237, 0, x_221); -lean_ctor_set(x_237, 1, x_236); -return x_237; +lean_object* x_237; lean_object* x_238; +x_237 = lean_ctor_get(x_234, 1); +lean_inc(x_237); +lean_dec(x_234); +x_238 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_238, 0, x_222); +lean_ctor_set(x_238, 1, x_237); +return x_238; } } else { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_238 = lean_ctor_get(x_221, 0); -lean_inc(x_238); -lean_dec(x_221); -x_239 = lean_st_ref_get(x_8, x_222); +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_239 = lean_ctor_get(x_222, 0); +lean_inc(x_239); +lean_dec(x_222); +x_240 = lean_st_ref_get(x_8, x_223); lean_dec(x_8); -x_240 = lean_ctor_get(x_239, 1); -lean_inc(x_240); -lean_dec(x_239); -x_241 = lean_st_ref_take(x_2, x_240); -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); +x_241 = lean_ctor_get(x_240, 1); +lean_inc(x_241); +lean_dec(x_240); +x_242 = lean_st_ref_take(x_2, x_241); +x_243 = lean_ctor_get(x_242, 0); lean_inc(x_243); -lean_dec(x_241); -lean_inc(x_238); -x_244 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_242, x_1, x_238); -x_245 = lean_st_ref_set(x_2, x_244, x_243); +x_244 = lean_ctor_get(x_242, 1); +lean_inc(x_244); +lean_dec(x_242); +lean_inc(x_239); +x_245 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_243, x_1, x_239); +x_246 = lean_st_ref_set(x_2, x_245, x_244); lean_dec(x_2); -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; +x_247 = lean_ctor_get(x_246, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_248 = x_246; } else { - lean_dec_ref(x_245); - x_247 = lean_box(0); + lean_dec_ref(x_246); + x_248 = lean_box(0); } -x_248 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_248, 0, x_238); -if (lean_is_scalar(x_247)) { - x_249 = lean_alloc_ctor(0, 2, 0); +x_249 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_249, 0, x_239); +if (lean_is_scalar(x_248)) { + x_250 = lean_alloc_ctor(0, 2, 0); } else { - x_249 = x_247; + x_250 = x_248; } -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_246); -return x_249; +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_247); +return x_250; } } } } case 8: { -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_300; -x_267 = lean_ctor_get(x_1, 1); -lean_inc(x_267); -x_268 = lean_ctor_get(x_1, 2); +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_301; +x_268 = lean_ctor_get(x_1, 1); lean_inc(x_268); -x_269 = lean_ctor_get(x_1, 3); +x_269 = lean_ctor_get(x_1, 2); lean_inc(x_269); +x_270 = lean_ctor_get(x_1, 3); +lean_inc(x_270); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -20497,37 +20504,37 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_300 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_267, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); -if (lean_obj_tag(x_300) == 0) -{ -lean_object* x_301; -x_301 = lean_ctor_get(x_300, 0); -lean_inc(x_301); +x_301 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_268, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_301) == 0) { -lean_object* x_302; lean_object* x_303; +lean_object* x_302; +x_302 = lean_ctor_get(x_301, 0); +lean_inc(x_302); +if (lean_obj_tag(x_302) == 0) +{ +lean_object* x_303; lean_object* x_304; +lean_dec(x_270); lean_dec(x_269); -lean_dec(x_268); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_302 = lean_ctor_get(x_300, 1); -lean_inc(x_302); -lean_dec(x_300); -x_303 = lean_box(0); -x_270 = x_303; -x_271 = x_302; -goto block_299; +x_303 = lean_ctor_get(x_301, 1); +lean_inc(x_303); +lean_dec(x_301); +x_304 = lean_box(0); +x_271 = x_304; +x_272 = x_303; +goto block_300; } else { -lean_object* x_304; lean_object* x_305; +lean_object* x_305; lean_object* x_306; +lean_dec(x_302); +x_305 = lean_ctor_get(x_301, 1); +lean_inc(x_305); lean_dec(x_301); -x_304 = lean_ctor_get(x_300, 1); -lean_inc(x_304); -lean_dec(x_300); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -20535,626 +20542,626 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_305 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_268, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_304); -if (lean_obj_tag(x_305) == 0) -{ -lean_object* x_306; -x_306 = lean_ctor_get(x_305, 0); -lean_inc(x_306); +x_306 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_269, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_305); if (lean_obj_tag(x_306) == 0) { -lean_object* x_307; lean_object* x_308; -lean_dec(x_269); +lean_object* x_307; +x_307 = lean_ctor_get(x_306, 0); +lean_inc(x_307); +if (lean_obj_tag(x_307) == 0) +{ +lean_object* x_308; lean_object* x_309; +lean_dec(x_270); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_307 = lean_ctor_get(x_305, 1); -lean_inc(x_307); -lean_dec(x_305); -x_308 = lean_box(0); -x_270 = x_308; -x_271 = x_307; -goto block_299; +x_308 = lean_ctor_get(x_306, 1); +lean_inc(x_308); +lean_dec(x_306); +x_309 = lean_box(0); +x_271 = x_309; +x_272 = x_308; +goto block_300; } else { -lean_object* x_309; lean_object* x_310; +lean_object* x_310; lean_object* x_311; +lean_dec(x_307); +x_310 = lean_ctor_get(x_306, 1); +lean_inc(x_310); lean_dec(x_306); -x_309 = lean_ctor_get(x_305, 1); -lean_inc(x_309); -lean_dec(x_305); lean_inc(x_8); lean_inc(x_2); -x_310 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_269, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_309); -if (lean_obj_tag(x_310) == 0) +x_311 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_270, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_310); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_311; lean_object* x_312; -x_311 = lean_ctor_get(x_310, 0); -lean_inc(x_311); -x_312 = lean_ctor_get(x_310, 1); +lean_object* x_312; lean_object* x_313; +x_312 = lean_ctor_get(x_311, 0); lean_inc(x_312); -lean_dec(x_310); -x_270 = x_311; +x_313 = lean_ctor_get(x_311, 1); +lean_inc(x_313); +lean_dec(x_311); x_271 = x_312; -goto block_299; +x_272 = x_313; +goto block_300; } else { -uint8_t x_313; +uint8_t x_314; lean_dec(x_15); lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_313 = !lean_is_exclusive(x_310); -if (x_313 == 0) +x_314 = !lean_is_exclusive(x_311); +if (x_314 == 0) { -return x_310; +return x_311; } else { -lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_314 = lean_ctor_get(x_310, 0); -x_315 = lean_ctor_get(x_310, 1); +lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_315 = lean_ctor_get(x_311, 0); +x_316 = lean_ctor_get(x_311, 1); +lean_inc(x_316); lean_inc(x_315); -lean_inc(x_314); -lean_dec(x_310); -x_316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_316, 0, x_314); -lean_ctor_set(x_316, 1, x_315); -return x_316; +lean_dec(x_311); +x_317 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_317, 0, x_315); +lean_ctor_set(x_317, 1, x_316); +return x_317; } } } } else { -uint8_t x_317; -lean_dec(x_269); -lean_dec(x_15); -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_317 = !lean_is_exclusive(x_305); -if (x_317 == 0) -{ -return x_305; -} -else -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_305, 0); -x_319 = lean_ctor_get(x_305, 1); -lean_inc(x_319); -lean_inc(x_318); -lean_dec(x_305); -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_318); -lean_ctor_set(x_320, 1, x_319); -return x_320; -} -} -} -} -else -{ -uint8_t x_321; -lean_dec(x_269); -lean_dec(x_268); -lean_dec(x_15); -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_321 = !lean_is_exclusive(x_300); -if (x_321 == 0) -{ -return x_300; -} -else -{ -lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_322 = lean_ctor_get(x_300, 0); -x_323 = lean_ctor_get(x_300, 1); -lean_inc(x_323); -lean_inc(x_322); -lean_dec(x_300); -x_324 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_324, 0, x_322); -lean_ctor_set(x_324, 1, x_323); -return x_324; -} -} -block_299: -{ -if (lean_obj_tag(x_270) == 0) -{ -lean_object* x_272; lean_object* x_273; -lean_dec(x_8); -lean_dec(x_2); -lean_dec(x_1); -x_272 = lean_box(0); -if (lean_is_scalar(x_15)) { - x_273 = lean_alloc_ctor(0, 2, 0); -} else { - x_273 = x_15; -} -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_271); -return x_273; -} -else -{ -uint8_t x_274; -lean_dec(x_15); -x_274 = !lean_is_exclusive(x_270); -if (x_274 == 0) -{ -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; uint8_t x_283; -x_275 = lean_ctor_get(x_270, 0); -x_276 = lean_st_ref_get(x_8, x_271); -lean_dec(x_8); -x_277 = lean_ctor_get(x_276, 1); -lean_inc(x_277); -lean_dec(x_276); -x_278 = lean_st_ref_take(x_2, 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); -lean_dec(x_278); -lean_inc(x_275); -x_281 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_279, x_1, x_275); -x_282 = lean_st_ref_set(x_2, x_281, x_280); -lean_dec(x_2); -x_283 = !lean_is_exclusive(x_282); -if (x_283 == 0) -{ -lean_object* x_284; -x_284 = lean_ctor_get(x_282, 0); -lean_dec(x_284); -lean_ctor_set(x_282, 0, x_270); -return x_282; -} -else -{ -lean_object* x_285; lean_object* x_286; -x_285 = lean_ctor_get(x_282, 1); -lean_inc(x_285); -lean_dec(x_282); -x_286 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_286, 0, x_270); -lean_ctor_set(x_286, 1, x_285); -return x_286; -} -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_287 = lean_ctor_get(x_270, 0); -lean_inc(x_287); +uint8_t x_318; lean_dec(x_270); -x_288 = lean_st_ref_get(x_8, x_271); +lean_dec(x_15); lean_dec(x_8); -x_289 = lean_ctor_get(x_288, 1); -lean_inc(x_289); -lean_dec(x_288); -x_290 = lean_st_ref_take(x_2, x_289); -x_291 = lean_ctor_get(x_290, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_290, 1); -lean_inc(x_292); -lean_dec(x_290); -lean_inc(x_287); -x_293 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_291, x_1, x_287); -x_294 = lean_st_ref_set(x_2, x_293, x_292); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_295 = lean_ctor_get(x_294, 1); -lean_inc(x_295); -if (lean_is_exclusive(x_294)) { - lean_ctor_release(x_294, 0); - lean_ctor_release(x_294, 1); - x_296 = x_294; -} else { - lean_dec_ref(x_294); - x_296 = lean_box(0); +lean_dec(x_1); +x_318 = !lean_is_exclusive(x_306); +if (x_318 == 0) +{ +return x_306; } -x_297 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_297, 0, x_287); -if (lean_is_scalar(x_296)) { - x_298 = lean_alloc_ctor(0, 2, 0); -} else { - x_298 = x_296; +else +{ +lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_319 = lean_ctor_get(x_306, 0); +x_320 = lean_ctor_get(x_306, 1); +lean_inc(x_320); +lean_inc(x_319); +lean_dec(x_306); +x_321 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_321, 0, x_319); +lean_ctor_set(x_321, 1, x_320); +return x_321; } -lean_ctor_set(x_298, 0, x_297); -lean_ctor_set(x_298, 1, x_295); -return x_298; +} +} +} +else +{ +uint8_t x_322; +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_15); +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_322 = !lean_is_exclusive(x_301); +if (x_322 == 0) +{ +return x_301; +} +else +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_301, 0); +x_324 = lean_ctor_get(x_301, 1); +lean_inc(x_324); +lean_inc(x_323); +lean_dec(x_301); +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 1, x_324); +return x_325; +} +} +block_300: +{ +if (lean_obj_tag(x_271) == 0) +{ +lean_object* x_273; lean_object* x_274; +lean_dec(x_8); +lean_dec(x_2); +lean_dec(x_1); +x_273 = lean_box(0); +if (lean_is_scalar(x_15)) { + x_274 = lean_alloc_ctor(0, 2, 0); +} else { + x_274 = x_15; +} +lean_ctor_set(x_274, 0, x_273); +lean_ctor_set(x_274, 1, x_272); +return x_274; +} +else +{ +uint8_t x_275; +lean_dec(x_15); +x_275 = !lean_is_exclusive(x_271); +if (x_275 == 0) +{ +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; uint8_t x_284; +x_276 = lean_ctor_get(x_271, 0); +x_277 = lean_st_ref_get(x_8, x_272); +lean_dec(x_8); +x_278 = lean_ctor_get(x_277, 1); +lean_inc(x_278); +lean_dec(x_277); +x_279 = lean_st_ref_take(x_2, x_278); +x_280 = lean_ctor_get(x_279, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_279, 1); +lean_inc(x_281); +lean_dec(x_279); +lean_inc(x_276); +x_282 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_280, x_1, x_276); +x_283 = lean_st_ref_set(x_2, x_282, x_281); +lean_dec(x_2); +x_284 = !lean_is_exclusive(x_283); +if (x_284 == 0) +{ +lean_object* x_285; +x_285 = lean_ctor_get(x_283, 0); +lean_dec(x_285); +lean_ctor_set(x_283, 0, x_271); +return x_283; +} +else +{ +lean_object* x_286; lean_object* x_287; +x_286 = lean_ctor_get(x_283, 1); +lean_inc(x_286); +lean_dec(x_283); +x_287 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_287, 0, x_271); +lean_ctor_set(x_287, 1, x_286); +return x_287; +} +} +else +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_288 = lean_ctor_get(x_271, 0); +lean_inc(x_288); +lean_dec(x_271); +x_289 = lean_st_ref_get(x_8, x_272); +lean_dec(x_8); +x_290 = lean_ctor_get(x_289, 1); +lean_inc(x_290); +lean_dec(x_289); +x_291 = lean_st_ref_take(x_2, x_290); +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); +lean_inc(x_288); +x_294 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_292, x_1, x_288); +x_295 = lean_st_ref_set(x_2, x_294, x_293); +lean_dec(x_2); +x_296 = lean_ctor_get(x_295, 1); +lean_inc(x_296); +if (lean_is_exclusive(x_295)) { + lean_ctor_release(x_295, 0); + lean_ctor_release(x_295, 1); + x_297 = x_295; +} else { + lean_dec_ref(x_295); + x_297 = lean_box(0); +} +x_298 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_298, 0, x_288); +if (lean_is_scalar(x_297)) { + x_299 = lean_alloc_ctor(0, 2, 0); +} else { + x_299 = x_297; +} +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_296); +return x_299; } } } } case 10: { -lean_object* x_325; lean_object* x_326; +lean_object* x_326; lean_object* x_327; lean_dec(x_15); -x_325 = lean_ctor_get(x_1, 1); -lean_inc(x_325); +x_326 = lean_ctor_get(x_1, 1); +lean_inc(x_326); lean_inc(x_8); lean_inc(x_2); -x_326 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_325, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); -if (lean_obj_tag(x_326) == 0) -{ -lean_object* x_327; -x_327 = lean_ctor_get(x_326, 0); -lean_inc(x_327); +x_327 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_326, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_327) == 0) { -uint8_t x_328; +lean_object* x_328; +x_328 = lean_ctor_get(x_327, 0); +lean_inc(x_328); +if (lean_obj_tag(x_328) == 0) +{ +uint8_t x_329; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_328 = !lean_is_exclusive(x_326); -if (x_328 == 0) +x_329 = !lean_is_exclusive(x_327); +if (x_329 == 0) { -lean_object* x_329; lean_object* x_330; -x_329 = lean_ctor_get(x_326, 0); -lean_dec(x_329); -x_330 = lean_box(0); -lean_ctor_set(x_326, 0, x_330); -return x_326; +lean_object* x_330; lean_object* x_331; +x_330 = lean_ctor_get(x_327, 0); +lean_dec(x_330); +x_331 = lean_box(0); +lean_ctor_set(x_327, 0, x_331); +return x_327; } else { -lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_331 = lean_ctor_get(x_326, 1); -lean_inc(x_331); -lean_dec(x_326); -x_332 = lean_box(0); -x_333 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_333, 0, x_332); -lean_ctor_set(x_333, 1, x_331); -return x_333; -} -} -else -{ -lean_object* x_334; uint8_t x_335; -x_334 = lean_ctor_get(x_326, 1); -lean_inc(x_334); -lean_dec(x_326); -x_335 = !lean_is_exclusive(x_327); -if (x_335 == 0) -{ -lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_344; -x_336 = lean_ctor_get(x_327, 0); -x_337 = lean_st_ref_get(x_8, x_334); -lean_dec(x_8); -x_338 = lean_ctor_get(x_337, 1); -lean_inc(x_338); -lean_dec(x_337); -x_339 = lean_st_ref_take(x_2, x_338); -x_340 = lean_ctor_get(x_339, 0); -lean_inc(x_340); -x_341 = lean_ctor_get(x_339, 1); -lean_inc(x_341); -lean_dec(x_339); -lean_inc(x_336); -x_342 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_340, x_1, x_336); -x_343 = lean_st_ref_set(x_2, x_342, x_341); -lean_dec(x_2); -x_344 = !lean_is_exclusive(x_343); -if (x_344 == 0) -{ -lean_object* x_345; -x_345 = lean_ctor_get(x_343, 0); -lean_dec(x_345); -lean_ctor_set(x_343, 0, x_327); -return x_343; -} -else -{ -lean_object* x_346; lean_object* x_347; -x_346 = lean_ctor_get(x_343, 1); -lean_inc(x_346); -lean_dec(x_343); -x_347 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_347, 0, x_327); -lean_ctor_set(x_347, 1, x_346); -return x_347; -} -} -else -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -x_348 = lean_ctor_get(x_327, 0); -lean_inc(x_348); +lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_332 = lean_ctor_get(x_327, 1); +lean_inc(x_332); lean_dec(x_327); -x_349 = lean_st_ref_get(x_8, x_334); +x_333 = lean_box(0); +x_334 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_332); +return x_334; +} +} +else +{ +lean_object* x_335; uint8_t x_336; +x_335 = lean_ctor_get(x_327, 1); +lean_inc(x_335); +lean_dec(x_327); +x_336 = !lean_is_exclusive(x_328); +if (x_336 == 0) +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; +x_337 = lean_ctor_get(x_328, 0); +x_338 = lean_st_ref_get(x_8, x_335); lean_dec(x_8); -x_350 = lean_ctor_get(x_349, 1); -lean_inc(x_350); -lean_dec(x_349); -x_351 = lean_st_ref_take(x_2, x_350); -x_352 = lean_ctor_get(x_351, 0); -lean_inc(x_352); -x_353 = lean_ctor_get(x_351, 1); -lean_inc(x_353); -lean_dec(x_351); -lean_inc(x_348); -x_354 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_352, x_1, x_348); -x_355 = lean_st_ref_set(x_2, x_354, x_353); +x_339 = lean_ctor_get(x_338, 1); +lean_inc(x_339); +lean_dec(x_338); +x_340 = lean_st_ref_take(x_2, x_339); +x_341 = lean_ctor_get(x_340, 0); +lean_inc(x_341); +x_342 = lean_ctor_get(x_340, 1); +lean_inc(x_342); +lean_dec(x_340); +lean_inc(x_337); +x_343 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_341, x_1, x_337); +x_344 = lean_st_ref_set(x_2, x_343, x_342); lean_dec(x_2); -x_356 = lean_ctor_get(x_355, 1); -lean_inc(x_356); -if (lean_is_exclusive(x_355)) { - lean_ctor_release(x_355, 0); - lean_ctor_release(x_355, 1); - x_357 = x_355; -} else { - lean_dec_ref(x_355); - x_357 = lean_box(0); +x_345 = !lean_is_exclusive(x_344); +if (x_345 == 0) +{ +lean_object* x_346; +x_346 = lean_ctor_get(x_344, 0); +lean_dec(x_346); +lean_ctor_set(x_344, 0, x_328); +return x_344; } -x_358 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_358, 0, x_348); -if (lean_is_scalar(x_357)) { - x_359 = lean_alloc_ctor(0, 2, 0); -} else { - x_359 = x_357; +else +{ +lean_object* x_347; lean_object* x_348; +x_347 = lean_ctor_get(x_344, 1); +lean_inc(x_347); +lean_dec(x_344); +x_348 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_348, 0, x_328); +lean_ctor_set(x_348, 1, x_347); +return x_348; } -lean_ctor_set(x_359, 0, x_358); -lean_ctor_set(x_359, 1, x_356); -return x_359; +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_349 = lean_ctor_get(x_328, 0); +lean_inc(x_349); +lean_dec(x_328); +x_350 = lean_st_ref_get(x_8, x_335); +lean_dec(x_8); +x_351 = lean_ctor_get(x_350, 1); +lean_inc(x_351); +lean_dec(x_350); +x_352 = lean_st_ref_take(x_2, x_351); +x_353 = lean_ctor_get(x_352, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_352, 1); +lean_inc(x_354); +lean_dec(x_352); +lean_inc(x_349); +x_355 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_353, x_1, x_349); +x_356 = lean_st_ref_set(x_2, x_355, x_354); +lean_dec(x_2); +x_357 = lean_ctor_get(x_356, 1); +lean_inc(x_357); +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + x_358 = x_356; +} else { + lean_dec_ref(x_356); + x_358 = lean_box(0); +} +x_359 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_359, 0, x_349); +if (lean_is_scalar(x_358)) { + x_360 = lean_alloc_ctor(0, 2, 0); +} else { + x_360 = x_358; +} +lean_ctor_set(x_360, 0, x_359); +lean_ctor_set(x_360, 1, x_357); +return x_360; } } } else { -uint8_t x_360; +uint8_t x_361; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_360 = !lean_is_exclusive(x_326); -if (x_360 == 0) +x_361 = !lean_is_exclusive(x_327); +if (x_361 == 0) { -return x_326; +return x_327; } else { -lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_361 = lean_ctor_get(x_326, 0); -x_362 = lean_ctor_get(x_326, 1); +lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_362 = lean_ctor_get(x_327, 0); +x_363 = lean_ctor_get(x_327, 1); +lean_inc(x_363); lean_inc(x_362); -lean_inc(x_361); -lean_dec(x_326); -x_363 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_363, 0, x_361); -lean_ctor_set(x_363, 1, x_362); -return x_363; +lean_dec(x_327); +x_364 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_364, 0, x_362); +lean_ctor_set(x_364, 1, x_363); +return x_364; } } } case 11: { -lean_object* x_364; lean_object* x_365; +lean_object* x_365; lean_object* x_366; lean_dec(x_15); -x_364 = lean_ctor_get(x_1, 2); -lean_inc(x_364); +x_365 = lean_ctor_get(x_1, 2); +lean_inc(x_365); lean_inc(x_8); lean_inc(x_2); -x_365 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_364, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); -if (lean_obj_tag(x_365) == 0) -{ -lean_object* x_366; -x_366 = lean_ctor_get(x_365, 0); -lean_inc(x_366); +x_366 = l_Lean_Elab_Term_ContainsPendingMVar_visit(x_365, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_366) == 0) { -uint8_t x_367; +lean_object* x_367; +x_367 = lean_ctor_get(x_366, 0); +lean_inc(x_367); +if (lean_obj_tag(x_367) == 0) +{ +uint8_t x_368; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_367 = !lean_is_exclusive(x_365); -if (x_367 == 0) +x_368 = !lean_is_exclusive(x_366); +if (x_368 == 0) { -lean_object* x_368; lean_object* x_369; -x_368 = lean_ctor_get(x_365, 0); -lean_dec(x_368); -x_369 = lean_box(0); -lean_ctor_set(x_365, 0, x_369); -return x_365; +lean_object* x_369; lean_object* x_370; +x_369 = lean_ctor_get(x_366, 0); +lean_dec(x_369); +x_370 = lean_box(0); +lean_ctor_set(x_366, 0, x_370); +return x_366; } else { -lean_object* x_370; lean_object* x_371; lean_object* x_372; -x_370 = lean_ctor_get(x_365, 1); -lean_inc(x_370); -lean_dec(x_365); -x_371 = lean_box(0); -x_372 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_372, 0, x_371); -lean_ctor_set(x_372, 1, x_370); -return x_372; -} -} -else -{ -lean_object* x_373; uint8_t x_374; -x_373 = lean_ctor_get(x_365, 1); -lean_inc(x_373); -lean_dec(x_365); -x_374 = !lean_is_exclusive(x_366); -if (x_374 == 0) -{ -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; uint8_t x_383; -x_375 = lean_ctor_get(x_366, 0); -x_376 = lean_st_ref_get(x_8, x_373); -lean_dec(x_8); -x_377 = lean_ctor_get(x_376, 1); -lean_inc(x_377); -lean_dec(x_376); -x_378 = lean_st_ref_take(x_2, x_377); -x_379 = lean_ctor_get(x_378, 0); -lean_inc(x_379); -x_380 = lean_ctor_get(x_378, 1); -lean_inc(x_380); -lean_dec(x_378); -lean_inc(x_375); -x_381 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_379, x_1, x_375); -x_382 = lean_st_ref_set(x_2, x_381, x_380); -lean_dec(x_2); -x_383 = !lean_is_exclusive(x_382); -if (x_383 == 0) -{ -lean_object* x_384; -x_384 = lean_ctor_get(x_382, 0); -lean_dec(x_384); -lean_ctor_set(x_382, 0, x_366); -return x_382; -} -else -{ -lean_object* x_385; lean_object* x_386; -x_385 = lean_ctor_get(x_382, 1); -lean_inc(x_385); -lean_dec(x_382); -x_386 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_386, 0, x_366); -lean_ctor_set(x_386, 1, x_385); -return x_386; -} -} -else -{ -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; -x_387 = lean_ctor_get(x_366, 0); -lean_inc(x_387); +lean_object* x_371; lean_object* x_372; lean_object* x_373; +x_371 = lean_ctor_get(x_366, 1); +lean_inc(x_371); lean_dec(x_366); -x_388 = lean_st_ref_get(x_8, x_373); +x_372 = lean_box(0); +x_373 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_373, 0, x_372); +lean_ctor_set(x_373, 1, x_371); +return x_373; +} +} +else +{ +lean_object* x_374; uint8_t x_375; +x_374 = lean_ctor_get(x_366, 1); +lean_inc(x_374); +lean_dec(x_366); +x_375 = !lean_is_exclusive(x_367); +if (x_375 == 0) +{ +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; uint8_t x_384; +x_376 = lean_ctor_get(x_367, 0); +x_377 = lean_st_ref_get(x_8, x_374); lean_dec(x_8); -x_389 = lean_ctor_get(x_388, 1); -lean_inc(x_389); -lean_dec(x_388); -x_390 = lean_st_ref_take(x_2, x_389); -x_391 = lean_ctor_get(x_390, 0); -lean_inc(x_391); -x_392 = lean_ctor_get(x_390, 1); -lean_inc(x_392); -lean_dec(x_390); -lean_inc(x_387); -x_393 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_391, x_1, x_387); -x_394 = lean_st_ref_set(x_2, x_393, x_392); +x_378 = lean_ctor_get(x_377, 1); +lean_inc(x_378); +lean_dec(x_377); +x_379 = lean_st_ref_take(x_2, x_378); +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_379, 1); +lean_inc(x_381); +lean_dec(x_379); +lean_inc(x_376); +x_382 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_380, x_1, x_376); +x_383 = lean_st_ref_set(x_2, x_382, x_381); lean_dec(x_2); -x_395 = lean_ctor_get(x_394, 1); -lean_inc(x_395); -if (lean_is_exclusive(x_394)) { - lean_ctor_release(x_394, 0); - lean_ctor_release(x_394, 1); - x_396 = x_394; -} else { - lean_dec_ref(x_394); - x_396 = lean_box(0); +x_384 = !lean_is_exclusive(x_383); +if (x_384 == 0) +{ +lean_object* x_385; +x_385 = lean_ctor_get(x_383, 0); +lean_dec(x_385); +lean_ctor_set(x_383, 0, x_367); +return x_383; } -x_397 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_397, 0, x_387); -if (lean_is_scalar(x_396)) { - x_398 = lean_alloc_ctor(0, 2, 0); -} else { - x_398 = x_396; +else +{ +lean_object* x_386; lean_object* x_387; +x_386 = lean_ctor_get(x_383, 1); +lean_inc(x_386); +lean_dec(x_383); +x_387 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_387, 0, x_367); +lean_ctor_set(x_387, 1, x_386); +return x_387; } -lean_ctor_set(x_398, 0, x_397); -lean_ctor_set(x_398, 1, x_395); -return x_398; +} +else +{ +lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +x_388 = lean_ctor_get(x_367, 0); +lean_inc(x_388); +lean_dec(x_367); +x_389 = lean_st_ref_get(x_8, x_374); +lean_dec(x_8); +x_390 = lean_ctor_get(x_389, 1); +lean_inc(x_390); +lean_dec(x_389); +x_391 = lean_st_ref_take(x_2, x_390); +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_391, 1); +lean_inc(x_393); +lean_dec(x_391); +lean_inc(x_388); +x_394 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_392, x_1, x_388); +x_395 = lean_st_ref_set(x_2, x_394, x_393); +lean_dec(x_2); +x_396 = lean_ctor_get(x_395, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_397 = x_395; +} else { + lean_dec_ref(x_395); + x_397 = lean_box(0); +} +x_398 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_398, 0, x_388); +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(0, 2, 0); +} else { + x_399 = x_397; +} +lean_ctor_set(x_399, 0, x_398); +lean_ctor_set(x_399, 1, x_396); +return x_399; } } } else { -uint8_t x_399; +uint8_t x_400; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_399 = !lean_is_exclusive(x_365); -if (x_399 == 0) +x_400 = !lean_is_exclusive(x_366); +if (x_400 == 0) { -return x_365; +return x_366; } else { -lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_400 = lean_ctor_get(x_365, 0); -x_401 = lean_ctor_get(x_365, 1); +lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_401 = lean_ctor_get(x_366, 0); +x_402 = lean_ctor_get(x_366, 1); +lean_inc(x_402); lean_inc(x_401); -lean_inc(x_400); -lean_dec(x_365); -x_402 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_402, 0, x_400); -lean_ctor_set(x_402, 1, x_401); -return x_402; +lean_dec(x_366); +x_403 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_403, 0, x_401); +lean_ctor_set(x_403, 1, x_402); +return x_403; } } } default: { -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; uint8_t x_411; +lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; lean_dec(x_15); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_403 = lean_st_ref_get(x_8, x_14); +x_404 = lean_st_ref_get(x_8, x_14); lean_dec(x_8); -x_404 = lean_ctor_get(x_403, 1); -lean_inc(x_404); -lean_dec(x_403); -x_405 = lean_st_ref_take(x_2, x_404); -x_406 = lean_ctor_get(x_405, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_405, 1); +x_405 = lean_ctor_get(x_404, 1); +lean_inc(x_405); +lean_dec(x_404); +x_406 = lean_st_ref_take(x_2, x_405); +x_407 = lean_ctor_get(x_406, 0); lean_inc(x_407); -lean_dec(x_405); -x_408 = lean_box(0); -x_409 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_406, x_1, x_408); -x_410 = lean_st_ref_set(x_2, x_409, x_407); +x_408 = lean_ctor_get(x_406, 1); +lean_inc(x_408); +lean_dec(x_406); +x_409 = lean_box(0); +x_410 = l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(x_407, x_1, x_409); +x_411 = lean_st_ref_set(x_2, x_410, x_408); lean_dec(x_2); -x_411 = !lean_is_exclusive(x_410); -if (x_411 == 0) +x_412 = !lean_is_exclusive(x_411); +if (x_412 == 0) { -lean_object* x_412; lean_object* x_413; -x_412 = lean_ctor_get(x_410, 0); -lean_dec(x_412); -x_413 = l_Lean_markUsedAssignment___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__3___rarg___closed__1; -lean_ctor_set(x_410, 0, x_413); -return x_410; +lean_object* x_413; lean_object* x_414; +x_413 = lean_ctor_get(x_411, 0); +lean_dec(x_413); +x_414 = l_Lean_markUsedAssignment___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__3___rarg___closed__1; +lean_ctor_set(x_411, 0, x_414); +return x_411; } else { -lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_414 = lean_ctor_get(x_410, 1); -lean_inc(x_414); -lean_dec(x_410); -x_415 = l_Lean_markUsedAssignment___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__3___rarg___closed__1; -x_416 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_416, 0, x_415); -lean_ctor_set(x_416, 1, x_414); -return x_416; +lean_object* x_415; lean_object* x_416; lean_object* x_417; +x_415 = lean_ctor_get(x_411, 1); +lean_inc(x_415); +lean_dec(x_411); +x_416 = l_Lean_markUsedAssignment___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__3___rarg___closed__1; +x_417 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_417, 0, x_416); +lean_ctor_set(x_417, 1, x_415); +return x_417; } } } } else { -uint8_t x_417; +uint8_t x_418; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -21163,35 +21170,35 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_417 = !lean_is_exclusive(x_16); -if (x_417 == 0) +x_418 = !lean_is_exclusive(x_16); +if (x_418 == 0) { -lean_object* x_418; +lean_object* x_419; if (lean_is_scalar(x_15)) { - x_418 = lean_alloc_ctor(0, 2, 0); + x_419 = lean_alloc_ctor(0, 2, 0); } else { - x_418 = x_15; + x_419 = x_15; } -lean_ctor_set(x_418, 0, x_16); -lean_ctor_set(x_418, 1, x_14); -return x_418; +lean_ctor_set(x_419, 0, x_16); +lean_ctor_set(x_419, 1, x_14); +return x_419; } else { -lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_419 = lean_ctor_get(x_16, 0); -lean_inc(x_419); +lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_420 = lean_ctor_get(x_16, 0); +lean_inc(x_420); lean_dec(x_16); -x_420 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_420, 0, x_419); -if (lean_is_scalar(x_15)) { - x_421 = lean_alloc_ctor(0, 2, 0); -} else { - x_421 = x_15; -} +x_421 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_421, 0, x_420); -lean_ctor_set(x_421, 1, x_14); -return x_421; +if (lean_is_scalar(x_15)) { + x_422 = lean_alloc_ctor(0, 2, 0); +} else { + x_422 = x_15; +} +lean_ctor_set(x_422, 0, x_421); +lean_ctor_set(x_422, 1, x_14); +return x_422; } } } @@ -22698,7 +22705,7 @@ lean_dec(x_3); return x_12; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__1() { _start: { lean_object* x_1; @@ -22706,17 +22713,17 @@ x_1 = lean_mk_string_from_bytes("autoLift", 8); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__3() { _start: { lean_object* x_1; @@ -22724,13 +22731,13 @@ x_1 = lean_mk_string_from_bytes("insert monadic lifts (i.e., `liftM` and coercio return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__4() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = 1; x_2 = l_Lean_Elab_ContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___rarg___closed__1; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__3; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__3; x_4 = lean_box(x_1); x_5 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_5, 0, x_4); @@ -22739,17 +22746,17 @@ lean_ctor_set(x_5, 2, x_3); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__2; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__4; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__2; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__4; x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(x_2, x_3, x_1); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__1() { _start: { lean_object* x_1; @@ -22757,17 +22764,17 @@ x_1 = lean_mk_string_from_bytes("maxCoeSize", 10); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__3() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__3() { _start: { lean_object* x_1; @@ -22775,13 +22782,13 @@ x_1 = lean_mk_string_from_bytes("maximum number of instances used to construct a return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__4() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_unsigned_to_nat(16u); x_2 = l_Lean_Elab_ContextInfo_saveNoFileMap___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__4___rarg___closed__1; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__3; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__3; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -22789,12 +22796,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__2; -x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__4; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__2; +x_3 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__4; x_4 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_RecDepth___hyg_6____spec__1(x_2, x_3, x_1); return x_4; } @@ -23480,6 +23487,337 @@ return x_61; } } } +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("_traceMsg", 9); +return x_1; +} +} +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_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; uint8_t x_19; +x_10 = lean_ctor_get(x_7, 5); +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 = l___private_Lean_Util_Trace_0__Lean_addTraceOptions(x_12); +x_15 = lean_st_ref_take(x_8, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 3); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_16, 3); +lean_dec(x_20); +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_22 = lean_ctor_get(x_17, 0); +x_23 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2; +x_24 = l_Lean_Name_append(x_1, x_23); +x_25 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_25, 0, x_1); +x_26 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__1; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_14); +x_31 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; +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 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_33, 0, x_24); +lean_ctor_set(x_33, 1, x_32); +lean_inc(x_10); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_10); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Std_PersistentArray_push___rarg(x_22, x_34); +lean_ctor_set(x_17, 0, x_35); +x_36 = lean_st_ref_set(x_8, x_16, x_18); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +x_39 = lean_box(0); +lean_ctor_set(x_36, 0, x_39); +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +lean_dec(x_36); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +else +{ +uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 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; +x_43 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_44 = lean_ctor_get(x_17, 0); +lean_inc(x_44); +lean_dec(x_17); +x_45 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2; +x_46 = l_Lean_Name_append(x_1, x_45); +x_47 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_47, 0, x_1); +x_48 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__1; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_14); +x_53 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_55, 0, x_46); +lean_ctor_set(x_55, 1, x_54); +lean_inc(x_10); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_10); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Std_PersistentArray_push___rarg(x_44, x_56); +x_58 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_43); +lean_ctor_set(x_16, 3, x_58); +x_59 = lean_st_ref_set(x_8, x_16, x_18); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_61 = x_59; +} else { + lean_dec_ref(x_59); + x_61 = lean_box(0); +} +x_62 = lean_box(0); +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_61; +} +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; +} +} +else +{ +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; 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; +x_64 = lean_ctor_get(x_16, 0); +x_65 = lean_ctor_get(x_16, 1); +x_66 = lean_ctor_get(x_16, 2); +x_67 = lean_ctor_get(x_16, 4); +x_68 = lean_ctor_get(x_16, 5); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_16); +x_69 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_70 = lean_ctor_get(x_17, 0); +lean_inc(x_70); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + x_71 = x_17; +} else { + lean_dec_ref(x_17); + x_71 = lean_box(0); +} +x_72 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2; +x_73 = l_Lean_Name_append(x_1, x_72); +x_74 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_74, 0, x_1); +x_75 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__1; +x_76 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_74); +x_77 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; +x_78 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_79 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_14); +x_80 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; +x_81 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +x_82 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_82, 0, x_73); +lean_ctor_set(x_82, 1, x_81); +lean_inc(x_10); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_10); +lean_ctor_set(x_83, 1, x_82); +x_84 = l_Std_PersistentArray_push___rarg(x_70, x_83); +if (lean_is_scalar(x_71)) { + x_85 = lean_alloc_ctor(0, 1, 1); +} else { + x_85 = x_71; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set_uint8(x_85, sizeof(void*)*1, x_69); +x_86 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_86, 0, x_64); +lean_ctor_set(x_86, 1, x_65); +lean_ctor_set(x_86, 2, x_66); +lean_ctor_set(x_86, 3, x_85); +lean_ctor_set(x_86, 4, x_67); +lean_ctor_set(x_86, 5, x_68); +x_87 = lean_st_ref_set(x_8, x_86, x_18); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_89 = x_87; +} else { + lean_dec_ref(x_87); + x_89 = lean_box(0); +} +x_90 = lean_box(0); +if (lean_is_scalar(x_89)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_89; +} +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_88); +return x_91; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_6, 2); +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; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Elab_Term_mkCoe(x_1, x_2, x_3, x_4, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_14; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; +x_2 = l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("adding coercion for ", 20); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" : ", 3); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" =?= ", 5); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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: { @@ -23519,58 +23857,102 @@ x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); if (lean_obj_tag(x_18) == 0) { -lean_object* x_19; lean_object* x_20; +lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = l_Lean_Elab_Term_mkCoe(x_2, x_3, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_19); -return x_20; +x_20 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__1; +x_41 = lean_st_ref_get(x_11, x_19); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 3); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_ctor_get_uint8(x_43, sizeof(void*)*1); +lean_dec(x_43); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_41, 1); +lean_inc(x_45); +lean_dec(x_41); +x_46 = 0; +x_21 = x_46; +x_22 = x_45; +goto block_40; } else { -uint8_t x_21; -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_21 = !lean_is_exclusive(x_17); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); +lean_dec(x_41); +x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_unbox(x_49); +lean_dec(x_49); +x_21 = x_51; +x_22 = x_50; +goto block_40; +} +block_40: +{ if (x_21 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_17, 0); -lean_dec(x_22); -x_23 = lean_ctor_get(x_18, 0); -lean_inc(x_23); -lean_dec(x_18); -lean_ctor_set(x_17, 0, x_23); -return x_17; +lean_object* x_23; +x_23 = l_Lean_Elab_Term_mkCoe(x_2, x_3, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +return x_23; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_dec(x_17); -x_25 = lean_ctor_get(x_18, 0); -lean_inc(x_25); -lean_dec(x_18); -x_26 = lean_alloc_ctor(0, 2, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_inc(x_4); +x_24 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_24, 0, x_4); +x_25 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3; +x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -return x_26; +x_27 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +lean_inc(x_3); +x_29 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_29, 0, x_3); +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__7; +x_32 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +lean_inc(x_2); +x_33 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_33, 0, x_2); +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_20, x_36, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_Elab_Term_mkCoe(x_2, x_3, x_4, x_5, x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_38); +return x_39; } } } else { -uint8_t x_27; +uint8_t x_52; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23582,29 +23964,71 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_27 = !lean_is_exclusive(x_17); -if (x_27 == 0) +x_52 = !lean_is_exclusive(x_17); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_17, 0); +lean_dec(x_53); +x_54 = lean_ctor_get(x_18, 0); +lean_inc(x_54); +lean_dec(x_18); +lean_ctor_set(x_17, 0, x_54); +return x_17; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_17, 1); +lean_inc(x_55); +lean_dec(x_17); +x_56 = lean_ctor_get(x_18, 0); +lean_inc(x_56); +lean_dec(x_18); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +} +else +{ +uint8_t x_58; +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_58 = !lean_is_exclusive(x_17); +if (x_58 == 0) { return x_17; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_17, 0); -x_29 = lean_ctor_get(x_17, 1); -lean_inc(x_29); -lean_inc(x_28); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_17, 0); +x_60 = lean_ctor_get(x_17, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_17); -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; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -uint8_t x_31; +uint8_t x_62; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23615,31 +24039,31 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_13); -if (x_31 == 0) +x_62 = !lean_is_exclusive(x_13); +if (x_62 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_13, 0); -lean_dec(x_32); +lean_object* x_63; +x_63 = lean_ctor_get(x_13, 0); +lean_dec(x_63); lean_ctor_set(x_13, 0, x_4); return x_13; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_13, 1); -lean_inc(x_33); +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_13, 1); +lean_inc(x_64); lean_dec(x_13); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_4); -lean_ctor_set(x_34, 1, x_33); -return x_34; +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_4); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } else { -uint8_t x_35; +uint8_t x_66; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23651,27 +24075,64 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_13); -if (x_35 == 0) +x_66 = !lean_is_exclusive(x_13); +if (x_66 == 0) { return x_13; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_13, 0); -x_37 = lean_ctor_get(x_13, 1); -lean_inc(x_37); -lean_inc(x_36); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_13, 0); +x_68 = lean_ctor_get(x_13, 1); +lean_inc(x_68); +lean_inc(x_67); lean_dec(x_13); -x_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; +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_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___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_Term_0__Lean_Elab_Term_tryCoe___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_6); +return x_14; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_isTypeApp_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -29078,268 +29539,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withSavedContext___rarg), 9, 0 return x_2; } } -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("_traceMsg", 9); -return x_1; -} -} -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_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; uint8_t x_19; -x_10 = lean_ctor_get(x_7, 5); -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 = l___private_Lean_Util_Trace_0__Lean_addTraceOptions(x_12); -x_15 = lean_st_ref_take(x_8, x_13); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 3); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) -{ -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_16, 3); -lean_dec(x_20); -x_21 = !lean_is_exclusive(x_17); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_22 = lean_ctor_get(x_17, 0); -x_23 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2; -x_24 = l_Lean_Name_append(x_1, x_23); -x_25 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_25, 0, x_1); -x_26 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__1; -x_27 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; -x_29 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -x_30 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_14); -x_31 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; -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 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_33, 0, x_24); -lean_ctor_set(x_33, 1, x_32); -lean_inc(x_10); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_10); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Std_PersistentArray_push___rarg(x_22, x_34); -lean_ctor_set(x_17, 0, x_35); -x_36 = lean_st_ref_set(x_8, x_16, x_18); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -x_39 = lean_box(0); -lean_ctor_set(x_36, 0, x_39); -return x_36; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -lean_dec(x_36); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -} -else -{ -uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 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; -x_43 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); -x_44 = lean_ctor_get(x_17, 0); -lean_inc(x_44); -lean_dec(x_17); -x_45 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2; -x_46 = l_Lean_Name_append(x_1, x_45); -x_47 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_47, 0, x_1); -x_48 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__1; -x_49 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; -x_51 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_14); -x_53 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -x_55 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_55, 0, x_46); -lean_ctor_set(x_55, 1, x_54); -lean_inc(x_10); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_10); -lean_ctor_set(x_56, 1, x_55); -x_57 = l_Std_PersistentArray_push___rarg(x_44, x_56); -x_58 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_43); -lean_ctor_set(x_16, 3, x_58); -x_59 = lean_st_ref_set(x_8, x_16, x_18); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_61 = x_59; -} else { - lean_dec_ref(x_59); - x_61 = lean_box(0); -} -x_62 = lean_box(0); -if (lean_is_scalar(x_61)) { - x_63 = lean_alloc_ctor(0, 2, 0); -} else { - x_63 = x_61; -} -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_60); -return x_63; -} -} -else -{ -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; 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; -x_64 = lean_ctor_get(x_16, 0); -x_65 = lean_ctor_get(x_16, 1); -x_66 = lean_ctor_get(x_16, 2); -x_67 = lean_ctor_get(x_16, 4); -x_68 = lean_ctor_get(x_16, 5); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_16); -x_69 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); -x_70 = lean_ctor_get(x_17, 0); -lean_inc(x_70); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - x_71 = x_17; -} else { - lean_dec_ref(x_17); - x_71 = lean_box(0); -} -x_72 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2; -x_73 = l_Lean_Name_append(x_1, x_72); -x_74 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_74, 0, x_1); -x_75 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__1; -x_76 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -x_77 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__3; -x_78 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_79 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_14); -x_80 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; -x_81 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -x_82 = lean_alloc_ctor(11, 2, 0); -lean_ctor_set(x_82, 0, x_73); -lean_ctor_set(x_82, 1, x_81); -lean_inc(x_10); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_10); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Std_PersistentArray_push___rarg(x_70, x_83); -if (lean_is_scalar(x_71)) { - x_85 = lean_alloc_ctor(0, 1, 1); -} else { - x_85 = x_71; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set_uint8(x_85, sizeof(void*)*1, x_69); -x_86 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_86, 0, x_64); -lean_ctor_set(x_86, 1, x_65); -lean_ctor_set(x_86, 2, x_66); -lean_ctor_set(x_86, 3, x_85); -lean_ctor_set(x_86, 4, x_67); -lean_ctor_set(x_86, 5, x_68); -x_87 = lean_st_ref_set(x_8, x_86, x_18); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_89 = x_87; -} else { - lean_dec_ref(x_87); - x_89 = lean_box(0); -} -x_90 = lean_box(0); -if (lean_is_scalar(x_89)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_89; -} -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_88); -return x_91; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_6, 2); -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; -} -} LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___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: { @@ -29408,7 +29607,7 @@ static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeE _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes(" : ", 3); +x_1 = lean_mk_string_from_bytes("", 15); return x_1; } } @@ -29417,33 +29616,16 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); return x_2; } } static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("", 15); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__6() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__6; +x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -29479,7 +29661,7 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); lean_dec(x_36); -x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_42); +x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_42); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -29515,21 +29697,21 @@ x_16 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); -x_18 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__4; +x_18 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); if (lean_obj_tag(x_2) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_20 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7; +x_20 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_16); -x_23 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_10, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_23 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_10, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -29557,7 +29739,7 @@ lean_ctor_set(x_29, 1, x_28); x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_16); -x_31 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_10, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_31 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_10, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); @@ -29576,34 +29758,6 @@ return x_34; } } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_10; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2___boxed(lean_object* x_1, lean_object* x_2, 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_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -34145,7 +34299,7 @@ lean_inc(x_1); x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_1); lean_ctor_set(x_20, 1, x_19); -x_21 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__4; +x_21 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5; x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); @@ -34598,7 +34752,7 @@ lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint x_51 = lean_ctor_get(x_46, 1); lean_inc(x_51); lean_dec(x_46); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_51); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_51); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -34638,7 +34792,7 @@ lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean lean_inc(x_29); x_38 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_38, 0, x_29); -x_39 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_31, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_33); +x_39 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_31, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_33); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); @@ -35735,7 +35889,7 @@ x_21 = lean_ctor_get(x_15, 1); lean_inc(x_21); lean_dec(x_15); lean_inc(x_13); -x_22 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_21); +x_22 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_21); x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_unbox(x_23); @@ -35762,7 +35916,7 @@ x_28 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_28, 0, x_14); x_29 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_29, 0, x_28); -x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_13, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_27); +x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_13, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_27); x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); @@ -38185,7 +38339,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__2; -x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7; +x_2 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5; x_3 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -38290,7 +38444,7 @@ x_72 = lean_ctor_get(x_66, 1); lean_inc(x_72); lean_dec(x_66); lean_inc(x_9); -x_73 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_9, x_5, x_6, x_7, x_8, x_10, x_11, x_72); +x_73 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_9, x_5, x_6, x_7, x_8, x_10, x_11, x_72); x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_73, 1); @@ -38329,7 +38483,7 @@ x_46 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; x_47 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_47, 0, x_45); lean_ctor_set(x_47, 1, x_46); -x_48 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_47, x_5, x_6, x_7, x_8, x_10, x_11, x_40); +x_48 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_47, x_5, x_6, x_7, x_8, x_10, x_11, x_40); x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); @@ -38361,7 +38515,7 @@ x_59 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_60, x_5, x_6, x_7, x_8, x_10, x_11, x_40); +x_61 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_60, x_5, x_6, x_7, x_8, x_10, x_11, x_40); x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); x_63 = lean_ctor_get(x_61, 1); @@ -38419,7 +38573,7 @@ x_113 = lean_ctor_get(x_107, 1); lean_inc(x_113); lean_dec(x_107); lean_inc(x_9); -x_114 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_9, x_5, x_6, x_7, x_8, x_79, x_11, x_113); +x_114 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_9, x_5, x_6, x_7, x_8, x_79, x_11, x_113); x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); x_116 = lean_ctor_get(x_114, 1); @@ -38458,7 +38612,7 @@ x_87 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; x_88 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_88, 0, x_86); lean_ctor_set(x_88, 1, x_87); -x_89 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_88, x_5, x_6, x_7, x_8, x_79, x_11, x_81); +x_89 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_88, x_5, x_6, x_7, x_8, x_79, x_11, x_81); x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); x_91 = lean_ctor_get(x_89, 1); @@ -38490,7 +38644,7 @@ x_100 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; x_101 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_101, 0, x_99); lean_ctor_set(x_101, 1, x_100); -x_102 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_101, x_5, x_6, x_7, x_8, x_79, x_11, x_81); +x_102 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_101, x_5, x_6, x_7, x_8, x_79, x_11, x_81); x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); x_104 = lean_ctor_get(x_102, 1); @@ -48858,7 +49012,7 @@ lean_dec(x_3); return x_10; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__1() { _start: { lean_object* x_1; @@ -48866,21 +49020,21 @@ x_1 = lean_mk_string_from_bytes("letrec", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403_(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_13301____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -49022,77 +49176,21 @@ return x_14; } else { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_9); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_9, 1); -x_17 = lean_ctor_get(x_9, 0); -lean_dec(x_17); -x_18 = lean_ctor_get(x_10, 0); -lean_inc(x_18); -lean_dec(x_10); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Lean_Expr_getAppFn(x_19); -lean_dec(x_19); -if (lean_obj_tag(x_20) == 2) -{ -lean_object* x_21; -lean_free_object(x_9); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_1 = x_21; -x_8 = x_16; -goto _start; -} -else -{ -lean_dec(x_20); -lean_ctor_set(x_9, 0, x_1); -return x_9; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_9, 1); -lean_inc(x_23); +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); lean_dec(x_9); -x_24 = lean_ctor_get(x_10, 0); -lean_inc(x_24); +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); lean_dec(x_10); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = l_Lean_Expr_getAppFn(x_25); -lean_dec(x_25); -if (lean_obj_tag(x_26) == 2) -{ -lean_object* x_27; -lean_dec(x_1); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -lean_dec(x_26); -x_1 = x_27; -x_8 = x_23; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_1 = x_17; +x_8 = x_15; goto _start; } -else -{ -lean_object* x_29; -lean_dec(x_26); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_1); -lean_ctor_set(x_29, 1, x_23); -return x_29; -} -} -} } } LEAN_EXPORT uint8_t l_List_foldr___at_Lean_Elab_Term_isLetRecAuxMVar___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3) { @@ -49277,7 +49375,7 @@ x_35 = lean_ctor_get(x_29, 1); lean_inc(x_35); lean_dec(x_29); lean_inc(x_2); -x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_35); +x_36 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_35); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -49321,7 +49419,7 @@ x_22 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_2, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_15); +x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_2, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_15); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); @@ -49379,7 +49477,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar(lean_object* x_1, lean _start: { lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__2; +x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__2; x_38 = lean_st_ref_get(x_7, x_8); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); @@ -49405,7 +49503,7 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint x_44 = lean_ctor_get(x_38, 1); lean_inc(x_44); lean_dec(x_38); -x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_44); +x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_44); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -49466,7 +49564,7 @@ x_31 = l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___closed__4; 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_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_9, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +x_33 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_9, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_18); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -58015,17 +58113,7 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_withoutModifyingStateWithInfoAndMes return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; -x_2 = l_Lean_Elab_Term_instToStringSyntheticMVarKind___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__1() { _start: { lean_object* x_1; @@ -58033,17 +58121,17 @@ x_1 = lean_mk_string_from_bytes("debug", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__2; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -58055,7 +58143,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_15517____closed__1; +x_5 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -58063,7 +58151,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__3; +x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__2; x_9 = l_Lean_registerTraceClass(x_8, x_7); return x_9; } @@ -58625,28 +58713,28 @@ l_Lean_Elab_Term_synthesizeInstMVarCore___closed__4 = _init_l_Lean_Elab_Term_syn lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__4); l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5 = _init_l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5(); lean_mark_persistent(l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960____closed__4); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5960_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963____closed__4); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5963_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_autoLift = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_autoLift); lean_dec_ref(res); -}l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__3); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983____closed__4); -if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5983_(lean_io_mk_world()); +}l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__2); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__3 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__3); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__4 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986____closed__4); +if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5986_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Term_maxCoeSize = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Term_maxCoeSize); @@ -58671,6 +58759,24 @@ l_Lean_Elab_Term_mkCoe___closed__4 = _init_l_Lean_Elab_Term_mkCoe___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_mkCoe___closed__4); l_Lean_Elab_Term_mkCoe___closed__5 = _init_l_Lean_Elab_Term_mkCoe___closed__5(); lean_mark_persistent(l_Lean_Elab_Term_mkCoe___closed__5); +l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__1(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__1); +l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2 = _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1___closed__2); +l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__1 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__1); +l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__2); +l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__3); +l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__4 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__4); +l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__5); +l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__6 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__6); +l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__7 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___closed__7); l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1); l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__2(); @@ -58723,10 +58829,6 @@ l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__5 = _init_l_Lean_Elab_Term_tryP lean_mark_persistent(l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__5); l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__6 = _init_l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__6(); lean_mark_persistent(l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__6); -l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__1(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__1); -l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2 = _init_l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1___closed__2); l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__1 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__1); l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__2 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__2(); @@ -58737,10 +58839,6 @@ l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__4 = _ini lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__4); l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__5); -l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__6 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__6); -l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___closed__7); l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__1 = _init_l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__1); l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__2 = _init_l_Lean_Elab_Term_mkSaveInfoAnnotation___closed__2(); @@ -58912,11 +59010,11 @@ l_Lean_Elab_Term_mkAuxName___closed__1 = _init_l_Lean_Elab_Term_mkAuxName___clos lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__1); l_Lean_Elab_Term_mkAuxName___closed__2 = _init_l_Lean_Elab_Term_mkAuxName___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301____closed__2); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13301_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403____closed__2); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_13403_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__1 = _init_l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__1(); @@ -59075,13 +59173,11 @@ l_Lean_Elab_Term_exprToSyntax___closed__3 = _init_l_Lean_Elab_Term_exprToSyntax_ lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___closed__3); l_Lean_Elab_Term_exprToSyntax___closed__4 = _init_l_Lean_Elab_Term_exprToSyntax___closed__4(); lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517____closed__3); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15517_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619____closed__2); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15619_(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/Basic.c b/stage0/stdlib/Lean/Meta/Basic.c index 0272a03c07..0b85b20f53 100644 --- a/stage0/stdlib/Lean/Meta/Basic.c +++ b/stage0/stdlib/Lean/Meta/Basic.c @@ -33,6 +33,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDep LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl(lean_object*); LEAN_EXPORT 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_EXPORT lean_object* l_Lean_Meta_liftMkBindingM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* lean_io_get_num_heartbeats(lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_Meta_normalizeLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Cache_synthInstance___default; @@ -211,6 +212,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedPostponedEntry; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewLocalInstancesImpAux(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_approxDefEqImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__10(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___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_EXPORT uint8_t l_Lean_Meta_Config_etaStruct___default; @@ -277,6 +279,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_mkFreshTypeMVar___boxed(lean_object*, lean_ LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Cache_synthInstance___default___closed__1; extern lean_object* l_Lean_maxRecDepth; +LEAN_EXPORT lean_object* l_Lean_Meta_getMVarDeclKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_is_level_def_eq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instMonadBacktrackSavedStateMetaM___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -660,6 +663,7 @@ lean_object* lean_environment_main_module(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedState___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecls_loop___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +uint8_t l_Lean_Expr_isMVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_abstractRange___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_processPostponed_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___lambda__3___closed__6; @@ -727,6 +731,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Meta_Ba LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Meta_Basic_0__Lean_Meta_getConstTemp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_addDecl(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateLambdaAux___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_isSyntheticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_instInhabitedMetaM___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getLocalDeclFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_collectForwardDeps(lean_object*, lean_object*, lean_object*, lean_object*); @@ -762,7 +767,7 @@ static lean_object* l_Lean_Meta_processPostponed_loop___closed__4; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_approxDefEqImp(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13185_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13294_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instMonadMCtxMetaM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_resettingSynthInstanceCacheWhen(lean_object*); @@ -964,6 +969,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instMonadMetaM___lambda__1___boxed(lean_obj LEAN_EXPORT 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_EXPORT lean_object* l_Lean_Meta_getFVarLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp_process___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_getMVarDeclKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwUnknownFVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_findLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__7___rarg___boxed(lean_object*, lean_object*); @@ -7524,6 +7530,199 @@ lean_dec(x_2); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_Meta_getMVarDeclKind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getMVarDecl(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get_uint8(x_9, sizeof(void*)*7); +lean_dec(x_9); +x_11 = lean_box(x_10); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_7, 0); +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_7); +x_14 = lean_ctor_get_uint8(x_12, sizeof(void*)*7); +lean_dec(x_12); +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_7); +if (x_17 == 0) +{ +return x_7; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_7, 0); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_7); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_getMVarDeclKind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_getMVarDeclKind(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isSyntheticMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = l_Lean_Expr_isMVar(x_1); +if (x_7 == 0) +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_8 = 0; +x_9 = lean_box(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_6); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +x_11 = l_Lean_Expr_mvarId_x21(x_1); +x_12 = l_Lean_Meta_getMVarDeclKind(x_11, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +x_16 = 0; +x_17 = lean_box(x_16); +lean_ctor_set(x_12, 0, x_17); +return x_12; +} +else +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = 0; +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +} +else +{ +uint8_t x_22; +lean_dec(x_13); +x_22 = !lean_is_exclusive(x_12); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_12, 0); +lean_dec(x_23); +x_24 = 1; +x_25 = lean_box(x_24); +lean_ctor_set(x_12, 0, x_25); +return x_12; +} +else +{ +lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_12, 1); +lean_inc(x_26); +lean_dec(x_12); +x_27 = 1; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_12); +if (x_30 == 0) +{ +return x_12; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_12, 0); +x_32 = lean_ctor_get(x_12, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_12); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isSyntheticMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_isSyntheticMVar(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_setMVarKind(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -45329,7 +45528,7 @@ lean_dec(x_3); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13185_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13294_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -45814,7 +46013,7 @@ l_Lean_Meta_isExprDefEq___closed__1 = _init_l_Lean_Meta_isExprDefEq___closed__1( lean_mark_persistent(l_Lean_Meta_isExprDefEq___closed__1); l_Lean_Meta_isExprDefEq___closed__2 = _init_l_Lean_Meta_isExprDefEq___closed__2(); lean_mark_persistent(l_Lean_Meta_isExprDefEq___closed__2); -res = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13185_(lean_io_mk_world()); +res = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13294_(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/CollectMVars.c b/stage0/stdlib/Lean/Meta/CollectMVars.c index 2f3021cedf..65d5ca4492 100644 --- a/stage0/stdlib/Lean/Meta/CollectMVars.c +++ b/stage0/stdlib/Lean/Meta/CollectMVars.c @@ -22,6 +22,7 @@ uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignment_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_collectMVarsAtDecl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkMVar(lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_collectMVars___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_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_collectMVarsAtDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -530,7 +531,7 @@ goto _start; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; x_22 = lean_ctor_get(x_15, 1); lean_inc(x_22); lean_dec(x_15); @@ -540,16 +541,17 @@ lean_dec(x_16); x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); -x_25 = l_Lean_Meta_collectMVars(x_24, x_5, x_6, x_7, x_8, x_9, x_22); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = 1; -x_28 = lean_usize_add(x_3, x_27); -x_29 = lean_box(0); -x_3 = x_28; -x_4 = x_29; -x_10 = x_26; +x_25 = l_Lean_mkMVar(x_24); +x_26 = l_Lean_Meta_collectMVars(x_25, x_5, x_6, x_7, x_8, x_9, x_22); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = 1; +x_29 = lean_usize_add(x_3, x_28); +x_30 = lean_box(0); +x_3 = x_29; +x_4 = x_30; +x_10 = x_27; goto _start; } } diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index 5c9d41f019..21dbab0f09 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -170,12 +170,12 @@ uint8_t l_Lean_LocalContext_containsFVar(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldComparingHeadsDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processConstApprox_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Meta_CheckAssignment_checkMVar___spec__21(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__9; LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Meta_checkAssignment___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_isExprDefEqAuxImpl___lambda__2___closed__22; LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_CheckAssignment_check___closed__5; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__55(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_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); @@ -266,6 +266,7 @@ LEAN_EXPORT uint8_t l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_etaEq(lean_obje static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfold___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__62___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_CheckAssignment_check___closed__7; @@ -308,8 +309,10 @@ lean_object* l_Lean_Meta_tryUnificationHints(lean_object*, lean_object*, lean_ob static lean_object* l_Lean_Meta_CheckAssignment_instMonadCacheExprCheckAssignmentM___closed__3; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickMVarMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_CheckAssignment_check___closed__14; LEAN_EXPORT lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_isDefEqBindingDomain_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_trySynthPending(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -364,7 +367,6 @@ lean_object* l_Lean_Expr_headBeta(lean_object*); lean_object* l_Std_PersistentArray_get_x21___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__15; static lean_object* l_Lean_Meta_CheckAssignment_checkMVar___closed__4; -LEAN_EXPORT lean_object* l_Lean_isMVarDelayedAssigned___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_isExprDefEqAuxImpl___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_occursCheck_visitMVar___at_Lean_Meta_checkAssignment___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__6; @@ -415,7 +417,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_skipDefEqC static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__5; static lean_object* l_Lean_Meta_isExprDefEqAuxImpl___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_getCachedResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_markUsedAssignment___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_toCtorIfLit(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__58(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__47(lean_object*, lean_object*); @@ -459,6 +460,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insert___at___private_Lean_Meta lean_object* l_Array_back___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_isExprDefEqAuxImpl___lambda__2___closed__17; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__57(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_CheckAssignment_checkMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -469,6 +471,7 @@ size_t lean_usize_shift_left(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_hasLetDeclsInBetween(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Meta_isDefEqStringLit___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_isExprDefEqAuxImpl___lambda__2___closed__4; static lean_object* l_Std_PersistentHashMap_insert___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_cacheResult___spec__1___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -629,6 +632,7 @@ lean_object* l_Std_HashMap_insert___at_Lean_Meta_ForEachExpr_visit___spec__3(lea static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__4; uint8_t l_Lean_Expr_isMVar(lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___closed__7; +lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_Meta_WHNF_0__Lean_Meta_whnfDelayedAssigned_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instMonadTrace___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDeltaCandidate_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__1___closed__2; @@ -647,9 +651,9 @@ static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAs LEAN_EXPORT lean_object* l_Std_HashSetImp_moveEntries___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeclsFrom_visit___spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_occursCheck_visitMVar___at_Lean_Meta_checkAssignment___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Meta_CheckAssignment_checkMVar___spec__20(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instMonadMCtxMetaM; -LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Core_instMonadCoreM; static lean_object* l_Lean_Meta_isExprDefEqAuxImpl___lambda__2___closed__12; LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldNonProjFnDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -686,7 +690,6 @@ static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___c static lean_object* l_Lean_Meta_CheckAssignment_check___closed__13; static lean_object* l_Lean_Meta_CheckAssignment_instMonadCacheExprCheckAssignmentM___closed__1; static lean_object* l_Lean_addTrace___at_Lean_Meta_CheckAssignment_checkFVar___spec__2___closed__1; -LEAN_EXPORT lean_object* l_Lean_isMVarDelayedAssigned___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__8; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Meta_CheckAssignment_checkMVar___spec__27(lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); @@ -720,7 +723,7 @@ lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMe LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__53(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_Meta_CheckAssignment_checkMVar___spec__46___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Meta_CheckAssignment_checkMVar___spec__4(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_15455_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_15581_(lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -788,6 +791,7 @@ LEAN_EXPORT lean_object* l_Lean_isMVarDelayedAssigned___at_Lean_Meta_CheckAssign lean_object* l_Lean_Meta_reduceNative_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgsFirstPass___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__55___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*); @@ -47747,7 +47751,7 @@ return x_33; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_34 = lean_ctor_get(x_16, 1); lean_inc(x_34); lean_dec(x_16); @@ -47760,8 +47764,10 @@ lean_dec(x_19); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); lean_dec(x_36); -x_38 = l_Lean_occursCheck_visit___at_Lean_Meta_checkAssignment___spec__2(x_1, x_37, x_35, x_4, x_5, x_6, x_7, x_34); -return x_38; +x_2 = x_37; +x_3 = x_35; +x_8 = x_34; +goto _start; } } else @@ -59709,204 +59715,384 @@ lean_dec(x_2); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_isMVarDelayedAssigned___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_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) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_7 = l_Lean_markUsedAssignment___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__2___rarg(x_3, x_4, x_5, x_6); -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); -x_9 = lean_st_ref_get(x_5, x_8); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -x_11 = lean_st_ref_get(x_3, x_10); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = l_Lean_mkMVar(x_1); +x_11 = lean_array_get_size(x_2); +x_12 = lean_array_get_size(x_3); +x_13 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_12, x_3, x_11, x_10); +lean_dec(x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___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_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get(x_14, 7); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_Std_PersistentHashMap_contains___at_Lean_isMVarDelayedAssigned___spec__1(x_15, x_1); -x_17 = lean_box(x_16); -lean_ctor_set(x_11, 0, x_17); -return x_11; +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; uint8_t x_19; +lean_dec(x_4); +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Lean_Expr_getAppNumArgsAux(x_1, x_10); +x_12 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; +lean_inc(x_11); +x_13 = lean_mk_array(x_11, x_12); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_11, x_14); +lean_dec(x_11); +x_16 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_13, x_15); +x_17 = lean_array_get_size(x_16); +x_18 = lean_array_get_size(x_3); +x_19 = lean_nat_dec_lt(x_17, x_18); +lean_dec(x_18); +lean_dec(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +x_21 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__1(x_2, x_3, x_16, x_20, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_16); +lean_dec(x_3); +return x_21; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; -x_18 = lean_ctor_get(x_11, 0); -x_19 = lean_ctor_get(x_11, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_11); -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_ctor_get(x_20, 7); -lean_inc(x_21); -lean_dec(x_20); -x_22 = l_Std_PersistentHashMap_contains___at_Lean_isMVarDelayedAssigned___spec__1(x_21, x_1); -x_23 = lean_box(x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_19); -return x_24; +lean_object* x_22; lean_object* x_23; +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_2); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_9); +return x_23; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___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) { _start: { -if (lean_obj_tag(x_1) == 2) +lean_object* x_10; lean_object* x_11; uint8_t x_12; +lean_dec(x_4); +x_10 = l_Lean_Meta_getConfig(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_uint8(x_11, 10); +lean_dec(x_11); +if (x_12 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); +uint8_t x_13; +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_9 = l_Lean_isMVarDelayedAssigned___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___spec__1(x_8, x_3, x_4, x_5, x_6, x_7); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_unbox(x_10); +x_13 = !lean_is_exclusive(x_10); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_10, 0); +lean_dec(x_14); +x_15 = lean_box(0); +lean_ctor_set(x_10, 0, x_15); +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 1); +lean_inc(x_16); lean_dec(x_10); -if (x_11 == 0) +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_dec(x_10); +x_20 = lean_box(0); +x_21 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__2(x_1, x_2, x_3, x_20, x_5, x_6, x_7, x_8, x_19); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +x_9 = l_Lean_Expr_mvarId_x21(x_1); +lean_dec(x_1); +x_10 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_Meta_WHNF_0__Lean_Meta_whnfDelayedAssigned_x3f___spec__1(x_9, x_4, x_5, x_6, x_7, x_8); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) { uint8_t x_12; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); -x_12 = !lean_is_exclusive(x_9); +x_12 = !lean_is_exclusive(x_10); if (x_12 == 0) { -lean_object* x_13; uint8_t x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_9, 0); +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_10, 0); lean_dec(x_13); -x_14 = 0; -x_15 = lean_box(x_14); -lean_ctor_set(x_9, 0, x_15); -return x_9; +x_14 = lean_box(0); +lean_ctor_set(x_10, 0, x_14); +return x_10; } else { -lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -lean_dec(x_9); -x_17 = 0; -x_18 = lean_box(x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_16); -return x_19; +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; } } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = lean_ctor_get(x_9, 1); +uint8_t x_18; +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_10, 1); lean_inc(x_20); -lean_dec(x_9); +lean_dec(x_10); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); lean_inc(x_2); -x_21 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_2, x_3, x_4, x_5, x_6, x_20); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_expr_eqv(x_23, x_2); -lean_dec(x_2); -lean_dec(x_23); +x_23 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_2, x_4, x_5, x_6, x_7, x_20); +x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) { -uint8_t x_25; lean_object* x_26; -x_25 = 1; -x_26 = lean_box(x_25); -lean_ctor_set(x_21, 0, x_26); -return x_21; -} -else +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_23, 0); +x_26 = lean_ctor_get(x_23, 1); +x_27 = lean_expr_eqv(x_25, x_2); +if (x_27 == 0) { -uint8_t x_27; lean_object* x_28; -x_27 = 0; -x_28 = lean_box(x_27); -lean_ctor_set(x_21, 0, x_28); -return x_21; -} -} -else -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_21, 0); -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_30); -lean_inc(x_29); +lean_dec(x_22); lean_dec(x_21); -x_31 = lean_expr_eqv(x_29, x_2); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); -lean_dec(x_29); -if (x_31 == 0) -{ -uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_32 = 1; -x_33 = lean_box(x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_30); -return x_34; +lean_ctor_set(x_11, 0, x_25); +lean_ctor_set(x_23, 0, x_11); +return x_23; } else { -uint8_t x_35; lean_object* x_36; lean_object* x_37; -x_35 = 0; -x_36 = lean_box(x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_30); -return x_37; +lean_object* x_28; lean_object* x_29; +lean_free_object(x_23); +lean_dec(x_25); +lean_free_object(x_11); +x_28 = lean_box(0); +x_29 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__3(x_2, x_22, x_21, x_28, x_4, x_5, x_6, x_7, x_26); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_29; } } +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_23); +x_32 = lean_expr_eqv(x_30, x_2); +if (x_32 == 0) +{ +lean_object* x_33; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_ctor_set(x_11, 0, x_30); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_11); +lean_ctor_set(x_33, 1, x_31); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_30); +lean_free_object(x_11); +x_34 = lean_box(0); +x_35 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__3(x_2, x_22, x_21, x_34, x_4, x_5, x_6, x_7, x_31); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_35; +} } } else { -uint8_t x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_36 = lean_ctor_get(x_11, 0); +lean_inc(x_36); +lean_dec(x_11); +x_37 = lean_ctor_get(x_10, 1); +lean_inc(x_37); +lean_dec(x_10); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +lean_inc(x_2); +x_40 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_2, x_4, x_5, x_6, x_7, x_37); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_43 = x_40; +} else { + lean_dec_ref(x_40); + x_43 = lean_box(0); +} +x_44 = lean_expr_eqv(x_41, x_2); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); -x_38 = 0; -x_39 = lean_box(x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_7); -return x_40; +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_41); +if (lean_is_scalar(x_43)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_43; +} +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_42); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_43); +lean_dec(x_41); +x_47 = lean_box(0); +x_48 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__3(x_2, x_39, x_38, x_47, x_4, x_5, x_6, x_7, x_42); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_48; } } } -LEAN_EXPORT lean_object* l_Lean_isMVarDelayedAssigned___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___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_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; -x_7 = l_Lean_isMVarDelayedAssigned___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_object* x_7; uint8_t x_8; +x_7 = l_Lean_Expr_getAppFn(x_1); +x_8 = l_Lean_Expr_isMVar(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_7; +lean_dec(x_1); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_6); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__4(x_7, x_1, x_11, x_2, x_3, x_4, x_5, x_6); +return x_12; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_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) { _start: { -lean_object* x_8; -x_8 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_object* x_10; +x_10 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_8; +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__2(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); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___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) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f___lambda__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); +return x_10; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isSynthetic(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { @@ -63212,11 +63398,11 @@ x_14 = l_Lean_Expr_getAppFn(x_2); x_15 = l_Lean_Expr_isMVar(x_13); if (x_15 == 0) { -uint8_t x_175; -x_175 = l_Lean_Expr_isMVar(x_14); -if (x_175 == 0) +uint8_t x_169; +x_169 = l_Lean_Expr_isMVar(x_14); +if (x_169 == 0) { -uint8_t x_176; lean_object* x_177; lean_object* x_178; +uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_dec(x_14); lean_dec(x_13); lean_dec(x_6); @@ -63225,29 +63411,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_176 = 2; -x_177 = lean_box(x_176); -x_178 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_7); -return x_178; +x_170 = 2; +x_171 = lean_box(x_170); +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_7); +return x_172; } else { -lean_object* x_179; -x_179 = lean_box(0); -x_16 = x_179; -goto block_174; +lean_object* x_173; +x_173 = lean_box(0); +x_16 = x_173; +goto block_168; } } else { -lean_object* x_180; -x_180 = lean_box(0); -x_16 = x_180; -goto block_174; +lean_object* x_174; +x_174 = lean_box(0); +x_16 = x_174; +goto block_168; } -block_174: +block_168: { lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_dec(x_16); @@ -63271,509 +63457,541 @@ x_23 = lean_unbox(x_22); lean_dec(x_22); if (x_23 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_object* x_24; lean_object* x_25; lean_object* x_26; x_24 = lean_ctor_get(x_21, 1); lean_inc(x_24); lean_dec(x_21); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); lean_inc(x_1); -lean_inc(x_13); -x_25 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead(x_13, x_1, x_3, x_4, x_5, x_6, x_24); +x_25 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f(x_1, x_3, x_4, x_5, x_6, x_24); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -x_27 = lean_unbox(x_26); -lean_dec(x_26); -if (x_27 == 0) +if (lean_obj_tag(x_26) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_122; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); lean_dec(x_25); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); lean_inc(x_2); -lean_inc(x_14); -x_29 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDelayedAssignedHead(x_14, x_2, x_3, x_4, x_5, x_6, x_28); -x_30 = lean_ctor_get(x_29, 0); +x_28 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_expandDelayedAssigned_x3f(x_2, x_3, x_4, x_5, x_6, x_27); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_122 = lean_unbox(x_30); -lean_dec(x_30); -if (x_122 == 0) +lean_dec(x_28); +if (lean_obj_tag(x_29) == 0) { if (x_15 == 0) { +lean_object* x_121; +x_121 = lean_box(0); +x_31 = x_121; +goto block_120; +} +else +{ +uint8_t x_122; +x_122 = l_Lean_Expr_isMVar(x_14); +if (x_122 == 0) +{ lean_object* x_123; x_123 = lean_box(0); -x_32 = x_123; -goto block_121; +x_31 = x_123; +goto block_120; } else { uint8_t x_124; -x_124 = l_Lean_Expr_isMVar(x_14); +x_124 = lean_expr_eqv(x_13, x_14); if (x_124 == 0) { lean_object* x_125; x_125 = lean_box(0); -x_32 = x_125; -goto block_121; +x_31 = x_125; +goto block_120; } else { -uint8_t x_126; -x_126 = lean_expr_eqv(x_13, x_14); -if (x_126 == 0) -{ -lean_object* x_127; -x_127 = lean_box(0); -x_32 = x_127; -goto block_121; -} -else -{ -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_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_dec(x_14); -x_128 = lean_unsigned_to_nat(0u); -x_129 = l_Lean_Expr_getAppNumArgsAux(x_1, x_128); -x_130 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; -lean_inc(x_129); -x_131 = lean_mk_array(x_129, x_130); -x_132 = lean_unsigned_to_nat(1u); -x_133 = lean_nat_sub(x_129, x_132); -lean_dec(x_129); -x_134 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_131, x_133); -x_135 = l_Lean_Expr_getAppNumArgsAux(x_2, x_128); -lean_inc(x_135); -x_136 = lean_mk_array(x_135, x_130); -x_137 = lean_nat_sub(x_135, x_132); -lean_dec(x_135); -x_138 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_136, x_137); -x_139 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqMVarSelf(x_13, x_134, x_138, x_3, x_4, x_5, x_6, x_31); -lean_dec(x_138); -if (lean_obj_tag(x_139) == 0) +x_126 = lean_unsigned_to_nat(0u); +x_127 = l_Lean_Expr_getAppNumArgsAux(x_1, x_126); +x_128 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___closed__6; +lean_inc(x_127); +x_129 = lean_mk_array(x_127, x_128); +x_130 = lean_unsigned_to_nat(1u); +x_131 = lean_nat_sub(x_127, x_130); +lean_dec(x_127); +x_132 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_129, x_131); +x_133 = l_Lean_Expr_getAppNumArgsAux(x_2, x_126); +lean_inc(x_133); +x_134 = lean_mk_array(x_133, x_128); +x_135 = lean_nat_sub(x_133, x_130); +lean_dec(x_133); +x_136 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_134, x_135); +x_137 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqMVarSelf(x_13, x_132, x_136, x_3, x_4, x_5, x_6, x_30); +lean_dec(x_136); +if (lean_obj_tag(x_137) == 0) { -uint8_t x_140; -x_140 = !lean_is_exclusive(x_139); -if (x_140 == 0) +uint8_t x_138; +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) { -lean_object* x_141; uint8_t x_142; uint8_t x_143; lean_object* x_144; -x_141 = lean_ctor_get(x_139, 0); -x_142 = lean_unbox(x_141); -lean_dec(x_141); -x_143 = l_Bool_toLBool(x_142); -x_144 = lean_box(x_143); -lean_ctor_set(x_139, 0, x_144); -return x_139; -} -else -{ -lean_object* x_145; lean_object* x_146; uint8_t x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; -x_145 = lean_ctor_get(x_139, 0); -x_146 = lean_ctor_get(x_139, 1); -lean_inc(x_146); -lean_inc(x_145); +lean_object* x_139; uint8_t x_140; uint8_t x_141; lean_object* x_142; +x_139 = lean_ctor_get(x_137, 0); +x_140 = lean_unbox(x_139); lean_dec(x_139); -x_147 = lean_unbox(x_145); -lean_dec(x_145); -x_148 = l_Bool_toLBool(x_147); -x_149 = lean_box(x_148); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_146); -return x_150; +x_141 = l_Bool_toLBool(x_140); +x_142 = lean_box(x_141); +lean_ctor_set(x_137, 0, x_142); +return x_137; +} +else +{ +lean_object* x_143; lean_object* x_144; uint8_t x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; +x_143 = lean_ctor_get(x_137, 0); +x_144 = lean_ctor_get(x_137, 1); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_137); +x_145 = lean_unbox(x_143); +lean_dec(x_143); +x_146 = l_Bool_toLBool(x_145); +x_147 = lean_box(x_146); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_144); +return x_148; } } else { -uint8_t x_151; -x_151 = !lean_is_exclusive(x_139); -if (x_151 == 0) +uint8_t x_149; +x_149 = !lean_is_exclusive(x_137); +if (x_149 == 0) { -return x_139; +return x_137; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_139, 0); -x_153 = lean_ctor_get(x_139, 1); +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_137, 0); +x_151 = lean_ctor_get(x_137, 1); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_137); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +return x_152; +} +} +} +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_2); +x_153 = lean_ctor_get(x_29, 0); lean_inc(x_153); -lean_inc(x_152); -lean_dec(x_139); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); +lean_dec(x_29); +x_154 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_1, x_153, x_3, x_4, x_5, x_6, x_30); return x_154; } -} -} -} -} -} -else +block_120: { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_14); -lean_dec(x_13); -x_155 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_2, x_3, x_4, x_5, x_6, x_31); -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); -x_158 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_1, x_156, x_3, x_4, x_5, x_6, x_157); -return x_158; -} -block_121: +lean_object* x_32; +lean_dec(x_31); +x_32 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssignable(x_13, x_3, x_4, x_5, x_6, x_30); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_33; -lean_dec(x_32); -x_33 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssignable(x_13, x_3, x_4, x_5, x_6, x_31); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_33, 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); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); +lean_dec(x_32); lean_inc(x_14); -x_36 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssignable(x_14, x_3, x_4, x_5, x_6, x_35); -if (lean_obj_tag(x_36) == 0) +x_35 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssignable(x_14, x_3, x_4, x_5, x_6, x_34); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_37 = lean_ctor_get(x_36, 0); +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___closed__4; -x_102 = lean_st_ref_get(x_6, x_38); -x_103 = lean_ctor_get(x_102, 0); +lean_dec(x_35); +x_38 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___closed__4; +x_101 = lean_st_ref_get(x_6, x_37); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_102, 3); lean_inc(x_103); -x_104 = lean_ctor_get(x_103, 3); -lean_inc(x_104); +lean_dec(x_102); +x_104 = lean_ctor_get_uint8(x_103, sizeof(void*)*1); lean_dec(x_103); -x_105 = lean_ctor_get_uint8(x_104, sizeof(void*)*1); -lean_dec(x_104); -if (x_105 == 0) +if (x_104 == 0) { -lean_object* x_106; uint8_t x_107; -x_106 = lean_ctor_get(x_102, 1); -lean_inc(x_106); -lean_dec(x_102); -x_107 = 0; -x_40 = x_107; -x_41 = x_106; -goto block_101; +lean_object* x_105; uint8_t x_106; +x_105 = lean_ctor_get(x_101, 1); +lean_inc(x_105); +lean_dec(x_101); +x_106 = 0; +x_39 = x_106; +x_40 = x_105; +goto block_100; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_108 = lean_ctor_get(x_102, 1); -lean_inc(x_108); -lean_dec(x_102); -x_109 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_39, x_3, x_4, x_5, x_6, x_108); -x_110 = lean_ctor_get(x_109, 0); +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_107 = lean_ctor_get(x_101, 1); +lean_inc(x_107); +lean_dec(x_101); +x_108 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_38, x_3, x_4, x_5, x_6, x_107); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); +lean_dec(x_108); +x_111 = lean_unbox(x_109); lean_dec(x_109); -x_112 = lean_unbox(x_110); -lean_dec(x_110); -x_40 = x_112; -x_41 = x_111; -goto block_101; +x_39 = x_111; +x_40 = x_110; +goto block_100; } -block_101: +block_100: { -if (x_40 == 0) +if (x_39 == 0) { -lean_object* x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; -x_42 = lean_box(0); -x_43 = lean_unbox(x_34); -lean_dec(x_34); -x_44 = lean_unbox(x_37); -lean_dec(x_37); -x_45 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_43, x_44, x_1, x_2, x_39, x_15, x_14, x_42, x_3, x_4, x_5, x_6, x_41); +lean_object* x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; +x_41 = lean_box(0); +x_42 = lean_unbox(x_33); +lean_dec(x_33); +x_43 = lean_unbox(x_36); +lean_dec(x_36); +x_44 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_42, x_43, x_1, x_2, x_38, x_15, x_14, x_41, x_3, x_4, x_5, x_6, x_40); lean_dec(x_14); -return x_45; +return x_44; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +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_1); -x_46 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_46, 0, x_1); -x_47 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__9; -x_48 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___closed__4; -x_50 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); +x_45 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_45, 0, x_1); +x_46 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___lambda__2___closed__9; +x_47 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___closed__4; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); lean_inc(x_2); -x_51 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_51, 0, x_2); -x_52 = lean_unbox(x_34); -if (x_52 == 0) +x_50 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_50, 0, x_2); +x_51 = lean_unbox(x_33); +if (x_51 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_53 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__2; -x_54 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_54, 0, x_50); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___closed__10; +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_52 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__2; +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_49); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___closed__10; +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 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_50); x_57 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_51); -x_58 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_49); -x_59 = lean_unbox(x_37); -if (x_59 == 0) +lean_ctor_set(x_57, 1, x_48); +x_58 = lean_unbox(x_36); +if (x_58 == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; lean_object* x_67; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; lean_object* x_66; +x_59 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_52); x_60 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_53); -x_61 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_47); -x_62 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_39, x_61, x_3, x_4, x_5, x_6, x_41); -x_63 = lean_ctor_get(x_62, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_46); +x_61 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_38, x_60, x_3, x_4, x_5, x_6, x_40); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); +lean_dec(x_61); +x_64 = lean_unbox(x_33); +lean_dec(x_33); +x_65 = lean_unbox(x_36); +lean_dec(x_36); +x_66 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_64, x_65, x_1, x_2, x_38, x_15, x_14, x_62, x_3, x_4, x_5, x_6, x_63); lean_dec(x_62); -x_65 = lean_unbox(x_34); -lean_dec(x_34); -x_66 = lean_unbox(x_37); -lean_dec(x_37); -x_67 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_65, x_66, x_1, x_2, x_39, x_15, x_14, x_63, x_3, x_4, x_5, x_6, x_64); -lean_dec(x_63); lean_dec(x_14); -return x_67; +return x_66; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; -x_68 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__4; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; +x_67 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__4; +x_68 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_68, 0, x_57); +lean_ctor_set(x_68, 1, x_67); x_69 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_69, 0, x_58); -lean_ctor_set(x_69, 1, x_68); -x_70 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_47); -x_71 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_39, x_70, x_3, x_4, x_5, x_6, x_41); -x_72 = lean_ctor_get(x_71, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_46); +x_70 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_38, x_69, x_3, x_4, x_5, x_6, x_40); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); +lean_dec(x_70); +x_73 = lean_unbox(x_33); +lean_dec(x_33); +x_74 = lean_unbox(x_36); +lean_dec(x_36); +x_75 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_73, x_74, x_1, x_2, x_38, x_15, x_14, x_71, x_3, x_4, x_5, x_6, x_72); lean_dec(x_71); -x_74 = lean_unbox(x_34); -lean_dec(x_34); -x_75 = lean_unbox(x_37); -lean_dec(x_37); -x_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_74, x_75, x_1, x_2, x_39, x_15, x_14, x_72, x_3, x_4, x_5, x_6, x_73); -lean_dec(x_72); lean_dec(x_14); -return x_76; +return x_75; } } else { -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_77 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__4; -x_78 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_78, 0, x_50); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___closed__10; +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_76 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__4; +x_77 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_77, 0, x_49); +lean_ctor_set(x_77, 1, x_76); +x_78 = l_Std_Range_forIn_loop___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEtaStruct_go___spec__1___closed__10; +x_79 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); x_80 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_50); x_81 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_51); -x_82 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_49); -x_83 = lean_unbox(x_37); -if (x_83 == 0) +lean_ctor_set(x_81, 1, x_48); +x_82 = lean_unbox(x_36); +if (x_82 == 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; uint8_t x_90; uint8_t x_91; lean_object* x_92; -x_84 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__2; +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; uint8_t x_90; lean_object* x_91; +x_83 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__2; +x_84 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_83); x_85 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_84); -x_86 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_47); -x_87 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_39, x_86, x_3, x_4, x_5, x_6, x_41); -x_88 = lean_ctor_get(x_87, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_46); +x_86 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_38, x_85, x_3, x_4, x_5, x_6, x_40); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_unbox(x_34); -lean_dec(x_34); -x_91 = lean_unbox(x_37); -lean_dec(x_37); -x_92 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_90, x_91, x_1, x_2, x_39, x_15, x_14, x_88, x_3, x_4, x_5, x_6, x_89); -lean_dec(x_88); -lean_dec(x_14); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; lean_object* x_100; -x_93 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_93, 0, x_82); -lean_ctor_set(x_93, 1, x_77); -x_94 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_47); -x_95 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_39, x_94, x_3, x_4, x_5, x_6, x_41); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_unbox(x_34); -lean_dec(x_34); -x_99 = lean_unbox(x_37); -lean_dec(x_37); -x_100 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_98, x_99, x_1, x_2, x_39, x_15, x_14, x_96, x_3, x_4, x_5, x_6, x_97); -lean_dec(x_96); -lean_dec(x_14); -return x_100; -} -} -} -} -} -else -{ -uint8_t x_113; -lean_dec(x_34); -lean_dec(x_14); -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_113 = !lean_is_exclusive(x_36); -if (x_113 == 0) -{ -return x_36; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_36, 0); -x_115 = lean_ctor_get(x_36, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_36); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; -} -} -} -else -{ -uint8_t x_117; -lean_dec(x_14); -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_117 = !lean_is_exclusive(x_33); -if (x_117 == 0) -{ -return x_33; -} -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_33, 0); -x_119 = lean_ctor_get(x_33, 1); -lean_inc(x_119); -lean_inc(x_118); +lean_dec(x_86); +x_89 = lean_unbox(x_33); lean_dec(x_33); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +x_90 = lean_unbox(x_36); +lean_dec(x_36); +x_91 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_89, x_90, x_1, x_2, x_38, x_15, x_14, x_87, x_3, x_4, x_5, x_6, x_88); +lean_dec(x_87); +lean_dec(x_14); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; uint8_t x_98; lean_object* x_99; +x_92 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_92, 0, x_81); +lean_ctor_set(x_92, 1, x_76); +x_93 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_46); +x_94 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_38, x_93, x_3, x_4, x_5, x_6, x_40); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_unbox(x_33); +lean_dec(x_33); +x_98 = lean_unbox(x_36); +lean_dec(x_36); +x_99 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___lambda__2(x_97, x_98, x_1, x_2, x_38, x_15, x_14, x_95, x_3, x_4, x_5, x_6, x_96); +lean_dec(x_95); +lean_dec(x_14); +return x_99; +} } } } } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +uint8_t x_112; +lean_dec(x_33); +lean_dec(x_14); +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_112 = !lean_is_exclusive(x_35); +if (x_112 == 0) +{ +return x_35; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_35, 0); +x_114 = lean_ctor_get(x_35, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_35); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; +} +} +} +else +{ +uint8_t x_116; +lean_dec(x_14); +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_116 = !lean_is_exclusive(x_32); +if (x_116 == 0) +{ +return x_32; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_32, 0); +x_118 = lean_ctor_get(x_32, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_32); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_dec(x_14); lean_dec(x_13); -x_159 = lean_ctor_get(x_25, 1); -lean_inc(x_159); +lean_dec(x_1); +x_155 = lean_ctor_get(x_25, 1); +lean_inc(x_155); lean_dec(x_25); -x_160 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_3, x_4, x_5, x_6, x_159); -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); -lean_inc(x_162); -lean_dec(x_160); -x_163 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_161, x_2, x_3, x_4, x_5, x_6, x_162); -return x_163; +x_156 = lean_ctor_get(x_26, 0); +lean_inc(x_156); +lean_dec(x_26); +x_157 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_156, x_2, x_3, x_4, x_5, x_6, x_155); +return x_157; } } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_dec(x_14); lean_dec(x_13); -x_164 = lean_ctor_get(x_21, 1); -lean_inc(x_164); +x_158 = lean_ctor_get(x_21, 1); +lean_inc(x_158); lean_dec(x_21); -x_165 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_2, x_3, x_4, x_5, x_6, x_164); -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_168 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_1, x_166, x_3, x_4, x_5, x_6, x_167); -return x_168; +x_159 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_2, x_3, x_4, x_5, x_6, x_158); +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +lean_dec(x_159); +x_162 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_1, x_160, x_3, x_4, x_5, x_6, x_161); +return x_162; } } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_dec(x_14); lean_dec(x_13); -x_169 = lean_ctor_get(x_17, 1); -lean_inc(x_169); +x_163 = lean_ctor_get(x_17, 1); +lean_inc(x_163); lean_dec(x_17); -x_170 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_3, x_4, x_5, x_6, x_169); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_173 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_171, x_2, x_3, x_4, x_5, x_6, x_172); -return x_173; +x_164 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_3, x_4, x_5, x_6, x_163); +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_165, x_2, x_3, x_4, x_5, x_6, x_166); +return x_167; } } } else { +uint8_t x_175; lean_object* x_176; lean_object* x_177; +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_175 = 1; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_7); +return x_177; +} +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +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_178 = 1; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_7); +return x_180; +} +} +else +{ uint8_t x_181; lean_object* x_182; lean_object* x_183; lean_dec(x_6); lean_dec(x_5); @@ -63791,58 +64009,24 @@ return x_183; } else { -uint8_t x_184; lean_object* x_185; lean_object* x_186; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); +lean_object* x_184; lean_object* x_185; lean_dec(x_2); -lean_dec(x_1); -x_184 = 1; -x_185 = lean_box(x_184); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_7); -return x_186; -} -} -else -{ -uint8_t x_187; lean_object* x_188; lean_object* x_189; -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_187 = 1; -x_188 = lean_box(x_187); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_7); -return x_189; -} -} -else -{ -lean_object* x_190; lean_object* x_191; -lean_dec(x_2); -x_190 = lean_ctor_get(x_9, 0); -lean_inc(x_190); +x_184 = lean_ctor_get(x_9, 0); +lean_inc(x_184); lean_dec(x_9); -x_191 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_1, x_190, x_3, x_4, x_5, x_6, x_7); -return x_191; +x_185 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_1, x_184, x_3, x_4, x_5, x_6, x_7); +return x_185; } } else { -lean_object* x_192; lean_object* x_193; +lean_object* x_186; lean_object* x_187; lean_dec(x_1); -x_192 = lean_ctor_get(x_8, 0); -lean_inc(x_192); +x_186 = lean_ctor_get(x_8, 0); +lean_inc(x_186); lean_dec(x_8); -x_193 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_192, x_2, x_3, x_4, x_5, x_6, x_7); -return x_193; +x_187 = l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(x_186, x_2, x_3, x_4, x_5, x_6, x_7); +return x_187; } } } @@ -81666,7 +81850,7 @@ lean_dec(x_4); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_15455_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_15581_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -82298,7 +82482,7 @@ l_Lean_Meta_isExprDefEqAuxImpl___closed__1 = _init_l_Lean_Meta_isExprDefEqAuxImp lean_mark_persistent(l_Lean_Meta_isExprDefEqAuxImpl___closed__1); l_Lean_Meta_isExprDefEqAuxImpl___closed__2 = _init_l_Lean_Meta_isExprDefEqAuxImpl___closed__2(); lean_mark_persistent(l_Lean_Meta_isExprDefEqAuxImpl___closed__2); -res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_15455_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_15581_(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/LevelDefEq.c b/stage0/stdlib/Lean/Meta/LevelDefEq.c index ff18cca2a8..b30b2cb3ef 100644 --- a/stage0/stdlib/Lean/Meta/LevelDefEq.c +++ b/stage0/stdlib/Lean/Meta/LevelDefEq.c @@ -2187,7 +2187,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_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__1; x_2 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__2; -x_3 = lean_unsigned_to_nat(354u); +x_3 = lean_unsigned_to_nat(353u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__3; 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/SynthInstance.c b/stage0/stdlib/Lean/Meta/SynthInstance.c index 8c1ec513c4..c1a7c6e068 100644 --- a/stage0/stdlib/Lean/Meta/SynthInstance.c +++ b/stage0/stdlib/Lean/Meta/SynthInstance.c @@ -362,7 +362,7 @@ LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_SynthInstance_f LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_6_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_33_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_7883_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_7886_(lean_object*); static lean_object* l_Lean_Meta_SynthInstance_MkTableKey_State_lmap___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_SynthInstance_getNextToResume___boxed(lean_object*); LEAN_EXPORT lean_object* l_List_anyM___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1390,7 +1390,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_isLevelMVarAssignable___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__1___closed__1; x_2 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__1___closed__2; -x_3 = lean_unsigned_to_nat(354u); +x_3 = lean_unsigned_to_nat(353u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_SynthInstance_MkTableKey_normLevel___spec__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -23310,181 +23310,183 @@ lean_inc(x_19); x_20 = !lean_is_exclusive(x_12); if (x_20 == 0) { -uint8_t x_21; lean_object* x_22; lean_object* x_23; +uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; x_21 = 1; +x_22 = 1; lean_ctor_set_uint8(x_12, 5, x_21); -x_22 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_22, 0, x_12); -lean_ctor_set(x_22, 1, x_15); -lean_ctor_set(x_22, 2, x_16); -lean_ctor_set(x_22, 3, x_17); -lean_ctor_set(x_22, 4, x_18); -lean_ctor_set(x_22, 5, x_19); +lean_ctor_set_uint8(x_12, 10, x_22); +x_23 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_23, 0, x_12); +lean_ctor_set(x_23, 1, x_15); +lean_ctor_set(x_23, 2, x_16); +lean_ctor_set(x_23, 3, x_17); +lean_ctor_set(x_23, 4, x_18); +lean_ctor_set(x_23, 5, x_19); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_13); lean_inc(x_2); -x_23 = l_Lean_Meta_isExprDefEq(x_2, x_13, x_22, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_23) == 0) +x_24 = l_Lean_Meta_isExprDefEq(x_2, x_13, x_23, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_unbox(x_24); -lean_dec(x_24); -if (x_25 == 0) +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) { -lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_dec(x_1); -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_45 = lean_st_ref_get(x_9, x_26); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_46, 3); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_46 = lean_st_ref_get(x_9, x_27); +x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); -lean_dec(x_46); -x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*1); +x_48 = lean_ctor_get(x_47, 3); +lean_inc(x_48); lean_dec(x_47); -if (x_48 == 0) +x_49 = lean_ctor_get_uint8(x_48, sizeof(void*)*1); +lean_dec(x_48); +if (x_49 == 0) { -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_45, 1); -lean_inc(x_49); -lean_dec(x_45); -x_50 = 0; -x_27 = x_50; -x_28 = x_49; -goto block_44; +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_46, 1); +lean_inc(x_50); +lean_dec(x_46); +x_51 = 0; +x_28 = x_51; +x_29 = x_50; +goto block_45; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_51 = lean_ctor_get(x_45, 1); -lean_inc(x_51); -lean_dec(x_45); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_52 = lean_ctor_get(x_46, 1); +lean_inc(x_52); +lean_dec(x_46); lean_inc(x_4); -x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_4, x_6, x_7, x_8, x_9, x_51); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); +x_53 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_4, x_6, x_7, x_8, x_9, x_52); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_unbox(x_53); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); lean_dec(x_53); -x_27 = x_55; -x_28 = x_54; -goto block_44; +x_56 = lean_unbox(x_54); +lean_dec(x_54); +x_28 = x_56; +x_29 = x_55; +goto block_45; } -block_44: +block_45: { -if (x_27 == 0) +if (x_28 == 0) { -lean_object* x_29; lean_object* x_30; +lean_object* x_30; lean_object* x_31; lean_dec(x_13); lean_dec(x_4); lean_dec(x_2); -x_29 = lean_box(0); -x_30 = lean_apply_6(x_3, x_29, x_6, x_7, x_8, x_9, x_28); -return x_30; +x_30 = lean_box(0); +x_31 = lean_apply_6(x_3, x_30, x_6, x_7, x_8, x_9, x_29); +return x_31; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_31 = l_Lean_indentExpr(x_13); -x_32 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__2; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__4; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_indentExpr(x_2); -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__3; -x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_39, x_6, x_7, x_8, x_9, x_28); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_42 = lean_box(0); -x_43 = lean_apply_6(x_3, x_42, x_6, x_7, x_8, x_9, x_41); -return x_43; +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; +x_32 = l_Lean_indentExpr(x_13); +x_33 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__2; +x_34 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__4; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = l_Lean_indentExpr(x_2); +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_Meta_SynthInstance_getInstances___lambda__2___closed__3; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_40, x_6, x_7, x_8, x_9, x_29); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); +x_43 = lean_box(0); +x_44 = lean_apply_6(x_3, x_43, x_6, x_7, x_8, x_9, x_42); +return x_44; } } } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_dec(x_13); lean_dec(x_4); lean_dec(x_2); -x_56 = lean_ctor_get(x_23, 1); -lean_inc(x_56); -lean_dec(x_23); -x_57 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_6, x_7, x_8, x_9, x_56); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); +x_57 = lean_ctor_get(x_24, 1); +lean_inc(x_57); +lean_dec(x_24); +x_58 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_6, x_7, x_8, x_9, x_57); +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -lean_dec(x_57); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_58); -x_60 = l_Lean_Meta_check(x_58, x_6, x_7, x_8, x_9, x_59); -if (lean_obj_tag(x_60) == 0) +lean_inc(x_59); +x_61 = l_Lean_Meta_check(x_59, x_6, x_7, x_8, x_9, x_60); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_62, 0, x_58); -x_63 = lean_apply_6(x_3, x_62, x_6, x_7, x_8, x_9, x_61); -return x_63; +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_59); +x_64 = lean_apply_6(x_3, x_63, x_6, x_7, x_8, x_9, x_62); +return x_64; } else { -uint8_t x_64; -lean_dec(x_58); +uint8_t x_65; +lean_dec(x_59); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_64 = !lean_is_exclusive(x_60); -if (x_64 == 0) +x_65 = !lean_is_exclusive(x_61); +if (x_65 == 0) { -return x_60; +return x_61; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_60, 0); -x_66 = lean_ctor_get(x_60, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_61, 0); +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_60); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +lean_dec(x_61); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; } } } } else { -uint8_t x_68; +uint8_t x_69; lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); @@ -23494,233 +23496,233 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_23); -if (x_68 == 0) +x_69 = !lean_is_exclusive(x_24); +if (x_69 == 0) { -return x_23; +return x_24; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_23, 0); -x_70 = lean_ctor_get(x_23, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_24, 0); +x_71 = lean_ctor_get(x_24, 1); +lean_inc(x_71); lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_23); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +lean_dec(x_24); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; } } } else { -uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_72 = lean_ctor_get_uint8(x_12, 0); -x_73 = lean_ctor_get_uint8(x_12, 1); -x_74 = lean_ctor_get_uint8(x_12, 2); -x_75 = lean_ctor_get_uint8(x_12, 3); -x_76 = lean_ctor_get_uint8(x_12, 4); -x_77 = lean_ctor_get_uint8(x_12, 6); -x_78 = lean_ctor_get_uint8(x_12, 7); -x_79 = lean_ctor_get_uint8(x_12, 8); -x_80 = lean_ctor_get_uint8(x_12, 9); -x_81 = lean_ctor_get_uint8(x_12, 10); +uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_73 = lean_ctor_get_uint8(x_12, 0); +x_74 = lean_ctor_get_uint8(x_12, 1); +x_75 = lean_ctor_get_uint8(x_12, 2); +x_76 = lean_ctor_get_uint8(x_12, 3); +x_77 = lean_ctor_get_uint8(x_12, 4); +x_78 = lean_ctor_get_uint8(x_12, 6); +x_79 = lean_ctor_get_uint8(x_12, 7); +x_80 = lean_ctor_get_uint8(x_12, 8); +x_81 = lean_ctor_get_uint8(x_12, 9); x_82 = lean_ctor_get_uint8(x_12, 11); x_83 = lean_ctor_get_uint8(x_12, 12); x_84 = lean_ctor_get_uint8(x_12, 13); lean_dec(x_12); x_85 = 1; -x_86 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_86, 0, x_72); -lean_ctor_set_uint8(x_86, 1, x_73); -lean_ctor_set_uint8(x_86, 2, x_74); -lean_ctor_set_uint8(x_86, 3, x_75); -lean_ctor_set_uint8(x_86, 4, x_76); -lean_ctor_set_uint8(x_86, 5, x_85); -lean_ctor_set_uint8(x_86, 6, x_77); -lean_ctor_set_uint8(x_86, 7, x_78); -lean_ctor_set_uint8(x_86, 8, x_79); -lean_ctor_set_uint8(x_86, 9, x_80); -lean_ctor_set_uint8(x_86, 10, x_81); -lean_ctor_set_uint8(x_86, 11, x_82); -lean_ctor_set_uint8(x_86, 12, x_83); -lean_ctor_set_uint8(x_86, 13, x_84); -x_87 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_15); -lean_ctor_set(x_87, 2, x_16); -lean_ctor_set(x_87, 3, x_17); -lean_ctor_set(x_87, 4, x_18); -lean_ctor_set(x_87, 5, x_19); +x_86 = 1; +x_87 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_87, 0, x_73); +lean_ctor_set_uint8(x_87, 1, x_74); +lean_ctor_set_uint8(x_87, 2, x_75); +lean_ctor_set_uint8(x_87, 3, x_76); +lean_ctor_set_uint8(x_87, 4, x_77); +lean_ctor_set_uint8(x_87, 5, x_85); +lean_ctor_set_uint8(x_87, 6, x_78); +lean_ctor_set_uint8(x_87, 7, x_79); +lean_ctor_set_uint8(x_87, 8, x_80); +lean_ctor_set_uint8(x_87, 9, x_81); +lean_ctor_set_uint8(x_87, 10, x_86); +lean_ctor_set_uint8(x_87, 11, x_82); +lean_ctor_set_uint8(x_87, 12, x_83); +lean_ctor_set_uint8(x_87, 13, x_84); +x_88 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_15); +lean_ctor_set(x_88, 2, x_16); +lean_ctor_set(x_88, 3, x_17); +lean_ctor_set(x_88, 4, x_18); +lean_ctor_set(x_88, 5, x_19); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_13); lean_inc(x_2); -x_88 = l_Lean_Meta_isExprDefEq(x_2, x_13, x_87, x_7, x_8, x_9, x_14); -if (lean_obj_tag(x_88) == 0) +x_89 = l_Lean_Meta_isExprDefEq(x_2, x_13, x_88, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_89; uint8_t x_90; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_unbox(x_89); -lean_dec(x_89); -if (x_90 == 0) +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_unbox(x_90); +lean_dec(x_90); +if (x_91 == 0) { -lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_dec(x_1); -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -lean_dec(x_88); -x_110 = lean_st_ref_get(x_9, x_91); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_111, 3); +x_92 = lean_ctor_get(x_89, 1); +lean_inc(x_92); +lean_dec(x_89); +x_111 = lean_st_ref_get(x_9, x_92); +x_112 = lean_ctor_get(x_111, 0); lean_inc(x_112); -lean_dec(x_111); -x_113 = lean_ctor_get_uint8(x_112, sizeof(void*)*1); +x_113 = lean_ctor_get(x_112, 3); +lean_inc(x_113); lean_dec(x_112); -if (x_113 == 0) +x_114 = lean_ctor_get_uint8(x_113, sizeof(void*)*1); +lean_dec(x_113); +if (x_114 == 0) { -lean_object* x_114; uint8_t x_115; -x_114 = lean_ctor_get(x_110, 1); -lean_inc(x_114); -lean_dec(x_110); -x_115 = 0; -x_92 = x_115; -x_93 = x_114; -goto block_109; +lean_object* x_115; uint8_t x_116; +x_115 = lean_ctor_get(x_111, 1); +lean_inc(x_115); +lean_dec(x_111); +x_116 = 0; +x_93 = x_116; +x_94 = x_115; +goto block_110; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_116 = lean_ctor_get(x_110, 1); -lean_inc(x_116); -lean_dec(x_110); +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_117 = lean_ctor_get(x_111, 1); +lean_inc(x_117); +lean_dec(x_111); lean_inc(x_4); -x_117 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_4, x_6, x_7, x_8, x_9, x_116); -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); +x_118 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_4, x_6, x_7, x_8, x_9, x_117); +x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); -lean_dec(x_117); -x_120 = lean_unbox(x_118); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); lean_dec(x_118); -x_92 = x_120; -x_93 = x_119; -goto block_109; +x_121 = lean_unbox(x_119); +lean_dec(x_119); +x_93 = x_121; +x_94 = x_120; +goto block_110; } -block_109: +block_110: { -if (x_92 == 0) +if (x_93 == 0) { -lean_object* x_94; lean_object* x_95; +lean_object* x_95; lean_object* x_96; lean_dec(x_13); lean_dec(x_4); lean_dec(x_2); -x_94 = lean_box(0); -x_95 = lean_apply_6(x_3, x_94, x_6, x_7, x_8, x_9, x_93); -return x_95; +x_95 = lean_box(0); +x_96 = lean_apply_6(x_3, x_95, x_6, x_7, x_8, x_9, x_94); +return x_96; } else { -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; -x_96 = l_Lean_indentExpr(x_13); -x_97 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__2; -x_98 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__4; -x_100 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -x_101 = l_Lean_indentExpr(x_2); -x_102 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__3; -x_104 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_104, x_6, x_7, x_8, x_9, x_93); -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -lean_dec(x_105); -x_107 = lean_box(0); -x_108 = lean_apply_6(x_3, x_107, x_6, x_7, x_8, x_9, x_106); -return x_108; +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; +x_97 = l_Lean_indentExpr(x_13); +x_98 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__2; +x_99 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +x_100 = l_Lean_Meta_synthInstance_x3f___lambda__4___closed__4; +x_101 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_indentExpr(x_2); +x_103 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +x_104 = l_Lean_Meta_SynthInstance_getInstances___lambda__2___closed__3; +x_105 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_4, x_105, x_6, x_7, x_8, x_9, x_94); +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +lean_dec(x_106); +x_108 = lean_box(0); +x_109 = lean_apply_6(x_3, x_108, x_6, x_7, x_8, x_9, x_107); +return x_109; } } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_dec(x_13); lean_dec(x_4); lean_dec(x_2); -x_121 = lean_ctor_get(x_88, 1); -lean_inc(x_121); -lean_dec(x_88); -x_122 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_6, x_7, x_8, x_9, x_121); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); +x_122 = lean_ctor_get(x_89, 1); +lean_inc(x_122); +lean_dec(x_89); +x_123 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_1, x_6, x_7, x_8, x_9, x_122); +x_124 = lean_ctor_get(x_123, 0); lean_inc(x_124); -lean_dec(x_122); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_123); -x_125 = l_Lean_Meta_check(x_123, x_6, x_7, x_8, x_9, x_124); -if (lean_obj_tag(x_125) == 0) +lean_inc(x_124); +x_126 = l_Lean_Meta_check(x_124, x_6, x_7, x_8, x_9, x_125); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_125, 1); -lean_inc(x_126); -lean_dec(x_125); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_123); -x_128 = lean_apply_6(x_3, x_127, x_6, x_7, x_8, x_9, x_126); -return x_128; +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_126, 1); +lean_inc(x_127); +lean_dec(x_126); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_124); +x_129 = lean_apply_6(x_3, x_128, x_6, x_7, x_8, x_9, x_127); +return x_129; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_123); +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_124); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); -x_129 = lean_ctor_get(x_125, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_125, 1); +x_130 = lean_ctor_get(x_126, 0); lean_inc(x_130); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_131 = x_125; +x_131 = lean_ctor_get(x_126, 1); +lean_inc(x_131); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_132 = x_126; } else { - lean_dec_ref(x_125); - x_131 = lean_box(0); + lean_dec_ref(x_126); + x_132 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_132)) { + x_133 = lean_alloc_ctor(1, 2, 0); } else { - x_132 = x_131; + x_133 = x_132; } -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_130); -return x_132; +lean_ctor_set(x_133, 0, x_130); +lean_ctor_set(x_133, 1, x_131); +return x_133; } } } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_dec(x_13); lean_dec(x_9); lean_dec(x_8); @@ -23730,32 +23732,32 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_133 = lean_ctor_get(x_88, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_88, 1); +x_134 = lean_ctor_get(x_89, 0); lean_inc(x_134); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_135 = x_88; +x_135 = lean_ctor_get(x_89, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_136 = x_89; } else { - lean_dec_ref(x_88); - x_135 = lean_box(0); + lean_dec_ref(x_89); + x_136 = lean_box(0); } -if (lean_is_scalar(x_135)) { - x_136 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(1, 2, 0); } else { - x_136 = x_135; + x_137 = x_136; } -lean_ctor_set(x_136, 0, x_133); -lean_ctor_set(x_136, 1, x_134); -return x_136; +lean_ctor_set(x_137, 0, x_134); +lean_ctor_set(x_137, 1, x_135); +return x_137; } } } else { -uint8_t x_137; +uint8_t x_138; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -23764,23 +23766,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_137 = !lean_is_exclusive(x_11); -if (x_137 == 0) +x_138 = !lean_is_exclusive(x_11); +if (x_138 == 0) { return x_11; } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_11, 0); -x_139 = lean_ctor_get(x_11, 1); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_11, 0); +x_140 = lean_ctor_get(x_11, 1); +lean_inc(x_140); lean_inc(x_139); -lean_inc(x_138); lean_dec(x_11); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } @@ -27408,7 +27410,7 @@ lean_dec(x_3); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_7883_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_7886_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -28064,7 +28066,7 @@ l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__2___c lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__2___closed__5); l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__2___closed__6 = _init_l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__2___closed__6(); lean_mark_persistent(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__2___closed__6); -res = l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_7883_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_SynthInstance___hyg_7886_(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/Tactic/ElimInfo.c b/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c index 7907b9a6ac..4416666bfd 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c +++ b/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c @@ -3246,7 +3246,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_isLevelMVarAssignable___at_Lean_Meta_addImplicitTargets___spec__5___closed__1; x_2 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_addImplicitTargets___spec__5___closed__2; -x_3 = lean_unsigned_to_nat(354u); +x_3 = lean_unsigned_to_nat(353u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_addImplicitTargets___spec__5___closed__3; 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/Tactic/Simp/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c index f0d2a33d5f..5839846a39 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c @@ -4821,7 +4821,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_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__1; x_2 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__2; -x_3 = lean_unsigned_to_nat(354u); +x_3 = lean_unsigned_to_nat(353u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__3; 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/WHNF.c b/stage0/stdlib/Lean/Meta/WHNF.c index 0f8c196916..458becb909 100644 --- a/stage0/stdlib/Lean/Meta/WHNF.c +++ b/stage0/stdlib/Lean/Meta/WHNF.c @@ -76,6 +76,7 @@ static lean_object* l_Lean_Meta_reduceBinNatOp___closed__14; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at___private_Lean_Meta_WHNF_0__Lean_Meta_cache___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_toCtorIfLit___closed__23; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insert___at___private_Lean_Meta_WHNF_0__Lean_Meta_cache___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkMVar(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at___private_Lean_Meta_WHNF_0__Lean_Meta_cache___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); lean_object* lean_environment_find(lean_object*, lean_object*); @@ -335,7 +336,7 @@ LEAN_EXPORT lean_object* l_Lean_evalConstCheck___at_Lean_Meta_reduceBoolNativeUn extern lean_object* l_Lean_projectionFnInfoExt; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_canUnfoldAtMatcher___closed__9; -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_8433_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_8438_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_32_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfUntil___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_reduceRecMatcher_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -11729,309 +11730,312 @@ x_35 = lean_array_get_size(x_25); x_36 = lean_nat_dec_lt(x_34, x_35); if (x_36 == 0) { -lean_object* x_37; uint8_t x_38; +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_free_object(x_12); -x_37 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_26, x_3, x_4, x_5, x_6, x_23); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +x_37 = l_Lean_mkMVar(x_26); +x_38 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_37, x_3, x_4, x_5, x_6, x_23); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_37, 0); -x_40 = l_Lean_Expr_hasExprMVar(x_39); -if (x_40 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_38, 0); +x_41 = l_Lean_Expr_hasExprMVar(x_40); +if (x_41 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_expr_abstract(x_39, x_25); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_expr_abstract(x_40, x_25); lean_dec(x_25); -lean_dec(x_39); -x_42 = lean_expr_instantiate_rev_range(x_41, x_27, x_35, x_33); -lean_dec(x_41); -x_43 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_34, x_33, x_35, x_42); +lean_dec(x_40); +x_43 = lean_expr_instantiate_rev_range(x_42, x_27, x_35, x_33); +lean_dec(x_42); +x_44 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_34, x_33, x_35, x_43); lean_dec(x_33); lean_dec(x_34); -lean_ctor_set(x_13, 0, x_43); -lean_ctor_set(x_37, 0, x_13); -return x_37; +lean_ctor_set(x_13, 0, x_44); +lean_ctor_set(x_38, 0, x_13); +return x_38; } else { -lean_object* x_44; -lean_dec(x_39); +lean_object* x_45; +lean_dec(x_40); lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); lean_dec(x_25); lean_free_object(x_13); -x_44 = lean_box(0); -lean_ctor_set(x_37, 0, x_44); -return x_37; +x_45 = lean_box(0); +lean_ctor_set(x_38, 0, x_45); +return x_38; } } else { -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_37, 0); -x_46 = lean_ctor_get(x_37, 1); +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_38, 0); +x_47 = lean_ctor_get(x_38, 1); +lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_37); -x_47 = l_Lean_Expr_hasExprMVar(x_45); -if (x_47 == 0) +lean_dec(x_38); +x_48 = l_Lean_Expr_hasExprMVar(x_46); +if (x_48 == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_expr_abstract(x_45, x_25); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_expr_abstract(x_46, x_25); lean_dec(x_25); -lean_dec(x_45); -x_49 = lean_expr_instantiate_rev_range(x_48, x_27, x_35, x_33); -lean_dec(x_48); -x_50 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_34, x_33, x_35, x_49); +lean_dec(x_46); +x_50 = lean_expr_instantiate_rev_range(x_49, x_27, x_35, x_33); +lean_dec(x_49); +x_51 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_34, x_33, x_35, x_50); lean_dec(x_33); lean_dec(x_34); -lean_ctor_set(x_13, 0, x_50); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_13); -lean_ctor_set(x_51, 1, x_46); -return x_51; +lean_ctor_set(x_13, 0, x_51); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_13); +lean_ctor_set(x_52, 1, x_47); +return x_52; } else { -lean_object* x_52; lean_object* x_53; -lean_dec(x_45); +lean_object* x_53; lean_object* x_54; +lean_dec(x_46); lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); lean_dec(x_25); lean_free_object(x_13); -x_52 = lean_box(0); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_46); -return x_53; +x_53 = lean_box(0); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_47); +return x_54; } } } else { -lean_object* x_54; +lean_object* x_55; lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); lean_dec(x_26); lean_dec(x_25); lean_free_object(x_13); -x_54 = lean_box(0); -lean_ctor_set(x_12, 0, x_54); +x_55 = lean_box(0); +lean_ctor_set(x_12, 0, x_55); return x_12; } } else { -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; uint8_t x_68; -x_55 = lean_ctor_get(x_13, 0); -x_56 = lean_ctor_get(x_12, 1); -lean_inc(x_56); -lean_dec(x_12); -x_57 = lean_ctor_get(x_55, 0); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_56 = lean_ctor_get(x_13, 0); +x_57 = lean_ctor_get(x_12, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_55, 1); +lean_dec(x_12); +x_58 = lean_ctor_get(x_56, 0); lean_inc(x_58); -lean_dec(x_55); -x_59 = lean_unsigned_to_nat(0u); -x_60 = l_Lean_Expr_getAppNumArgsAux(x_2, x_59); -x_61 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; -lean_inc(x_60); -x_62 = lean_mk_array(x_60, x_61); -x_63 = lean_unsigned_to_nat(1u); -x_64 = lean_nat_sub(x_60, x_63); -lean_dec(x_60); -x_65 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_62, x_64); -x_66 = lean_array_get_size(x_65); -x_67 = lean_array_get_size(x_57); -x_68 = lean_nat_dec_lt(x_66, x_67); -if (x_68 == 0) +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +x_60 = lean_unsigned_to_nat(0u); +x_61 = l_Lean_Expr_getAppNumArgsAux(x_2, x_60); +x_62 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; +lean_inc(x_61); +x_63 = lean_mk_array(x_61, x_62); +x_64 = lean_unsigned_to_nat(1u); +x_65 = lean_nat_sub(x_61, x_64); +lean_dec(x_61); +x_66 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_63, x_65); +x_67 = lean_array_get_size(x_66); +x_68 = lean_array_get_size(x_58); +x_69 = lean_nat_dec_lt(x_67, x_68); +if (x_69 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_69 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_58, x_3, x_4, x_5, x_6, x_56); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_72 = x_69; +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_70 = l_Lean_mkMVar(x_59); +x_71 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_70, x_3, x_4, x_5, x_6, x_57); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_74 = x_71; } else { - lean_dec_ref(x_69); - x_72 = lean_box(0); + lean_dec_ref(x_71); + x_74 = lean_box(0); } -x_73 = l_Lean_Expr_hasExprMVar(x_70); -if (x_73 == 0) +x_75 = l_Lean_Expr_hasExprMVar(x_72); +if (x_75 == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_74 = lean_expr_abstract(x_70, x_57); -lean_dec(x_57); -lean_dec(x_70); -x_75 = lean_expr_instantiate_rev_range(x_74, x_59, x_67, x_65); -lean_dec(x_74); -x_76 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_66, x_65, x_67, x_75); -lean_dec(x_65); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_expr_abstract(x_72, x_58); +lean_dec(x_58); +lean_dec(x_72); +x_77 = lean_expr_instantiate_rev_range(x_76, x_60, x_68, x_66); +lean_dec(x_76); +x_78 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_67, x_66, x_68, x_77); lean_dec(x_66); -lean_ctor_set(x_13, 0, x_76); -if (lean_is_scalar(x_72)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { - x_77 = x_72; -} -lean_ctor_set(x_77, 0, x_13); -lean_ctor_set(x_77, 1, x_71); -return x_77; -} -else -{ -lean_object* x_78; lean_object* x_79; -lean_dec(x_70); lean_dec(x_67); -lean_dec(x_66); -lean_dec(x_65); -lean_dec(x_57); -lean_free_object(x_13); -x_78 = lean_box(0); -if (lean_is_scalar(x_72)) { +lean_ctor_set(x_13, 0, x_78); +if (lean_is_scalar(x_74)) { x_79 = lean_alloc_ctor(0, 2, 0); } else { - x_79 = x_72; + x_79 = x_74; } -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_71); +lean_ctor_set(x_79, 0, x_13); +lean_ctor_set(x_79, 1, x_73); return x_79; } -} else { lean_object* x_80; lean_object* x_81; +lean_dec(x_72); +lean_dec(x_68); lean_dec(x_67); lean_dec(x_66); -lean_dec(x_65); lean_dec(x_58); -lean_dec(x_57); lean_free_object(x_13); x_80 = lean_box(0); -x_81 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_74)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_74; +} lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_56); +lean_ctor_set(x_81, 1, x_73); return x_81; } } +else +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_66); +lean_dec(x_59); +lean_dec(x_58); +lean_free_object(x_13); +x_82 = lean_box(0); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_57); +return x_83; +} +} } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_82 = lean_ctor_get(x_13, 0); -lean_inc(x_82); +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; uint8_t x_98; +x_84 = lean_ctor_get(x_13, 0); +lean_inc(x_84); lean_dec(x_13); -x_83 = lean_ctor_get(x_12, 1); -lean_inc(x_83); +x_85 = lean_ctor_get(x_12, 1); +lean_inc(x_85); if (lean_is_exclusive(x_12)) { lean_ctor_release(x_12, 0); lean_ctor_release(x_12, 1); - x_84 = x_12; + x_86 = x_12; } else { lean_dec_ref(x_12); - x_84 = lean_box(0); + x_86 = lean_box(0); } -x_85 = lean_ctor_get(x_82, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_82, 1); -lean_inc(x_86); -lean_dec(x_82); -x_87 = lean_unsigned_to_nat(0u); -x_88 = l_Lean_Expr_getAppNumArgsAux(x_2, x_87); -x_89 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; +x_87 = lean_ctor_get(x_84, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_84, 1); lean_inc(x_88); -x_90 = lean_mk_array(x_88, x_89); -x_91 = lean_unsigned_to_nat(1u); -x_92 = lean_nat_sub(x_88, x_91); -lean_dec(x_88); -x_93 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_90, x_92); -x_94 = lean_array_get_size(x_93); -x_95 = lean_array_get_size(x_85); -x_96 = lean_nat_dec_lt(x_94, x_95); -if (x_96 == 0) -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_dec(x_84); -x_97 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_86, x_3, x_4, x_5, x_6, x_83); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_100 = x_97; -} else { - lean_dec_ref(x_97); - x_100 = lean_box(0); -} -x_101 = l_Lean_Expr_hasExprMVar(x_98); -if (x_101 == 0) +x_89 = lean_unsigned_to_nat(0u); +x_90 = l_Lean_Expr_getAppNumArgsAux(x_2, x_89); +x_91 = l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___closed__1; +lean_inc(x_90); +x_92 = lean_mk_array(x_90, x_91); +x_93 = lean_unsigned_to_nat(1u); +x_94 = lean_nat_sub(x_90, x_93); +lean_dec(x_90); +x_95 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_92, x_94); +x_96 = lean_array_get_size(x_95); +x_97 = lean_array_get_size(x_87); +x_98 = lean_nat_dec_lt(x_96, x_97); +if (x_98 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_102 = lean_expr_abstract(x_98, x_85); -lean_dec(x_85); -lean_dec(x_98); -x_103 = lean_expr_instantiate_rev_range(x_102, x_87, x_95, x_93); -lean_dec(x_102); -x_104 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_94, x_93, x_95, x_103); -lean_dec(x_93); -lean_dec(x_94); -x_105 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_105, 0, x_104); -if (lean_is_scalar(x_100)) { - x_106 = lean_alloc_ctor(0, 2, 0); -} else { - x_106 = x_100; -} -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_99); -return x_106; -} -else -{ -lean_object* x_107; lean_object* x_108; -lean_dec(x_98); -lean_dec(x_95); -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_85); -x_107 = lean_box(0); -if (lean_is_scalar(x_100)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_100; -} -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_99); -return x_108; -} -} -else -{ -lean_object* x_109; lean_object* x_110; -lean_dec(x_95); -lean_dec(x_94); -lean_dec(x_93); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_dec(x_86); -lean_dec(x_85); -x_109 = lean_box(0); -if (lean_is_scalar(x_84)) { - x_110 = lean_alloc_ctor(0, 2, 0); +x_99 = l_Lean_mkMVar(x_88); +x_100 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1(x_99, x_3, x_4, x_5, x_6, x_85); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_103 = x_100; } else { - x_110 = x_84; + lean_dec_ref(x_100); + x_103 = lean_box(0); } -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_83); -return x_110; +x_104 = l_Lean_Expr_hasExprMVar(x_101); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_105 = lean_expr_abstract(x_101, x_87); +lean_dec(x_87); +lean_dec(x_101); +x_106 = lean_expr_instantiate_rev_range(x_105, x_89, x_97, x_95); +lean_dec(x_105); +x_107 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_96, x_95, x_97, x_106); +lean_dec(x_95); +lean_dec(x_96); +x_108 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_108, 0, x_107); +if (lean_is_scalar(x_103)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_103; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_102); +return x_109; +} +else +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_101); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_87); +x_110 = lean_box(0); +if (lean_is_scalar(x_103)) { + x_111 = lean_alloc_ctor(0, 2, 0); +} else { + x_111 = x_103; +} +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_102); +return x_111; +} +} +else +{ +lean_object* x_112; lean_object* x_113; +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_88); +lean_dec(x_87); +x_112 = lean_box(0); +if (lean_is_scalar(x_86)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_86; +} +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_85); +return x_113; } } } @@ -33215,7 +33219,7 @@ return x_38; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_8433_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_8438_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -33643,7 +33647,7 @@ l_Lean_throwMaxRecDepthAt___at_Lean_Meta_whnfImp___spec__2___closed__1 = _init_l lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Meta_whnfImp___spec__2___closed__1); l_Lean_throwMaxRecDepthAt___at_Lean_Meta_whnfImp___spec__2___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Meta_whnfImp___spec__2___closed__2(); lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Meta_whnfImp___spec__2___closed__2); -res = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_8433_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_WHNF___hyg_8438_(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/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index eb62f340f2..0f22a6b2c8 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -53,6 +53,7 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_exprDependsOn___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_DependsOn_main(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__42(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_instantiateMVarsCore___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findExprDependsOn___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); @@ -73,7 +74,6 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shoul LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_getLevelMVarAssignment_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_MetavarContext_LevelMVarToParam_main_visitApp___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_assignLevelMVar___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_exprDependsOn___spec__9(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__45___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -125,9 +125,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore__ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_assignExprMVar___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__25(lean_object*, lean_object*); static lean_object* l_Lean_instantiateLevelMVars___rarg___lambda__1___closed__3; -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar___rarg___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_exprDependsOn_x27___spec__18(lean_object*, lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__71(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_exprDependsOn___spec__8(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -144,6 +142,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn_x27 lean_object* lean_name_mk_string(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn_x27___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_localDeclDependsOn_x27___spec__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_StateRefT_x27_get___at_Lean_MetavarContext_instMonadMCtxStateRefT_x27MetavarContextST___spec__1(lean_object*); @@ -173,6 +172,7 @@ LEAN_EXPORT lean_object* l_Lean_assignExprMVar___rarg___lambda__1(lean_object*, LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__40(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_anyM___at_Lean_hasAssignableMVar___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__104___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_instantiateLocalDeclMVars(lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__52(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_exprDependsOn_x27___spec__10(lean_object*, lean_object*, lean_object*); @@ -188,7 +188,6 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateMVarsCore__ LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_exprDependsOn___spec__4___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isExprMVarAssignable(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__71___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_exprDependsOn___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_localDeclDependsOn_x27___spec__44(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__99___boxed(lean_object*, lean_object*, lean_object*); @@ -215,7 +214,6 @@ LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_localDeclDependsOn_x LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_getInScope___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_instantiateExprMVars___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___at_Lean_MetavarContext_getExprAssignmentDomain___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_assignLevelMVar___at_Lean_instantiateMVarsCore___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_exprDependsOn___spec__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__13___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -267,7 +265,6 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__102___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_abstractRange(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_assignDelayedMVar___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__6___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__12___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -317,7 +314,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVar static lean_object* l_Lean_instantiateExprMVars___rarg___lambda__15___closed__3; static lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadCacheExprStructEqExprM___closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__12___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__28(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn___spec__22(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_hasAssignableLevelMVar___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -341,6 +337,7 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*) LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at_Lean_instantiateLCtxMVars___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateExprMVars___rarg___lambda__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateExprMVars___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Nat_anyAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__50(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_localDeclDependsOn___spec__33___boxed(lean_object*, lean_object*, lean_object*); @@ -398,10 +395,10 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_localDeclDependsOn___spec__41___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_exprDependsOn___spec__14(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__43___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__29___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_isLevelMVarAssignable___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getDelayedMVarRoot___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_localDeclDependsOn___spec__44___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__29___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__10(lean_object*); @@ -428,7 +425,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__27(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__26___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_localDeclDependsOn___spec__10(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_instantiateExprMVars___spec__12___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__56___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__29(lean_object*); @@ -453,6 +449,7 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedLocalInstance___closed__3; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_getExprAssignmentDomain(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateMVarsCore___spec__42___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -501,8 +498,6 @@ LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__9___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__40___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn_x27___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__116___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__34___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -581,6 +576,7 @@ LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___rarg___lambda__1(lean_ob LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insert___at_Lean_MetavarContext_addExprMVarDecl___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__25(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__14(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_elimMVarDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_localDeclDependsOn___spec__18(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_instMonadMCtxStateRefT_x27MetavarContextST(lean_object*); @@ -608,6 +604,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_exprDependsOn_x27___spec__22___boxed(lean_object*, lean_object*); static lean_object* l_Lean_MetavarKind_noConfusion___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_findLocalDeclDependsOn___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_localDeclDependsOn___spec__45___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__56(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_replace___at___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit___spec__7(lean_object*, lean_object*, lean_object*); @@ -624,6 +621,7 @@ static lean_object* l_Lean_instantiateLCtxMVars___rarg___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__39___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateExprMVars___rarg___lambda__19(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_exprDependsOn_x27___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_isUnaryNode___rarg(lean_object*); @@ -696,7 +694,6 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_localDeclDependsOn LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_exprDependsOn_x27___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__35(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_instantiateExprMVars___spec__15___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_erase___at_Lean_eraseDelayedMVar___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_LevelMVarToParam_visitLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__14___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -725,6 +722,7 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_exprDependsOn_x27___spec__5___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_isMVarDelayedAssigned(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__27___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_exprDependsOn_x27___spec__7___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_hasAssignableMVar___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__80(lean_object*, lean_object*, size_t, size_t); @@ -736,13 +734,13 @@ LEAN_EXPORT lean_object* l_Lean_instantiateMVarDeclMVars___rarg___lambda__3(lean LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_instMonadMCtxM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__98(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__38___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__5(size_t, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_instantiateExprMVars___spec__15___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__10___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_instantiateLCtxMVars___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instantiateLevelMVars___rarg___lambda__1___closed__4; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT uint8_t l_Lean_instBEqLocalInstance(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_LevelMVarToParam_mkParamName(lean_object*, lean_object*); @@ -813,7 +811,6 @@ LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentA LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_localDeclDependsOn_x27___spec__62(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_setMVarType(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedMetavarDecl___closed__2; LEAN_EXPORT lean_object* l_Lean_MetavarContext_decls___default; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -857,7 +854,6 @@ LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_instantiateExprM LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_instantiateExprMVars___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashSetImp_insert___at___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__31___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar___rarg___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__38___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_getFVar_x21(lean_object*, lean_object*); @@ -919,7 +915,6 @@ LEAN_EXPORT lean_object* l_Lean_assignLevelMVar___at_Lean_instantiateMVarsCore__ LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__95___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at_Lean_MetavarContext_LevelMVarToParam_main___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_instantiateExprMVars___spec__10(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instantiateLevelMVars___rarg___lambda__1___closed__1; LEAN_EXPORT lean_object* l_modify___at_Lean_instMonadMCtxStateRefT_x27MetavarContextST___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__78(lean_object*, lean_object*); @@ -1001,7 +996,6 @@ LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAd LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_getInScope___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_localDeclDependsOn___spec__21___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_localDeclDependsOn_x27___spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_foldlM___at_Lean_instantiateLCtxMVars___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__25(lean_object*); @@ -1058,7 +1052,6 @@ lean_object* lean_expr_update_proj(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_instantiateMVarsCore___spec__17___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_collectForwardDeps___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_instantiateExprMVars___spec__9___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1069,7 +1062,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__38(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_eraseDelayedMVar___spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_reprMetavarKind____x40_Lean_MetavarContext___hyg_101____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVarDeclMVars___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___rarg___lambda__1(lean_object*); @@ -1174,13 +1166,13 @@ LEAN_EXPORT lean_object* l_Std_mkHashSet___at_Lean_DependsOn_State_visited___def LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_exprDependsOn_x27___spec__4(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__27(lean_object*, lean_object*); static size_t l_Std_PersistentHashMap_findAux___at_Lean_getLevelMVarAssignment_x3f___spec__2___closed__2; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_localDeclDependsOn_x27___spec__5___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MetavarContext_MkBinding_instToStringException___closed__5; extern uint8_t l_instInhabitedBool; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__112___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_instToStringException(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__77(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_foldlM___at_Lean_MetavarContext_getExprAssignmentDomain___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1188,7 +1180,6 @@ LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_localDeclDependsOn___sp LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_preserveOrder(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_hasAssignedMVar___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isExprMVarAssignable___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__30___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isExprMVarAssigned___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__19___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -1196,7 +1187,6 @@ LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_collectForwardDeps___la LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_localDeclDependsOn_x27___spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_assignLevelMVar___at_Lean_MetavarContext_LevelMVarToParam_visitLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_instantiateExprMVars___spec__23(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__22___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_instantiateMVarDeclMVars___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1210,6 +1200,7 @@ LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_localDeclDependsOn_x27_ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__41(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_exprDependsOn_x27___spec__17(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_instantiateExprMVars___rarg___lambda__11___closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn_x27___spec__58(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_localDeclDependsOn_x27___spec__63___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_exprDependsOn___spec__13___boxed(lean_object*, lean_object*, lean_object*); @@ -1239,13 +1230,11 @@ LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_instantiateExprMVars_ LEAN_EXPORT lean_object* l_Lean_instantiateExprMVars___rarg___lambda__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVars___at_Lean_instantiateExprMVars___spec__15___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn_x27___spec__32(lean_object*, lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__25___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn_x27___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_hasAssignableLevelMVar(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__82___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_eraseDelayedMVar___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_localDeclDependsOn___spec__26(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t, uint8_t); @@ -1314,13 +1303,13 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn___spec__ LEAN_EXPORT lean_object* l_Lean_localDeclDependsOn___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__110___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_eraseAux___at_Lean_MetavarContext_setMVarUserName___spec__2(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__8(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_MetavarContext_usedAssignment___default; LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_instantiateMVarsCore___spec__3(lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_instMonadMCtxM___lambda__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getDelayedMVarRoot___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__45(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_assignDelayedMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_collectForwardDeps(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__28(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -1387,6 +1376,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_instantiateExprMVars___rarg___lambda__13___closed__2; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elim___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__70___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_instantiateMVarsCore___spec__18___boxed(lean_object*, lean_object*); @@ -1420,7 +1410,6 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__42___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__32(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_mkLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_erase___at_Lean_eraseDelayedMVar___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_dependsOn___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at_Lean_localDeclDependsOn___spec__20(lean_object*, lean_object*); @@ -1466,6 +1455,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore__ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__21(lean_object*); LEAN_EXPORT lean_object* l_StateT_bind___at_Lean_DependsOn_instMonadMCtxM___spec__2___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_MetavarContext_findUserName_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__10(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_localDeclDependsOn___spec__45(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__21(lean_object*, lean_object*); @@ -1541,7 +1531,6 @@ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_v LEAN_EXPORT lean_object* l_Lean_exprDependsOn_x27___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_hasAssignableLevelMVar___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__41___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_exprDependsOn_x27___spec__8(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_mkForall(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*); @@ -1664,7 +1653,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MetavarContext_getE LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn___spec__38(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp___spec__1(lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); lean_object* l_Nat_foldRevM_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar___rarg(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__30(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_localDeclDependsOn_x27___spec__38___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__22___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1785,6 +1773,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarCo lean_object* l_runST___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__23___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_exprDependsOn___spec__16___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn_x27___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_localDeclDependsOn___spec__42(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1808,7 +1797,6 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_hasAssignedMVar___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__20___rarg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__47___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__2(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_exprDependsOn___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Repr_addAppParen(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_toStringAux___at_Lean_MetavarContext_MkBinding_instToStringException___spec__3___boxed(lean_object*, lean_object*); @@ -3605,33 +3593,15 @@ return x_7; else { lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_4, 0); -x_9 = lean_ctor_get(x_8, 1); -x_10 = l_Lean_Expr_getAppFn(x_9); -if (lean_obj_tag(x_10) == 2) -{ -lean_object* x_11; lean_object* x_12; lean_dec(x_2); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -x_12 = l_Lean_getDelayedMVarRoot___rarg(x_1, x_3, x_11); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_10); -lean_dec(x_3); -x_13 = lean_ctor_get(x_1, 0); -lean_inc(x_13); -lean_dec(x_1); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_apply_2(x_14, lean_box(0), x_2); -return x_15; -} +x_8 = lean_ctor_get(x_4, 0); +lean_inc(x_8); +lean_dec(x_4); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = l_Lean_getDelayedMVarRoot___rarg(x_1, x_3, x_9); +return x_10; } } } @@ -3645,7 +3615,7 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); x_5 = l_Lean_getDelayedMVarAssignment_x3f___rarg(x_1, x_2, x_3); -x_6 = lean_alloc_closure((void*)(l_Lean_getDelayedMVarRoot___rarg___lambda__1___boxed), 4, 3); +x_6 = lean_alloc_closure((void*)(l_Lean_getDelayedMVarRoot___rarg___lambda__1), 4, 3); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, x_3); lean_closure_set(x_6, 2, x_2); @@ -3661,15 +3631,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_getDelayedMVarRoot___rarg), 3, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_getDelayedMVarRoot___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_getDelayedMVarRoot___rarg___lambda__1(x_1, x_2, x_3, x_4); -lean_dec(x_4); -return x_5; -} -} LEAN_EXPORT uint8_t l_Std_PersistentHashMap_containsAtAux___at_Lean_isLevelMVarAssigned___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -4507,7 +4468,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_isLevelMVarAssignable___rarg___lambda__1___closed__1; x_2 = l_Lean_isLevelMVarAssignable___rarg___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(354u); +x_3 = lean_unsigned_to_nat(353u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___rarg___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4789,7 +4750,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_isLevelMVarAssignable___rarg___lambda__1___closed__1; x_2 = l_Lean_MetavarContext_getDecl___closed__1; -x_3 = lean_unsigned_to_nat(359u); +x_3 = lean_unsigned_to_nat(358u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_MetavarContext_getDecl___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8262,785 +8223,6 @@ x_8 = l_Std_PersistentHashMap_insertAux___at_Lean_assignDelayedMVar___spec__2(x_ return x_8; } } -LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_eraseDelayedMVar___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_1); -x_5 = lean_nat_dec_lt(x_3, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_fget(x_1, x_3); -x_8 = lean_name_eq(x_7, x_2); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_3, x_9); -lean_dec(x_3); -x_3 = x_10; -goto _start; -} -else -{ -lean_object* x_12; -x_12 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_12, 0, x_3); -return x_12; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = 5; -x_6 = l_Std_PersistentHashMap_findAux___at_Lean_getLevelMVarAssignment_x3f___spec__2___closed__2; -x_7 = lean_usize_land(x_2, x_6); -x_8 = lean_usize_to_nat(x_7); -x_9 = lean_box(2); -x_10 = lean_array_get(x_9, x_4, x_8); -switch (lean_obj_tag(x_10)) { -case 0: -{ -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_name_eq(x_3, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -uint8_t x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_8); -lean_dec(x_4); -x_13 = 0; -x_14 = lean_box(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_1); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -else -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_1); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_17 = lean_ctor_get(x_1, 0); -lean_dec(x_17); -x_18 = lean_array_set(x_4, x_8, x_9); -lean_dec(x_8); -lean_ctor_set(x_1, 0, x_18); -x_19 = 1; -x_20 = lean_box(x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_1); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_1); -x_22 = lean_array_set(x_4, x_8, x_9); -lean_dec(x_8); -x_23 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = 1; -x_25 = lean_box(x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_23); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -case 1: -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_10); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; size_t x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_28 = lean_ctor_get(x_10, 0); -x_29 = lean_array_set(x_4, x_8, x_9); -x_30 = lean_usize_shift_right(x_2, x_5); -x_31 = l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2(x_28, x_30, x_3); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) -{ -uint8_t x_34; -lean_dec(x_29); -lean_free_object(x_10); -lean_dec(x_8); -x_34 = !lean_is_exclusive(x_31); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_31, 1); -lean_dec(x_35); -x_36 = lean_ctor_get(x_31, 0); -lean_dec(x_36); -x_37 = 0; -x_38 = lean_box(x_37); -lean_ctor_set(x_31, 1, x_38); -lean_ctor_set(x_31, 0, x_1); -return x_31; -} -else -{ -uint8_t x_39; lean_object* x_40; lean_object* x_41; -lean_dec(x_31); -x_39 = 0; -x_40 = lean_box(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_1); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -else -{ -uint8_t x_42; -x_42 = !lean_is_exclusive(x_1); -if (x_42 == 0) -{ -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_1, 0); -lean_dec(x_43); -x_44 = !lean_is_exclusive(x_31); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_31, 0); -x_46 = lean_ctor_get(x_31, 1); -lean_dec(x_46); -x_47 = l_Std_PersistentHashMap_isUnaryNode___rarg(x_45); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; uint8_t x_49; lean_object* x_50; -lean_ctor_set(x_10, 0, x_45); -x_48 = lean_array_set(x_29, x_8, x_10); -lean_dec(x_8); -lean_ctor_set(x_1, 0, x_48); -x_49 = 1; -x_50 = lean_box(x_49); -lean_ctor_set(x_31, 1, x_50); -lean_ctor_set(x_31, 0, x_1); -return x_31; -} -else -{ -lean_object* x_51; uint8_t x_52; -lean_free_object(x_31); -lean_dec(x_45); -lean_free_object(x_10); -x_51 = lean_ctor_get(x_47, 0); -lean_inc(x_51); -lean_dec(x_47); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; -x_53 = lean_ctor_get(x_51, 0); -x_54 = lean_ctor_get(x_51, 1); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -x_56 = lean_array_set(x_29, x_8, x_55); -lean_dec(x_8); -lean_ctor_set(x_1, 0, x_56); -x_57 = 1; -x_58 = lean_box(x_57); -lean_ctor_set(x_51, 1, x_58); -lean_ctor_set(x_51, 0, x_1); -return x_51; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; -x_59 = lean_ctor_get(x_51, 0); -x_60 = lean_ctor_get(x_51, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_51); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -x_62 = lean_array_set(x_29, x_8, x_61); -lean_dec(x_8); -lean_ctor_set(x_1, 0, x_62); -x_63 = 1; -x_64 = lean_box(x_63); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_1); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_31, 0); -lean_inc(x_66); -lean_dec(x_31); -x_67 = l_Std_PersistentHashMap_isUnaryNode___rarg(x_66); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; -lean_ctor_set(x_10, 0, x_66); -x_68 = lean_array_set(x_29, x_8, x_10); -lean_dec(x_8); -lean_ctor_set(x_1, 0, x_68); -x_69 = 1; -x_70 = lean_box(x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_1); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_66); -lean_free_object(x_10); -x_72 = lean_ctor_get(x_67, 0); -lean_inc(x_72); -lean_dec(x_67); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_75 = x_72; -} else { - lean_dec_ref(x_72); - x_75 = lean_box(0); -} -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -x_77 = lean_array_set(x_29, x_8, x_76); -lean_dec(x_8); -lean_ctor_set(x_1, 0, x_77); -x_78 = 1; -x_79 = lean_box(x_78); -if (lean_is_scalar(x_75)) { - x_80 = lean_alloc_ctor(0, 2, 0); -} else { - x_80 = x_75; -} -lean_ctor_set(x_80, 0, x_1); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_1); -x_81 = lean_ctor_get(x_31, 0); -lean_inc(x_81); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_82 = x_31; -} else { - lean_dec_ref(x_31); - x_82 = lean_box(0); -} -x_83 = l_Std_PersistentHashMap_isUnaryNode___rarg(x_81); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; -lean_ctor_set(x_10, 0, x_81); -x_84 = lean_array_set(x_29, x_8, x_10); -lean_dec(x_8); -x_85 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_85, 0, x_84); -x_86 = 1; -x_87 = lean_box(x_86); -if (lean_is_scalar(x_82)) { - x_88 = lean_alloc_ctor(0, 2, 0); -} else { - x_88 = x_82; -} -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_87); -return x_88; -} -else -{ -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; uint8_t x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_82); -lean_dec(x_81); -lean_free_object(x_10); -x_89 = lean_ctor_get(x_83, 0); -lean_inc(x_89); -lean_dec(x_83); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_92 = x_89; -} else { - lean_dec_ref(x_89); - x_92 = lean_box(0); -} -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -x_94 = lean_array_set(x_29, x_8, x_93); -lean_dec(x_8); -x_95 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_95, 0, x_94); -x_96 = 1; -x_97 = lean_box(x_96); -if (lean_is_scalar(x_92)) { - x_98 = lean_alloc_ctor(0, 2, 0); -} else { - x_98 = x_92; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -} -else -{ -lean_object* x_99; lean_object* x_100; size_t x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_99 = lean_ctor_get(x_10, 0); -lean_inc(x_99); -lean_dec(x_10); -x_100 = lean_array_set(x_4, x_8, x_9); -x_101 = lean_usize_shift_right(x_2, x_5); -x_102 = l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2(x_99, x_101, x_3); -x_103 = lean_ctor_get(x_102, 1); -lean_inc(x_103); -x_104 = lean_unbox(x_103); -lean_dec(x_103); -if (x_104 == 0) -{ -lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_100); -lean_dec(x_8); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_105 = x_102; -} else { - lean_dec_ref(x_102); - x_105 = lean_box(0); -} -x_106 = 0; -x_107 = lean_box(x_106); -if (lean_is_scalar(x_105)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_105; -} -lean_ctor_set(x_108, 0, x_1); -lean_ctor_set(x_108, 1, x_107); -return x_108; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - x_109 = x_1; -} else { - lean_dec_ref(x_1); - x_109 = lean_box(0); -} -x_110 = lean_ctor_get(x_102, 0); -lean_inc(x_110); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_111 = x_102; -} else { - lean_dec_ref(x_102); - x_111 = lean_box(0); -} -x_112 = l_Std_PersistentHashMap_isUnaryNode___rarg(x_110); -if (lean_obj_tag(x_112) == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_110); -x_114 = lean_array_set(x_100, x_8, x_113); -lean_dec(x_8); -if (lean_is_scalar(x_109)) { - x_115 = lean_alloc_ctor(0, 1, 0); -} else { - x_115 = x_109; -} -lean_ctor_set(x_115, 0, x_114); -x_116 = 1; -x_117 = lean_box(x_116); -if (lean_is_scalar(x_111)) { - x_118 = lean_alloc_ctor(0, 2, 0); -} else { - x_118 = x_111; -} -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_117); -return x_118; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_111); -lean_dec(x_110); -x_119 = lean_ctor_get(x_112, 0); -lean_inc(x_119); -lean_dec(x_112); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_122 = x_119; -} else { - lean_dec_ref(x_119); - x_122 = lean_box(0); -} -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -x_124 = lean_array_set(x_100, x_8, x_123); -lean_dec(x_8); -if (lean_is_scalar(x_109)) { - x_125 = lean_alloc_ctor(0, 1, 0); -} else { - x_125 = x_109; -} -lean_ctor_set(x_125, 0, x_124); -x_126 = 1; -x_127 = lean_box(x_126); -if (lean_is_scalar(x_122)) { - x_128 = lean_alloc_ctor(0, 2, 0); -} else { - x_128 = x_122; -} -lean_ctor_set(x_128, 0, x_125); -lean_ctor_set(x_128, 1, x_127); -return x_128; -} -} -} -} -default: -{ -uint8_t x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_8); -lean_dec(x_4); -x_129 = 0; -x_130 = lean_box(x_129); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_1); -lean_ctor_set(x_131, 1, x_130); -return x_131; -} -} -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_1, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_1, 1); -lean_inc(x_133); -x_134 = lean_unsigned_to_nat(0u); -x_135 = l_Array_indexOfAux___at_Lean_eraseDelayedMVar___spec__3(x_132, x_3, x_134); -if (lean_obj_tag(x_135) == 0) -{ -uint8_t x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_133); -lean_dec(x_132); -x_136 = 0; -x_137 = lean_box(x_136); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_1); -lean_ctor_set(x_138, 1, x_137); -return x_138; -} -else -{ -uint8_t x_139; -x_139 = !lean_is_exclusive(x_1); -if (x_139 == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; -x_140 = lean_ctor_get(x_1, 1); -lean_dec(x_140); -x_141 = lean_ctor_get(x_1, 0); -lean_dec(x_141); -x_142 = lean_ctor_get(x_135, 0); -lean_inc(x_142); -lean_dec(x_135); -x_143 = l_Array_eraseIdx_x27___rarg(x_132, x_142); -x_144 = l_Array_eraseIdx_x27___rarg(x_133, x_142); -lean_dec(x_142); -lean_ctor_set(x_1, 1, x_144); -lean_ctor_set(x_1, 0, x_143); -x_145 = 1; -x_146 = lean_box(x_145); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_1); -lean_ctor_set(x_147, 1, x_146); -return x_147; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_1); -x_148 = lean_ctor_get(x_135, 0); -lean_inc(x_148); -lean_dec(x_135); -x_149 = l_Array_eraseIdx_x27___rarg(x_132, x_148); -x_150 = l_Array_eraseIdx_x27___rarg(x_133, x_148); -lean_dec(x_148); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -x_152 = 1; -x_153 = lean_box(x_152); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_153); -return x_154; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_erase___at_Lean_eraseDelayedMVar___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; uint64_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_475_(x_2); -x_7 = lean_uint64_to_usize(x_6); -x_8 = l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2(x_4, x_7, x_2); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -x_10 = lean_unbox(x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_8, 0); -lean_inc(x_11); -lean_dec(x_8); -lean_ctor_set(x_1, 0, x_11); -return x_1; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_5, x_13); -lean_dec(x_5); -lean_ctor_set(x_1, 1, x_14); -lean_ctor_set(x_1, 0, x_12); -return x_1; -} -} -else -{ -lean_object* x_15; lean_object* x_16; uint64_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_15 = lean_ctor_get(x_1, 0); -x_16 = lean_ctor_get(x_1, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_1); -x_17 = l___private_Lean_Level_0__Lean_hashMVarId____x40_Lean_Level___hyg_475_(x_2); -x_18 = lean_uint64_to_usize(x_17); -x_19 = l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2(x_15, x_18, x_2); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -x_21 = lean_unbox(x_20); -lean_dec(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_19, 0); -lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_16); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_19, 0); -lean_inc(x_24); -lean_dec(x_19); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_sub(x_16, x_25); -lean_dec(x_16); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_24); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_2); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_4 = lean_ctor_get(x_2, 7); -x_5 = l_Std_PersistentHashMap_erase___at_Lean_eraseDelayedMVar___spec__1(x_4, x_1); -x_6 = 1; -lean_ctor_set(x_2, 7, x_5); -lean_ctor_set_uint8(x_2, sizeof(void*)*8, x_6); -return x_2; -} -else -{ -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; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_ctor_get(x_2, 1); -x_9 = lean_ctor_get(x_2, 2); -x_10 = lean_ctor_get(x_2, 3); -x_11 = lean_ctor_get(x_2, 4); -x_12 = lean_ctor_get(x_2, 5); -x_13 = lean_ctor_get(x_2, 6); -x_14 = lean_ctor_get(x_2, 7); -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_8); -lean_inc(x_7); -lean_dec(x_2); -x_15 = l_Std_PersistentHashMap_erase___at_Lean_eraseDelayedMVar___spec__1(x_14, x_1); -x_16 = 1; -x_17 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_17, 0, x_7); -lean_ctor_set(x_17, 1, x_8); -lean_ctor_set(x_17, 2, x_9); -lean_ctor_set(x_17, 3, x_10); -lean_ctor_set(x_17, 4, x_11); -lean_ctor_set(x_17, 5, x_12); -lean_ctor_set(x_17, 6, x_13); -lean_ctor_set(x_17, 7, x_15); -lean_ctor_set_uint8(x_17, sizeof(void*)*8, x_16); -return x_17; -} -} -} -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_alloc_closure((void*)(l_Lean_eraseDelayedMVar___rarg___lambda__1___boxed), 2, 1); -lean_closure_set(x_4, 0, x_2); -x_5 = lean_apply_1(x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_eraseDelayedMVar___rarg), 2, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_eraseDelayedMVar___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_indexOfAux___at_Lean_eraseDelayedMVar___spec__3(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; lean_object* x_5; -x_4 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_5 = l_Std_PersistentHashMap_eraseAux___at_Lean_eraseDelayedMVar___spec__2(x_1, x_4, x_3); -lean_dec(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Std_PersistentHashMap_erase___at_Lean_eraseDelayedMVar___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_PersistentHashMap_erase___at_Lean_eraseDelayedMVar___spec__1(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_eraseDelayedMVar___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_eraseDelayedMVar___rarg___lambda__1(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} static lean_object* _init_l_Lean_instantiateLevelMVars___rarg___lambda__1___closed__1() { _start: { @@ -13205,45 +12387,46 @@ x_19 = lean_array_get_size(x_16); x_20 = lean_nat_dec_lt(x_18, x_19); if (x_20 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = l_Lean_mkMVar(x_17); lean_inc(x_6); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_21 = l_Lean_instantiateExprMVars___rarg(x_1, x_2, x_3, x_4, x_17, x_6); +x_22 = l_Lean_instantiateExprMVars___rarg(x_1, x_2, x_3, x_4, x_21, x_6); lean_inc(x_9); -x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__6___boxed), 12, 11); -lean_closure_set(x_22, 0, x_18); -lean_closure_set(x_22, 1, x_1); -lean_closure_set(x_22, 2, x_2); -lean_closure_set(x_22, 3, x_3); -lean_closure_set(x_22, 4, x_4); -lean_closure_set(x_22, 5, x_8); -lean_closure_set(x_22, 6, x_6); -lean_closure_set(x_22, 7, x_16); -lean_closure_set(x_22, 8, x_19); -lean_closure_set(x_22, 9, x_9); -lean_closure_set(x_22, 10, x_5); -x_23 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_21, x_22); -return x_23; +x_23 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__6___boxed), 12, 11); +lean_closure_set(x_23, 0, x_18); +lean_closure_set(x_23, 1, x_1); +lean_closure_set(x_23, 2, x_2); +lean_closure_set(x_23, 3, x_3); +lean_closure_set(x_23, 4, x_4); +lean_closure_set(x_23, 5, x_8); +lean_closure_set(x_23, 6, x_6); +lean_closure_set(x_23, 7, x_16); +lean_closure_set(x_23, 8, x_19); +lean_closure_set(x_23, 9, x_9); +lean_closure_set(x_23, 10, x_5); +x_24 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_22, x_23); +return x_24; } else { -size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); -x_24 = lean_usize_of_nat(x_18); +x_25 = lean_usize_of_nat(x_18); lean_dec(x_18); -x_25 = 0; +x_26 = 0; lean_inc(x_1); -x_26 = l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__29___rarg(x_1, x_2, x_3, x_4, x_24, x_25, x_8, x_6); -x_27 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__1), 3, 2); -lean_closure_set(x_27, 0, x_5); -lean_closure_set(x_27, 1, x_1); -x_28 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_26, x_27); -return x_28; +x_27 = l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__29___rarg(x_1, x_2, x_3, x_4, x_25, x_26, x_8, x_6); +x_28 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars___spec__48___rarg___lambda__1), 3, 2); +lean_closure_set(x_28, 0, x_5); +lean_closure_set(x_28, 1, x_1); +x_29 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_27, x_28); +return x_29; } } } @@ -22274,248 +21457,249 @@ x_152 = lean_array_get_size(x_149); x_153 = lean_nat_dec_lt(x_151, x_152); if (x_153 == 0) { -lean_object* x_154; -x_154 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_150, x_5, x_6, x_148); -if (lean_obj_tag(x_154) == 0) +lean_object* x_154; lean_object* x_155; +x_154 = l_Lean_mkMVar(x_150); +x_155 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_154, x_5, x_6, x_148); +if (lean_obj_tag(x_155) == 0) { -lean_object* x_155; lean_object* x_156; uint8_t x_157; -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_154, 1); +lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_156 = lean_ctor_get(x_155, 0); lean_inc(x_156); -lean_dec(x_154); -x_157 = l_Lean_Expr_hasExprMVar(x_155); -if (x_157 == 0) -{ -size_t x_158; size_t x_159; lean_object* x_160; -lean_dec(x_2); -x_158 = lean_usize_of_nat(x_151); -lean_dec(x_151); -x_159 = 0; -x_160 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__21___rarg(x_1, x_158, x_159, x_3, x_5, x_6, x_156); -lean_dec(x_1); -if (lean_obj_tag(x_160) == 0) -{ -uint8_t x_161; -x_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_162 = lean_ctor_get(x_160, 0); -x_163 = lean_expr_abstract(x_155, x_149); -lean_dec(x_149); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); lean_dec(x_155); -x_164 = lean_unsigned_to_nat(0u); -x_165 = lean_expr_instantiate_rev_range(x_163, x_164, x_152, x_162); +x_158 = l_Lean_Expr_hasExprMVar(x_156); +if (x_158 == 0) +{ +size_t x_159; size_t x_160; lean_object* x_161; +lean_dec(x_2); +x_159 = lean_usize_of_nat(x_151); +lean_dec(x_151); +x_160 = 0; +x_161 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__21___rarg(x_1, x_159, x_160, x_3, x_5, x_6, x_157); +lean_dec(x_1); +if (lean_obj_tag(x_161) == 0) +{ +uint8_t x_162; +x_162 = !lean_is_exclusive(x_161); +if (x_162 == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_163 = lean_ctor_get(x_161, 0); +x_164 = lean_expr_abstract(x_156, x_149); +lean_dec(x_149); +lean_dec(x_156); +x_165 = lean_unsigned_to_nat(0u); +x_166 = lean_expr_instantiate_rev_range(x_164, x_165, x_152, x_163); +lean_dec(x_164); +x_167 = lean_array_get_size(x_163); +x_168 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_167, x_163, x_152, x_166); lean_dec(x_163); -x_166 = lean_array_get_size(x_162); -x_167 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_166, x_162, x_152, x_165); -lean_dec(x_162); -lean_dec(x_166); -lean_ctor_set(x_160, 0, x_167); -return x_160; +lean_dec(x_167); +lean_ctor_set(x_161, 0, x_168); +return x_161; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_168 = lean_ctor_get(x_160, 0); -x_169 = lean_ctor_get(x_160, 1); +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; +x_169 = lean_ctor_get(x_161, 0); +x_170 = lean_ctor_get(x_161, 1); +lean_inc(x_170); lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_160); -x_170 = lean_expr_abstract(x_155, x_149); +lean_dec(x_161); +x_171 = lean_expr_abstract(x_156, x_149); lean_dec(x_149); -lean_dec(x_155); -x_171 = lean_unsigned_to_nat(0u); -x_172 = lean_expr_instantiate_rev_range(x_170, x_171, x_152, x_168); -lean_dec(x_170); -x_173 = lean_array_get_size(x_168); -x_174 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_173, x_168, x_152, x_172); -lean_dec(x_168); -lean_dec(x_173); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_169); -return x_175; +lean_dec(x_156); +x_172 = lean_unsigned_to_nat(0u); +x_173 = lean_expr_instantiate_rev_range(x_171, x_172, x_152, x_169); +lean_dec(x_171); +x_174 = lean_array_get_size(x_169); +x_175 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_174, x_169, x_152, x_173); +lean_dec(x_169); +lean_dec(x_174); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_170); +return x_176; } } else { -uint8_t x_176; -lean_dec(x_155); +uint8_t x_177; +lean_dec(x_156); lean_dec(x_152); lean_dec(x_149); -x_176 = !lean_is_exclusive(x_160); -if (x_176 == 0) +x_177 = !lean_is_exclusive(x_161); +if (x_177 == 0) { -return x_160; +return x_161; } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_160, 0); -x_178 = lean_ctor_get(x_160, 1); +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = lean_ctor_get(x_161, 0); +x_179 = lean_ctor_get(x_161, 1); +lean_inc(x_179); lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_160); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_178); -return x_179; +lean_dec(x_161); +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +return x_180; } } } else { -size_t x_180; size_t x_181; lean_object* x_182; -lean_dec(x_155); +size_t x_181; size_t x_182; lean_object* x_183; +lean_dec(x_156); lean_dec(x_152); lean_dec(x_149); -x_180 = lean_usize_of_nat(x_151); +x_181 = lean_usize_of_nat(x_151); lean_dec(x_151); -x_181 = 0; -x_182 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__22___rarg(x_1, x_180, x_181, x_3, x_5, x_6, x_156); +x_182 = 0; +x_183 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__22___rarg(x_1, x_181, x_182, x_3, x_5, x_6, x_157); lean_dec(x_1); -if (lean_obj_tag(x_182) == 0) +if (lean_obj_tag(x_183) == 0) { -uint8_t x_183; -x_183 = !lean_is_exclusive(x_182); -if (x_183 == 0) +uint8_t x_184; +x_184 = !lean_is_exclusive(x_183); +if (x_184 == 0) { -lean_object* x_184; lean_object* x_185; -x_184 = lean_ctor_get(x_182, 0); -x_185 = l_Lean_mkAppN(x_2, x_184); -lean_ctor_set(x_182, 0, x_185); -return x_182; +lean_object* x_185; lean_object* x_186; +x_185 = lean_ctor_get(x_183, 0); +x_186 = l_Lean_mkAppN(x_2, x_185); +lean_ctor_set(x_183, 0, x_186); +return x_183; } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_186 = lean_ctor_get(x_182, 0); -x_187 = lean_ctor_get(x_182, 1); +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_187 = lean_ctor_get(x_183, 0); +x_188 = lean_ctor_get(x_183, 1); +lean_inc(x_188); lean_inc(x_187); -lean_inc(x_186); -lean_dec(x_182); -x_188 = l_Lean_mkAppN(x_2, x_186); -x_189 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_189, 0, x_188); -lean_ctor_set(x_189, 1, x_187); -return x_189; +lean_dec(x_183); +x_189 = l_Lean_mkAppN(x_2, x_187); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_188); +return x_190; } } else { -uint8_t x_190; +uint8_t x_191; lean_dec(x_2); -x_190 = !lean_is_exclusive(x_182); -if (x_190 == 0) +x_191 = !lean_is_exclusive(x_183); +if (x_191 == 0) { -return x_182; +return x_183; } else { -lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_191 = lean_ctor_get(x_182, 0); -x_192 = lean_ctor_get(x_182, 1); +lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_192 = lean_ctor_get(x_183, 0); +x_193 = lean_ctor_get(x_183, 1); +lean_inc(x_193); lean_inc(x_192); -lean_inc(x_191); -lean_dec(x_182); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); -return x_193; +lean_dec(x_183); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_192); +lean_ctor_set(x_194, 1, x_193); +return x_194; } } } } else { -uint8_t x_194; +uint8_t x_195; lean_dec(x_152); lean_dec(x_151); lean_dec(x_149); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_194 = !lean_is_exclusive(x_154); -if (x_194 == 0) +x_195 = !lean_is_exclusive(x_155); +if (x_195 == 0) { -return x_154; +return x_155; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_154, 0); -x_196 = lean_ctor_get(x_154, 1); +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_155, 0); +x_197 = lean_ctor_get(x_155, 1); +lean_inc(x_197); lean_inc(x_196); -lean_inc(x_195); -lean_dec(x_154); -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_195); -lean_ctor_set(x_197, 1, x_196); -return x_197; +lean_dec(x_155); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +return x_198; } } } else { -size_t x_198; size_t x_199; lean_object* x_200; +size_t x_199; size_t x_200; lean_object* x_201; lean_dec(x_152); lean_dec(x_150); lean_dec(x_149); -x_198 = lean_usize_of_nat(x_151); +x_199 = lean_usize_of_nat(x_151); lean_dec(x_151); -x_199 = 0; -x_200 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__23___rarg(x_1, x_198, x_199, x_3, x_5, x_6, x_148); +x_200 = 0; +x_201 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__23___rarg(x_1, x_199, x_200, x_3, x_5, x_6, x_148); lean_dec(x_1); -if (lean_obj_tag(x_200) == 0) +if (lean_obj_tag(x_201) == 0) { -uint8_t x_201; -x_201 = !lean_is_exclusive(x_200); -if (x_201 == 0) +uint8_t x_202; +x_202 = !lean_is_exclusive(x_201); +if (x_202 == 0) { -lean_object* x_202; lean_object* x_203; -x_202 = lean_ctor_get(x_200, 0); -x_203 = l_Lean_mkAppN(x_2, x_202); -lean_ctor_set(x_200, 0, x_203); -return x_200; +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_201, 0); +x_204 = l_Lean_mkAppN(x_2, x_203); +lean_ctor_set(x_201, 0, x_204); +return x_201; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_204 = lean_ctor_get(x_200, 0); -x_205 = lean_ctor_get(x_200, 1); +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_205 = lean_ctor_get(x_201, 0); +x_206 = lean_ctor_get(x_201, 1); +lean_inc(x_206); lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_200); -x_206 = l_Lean_mkAppN(x_2, x_204); -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_205); -return x_207; +lean_dec(x_201); +x_207 = l_Lean_mkAppN(x_2, x_205); +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_207); +lean_ctor_set(x_208, 1, x_206); +return x_208; } } else { -uint8_t x_208; +uint8_t x_209; lean_dec(x_2); -x_208 = !lean_is_exclusive(x_200); -if (x_208 == 0) +x_209 = !lean_is_exclusive(x_201); +if (x_209 == 0) { -return x_200; +return x_201; } else { -lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_200, 0); -x_210 = lean_ctor_get(x_200, 1); +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_201, 0); +x_211 = lean_ctor_get(x_201, 1); +lean_inc(x_211); lean_inc(x_210); -lean_inc(x_209); -lean_dec(x_200); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_209); -lean_ctor_set(x_211, 1, x_210); -return x_211; +lean_dec(x_201); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +return x_212; } } } @@ -22523,1484 +21707,1484 @@ return x_211; } else { -uint8_t x_212; +uint8_t x_213; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_212 = !lean_is_exclusive(x_100); -if (x_212 == 0) +x_213 = !lean_is_exclusive(x_100); +if (x_213 == 0) { return x_100; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_100, 0); -x_214 = lean_ctor_get(x_100, 1); +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_100, 0); +x_215 = lean_ctor_get(x_100, 1); +lean_inc(x_215); lean_inc(x_214); -lean_inc(x_213); lean_dec(x_100); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_214); +lean_ctor_set(x_216, 1, x_215); +return x_216; } } } case 3: { -uint8_t x_216; lean_object* x_217; +uint8_t x_217; lean_object* x_218; lean_dec(x_4); -x_216 = l_Lean_Expr_isMVar(x_2); -x_217 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_217) == 0) +x_217 = l_Lean_Expr_isMVar(x_2); +x_218 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_218) == 0) { -if (x_216 == 0) +if (x_217 == 0) { -lean_object* x_218; lean_object* x_219; lean_object* x_220; size_t x_221; size_t x_222; lean_object* x_223; -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; size_t x_222; size_t x_223; lean_object* x_224; +x_219 = lean_ctor_get(x_218, 0); lean_inc(x_219); -lean_dec(x_217); -x_220 = lean_array_get_size(x_3); -x_221 = lean_usize_of_nat(x_220); -lean_dec(x_220); -x_222 = 0; -x_223 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__24___rarg(x_1, x_221, x_222, x_3, x_5, x_6, x_219); -lean_dec(x_1); -if (lean_obj_tag(x_223) == 0) -{ -uint8_t x_224; -x_224 = !lean_is_exclusive(x_223); -if (x_224 == 0) -{ -lean_object* x_225; lean_object* x_226; -x_225 = lean_ctor_get(x_223, 0); -x_226 = l_Lean_mkAppN(x_218, x_225); -lean_ctor_set(x_223, 0, x_226); -return x_223; -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_227 = lean_ctor_get(x_223, 0); -x_228 = lean_ctor_get(x_223, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_223); -x_229 = l_Lean_mkAppN(x_218, x_227); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_228); -return x_230; -} -} -else -{ -uint8_t x_231; +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); lean_dec(x_218); -x_231 = !lean_is_exclusive(x_223); -if (x_231 == 0) +x_221 = lean_array_get_size(x_3); +x_222 = lean_usize_of_nat(x_221); +lean_dec(x_221); +x_223 = 0; +x_224 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__24___rarg(x_1, x_222, x_223, x_3, x_5, x_6, x_220); +lean_dec(x_1); +if (lean_obj_tag(x_224) == 0) { -return x_223; +uint8_t x_225; +x_225 = !lean_is_exclusive(x_224); +if (x_225 == 0) +{ +lean_object* x_226; lean_object* x_227; +x_226 = lean_ctor_get(x_224, 0); +x_227 = l_Lean_mkAppN(x_219, x_226); +lean_ctor_set(x_224, 0, x_227); +return x_224; } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_232 = lean_ctor_get(x_223, 0); -x_233 = lean_ctor_get(x_223, 1); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_228 = lean_ctor_get(x_224, 0); +x_229 = lean_ctor_get(x_224, 1); +lean_inc(x_229); +lean_inc(x_228); +lean_dec(x_224); +x_230 = l_Lean_mkAppN(x_219, x_228); +x_231 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_229); +return x_231; +} +} +else +{ +uint8_t x_232; +lean_dec(x_219); +x_232 = !lean_is_exclusive(x_224); +if (x_232 == 0) +{ +return x_224; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_224, 0); +x_234 = lean_ctor_get(x_224, 1); +lean_inc(x_234); lean_inc(x_233); -lean_inc(x_232); -lean_dec(x_223); -x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -return x_234; +lean_dec(x_224); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +return x_235; } } } else { -lean_object* x_235; lean_object* x_236; uint8_t x_237; -x_235 = lean_ctor_get(x_217, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_217, 1); +lean_object* x_236; lean_object* x_237; uint8_t x_238; +x_236 = lean_ctor_get(x_218, 0); lean_inc(x_236); -lean_dec(x_217); -x_237 = l_Lean_Expr_isLambda(x_235); -if (x_237 == 0) +x_237 = lean_ctor_get(x_218, 1); +lean_inc(x_237); +lean_dec(x_218); +x_238 = l_Lean_Expr_isLambda(x_236); +if (x_238 == 0) { -lean_object* x_238; size_t x_239; size_t x_240; lean_object* x_241; -x_238 = lean_array_get_size(x_3); -x_239 = lean_usize_of_nat(x_238); -lean_dec(x_238); -x_240 = 0; -x_241 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__25___rarg(x_1, x_239, x_240, x_3, x_5, x_6, x_236); +lean_object* x_239; size_t x_240; size_t x_241; lean_object* x_242; +x_239 = lean_array_get_size(x_3); +x_240 = lean_usize_of_nat(x_239); +lean_dec(x_239); +x_241 = 0; +x_242 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__25___rarg(x_1, x_240, x_241, x_3, x_5, x_6, x_237); lean_dec(x_1); -if (lean_obj_tag(x_241) == 0) +if (lean_obj_tag(x_242) == 0) { -uint8_t x_242; -x_242 = !lean_is_exclusive(x_241); -if (x_242 == 0) +uint8_t x_243; +x_243 = !lean_is_exclusive(x_242); +if (x_243 == 0) { -lean_object* x_243; lean_object* x_244; -x_243 = lean_ctor_get(x_241, 0); -x_244 = l_Lean_mkAppN(x_235, x_243); -lean_ctor_set(x_241, 0, x_244); -return x_241; +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_242, 0); +x_245 = l_Lean_mkAppN(x_236, x_244); +lean_ctor_set(x_242, 0, x_245); +return x_242; } else { -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_245 = lean_ctor_get(x_241, 0); -x_246 = lean_ctor_get(x_241, 1); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_246 = lean_ctor_get(x_242, 0); +x_247 = lean_ctor_get(x_242, 1); +lean_inc(x_247); lean_inc(x_246); -lean_inc(x_245); -lean_dec(x_241); -x_247 = l_Lean_mkAppN(x_235, x_245); -x_248 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_246); -return x_248; +lean_dec(x_242); +x_248 = l_Lean_mkAppN(x_236, x_246); +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_247); +return x_249; } } else { -uint8_t x_249; -lean_dec(x_235); -x_249 = !lean_is_exclusive(x_241); -if (x_249 == 0) +uint8_t x_250; +lean_dec(x_236); +x_250 = !lean_is_exclusive(x_242); +if (x_250 == 0) { -return x_241; +return x_242; } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_241, 0); -x_251 = lean_ctor_get(x_241, 1); +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_242, 0); +x_252 = lean_ctor_get(x_242, 1); +lean_inc(x_252); lean_inc(x_251); -lean_inc(x_250); -lean_dec(x_241); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_250); -lean_ctor_set(x_252, 1, x_251); -return x_252; +lean_dec(x_242); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_251); +lean_ctor_set(x_253, 1, x_252); +return x_253; } } } else { -lean_object* x_253; uint8_t x_254; lean_object* x_255; lean_object* x_256; +lean_object* x_254; uint8_t x_255; lean_object* x_256; lean_object* x_257; lean_dec(x_1); -x_253 = l_Array_reverse___rarg(x_3); -x_254 = 0; -x_255 = l_Lean_Expr_betaRev(x_235, x_253, x_254, x_254); -lean_dec(x_253); -x_256 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_255, x_5, x_6, x_236); -return x_256; +x_254 = l_Array_reverse___rarg(x_3); +x_255 = 0; +x_256 = l_Lean_Expr_betaRev(x_236, x_254, x_255, x_255); +lean_dec(x_254); +x_257 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_256, x_5, x_6, x_237); +return x_257; } } } else { -uint8_t x_257; +uint8_t x_258; lean_dec(x_3); lean_dec(x_1); -x_257 = !lean_is_exclusive(x_217); -if (x_257 == 0) +x_258 = !lean_is_exclusive(x_218); +if (x_258 == 0) { -return x_217; +return x_218; } else { -lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_258 = lean_ctor_get(x_217, 0); -x_259 = lean_ctor_get(x_217, 1); +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_218, 0); +x_260 = lean_ctor_get(x_218, 1); +lean_inc(x_260); lean_inc(x_259); -lean_inc(x_258); -lean_dec(x_217); -x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -return x_260; +lean_dec(x_218); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +return x_261; } } } case 4: { -uint8_t x_261; lean_object* x_262; +uint8_t x_262; lean_object* x_263; lean_dec(x_4); -x_261 = l_Lean_Expr_isMVar(x_2); -x_262 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_262) == 0) +x_262 = l_Lean_Expr_isMVar(x_2); +x_263 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_263) == 0) { -if (x_261 == 0) +if (x_262 == 0) { -lean_object* x_263; lean_object* x_264; lean_object* x_265; size_t x_266; size_t x_267; lean_object* x_268; -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); +lean_object* x_264; lean_object* x_265; lean_object* x_266; size_t x_267; size_t x_268; lean_object* x_269; +x_264 = lean_ctor_get(x_263, 0); lean_inc(x_264); -lean_dec(x_262); -x_265 = lean_array_get_size(x_3); -x_266 = lean_usize_of_nat(x_265); -lean_dec(x_265); -x_267 = 0; -x_268 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__26___rarg(x_1, x_266, x_267, x_3, x_5, x_6, x_264); -lean_dec(x_1); -if (lean_obj_tag(x_268) == 0) -{ -uint8_t x_269; -x_269 = !lean_is_exclusive(x_268); -if (x_269 == 0) -{ -lean_object* x_270; lean_object* x_271; -x_270 = lean_ctor_get(x_268, 0); -x_271 = l_Lean_mkAppN(x_263, x_270); -lean_ctor_set(x_268, 0, x_271); -return x_268; -} -else -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_272 = lean_ctor_get(x_268, 0); -x_273 = lean_ctor_get(x_268, 1); -lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_268); -x_274 = l_Lean_mkAppN(x_263, x_272); -x_275 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_275, 1, x_273); -return x_275; -} -} -else -{ -uint8_t x_276; +x_265 = lean_ctor_get(x_263, 1); +lean_inc(x_265); lean_dec(x_263); -x_276 = !lean_is_exclusive(x_268); -if (x_276 == 0) +x_266 = lean_array_get_size(x_3); +x_267 = lean_usize_of_nat(x_266); +lean_dec(x_266); +x_268 = 0; +x_269 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__26___rarg(x_1, x_267, x_268, x_3, x_5, x_6, x_265); +lean_dec(x_1); +if (lean_obj_tag(x_269) == 0) { -return x_268; +uint8_t x_270; +x_270 = !lean_is_exclusive(x_269); +if (x_270 == 0) +{ +lean_object* x_271; lean_object* x_272; +x_271 = lean_ctor_get(x_269, 0); +x_272 = l_Lean_mkAppN(x_264, x_271); +lean_ctor_set(x_269, 0, x_272); +return x_269; } else { -lean_object* x_277; lean_object* x_278; lean_object* x_279; -x_277 = lean_ctor_get(x_268, 0); -x_278 = lean_ctor_get(x_268, 1); +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_273 = lean_ctor_get(x_269, 0); +x_274 = lean_ctor_get(x_269, 1); +lean_inc(x_274); +lean_inc(x_273); +lean_dec(x_269); +x_275 = l_Lean_mkAppN(x_264, x_273); +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_274); +return x_276; +} +} +else +{ +uint8_t x_277; +lean_dec(x_264); +x_277 = !lean_is_exclusive(x_269); +if (x_277 == 0) +{ +return x_269; +} +else +{ +lean_object* x_278; lean_object* x_279; lean_object* x_280; +x_278 = lean_ctor_get(x_269, 0); +x_279 = lean_ctor_get(x_269, 1); +lean_inc(x_279); lean_inc(x_278); -lean_inc(x_277); -lean_dec(x_268); -x_279 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_279, 0, x_277); -lean_ctor_set(x_279, 1, x_278); -return x_279; +lean_dec(x_269); +x_280 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_280, 0, x_278); +lean_ctor_set(x_280, 1, x_279); +return x_280; } } } else { -lean_object* x_280; lean_object* x_281; uint8_t x_282; -x_280 = lean_ctor_get(x_262, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_262, 1); +lean_object* x_281; lean_object* x_282; uint8_t x_283; +x_281 = lean_ctor_get(x_263, 0); lean_inc(x_281); -lean_dec(x_262); -x_282 = l_Lean_Expr_isLambda(x_280); -if (x_282 == 0) +x_282 = lean_ctor_get(x_263, 1); +lean_inc(x_282); +lean_dec(x_263); +x_283 = l_Lean_Expr_isLambda(x_281); +if (x_283 == 0) { -lean_object* x_283; size_t x_284; size_t x_285; lean_object* x_286; -x_283 = lean_array_get_size(x_3); -x_284 = lean_usize_of_nat(x_283); -lean_dec(x_283); -x_285 = 0; -x_286 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__27___rarg(x_1, x_284, x_285, x_3, x_5, x_6, x_281); +lean_object* x_284; size_t x_285; size_t x_286; lean_object* x_287; +x_284 = lean_array_get_size(x_3); +x_285 = lean_usize_of_nat(x_284); +lean_dec(x_284); +x_286 = 0; +x_287 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__27___rarg(x_1, x_285, x_286, x_3, x_5, x_6, x_282); lean_dec(x_1); -if (lean_obj_tag(x_286) == 0) +if (lean_obj_tag(x_287) == 0) { -uint8_t x_287; -x_287 = !lean_is_exclusive(x_286); -if (x_287 == 0) +uint8_t x_288; +x_288 = !lean_is_exclusive(x_287); +if (x_288 == 0) { -lean_object* x_288; lean_object* x_289; -x_288 = lean_ctor_get(x_286, 0); -x_289 = l_Lean_mkAppN(x_280, x_288); -lean_ctor_set(x_286, 0, x_289); -return x_286; +lean_object* x_289; lean_object* x_290; +x_289 = lean_ctor_get(x_287, 0); +x_290 = l_Lean_mkAppN(x_281, x_289); +lean_ctor_set(x_287, 0, x_290); +return x_287; } else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_290 = lean_ctor_get(x_286, 0); -x_291 = lean_ctor_get(x_286, 1); +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_291 = lean_ctor_get(x_287, 0); +x_292 = lean_ctor_get(x_287, 1); +lean_inc(x_292); lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_286); -x_292 = l_Lean_mkAppN(x_280, x_290); -x_293 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_293, 0, x_292); -lean_ctor_set(x_293, 1, x_291); -return x_293; +lean_dec(x_287); +x_293 = l_Lean_mkAppN(x_281, x_291); +x_294 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_294, 0, x_293); +lean_ctor_set(x_294, 1, x_292); +return x_294; } } else { -uint8_t x_294; -lean_dec(x_280); -x_294 = !lean_is_exclusive(x_286); -if (x_294 == 0) +uint8_t x_295; +lean_dec(x_281); +x_295 = !lean_is_exclusive(x_287); +if (x_295 == 0) { -return x_286; +return x_287; } else { -lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_295 = lean_ctor_get(x_286, 0); -x_296 = lean_ctor_get(x_286, 1); +lean_object* x_296; lean_object* x_297; lean_object* x_298; +x_296 = lean_ctor_get(x_287, 0); +x_297 = lean_ctor_get(x_287, 1); +lean_inc(x_297); lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_286); -x_297 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_297, 0, x_295); -lean_ctor_set(x_297, 1, x_296); -return x_297; +lean_dec(x_287); +x_298 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_298, 0, x_296); +lean_ctor_set(x_298, 1, x_297); +return x_298; } } } else { -lean_object* x_298; uint8_t x_299; lean_object* x_300; lean_object* x_301; +lean_object* x_299; uint8_t x_300; lean_object* x_301; lean_object* x_302; lean_dec(x_1); -x_298 = l_Array_reverse___rarg(x_3); -x_299 = 0; -x_300 = l_Lean_Expr_betaRev(x_280, x_298, x_299, x_299); -lean_dec(x_298); -x_301 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_300, x_5, x_6, x_281); -return x_301; +x_299 = l_Array_reverse___rarg(x_3); +x_300 = 0; +x_301 = l_Lean_Expr_betaRev(x_281, x_299, x_300, x_300); +lean_dec(x_299); +x_302 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_301, x_5, x_6, x_282); +return x_302; } } } else { -uint8_t x_302; +uint8_t x_303; lean_dec(x_3); lean_dec(x_1); -x_302 = !lean_is_exclusive(x_262); -if (x_302 == 0) +x_303 = !lean_is_exclusive(x_263); +if (x_303 == 0) { -return x_262; +return x_263; } else { -lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_303 = lean_ctor_get(x_262, 0); -x_304 = lean_ctor_get(x_262, 1); +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_263, 0); +x_305 = lean_ctor_get(x_263, 1); +lean_inc(x_305); lean_inc(x_304); -lean_inc(x_303); -lean_dec(x_262); -x_305 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_305, 0, x_303); -lean_ctor_set(x_305, 1, x_304); -return x_305; +lean_dec(x_263); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_304); +lean_ctor_set(x_306, 1, x_305); +return x_306; } } } case 5: { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_306 = lean_ctor_get(x_2, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_2, 1); +lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; +x_307 = lean_ctor_get(x_2, 0); lean_inc(x_307); +x_308 = lean_ctor_get(x_2, 1); +lean_inc(x_308); lean_dec(x_2); -x_308 = lean_array_set(x_3, x_4, x_307); -x_309 = lean_unsigned_to_nat(1u); -x_310 = lean_nat_sub(x_4, x_309); +x_309 = lean_array_set(x_3, x_4, x_308); +x_310 = lean_unsigned_to_nat(1u); +x_311 = lean_nat_sub(x_4, x_310); lean_dec(x_4); -x_2 = x_306; -x_3 = x_308; -x_4 = x_310; +x_2 = x_307; +x_3 = x_309; +x_4 = x_311; goto _start; } case 6: { -uint8_t x_312; lean_object* x_313; +uint8_t x_313; lean_object* x_314; lean_dec(x_4); -x_312 = l_Lean_Expr_isMVar(x_2); -x_313 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_313) == 0) +x_313 = l_Lean_Expr_isMVar(x_2); +x_314 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_314) == 0) { -if (x_312 == 0) +if (x_313 == 0) { -lean_object* x_314; lean_object* x_315; lean_object* x_316; size_t x_317; size_t x_318; lean_object* x_319; -x_314 = lean_ctor_get(x_313, 0); -lean_inc(x_314); -x_315 = lean_ctor_get(x_313, 1); +lean_object* x_315; lean_object* x_316; lean_object* x_317; size_t x_318; size_t x_319; lean_object* x_320; +x_315 = lean_ctor_get(x_314, 0); lean_inc(x_315); -lean_dec(x_313); -x_316 = lean_array_get_size(x_3); -x_317 = lean_usize_of_nat(x_316); -lean_dec(x_316); -x_318 = 0; -x_319 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__30___rarg(x_1, x_317, x_318, x_3, x_5, x_6, x_315); -lean_dec(x_1); -if (lean_obj_tag(x_319) == 0) -{ -uint8_t x_320; -x_320 = !lean_is_exclusive(x_319); -if (x_320 == 0) -{ -lean_object* x_321; lean_object* x_322; -x_321 = lean_ctor_get(x_319, 0); -x_322 = l_Lean_mkAppN(x_314, x_321); -lean_ctor_set(x_319, 0, x_322); -return x_319; -} -else -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_323 = lean_ctor_get(x_319, 0); -x_324 = lean_ctor_get(x_319, 1); -lean_inc(x_324); -lean_inc(x_323); -lean_dec(x_319); -x_325 = l_Lean_mkAppN(x_314, x_323); -x_326 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_324); -return x_326; -} -} -else -{ -uint8_t x_327; +x_316 = lean_ctor_get(x_314, 1); +lean_inc(x_316); lean_dec(x_314); -x_327 = !lean_is_exclusive(x_319); -if (x_327 == 0) +x_317 = lean_array_get_size(x_3); +x_318 = lean_usize_of_nat(x_317); +lean_dec(x_317); +x_319 = 0; +x_320 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__30___rarg(x_1, x_318, x_319, x_3, x_5, x_6, x_316); +lean_dec(x_1); +if (lean_obj_tag(x_320) == 0) { -return x_319; +uint8_t x_321; +x_321 = !lean_is_exclusive(x_320); +if (x_321 == 0) +{ +lean_object* x_322; lean_object* x_323; +x_322 = lean_ctor_get(x_320, 0); +x_323 = l_Lean_mkAppN(x_315, x_322); +lean_ctor_set(x_320, 0, x_323); +return x_320; } else { -lean_object* x_328; lean_object* x_329; lean_object* x_330; -x_328 = lean_ctor_get(x_319, 0); -x_329 = lean_ctor_get(x_319, 1); +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +x_324 = lean_ctor_get(x_320, 0); +x_325 = lean_ctor_get(x_320, 1); +lean_inc(x_325); +lean_inc(x_324); +lean_dec(x_320); +x_326 = l_Lean_mkAppN(x_315, x_324); +x_327 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_327, 0, x_326); +lean_ctor_set(x_327, 1, x_325); +return x_327; +} +} +else +{ +uint8_t x_328; +lean_dec(x_315); +x_328 = !lean_is_exclusive(x_320); +if (x_328 == 0) +{ +return x_320; +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_329 = lean_ctor_get(x_320, 0); +x_330 = lean_ctor_get(x_320, 1); +lean_inc(x_330); lean_inc(x_329); -lean_inc(x_328); -lean_dec(x_319); -x_330 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_330, 0, x_328); -lean_ctor_set(x_330, 1, x_329); -return x_330; +lean_dec(x_320); +x_331 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_331, 0, x_329); +lean_ctor_set(x_331, 1, x_330); +return x_331; } } } else { -lean_object* x_331; lean_object* x_332; uint8_t x_333; -x_331 = lean_ctor_get(x_313, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_313, 1); +lean_object* x_332; lean_object* x_333; uint8_t x_334; +x_332 = lean_ctor_get(x_314, 0); lean_inc(x_332); -lean_dec(x_313); -x_333 = l_Lean_Expr_isLambda(x_331); -if (x_333 == 0) +x_333 = lean_ctor_get(x_314, 1); +lean_inc(x_333); +lean_dec(x_314); +x_334 = l_Lean_Expr_isLambda(x_332); +if (x_334 == 0) { -lean_object* x_334; size_t x_335; size_t x_336; lean_object* x_337; -x_334 = lean_array_get_size(x_3); -x_335 = lean_usize_of_nat(x_334); -lean_dec(x_334); -x_336 = 0; -x_337 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__31___rarg(x_1, x_335, x_336, x_3, x_5, x_6, x_332); +lean_object* x_335; size_t x_336; size_t x_337; lean_object* x_338; +x_335 = lean_array_get_size(x_3); +x_336 = lean_usize_of_nat(x_335); +lean_dec(x_335); +x_337 = 0; +x_338 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__31___rarg(x_1, x_336, x_337, x_3, x_5, x_6, x_333); lean_dec(x_1); -if (lean_obj_tag(x_337) == 0) +if (lean_obj_tag(x_338) == 0) { -uint8_t x_338; -x_338 = !lean_is_exclusive(x_337); -if (x_338 == 0) +uint8_t x_339; +x_339 = !lean_is_exclusive(x_338); +if (x_339 == 0) { -lean_object* x_339; lean_object* x_340; -x_339 = lean_ctor_get(x_337, 0); -x_340 = l_Lean_mkAppN(x_331, x_339); -lean_ctor_set(x_337, 0, x_340); -return x_337; +lean_object* x_340; lean_object* x_341; +x_340 = lean_ctor_get(x_338, 0); +x_341 = l_Lean_mkAppN(x_332, x_340); +lean_ctor_set(x_338, 0, x_341); +return x_338; } else { -lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; -x_341 = lean_ctor_get(x_337, 0); -x_342 = lean_ctor_get(x_337, 1); +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; +x_342 = lean_ctor_get(x_338, 0); +x_343 = lean_ctor_get(x_338, 1); +lean_inc(x_343); lean_inc(x_342); -lean_inc(x_341); -lean_dec(x_337); -x_343 = l_Lean_mkAppN(x_331, x_341); -x_344 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_342); -return x_344; +lean_dec(x_338); +x_344 = l_Lean_mkAppN(x_332, x_342); +x_345 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_345, 0, x_344); +lean_ctor_set(x_345, 1, x_343); +return x_345; } } else { -uint8_t x_345; -lean_dec(x_331); -x_345 = !lean_is_exclusive(x_337); -if (x_345 == 0) +uint8_t x_346; +lean_dec(x_332); +x_346 = !lean_is_exclusive(x_338); +if (x_346 == 0) { -return x_337; +return x_338; } else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_346 = lean_ctor_get(x_337, 0); -x_347 = lean_ctor_get(x_337, 1); +lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_347 = lean_ctor_get(x_338, 0); +x_348 = lean_ctor_get(x_338, 1); +lean_inc(x_348); lean_inc(x_347); -lean_inc(x_346); -lean_dec(x_337); -x_348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_348, 0, x_346); -lean_ctor_set(x_348, 1, x_347); -return x_348; +lean_dec(x_338); +x_349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_349, 0, x_347); +lean_ctor_set(x_349, 1, x_348); +return x_349; } } } else { -lean_object* x_349; uint8_t x_350; lean_object* x_351; lean_object* x_352; +lean_object* x_350; uint8_t x_351; lean_object* x_352; lean_object* x_353; lean_dec(x_1); -x_349 = l_Array_reverse___rarg(x_3); -x_350 = 0; -x_351 = l_Lean_Expr_betaRev(x_331, x_349, x_350, x_350); -lean_dec(x_349); -x_352 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_351, x_5, x_6, x_332); -return x_352; +x_350 = l_Array_reverse___rarg(x_3); +x_351 = 0; +x_352 = l_Lean_Expr_betaRev(x_332, x_350, x_351, x_351); +lean_dec(x_350); +x_353 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_352, x_5, x_6, x_333); +return x_353; } } } else { -uint8_t x_353; +uint8_t x_354; lean_dec(x_3); lean_dec(x_1); -x_353 = !lean_is_exclusive(x_313); -if (x_353 == 0) +x_354 = !lean_is_exclusive(x_314); +if (x_354 == 0) { -return x_313; +return x_314; } else { -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_313, 0); -x_355 = lean_ctor_get(x_313, 1); +lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_355 = lean_ctor_get(x_314, 0); +x_356 = lean_ctor_get(x_314, 1); +lean_inc(x_356); lean_inc(x_355); -lean_inc(x_354); -lean_dec(x_313); -x_356 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_356, 0, x_354); -lean_ctor_set(x_356, 1, x_355); -return x_356; +lean_dec(x_314); +x_357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_357, 0, x_355); +lean_ctor_set(x_357, 1, x_356); +return x_357; } } } case 7: { -uint8_t x_357; lean_object* x_358; +uint8_t x_358; lean_object* x_359; lean_dec(x_4); -x_357 = l_Lean_Expr_isMVar(x_2); -x_358 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_358) == 0) +x_358 = l_Lean_Expr_isMVar(x_2); +x_359 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_359) == 0) { -if (x_357 == 0) +if (x_358 == 0) { -lean_object* x_359; lean_object* x_360; lean_object* x_361; size_t x_362; size_t x_363; lean_object* x_364; -x_359 = lean_ctor_get(x_358, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_358, 1); +lean_object* x_360; lean_object* x_361; lean_object* x_362; size_t x_363; size_t x_364; lean_object* x_365; +x_360 = lean_ctor_get(x_359, 0); lean_inc(x_360); -lean_dec(x_358); -x_361 = lean_array_get_size(x_3); -x_362 = lean_usize_of_nat(x_361); -lean_dec(x_361); -x_363 = 0; -x_364 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__32___rarg(x_1, x_362, x_363, x_3, x_5, x_6, x_360); -lean_dec(x_1); -if (lean_obj_tag(x_364) == 0) -{ -uint8_t x_365; -x_365 = !lean_is_exclusive(x_364); -if (x_365 == 0) -{ -lean_object* x_366; lean_object* x_367; -x_366 = lean_ctor_get(x_364, 0); -x_367 = l_Lean_mkAppN(x_359, x_366); -lean_ctor_set(x_364, 0, x_367); -return x_364; -} -else -{ -lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; -x_368 = lean_ctor_get(x_364, 0); -x_369 = lean_ctor_get(x_364, 1); -lean_inc(x_369); -lean_inc(x_368); -lean_dec(x_364); -x_370 = l_Lean_mkAppN(x_359, x_368); -x_371 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_371, 0, x_370); -lean_ctor_set(x_371, 1, x_369); -return x_371; -} -} -else -{ -uint8_t x_372; +x_361 = lean_ctor_get(x_359, 1); +lean_inc(x_361); lean_dec(x_359); -x_372 = !lean_is_exclusive(x_364); -if (x_372 == 0) +x_362 = lean_array_get_size(x_3); +x_363 = lean_usize_of_nat(x_362); +lean_dec(x_362); +x_364 = 0; +x_365 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__32___rarg(x_1, x_363, x_364, x_3, x_5, x_6, x_361); +lean_dec(x_1); +if (lean_obj_tag(x_365) == 0) { -return x_364; +uint8_t x_366; +x_366 = !lean_is_exclusive(x_365); +if (x_366 == 0) +{ +lean_object* x_367; lean_object* x_368; +x_367 = lean_ctor_get(x_365, 0); +x_368 = l_Lean_mkAppN(x_360, x_367); +lean_ctor_set(x_365, 0, x_368); +return x_365; } else { -lean_object* x_373; lean_object* x_374; lean_object* x_375; -x_373 = lean_ctor_get(x_364, 0); -x_374 = lean_ctor_get(x_364, 1); +lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_369 = lean_ctor_get(x_365, 0); +x_370 = lean_ctor_get(x_365, 1); +lean_inc(x_370); +lean_inc(x_369); +lean_dec(x_365); +x_371 = l_Lean_mkAppN(x_360, x_369); +x_372 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_370); +return x_372; +} +} +else +{ +uint8_t x_373; +lean_dec(x_360); +x_373 = !lean_is_exclusive(x_365); +if (x_373 == 0) +{ +return x_365; +} +else +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_374 = lean_ctor_get(x_365, 0); +x_375 = lean_ctor_get(x_365, 1); +lean_inc(x_375); lean_inc(x_374); -lean_inc(x_373); -lean_dec(x_364); -x_375 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_375, 0, x_373); -lean_ctor_set(x_375, 1, x_374); -return x_375; +lean_dec(x_365); +x_376 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_376, 0, x_374); +lean_ctor_set(x_376, 1, x_375); +return x_376; } } } else { -lean_object* x_376; lean_object* x_377; uint8_t x_378; -x_376 = lean_ctor_get(x_358, 0); -lean_inc(x_376); -x_377 = lean_ctor_get(x_358, 1); +lean_object* x_377; lean_object* x_378; uint8_t x_379; +x_377 = lean_ctor_get(x_359, 0); lean_inc(x_377); -lean_dec(x_358); -x_378 = l_Lean_Expr_isLambda(x_376); -if (x_378 == 0) +x_378 = lean_ctor_get(x_359, 1); +lean_inc(x_378); +lean_dec(x_359); +x_379 = l_Lean_Expr_isLambda(x_377); +if (x_379 == 0) { -lean_object* x_379; size_t x_380; size_t x_381; lean_object* x_382; -x_379 = lean_array_get_size(x_3); -x_380 = lean_usize_of_nat(x_379); -lean_dec(x_379); -x_381 = 0; -x_382 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__33___rarg(x_1, x_380, x_381, x_3, x_5, x_6, x_377); +lean_object* x_380; size_t x_381; size_t x_382; lean_object* x_383; +x_380 = lean_array_get_size(x_3); +x_381 = lean_usize_of_nat(x_380); +lean_dec(x_380); +x_382 = 0; +x_383 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__33___rarg(x_1, x_381, x_382, x_3, x_5, x_6, x_378); lean_dec(x_1); -if (lean_obj_tag(x_382) == 0) +if (lean_obj_tag(x_383) == 0) { -uint8_t x_383; -x_383 = !lean_is_exclusive(x_382); -if (x_383 == 0) +uint8_t x_384; +x_384 = !lean_is_exclusive(x_383); +if (x_384 == 0) { -lean_object* x_384; lean_object* x_385; -x_384 = lean_ctor_get(x_382, 0); -x_385 = l_Lean_mkAppN(x_376, x_384); -lean_ctor_set(x_382, 0, x_385); -return x_382; +lean_object* x_385; lean_object* x_386; +x_385 = lean_ctor_get(x_383, 0); +x_386 = l_Lean_mkAppN(x_377, x_385); +lean_ctor_set(x_383, 0, x_386); +return x_383; } else { -lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; -x_386 = lean_ctor_get(x_382, 0); -x_387 = lean_ctor_get(x_382, 1); +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; +x_387 = lean_ctor_get(x_383, 0); +x_388 = lean_ctor_get(x_383, 1); +lean_inc(x_388); lean_inc(x_387); -lean_inc(x_386); -lean_dec(x_382); -x_388 = l_Lean_mkAppN(x_376, x_386); -x_389 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_389, 0, x_388); -lean_ctor_set(x_389, 1, x_387); -return x_389; +lean_dec(x_383); +x_389 = l_Lean_mkAppN(x_377, x_387); +x_390 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_390, 0, x_389); +lean_ctor_set(x_390, 1, x_388); +return x_390; } } else { -uint8_t x_390; -lean_dec(x_376); -x_390 = !lean_is_exclusive(x_382); -if (x_390 == 0) +uint8_t x_391; +lean_dec(x_377); +x_391 = !lean_is_exclusive(x_383); +if (x_391 == 0) { -return x_382; +return x_383; } else { -lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_391 = lean_ctor_get(x_382, 0); -x_392 = lean_ctor_get(x_382, 1); +lean_object* x_392; lean_object* x_393; lean_object* x_394; +x_392 = lean_ctor_get(x_383, 0); +x_393 = lean_ctor_get(x_383, 1); +lean_inc(x_393); lean_inc(x_392); -lean_inc(x_391); -lean_dec(x_382); -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; +lean_dec(x_383); +x_394 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_394, 0, x_392); +lean_ctor_set(x_394, 1, x_393); +return x_394; } } } else { -lean_object* x_394; uint8_t x_395; lean_object* x_396; lean_object* x_397; +lean_object* x_395; uint8_t x_396; lean_object* x_397; lean_object* x_398; lean_dec(x_1); -x_394 = l_Array_reverse___rarg(x_3); -x_395 = 0; -x_396 = l_Lean_Expr_betaRev(x_376, x_394, x_395, x_395); -lean_dec(x_394); -x_397 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_396, x_5, x_6, x_377); -return x_397; +x_395 = l_Array_reverse___rarg(x_3); +x_396 = 0; +x_397 = l_Lean_Expr_betaRev(x_377, x_395, x_396, x_396); +lean_dec(x_395); +x_398 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_397, x_5, x_6, x_378); +return x_398; } } } else { -uint8_t x_398; +uint8_t x_399; lean_dec(x_3); lean_dec(x_1); -x_398 = !lean_is_exclusive(x_358); -if (x_398 == 0) +x_399 = !lean_is_exclusive(x_359); +if (x_399 == 0) { -return x_358; +return x_359; } else { -lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_399 = lean_ctor_get(x_358, 0); -x_400 = lean_ctor_get(x_358, 1); +lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_400 = lean_ctor_get(x_359, 0); +x_401 = lean_ctor_get(x_359, 1); +lean_inc(x_401); lean_inc(x_400); -lean_inc(x_399); -lean_dec(x_358); -x_401 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_401, 0, x_399); -lean_ctor_set(x_401, 1, x_400); -return x_401; +lean_dec(x_359); +x_402 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_402, 0, x_400); +lean_ctor_set(x_402, 1, x_401); +return x_402; } } } case 8: { -uint8_t x_402; lean_object* x_403; +uint8_t x_403; lean_object* x_404; lean_dec(x_4); -x_402 = l_Lean_Expr_isMVar(x_2); -x_403 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_403) == 0) +x_403 = l_Lean_Expr_isMVar(x_2); +x_404 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_404) == 0) { -if (x_402 == 0) +if (x_403 == 0) { -lean_object* x_404; lean_object* x_405; lean_object* x_406; size_t x_407; size_t x_408; lean_object* x_409; -x_404 = lean_ctor_get(x_403, 0); -lean_inc(x_404); -x_405 = lean_ctor_get(x_403, 1); +lean_object* x_405; lean_object* x_406; lean_object* x_407; size_t x_408; size_t x_409; lean_object* x_410; +x_405 = lean_ctor_get(x_404, 0); lean_inc(x_405); -lean_dec(x_403); -x_406 = lean_array_get_size(x_3); -x_407 = lean_usize_of_nat(x_406); -lean_dec(x_406); -x_408 = 0; -x_409 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__34___rarg(x_1, x_407, x_408, x_3, x_5, x_6, x_405); -lean_dec(x_1); -if (lean_obj_tag(x_409) == 0) -{ -uint8_t x_410; -x_410 = !lean_is_exclusive(x_409); -if (x_410 == 0) -{ -lean_object* x_411; lean_object* x_412; -x_411 = lean_ctor_get(x_409, 0); -x_412 = l_Lean_mkAppN(x_404, x_411); -lean_ctor_set(x_409, 0, x_412); -return x_409; -} -else -{ -lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_413 = lean_ctor_get(x_409, 0); -x_414 = lean_ctor_get(x_409, 1); -lean_inc(x_414); -lean_inc(x_413); -lean_dec(x_409); -x_415 = l_Lean_mkAppN(x_404, x_413); -x_416 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_416, 0, x_415); -lean_ctor_set(x_416, 1, x_414); -return x_416; -} -} -else -{ -uint8_t x_417; +x_406 = lean_ctor_get(x_404, 1); +lean_inc(x_406); lean_dec(x_404); -x_417 = !lean_is_exclusive(x_409); -if (x_417 == 0) +x_407 = lean_array_get_size(x_3); +x_408 = lean_usize_of_nat(x_407); +lean_dec(x_407); +x_409 = 0; +x_410 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__34___rarg(x_1, x_408, x_409, x_3, x_5, x_6, x_406); +lean_dec(x_1); +if (lean_obj_tag(x_410) == 0) { -return x_409; +uint8_t x_411; +x_411 = !lean_is_exclusive(x_410); +if (x_411 == 0) +{ +lean_object* x_412; lean_object* x_413; +x_412 = lean_ctor_get(x_410, 0); +x_413 = l_Lean_mkAppN(x_405, x_412); +lean_ctor_set(x_410, 0, x_413); +return x_410; } else { -lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_418 = lean_ctor_get(x_409, 0); -x_419 = lean_ctor_get(x_409, 1); +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; +x_414 = lean_ctor_get(x_410, 0); +x_415 = lean_ctor_get(x_410, 1); +lean_inc(x_415); +lean_inc(x_414); +lean_dec(x_410); +x_416 = l_Lean_mkAppN(x_405, x_414); +x_417 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_417, 0, x_416); +lean_ctor_set(x_417, 1, x_415); +return x_417; +} +} +else +{ +uint8_t x_418; +lean_dec(x_405); +x_418 = !lean_is_exclusive(x_410); +if (x_418 == 0) +{ +return x_410; +} +else +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; +x_419 = lean_ctor_get(x_410, 0); +x_420 = lean_ctor_get(x_410, 1); +lean_inc(x_420); lean_inc(x_419); -lean_inc(x_418); -lean_dec(x_409); -x_420 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_420, 0, x_418); -lean_ctor_set(x_420, 1, x_419); -return x_420; +lean_dec(x_410); +x_421 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_421, 0, x_419); +lean_ctor_set(x_421, 1, x_420); +return x_421; } } } else { -lean_object* x_421; lean_object* x_422; uint8_t x_423; -x_421 = lean_ctor_get(x_403, 0); -lean_inc(x_421); -x_422 = lean_ctor_get(x_403, 1); +lean_object* x_422; lean_object* x_423; uint8_t x_424; +x_422 = lean_ctor_get(x_404, 0); lean_inc(x_422); -lean_dec(x_403); -x_423 = l_Lean_Expr_isLambda(x_421); -if (x_423 == 0) +x_423 = lean_ctor_get(x_404, 1); +lean_inc(x_423); +lean_dec(x_404); +x_424 = l_Lean_Expr_isLambda(x_422); +if (x_424 == 0) { -lean_object* x_424; size_t x_425; size_t x_426; lean_object* x_427; -x_424 = lean_array_get_size(x_3); -x_425 = lean_usize_of_nat(x_424); -lean_dec(x_424); -x_426 = 0; -x_427 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__35___rarg(x_1, x_425, x_426, x_3, x_5, x_6, x_422); +lean_object* x_425; size_t x_426; size_t x_427; lean_object* x_428; +x_425 = lean_array_get_size(x_3); +x_426 = lean_usize_of_nat(x_425); +lean_dec(x_425); +x_427 = 0; +x_428 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__35___rarg(x_1, x_426, x_427, x_3, x_5, x_6, x_423); lean_dec(x_1); -if (lean_obj_tag(x_427) == 0) +if (lean_obj_tag(x_428) == 0) { -uint8_t x_428; -x_428 = !lean_is_exclusive(x_427); -if (x_428 == 0) +uint8_t x_429; +x_429 = !lean_is_exclusive(x_428); +if (x_429 == 0) { -lean_object* x_429; lean_object* x_430; -x_429 = lean_ctor_get(x_427, 0); -x_430 = l_Lean_mkAppN(x_421, x_429); -lean_ctor_set(x_427, 0, x_430); -return x_427; +lean_object* x_430; lean_object* x_431; +x_430 = lean_ctor_get(x_428, 0); +x_431 = l_Lean_mkAppN(x_422, x_430); +lean_ctor_set(x_428, 0, x_431); +return x_428; } else { -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; -x_431 = lean_ctor_get(x_427, 0); -x_432 = lean_ctor_get(x_427, 1); +lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; +x_432 = lean_ctor_get(x_428, 0); +x_433 = lean_ctor_get(x_428, 1); +lean_inc(x_433); lean_inc(x_432); -lean_inc(x_431); -lean_dec(x_427); -x_433 = l_Lean_mkAppN(x_421, x_431); -x_434 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_434, 0, x_433); -lean_ctor_set(x_434, 1, x_432); -return x_434; +lean_dec(x_428); +x_434 = l_Lean_mkAppN(x_422, x_432); +x_435 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_435, 0, x_434); +lean_ctor_set(x_435, 1, x_433); +return x_435; } } else { -uint8_t x_435; -lean_dec(x_421); -x_435 = !lean_is_exclusive(x_427); -if (x_435 == 0) +uint8_t x_436; +lean_dec(x_422); +x_436 = !lean_is_exclusive(x_428); +if (x_436 == 0) { -return x_427; +return x_428; } else { -lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_436 = lean_ctor_get(x_427, 0); -x_437 = lean_ctor_get(x_427, 1); +lean_object* x_437; lean_object* x_438; lean_object* x_439; +x_437 = lean_ctor_get(x_428, 0); +x_438 = lean_ctor_get(x_428, 1); +lean_inc(x_438); lean_inc(x_437); -lean_inc(x_436); -lean_dec(x_427); -x_438 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_438, 0, x_436); -lean_ctor_set(x_438, 1, x_437); -return x_438; +lean_dec(x_428); +x_439 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_439, 0, x_437); +lean_ctor_set(x_439, 1, x_438); +return x_439; } } } else { -lean_object* x_439; uint8_t x_440; lean_object* x_441; lean_object* x_442; +lean_object* x_440; uint8_t x_441; lean_object* x_442; lean_object* x_443; lean_dec(x_1); -x_439 = l_Array_reverse___rarg(x_3); -x_440 = 0; -x_441 = l_Lean_Expr_betaRev(x_421, x_439, x_440, x_440); -lean_dec(x_439); -x_442 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_441, x_5, x_6, x_422); -return x_442; +x_440 = l_Array_reverse___rarg(x_3); +x_441 = 0; +x_442 = l_Lean_Expr_betaRev(x_422, x_440, x_441, x_441); +lean_dec(x_440); +x_443 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_442, x_5, x_6, x_423); +return x_443; } } } else { -uint8_t x_443; +uint8_t x_444; lean_dec(x_3); lean_dec(x_1); -x_443 = !lean_is_exclusive(x_403); -if (x_443 == 0) +x_444 = !lean_is_exclusive(x_404); +if (x_444 == 0) { -return x_403; +return x_404; } else { -lean_object* x_444; lean_object* x_445; lean_object* x_446; -x_444 = lean_ctor_get(x_403, 0); -x_445 = lean_ctor_get(x_403, 1); +lean_object* x_445; lean_object* x_446; lean_object* x_447; +x_445 = lean_ctor_get(x_404, 0); +x_446 = lean_ctor_get(x_404, 1); +lean_inc(x_446); lean_inc(x_445); -lean_inc(x_444); -lean_dec(x_403); -x_446 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_446, 0, x_444); -lean_ctor_set(x_446, 1, x_445); -return x_446; +lean_dec(x_404); +x_447 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_447, 0, x_445); +lean_ctor_set(x_447, 1, x_446); +return x_447; } } } case 9: { -uint8_t x_447; lean_object* x_448; +uint8_t x_448; lean_object* x_449; lean_dec(x_4); -x_447 = l_Lean_Expr_isMVar(x_2); -x_448 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_448) == 0) +x_448 = l_Lean_Expr_isMVar(x_2); +x_449 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_449) == 0) { -if (x_447 == 0) +if (x_448 == 0) { -lean_object* x_449; lean_object* x_450; lean_object* x_451; size_t x_452; size_t x_453; lean_object* x_454; -x_449 = lean_ctor_get(x_448, 0); -lean_inc(x_449); -x_450 = lean_ctor_get(x_448, 1); +lean_object* x_450; lean_object* x_451; lean_object* x_452; size_t x_453; size_t x_454; lean_object* x_455; +x_450 = lean_ctor_get(x_449, 0); lean_inc(x_450); -lean_dec(x_448); -x_451 = lean_array_get_size(x_3); -x_452 = lean_usize_of_nat(x_451); -lean_dec(x_451); -x_453 = 0; -x_454 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__36___rarg(x_1, x_452, x_453, x_3, x_5, x_6, x_450); -lean_dec(x_1); -if (lean_obj_tag(x_454) == 0) -{ -uint8_t x_455; -x_455 = !lean_is_exclusive(x_454); -if (x_455 == 0) -{ -lean_object* x_456; lean_object* x_457; -x_456 = lean_ctor_get(x_454, 0); -x_457 = l_Lean_mkAppN(x_449, x_456); -lean_ctor_set(x_454, 0, x_457); -return x_454; -} -else -{ -lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; -x_458 = lean_ctor_get(x_454, 0); -x_459 = lean_ctor_get(x_454, 1); -lean_inc(x_459); -lean_inc(x_458); -lean_dec(x_454); -x_460 = l_Lean_mkAppN(x_449, x_458); -x_461 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_461, 0, x_460); -lean_ctor_set(x_461, 1, x_459); -return x_461; -} -} -else -{ -uint8_t x_462; +x_451 = lean_ctor_get(x_449, 1); +lean_inc(x_451); lean_dec(x_449); -x_462 = !lean_is_exclusive(x_454); -if (x_462 == 0) +x_452 = lean_array_get_size(x_3); +x_453 = lean_usize_of_nat(x_452); +lean_dec(x_452); +x_454 = 0; +x_455 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__36___rarg(x_1, x_453, x_454, x_3, x_5, x_6, x_451); +lean_dec(x_1); +if (lean_obj_tag(x_455) == 0) { -return x_454; +uint8_t x_456; +x_456 = !lean_is_exclusive(x_455); +if (x_456 == 0) +{ +lean_object* x_457; lean_object* x_458; +x_457 = lean_ctor_get(x_455, 0); +x_458 = l_Lean_mkAppN(x_450, x_457); +lean_ctor_set(x_455, 0, x_458); +return x_455; } else { -lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_463 = lean_ctor_get(x_454, 0); -x_464 = lean_ctor_get(x_454, 1); +lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; +x_459 = lean_ctor_get(x_455, 0); +x_460 = lean_ctor_get(x_455, 1); +lean_inc(x_460); +lean_inc(x_459); +lean_dec(x_455); +x_461 = l_Lean_mkAppN(x_450, x_459); +x_462 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_462, 0, x_461); +lean_ctor_set(x_462, 1, x_460); +return x_462; +} +} +else +{ +uint8_t x_463; +lean_dec(x_450); +x_463 = !lean_is_exclusive(x_455); +if (x_463 == 0) +{ +return x_455; +} +else +{ +lean_object* x_464; lean_object* x_465; lean_object* x_466; +x_464 = lean_ctor_get(x_455, 0); +x_465 = lean_ctor_get(x_455, 1); +lean_inc(x_465); lean_inc(x_464); -lean_inc(x_463); -lean_dec(x_454); -x_465 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_465, 0, x_463); -lean_ctor_set(x_465, 1, x_464); -return x_465; +lean_dec(x_455); +x_466 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_466, 0, x_464); +lean_ctor_set(x_466, 1, x_465); +return x_466; } } } else { -lean_object* x_466; lean_object* x_467; uint8_t x_468; -x_466 = lean_ctor_get(x_448, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_448, 1); +lean_object* x_467; lean_object* x_468; uint8_t x_469; +x_467 = lean_ctor_get(x_449, 0); lean_inc(x_467); -lean_dec(x_448); -x_468 = l_Lean_Expr_isLambda(x_466); -if (x_468 == 0) +x_468 = lean_ctor_get(x_449, 1); +lean_inc(x_468); +lean_dec(x_449); +x_469 = l_Lean_Expr_isLambda(x_467); +if (x_469 == 0) { -lean_object* x_469; size_t x_470; size_t x_471; lean_object* x_472; -x_469 = lean_array_get_size(x_3); -x_470 = lean_usize_of_nat(x_469); -lean_dec(x_469); -x_471 = 0; -x_472 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__37___rarg(x_1, x_470, x_471, x_3, x_5, x_6, x_467); +lean_object* x_470; size_t x_471; size_t x_472; lean_object* x_473; +x_470 = lean_array_get_size(x_3); +x_471 = lean_usize_of_nat(x_470); +lean_dec(x_470); +x_472 = 0; +x_473 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__37___rarg(x_1, x_471, x_472, x_3, x_5, x_6, x_468); lean_dec(x_1); -if (lean_obj_tag(x_472) == 0) +if (lean_obj_tag(x_473) == 0) { -uint8_t x_473; -x_473 = !lean_is_exclusive(x_472); -if (x_473 == 0) +uint8_t x_474; +x_474 = !lean_is_exclusive(x_473); +if (x_474 == 0) { -lean_object* x_474; lean_object* x_475; -x_474 = lean_ctor_get(x_472, 0); -x_475 = l_Lean_mkAppN(x_466, x_474); -lean_ctor_set(x_472, 0, x_475); -return x_472; +lean_object* x_475; lean_object* x_476; +x_475 = lean_ctor_get(x_473, 0); +x_476 = l_Lean_mkAppN(x_467, x_475); +lean_ctor_set(x_473, 0, x_476); +return x_473; } else { -lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_476 = lean_ctor_get(x_472, 0); -x_477 = lean_ctor_get(x_472, 1); +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; +x_477 = lean_ctor_get(x_473, 0); +x_478 = lean_ctor_get(x_473, 1); +lean_inc(x_478); lean_inc(x_477); -lean_inc(x_476); -lean_dec(x_472); -x_478 = l_Lean_mkAppN(x_466, x_476); -x_479 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_479, 0, x_478); -lean_ctor_set(x_479, 1, x_477); -return x_479; +lean_dec(x_473); +x_479 = l_Lean_mkAppN(x_467, x_477); +x_480 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_480, 0, x_479); +lean_ctor_set(x_480, 1, x_478); +return x_480; } } else { -uint8_t x_480; -lean_dec(x_466); -x_480 = !lean_is_exclusive(x_472); -if (x_480 == 0) +uint8_t x_481; +lean_dec(x_467); +x_481 = !lean_is_exclusive(x_473); +if (x_481 == 0) { -return x_472; +return x_473; } else { -lean_object* x_481; lean_object* x_482; lean_object* x_483; -x_481 = lean_ctor_get(x_472, 0); -x_482 = lean_ctor_get(x_472, 1); +lean_object* x_482; lean_object* x_483; lean_object* x_484; +x_482 = lean_ctor_get(x_473, 0); +x_483 = lean_ctor_get(x_473, 1); +lean_inc(x_483); lean_inc(x_482); -lean_inc(x_481); -lean_dec(x_472); -x_483 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_483, 0, x_481); -lean_ctor_set(x_483, 1, x_482); -return x_483; +lean_dec(x_473); +x_484 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_484, 0, x_482); +lean_ctor_set(x_484, 1, x_483); +return x_484; } } } else { -lean_object* x_484; uint8_t x_485; lean_object* x_486; lean_object* x_487; +lean_object* x_485; uint8_t x_486; lean_object* x_487; lean_object* x_488; lean_dec(x_1); -x_484 = l_Array_reverse___rarg(x_3); -x_485 = 0; -x_486 = l_Lean_Expr_betaRev(x_466, x_484, x_485, x_485); -lean_dec(x_484); -x_487 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_486, x_5, x_6, x_467); -return x_487; +x_485 = l_Array_reverse___rarg(x_3); +x_486 = 0; +x_487 = l_Lean_Expr_betaRev(x_467, x_485, x_486, x_486); +lean_dec(x_485); +x_488 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_487, x_5, x_6, x_468); +return x_488; } } } else { -uint8_t x_488; +uint8_t x_489; lean_dec(x_3); lean_dec(x_1); -x_488 = !lean_is_exclusive(x_448); -if (x_488 == 0) +x_489 = !lean_is_exclusive(x_449); +if (x_489 == 0) { -return x_448; +return x_449; } else { -lean_object* x_489; lean_object* x_490; lean_object* x_491; -x_489 = lean_ctor_get(x_448, 0); -x_490 = lean_ctor_get(x_448, 1); +lean_object* x_490; lean_object* x_491; lean_object* x_492; +x_490 = lean_ctor_get(x_449, 0); +x_491 = lean_ctor_get(x_449, 1); +lean_inc(x_491); lean_inc(x_490); -lean_inc(x_489); -lean_dec(x_448); -x_491 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_491, 0, x_489); -lean_ctor_set(x_491, 1, x_490); -return x_491; +lean_dec(x_449); +x_492 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_492, 0, x_490); +lean_ctor_set(x_492, 1, x_491); +return x_492; } } } case 10: { -uint8_t x_492; lean_object* x_493; +uint8_t x_493; lean_object* x_494; lean_dec(x_4); -x_492 = l_Lean_Expr_isMVar(x_2); -x_493 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_493) == 0) +x_493 = l_Lean_Expr_isMVar(x_2); +x_494 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_494) == 0) { -if (x_492 == 0) +if (x_493 == 0) { -lean_object* x_494; lean_object* x_495; lean_object* x_496; size_t x_497; size_t x_498; lean_object* x_499; -x_494 = lean_ctor_get(x_493, 0); -lean_inc(x_494); -x_495 = lean_ctor_get(x_493, 1); +lean_object* x_495; lean_object* x_496; lean_object* x_497; size_t x_498; size_t x_499; lean_object* x_500; +x_495 = lean_ctor_get(x_494, 0); lean_inc(x_495); -lean_dec(x_493); -x_496 = lean_array_get_size(x_3); -x_497 = lean_usize_of_nat(x_496); -lean_dec(x_496); -x_498 = 0; -x_499 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__38___rarg(x_1, x_497, x_498, x_3, x_5, x_6, x_495); -lean_dec(x_1); -if (lean_obj_tag(x_499) == 0) -{ -uint8_t x_500; -x_500 = !lean_is_exclusive(x_499); -if (x_500 == 0) -{ -lean_object* x_501; lean_object* x_502; -x_501 = lean_ctor_get(x_499, 0); -x_502 = l_Lean_mkAppN(x_494, x_501); -lean_ctor_set(x_499, 0, x_502); -return x_499; -} -else -{ -lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; -x_503 = lean_ctor_get(x_499, 0); -x_504 = lean_ctor_get(x_499, 1); -lean_inc(x_504); -lean_inc(x_503); -lean_dec(x_499); -x_505 = l_Lean_mkAppN(x_494, x_503); -x_506 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_506, 0, x_505); -lean_ctor_set(x_506, 1, x_504); -return x_506; -} -} -else -{ -uint8_t x_507; +x_496 = lean_ctor_get(x_494, 1); +lean_inc(x_496); lean_dec(x_494); -x_507 = !lean_is_exclusive(x_499); -if (x_507 == 0) +x_497 = lean_array_get_size(x_3); +x_498 = lean_usize_of_nat(x_497); +lean_dec(x_497); +x_499 = 0; +x_500 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__38___rarg(x_1, x_498, x_499, x_3, x_5, x_6, x_496); +lean_dec(x_1); +if (lean_obj_tag(x_500) == 0) { -return x_499; +uint8_t x_501; +x_501 = !lean_is_exclusive(x_500); +if (x_501 == 0) +{ +lean_object* x_502; lean_object* x_503; +x_502 = lean_ctor_get(x_500, 0); +x_503 = l_Lean_mkAppN(x_495, x_502); +lean_ctor_set(x_500, 0, x_503); +return x_500; } else { -lean_object* x_508; lean_object* x_509; lean_object* x_510; -x_508 = lean_ctor_get(x_499, 0); -x_509 = lean_ctor_get(x_499, 1); +lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; +x_504 = lean_ctor_get(x_500, 0); +x_505 = lean_ctor_get(x_500, 1); +lean_inc(x_505); +lean_inc(x_504); +lean_dec(x_500); +x_506 = l_Lean_mkAppN(x_495, x_504); +x_507 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_507, 0, x_506); +lean_ctor_set(x_507, 1, x_505); +return x_507; +} +} +else +{ +uint8_t x_508; +lean_dec(x_495); +x_508 = !lean_is_exclusive(x_500); +if (x_508 == 0) +{ +return x_500; +} +else +{ +lean_object* x_509; lean_object* x_510; lean_object* x_511; +x_509 = lean_ctor_get(x_500, 0); +x_510 = lean_ctor_get(x_500, 1); +lean_inc(x_510); lean_inc(x_509); -lean_inc(x_508); -lean_dec(x_499); -x_510 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_510, 0, x_508); -lean_ctor_set(x_510, 1, x_509); -return x_510; +lean_dec(x_500); +x_511 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_511, 0, x_509); +lean_ctor_set(x_511, 1, x_510); +return x_511; } } } else { -lean_object* x_511; lean_object* x_512; uint8_t x_513; -x_511 = lean_ctor_get(x_493, 0); -lean_inc(x_511); -x_512 = lean_ctor_get(x_493, 1); +lean_object* x_512; lean_object* x_513; uint8_t x_514; +x_512 = lean_ctor_get(x_494, 0); lean_inc(x_512); -lean_dec(x_493); -x_513 = l_Lean_Expr_isLambda(x_511); -if (x_513 == 0) +x_513 = lean_ctor_get(x_494, 1); +lean_inc(x_513); +lean_dec(x_494); +x_514 = l_Lean_Expr_isLambda(x_512); +if (x_514 == 0) { -lean_object* x_514; size_t x_515; size_t x_516; lean_object* x_517; -x_514 = lean_array_get_size(x_3); -x_515 = lean_usize_of_nat(x_514); -lean_dec(x_514); -x_516 = 0; -x_517 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__39___rarg(x_1, x_515, x_516, x_3, x_5, x_6, x_512); +lean_object* x_515; size_t x_516; size_t x_517; lean_object* x_518; +x_515 = lean_array_get_size(x_3); +x_516 = lean_usize_of_nat(x_515); +lean_dec(x_515); +x_517 = 0; +x_518 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__39___rarg(x_1, x_516, x_517, x_3, x_5, x_6, x_513); lean_dec(x_1); -if (lean_obj_tag(x_517) == 0) +if (lean_obj_tag(x_518) == 0) { -uint8_t x_518; -x_518 = !lean_is_exclusive(x_517); -if (x_518 == 0) +uint8_t x_519; +x_519 = !lean_is_exclusive(x_518); +if (x_519 == 0) { -lean_object* x_519; lean_object* x_520; -x_519 = lean_ctor_get(x_517, 0); -x_520 = l_Lean_mkAppN(x_511, x_519); -lean_ctor_set(x_517, 0, x_520); -return x_517; +lean_object* x_520; lean_object* x_521; +x_520 = lean_ctor_get(x_518, 0); +x_521 = l_Lean_mkAppN(x_512, x_520); +lean_ctor_set(x_518, 0, x_521); +return x_518; } else { -lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; -x_521 = lean_ctor_get(x_517, 0); -x_522 = lean_ctor_get(x_517, 1); +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; +x_522 = lean_ctor_get(x_518, 0); +x_523 = lean_ctor_get(x_518, 1); +lean_inc(x_523); lean_inc(x_522); -lean_inc(x_521); -lean_dec(x_517); -x_523 = l_Lean_mkAppN(x_511, x_521); -x_524 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_524, 0, x_523); -lean_ctor_set(x_524, 1, x_522); -return x_524; +lean_dec(x_518); +x_524 = l_Lean_mkAppN(x_512, x_522); +x_525 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_525, 0, x_524); +lean_ctor_set(x_525, 1, x_523); +return x_525; } } else { -uint8_t x_525; -lean_dec(x_511); -x_525 = !lean_is_exclusive(x_517); -if (x_525 == 0) +uint8_t x_526; +lean_dec(x_512); +x_526 = !lean_is_exclusive(x_518); +if (x_526 == 0) { -return x_517; +return x_518; } else { -lean_object* x_526; lean_object* x_527; lean_object* x_528; -x_526 = lean_ctor_get(x_517, 0); -x_527 = lean_ctor_get(x_517, 1); +lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_527 = lean_ctor_get(x_518, 0); +x_528 = lean_ctor_get(x_518, 1); +lean_inc(x_528); lean_inc(x_527); -lean_inc(x_526); -lean_dec(x_517); -x_528 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_528, 0, x_526); -lean_ctor_set(x_528, 1, x_527); -return x_528; +lean_dec(x_518); +x_529 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_529, 0, x_527); +lean_ctor_set(x_529, 1, x_528); +return x_529; } } } else { -lean_object* x_529; uint8_t x_530; lean_object* x_531; lean_object* x_532; +lean_object* x_530; uint8_t x_531; lean_object* x_532; lean_object* x_533; lean_dec(x_1); -x_529 = l_Array_reverse___rarg(x_3); -x_530 = 0; -x_531 = l_Lean_Expr_betaRev(x_511, x_529, x_530, x_530); -lean_dec(x_529); -x_532 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_531, x_5, x_6, x_512); -return x_532; +x_530 = l_Array_reverse___rarg(x_3); +x_531 = 0; +x_532 = l_Lean_Expr_betaRev(x_512, x_530, x_531, x_531); +lean_dec(x_530); +x_533 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_532, x_5, x_6, x_513); +return x_533; } } } else { -uint8_t x_533; +uint8_t x_534; lean_dec(x_3); lean_dec(x_1); -x_533 = !lean_is_exclusive(x_493); -if (x_533 == 0) +x_534 = !lean_is_exclusive(x_494); +if (x_534 == 0) { -return x_493; +return x_494; } else { -lean_object* x_534; lean_object* x_535; lean_object* x_536; -x_534 = lean_ctor_get(x_493, 0); -x_535 = lean_ctor_get(x_493, 1); +lean_object* x_535; lean_object* x_536; lean_object* x_537; +x_535 = lean_ctor_get(x_494, 0); +x_536 = lean_ctor_get(x_494, 1); +lean_inc(x_536); lean_inc(x_535); -lean_inc(x_534); -lean_dec(x_493); -x_536 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_536, 0, x_534); -lean_ctor_set(x_536, 1, x_535); -return x_536; +lean_dec(x_494); +x_537 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_537, 0, x_535); +lean_ctor_set(x_537, 1, x_536); +return x_537; } } } default: { -uint8_t x_537; lean_object* x_538; +uint8_t x_538; lean_object* x_539; lean_dec(x_4); -x_537 = l_Lean_Expr_isMVar(x_2); -x_538 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_538) == 0) +x_538 = l_Lean_Expr_isMVar(x_2); +x_539 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_539) == 0) { -if (x_537 == 0) +if (x_538 == 0) { -lean_object* x_539; lean_object* x_540; lean_object* x_541; size_t x_542; size_t x_543; lean_object* x_544; -x_539 = lean_ctor_get(x_538, 0); -lean_inc(x_539); -x_540 = lean_ctor_get(x_538, 1); +lean_object* x_540; lean_object* x_541; lean_object* x_542; size_t x_543; size_t x_544; lean_object* x_545; +x_540 = lean_ctor_get(x_539, 0); lean_inc(x_540); -lean_dec(x_538); -x_541 = lean_array_get_size(x_3); -x_542 = lean_usize_of_nat(x_541); -lean_dec(x_541); -x_543 = 0; -x_544 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__40___rarg(x_1, x_542, x_543, x_3, x_5, x_6, x_540); -lean_dec(x_1); -if (lean_obj_tag(x_544) == 0) -{ -uint8_t x_545; -x_545 = !lean_is_exclusive(x_544); -if (x_545 == 0) -{ -lean_object* x_546; lean_object* x_547; -x_546 = lean_ctor_get(x_544, 0); -x_547 = l_Lean_mkAppN(x_539, x_546); -lean_ctor_set(x_544, 0, x_547); -return x_544; -} -else -{ -lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; -x_548 = lean_ctor_get(x_544, 0); -x_549 = lean_ctor_get(x_544, 1); -lean_inc(x_549); -lean_inc(x_548); -lean_dec(x_544); -x_550 = l_Lean_mkAppN(x_539, x_548); -x_551 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_551, 0, x_550); -lean_ctor_set(x_551, 1, x_549); -return x_551; -} -} -else -{ -uint8_t x_552; +x_541 = lean_ctor_get(x_539, 1); +lean_inc(x_541); lean_dec(x_539); -x_552 = !lean_is_exclusive(x_544); -if (x_552 == 0) +x_542 = lean_array_get_size(x_3); +x_543 = lean_usize_of_nat(x_542); +lean_dec(x_542); +x_544 = 0; +x_545 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__40___rarg(x_1, x_543, x_544, x_3, x_5, x_6, x_541); +lean_dec(x_1); +if (lean_obj_tag(x_545) == 0) { -return x_544; +uint8_t x_546; +x_546 = !lean_is_exclusive(x_545); +if (x_546 == 0) +{ +lean_object* x_547; lean_object* x_548; +x_547 = lean_ctor_get(x_545, 0); +x_548 = l_Lean_mkAppN(x_540, x_547); +lean_ctor_set(x_545, 0, x_548); +return x_545; } else { -lean_object* x_553; lean_object* x_554; lean_object* x_555; -x_553 = lean_ctor_get(x_544, 0); -x_554 = lean_ctor_get(x_544, 1); +lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; +x_549 = lean_ctor_get(x_545, 0); +x_550 = lean_ctor_get(x_545, 1); +lean_inc(x_550); +lean_inc(x_549); +lean_dec(x_545); +x_551 = l_Lean_mkAppN(x_540, x_549); +x_552 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_552, 0, x_551); +lean_ctor_set(x_552, 1, x_550); +return x_552; +} +} +else +{ +uint8_t x_553; +lean_dec(x_540); +x_553 = !lean_is_exclusive(x_545); +if (x_553 == 0) +{ +return x_545; +} +else +{ +lean_object* x_554; lean_object* x_555; lean_object* x_556; +x_554 = lean_ctor_get(x_545, 0); +x_555 = lean_ctor_get(x_545, 1); +lean_inc(x_555); lean_inc(x_554); -lean_inc(x_553); -lean_dec(x_544); -x_555 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_555, 0, x_553); -lean_ctor_set(x_555, 1, x_554); -return x_555; +lean_dec(x_545); +x_556 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_556, 0, x_554); +lean_ctor_set(x_556, 1, x_555); +return x_556; } } } else { -lean_object* x_556; lean_object* x_557; uint8_t x_558; -x_556 = lean_ctor_get(x_538, 0); -lean_inc(x_556); -x_557 = lean_ctor_get(x_538, 1); +lean_object* x_557; lean_object* x_558; uint8_t x_559; +x_557 = lean_ctor_get(x_539, 0); lean_inc(x_557); -lean_dec(x_538); -x_558 = l_Lean_Expr_isLambda(x_556); -if (x_558 == 0) +x_558 = lean_ctor_get(x_539, 1); +lean_inc(x_558); +lean_dec(x_539); +x_559 = l_Lean_Expr_isLambda(x_557); +if (x_559 == 0) { -lean_object* x_559; size_t x_560; size_t x_561; lean_object* x_562; -x_559 = lean_array_get_size(x_3); -x_560 = lean_usize_of_nat(x_559); -lean_dec(x_559); -x_561 = 0; -x_562 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__41___rarg(x_1, x_560, x_561, x_3, x_5, x_6, x_557); +lean_object* x_560; size_t x_561; size_t x_562; lean_object* x_563; +x_560 = lean_array_get_size(x_3); +x_561 = lean_usize_of_nat(x_560); +lean_dec(x_560); +x_562 = 0; +x_563 = l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__41___rarg(x_1, x_561, x_562, x_3, x_5, x_6, x_558); lean_dec(x_1); -if (lean_obj_tag(x_562) == 0) +if (lean_obj_tag(x_563) == 0) { -uint8_t x_563; -x_563 = !lean_is_exclusive(x_562); -if (x_563 == 0) +uint8_t x_564; +x_564 = !lean_is_exclusive(x_563); +if (x_564 == 0) { -lean_object* x_564; lean_object* x_565; -x_564 = lean_ctor_get(x_562, 0); -x_565 = l_Lean_mkAppN(x_556, x_564); -lean_ctor_set(x_562, 0, x_565); -return x_562; +lean_object* x_565; lean_object* x_566; +x_565 = lean_ctor_get(x_563, 0); +x_566 = l_Lean_mkAppN(x_557, x_565); +lean_ctor_set(x_563, 0, x_566); +return x_563; } else { -lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; -x_566 = lean_ctor_get(x_562, 0); -x_567 = lean_ctor_get(x_562, 1); +lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; +x_567 = lean_ctor_get(x_563, 0); +x_568 = lean_ctor_get(x_563, 1); +lean_inc(x_568); lean_inc(x_567); -lean_inc(x_566); -lean_dec(x_562); -x_568 = l_Lean_mkAppN(x_556, x_566); -x_569 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_569, 0, x_568); -lean_ctor_set(x_569, 1, x_567); -return x_569; +lean_dec(x_563); +x_569 = l_Lean_mkAppN(x_557, x_567); +x_570 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_570, 0, x_569); +lean_ctor_set(x_570, 1, x_568); +return x_570; } } else { -uint8_t x_570; -lean_dec(x_556); -x_570 = !lean_is_exclusive(x_562); -if (x_570 == 0) +uint8_t x_571; +lean_dec(x_557); +x_571 = !lean_is_exclusive(x_563); +if (x_571 == 0) { -return x_562; +return x_563; } else { -lean_object* x_571; lean_object* x_572; lean_object* x_573; -x_571 = lean_ctor_get(x_562, 0); -x_572 = lean_ctor_get(x_562, 1); +lean_object* x_572; lean_object* x_573; lean_object* x_574; +x_572 = lean_ctor_get(x_563, 0); +x_573 = lean_ctor_get(x_563, 1); +lean_inc(x_573); lean_inc(x_572); -lean_inc(x_571); -lean_dec(x_562); -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; +lean_dec(x_563); +x_574 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_574, 0, x_572); +lean_ctor_set(x_574, 1, x_573); +return x_574; } } } else { -lean_object* x_574; uint8_t x_575; lean_object* x_576; lean_object* x_577; +lean_object* x_575; uint8_t x_576; lean_object* x_577; lean_object* x_578; lean_dec(x_1); -x_574 = l_Array_reverse___rarg(x_3); -x_575 = 0; -x_576 = l_Lean_Expr_betaRev(x_556, x_574, x_575, x_575); -lean_dec(x_574); -x_577 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_576, x_5, x_6, x_557); -return x_577; +x_575 = l_Array_reverse___rarg(x_3); +x_576 = 0; +x_577 = l_Lean_Expr_betaRev(x_557, x_575, x_576, x_576); +lean_dec(x_575); +x_578 = l_Lean_instantiateExprMVars___at_Lean_instantiateMVarsCore___spec__2___rarg(x_577, x_5, x_6, x_558); +return x_578; } } } else { -uint8_t x_578; +uint8_t x_579; lean_dec(x_3); lean_dec(x_1); -x_578 = !lean_is_exclusive(x_538); -if (x_578 == 0) +x_579 = !lean_is_exclusive(x_539); +if (x_579 == 0) { -return x_538; +return x_539; } else { -lean_object* x_579; lean_object* x_580; lean_object* x_581; -x_579 = lean_ctor_get(x_538, 0); -x_580 = lean_ctor_get(x_538, 1); +lean_object* x_580; lean_object* x_581; lean_object* x_582; +x_580 = lean_ctor_get(x_539, 0); +x_581 = lean_ctor_get(x_539, 1); +lean_inc(x_581); lean_inc(x_580); -lean_inc(x_579); -lean_dec(x_538); -x_581 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_581, 0, x_579); -lean_ctor_set(x_581, 1, x_580); -return x_581; +lean_dec(x_539); +x_582 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_582, 0, x_580); +lean_ctor_set(x_582, 1, x_581); +return x_582; } } } @@ -55172,7 +54356,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_isLevelMVarAssignable___rarg___lambda__1___closed__1; x_2 = l_Lean_MetavarContext_getLevelDepth___closed__1; -x_3 = lean_unsigned_to_nat(789u); +x_3 = lean_unsigned_to_nat(785u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_MetavarContext_getDecl___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -73062,1484 +72246,6 @@ lean_dec(x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_3, x_2); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_5); -lean_dec(x_1); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_4); -lean_ctor_set(x_8, 1, x_6); -return x_8; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_array_uget(x_4, x_3); -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_array_uset(x_4, x_3, x_10); -lean_inc(x_5); -lean_inc(x_1); -x_12 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_9, x_5, x_6); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = 1; -x_16 = lean_usize_add(x_3, x_15); -x_17 = lean_array_uset(x_11, x_3, x_13); -x_3 = x_16; -x_4 = x_17; -x_6 = x_14; -goto _start; -} -else -{ -uint8_t x_19; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_19 = !lean_is_exclusive(x_12); -if (x_19 == 0) -{ -return x_12; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_12, 0); -x_21 = lean_ctor_get(x_12, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_12); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -} -} -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_usize_dec_eq(x_3, x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_array_uget(x_2, x_3); -x_7 = lean_ctor_get(x_1, 1); -x_8 = lean_expr_eqv(x_7, x_6); -lean_dec(x_6); -if (x_8 == 0) -{ -size_t x_9; size_t x_10; -x_9 = 1; -x_10 = lean_usize_add(x_3, x_9); -x_3 = x_10; -goto _start; -} -else -{ -uint8_t x_12; -x_12 = 1; -return x_12; -} -} -else -{ -uint8_t x_13; -x_13 = 0; -return x_13; -} -} -} -LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_4, 0); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_6, 6); -x_9 = l_Std_PersistentHashMap_insert___at_Lean_assignExprMVar___spec__1(x_8, x_1, x_2); -x_10 = 1; -lean_ctor_set(x_6, 6, x_9); -lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_10); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_4); -return x_12; -} -else -{ -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; -x_13 = lean_ctor_get(x_6, 0); -x_14 = lean_ctor_get(x_6, 1); -x_15 = lean_ctor_get(x_6, 2); -x_16 = lean_ctor_get(x_6, 3); -x_17 = lean_ctor_get(x_6, 4); -x_18 = lean_ctor_get(x_6, 5); -x_19 = lean_ctor_get(x_6, 6); -x_20 = lean_ctor_get(x_6, 7); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_6); -x_21 = l_Std_PersistentHashMap_insert___at_Lean_assignExprMVar___spec__1(x_19, x_1, x_2); -x_22 = 1; -x_23 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_23, 0, x_13); -lean_ctor_set(x_23, 1, x_14); -lean_ctor_set(x_23, 2, x_15); -lean_ctor_set(x_23, 3, x_16); -lean_ctor_set(x_23, 4, x_17); -lean_ctor_set(x_23, 5, x_18); -lean_ctor_set(x_23, 6, x_21); -lean_ctor_set(x_23, 7, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*8, x_22); -lean_ctor_set(x_4, 0, x_23); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_4); -return x_25; -} -} -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; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_26 = lean_ctor_get(x_4, 0); -x_27 = lean_ctor_get(x_4, 1); -x_28 = lean_ctor_get(x_4, 2); -x_29 = lean_ctor_get(x_4, 3); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_4); -x_30 = lean_ctor_get(x_26, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -x_32 = lean_ctor_get(x_26, 2); -lean_inc(x_32); -x_33 = lean_ctor_get(x_26, 3); -lean_inc(x_33); -x_34 = lean_ctor_get(x_26, 4); -lean_inc(x_34); -x_35 = lean_ctor_get(x_26, 5); -lean_inc(x_35); -x_36 = lean_ctor_get(x_26, 6); -lean_inc(x_36); -x_37 = lean_ctor_get(x_26, 7); -lean_inc(x_37); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - lean_ctor_release(x_26, 2); - lean_ctor_release(x_26, 3); - lean_ctor_release(x_26, 4); - lean_ctor_release(x_26, 5); - lean_ctor_release(x_26, 6); - lean_ctor_release(x_26, 7); - x_38 = x_26; -} else { - lean_dec_ref(x_26); - x_38 = lean_box(0); -} -x_39 = l_Std_PersistentHashMap_insert___at_Lean_assignExprMVar___spec__1(x_36, x_1, x_2); -x_40 = 1; -if (lean_is_scalar(x_38)) { - x_41 = lean_alloc_ctor(0, 8, 1); -} else { - x_41 = x_38; -} -lean_ctor_set(x_41, 0, x_30); -lean_ctor_set(x_41, 1, x_31); -lean_ctor_set(x_41, 2, x_32); -lean_ctor_set(x_41, 3, x_33); -lean_ctor_set(x_41, 4, x_34); -lean_ctor_set(x_41, 5, x_35); -lean_ctor_set(x_41, 6, x_39); -lean_ctor_set(x_41, 7, x_37); -lean_ctor_set_uint8(x_41, sizeof(void*)*8, x_40); -x_42 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_27); -lean_ctor_set(x_42, 2, x_28); -lean_ctor_set(x_42, 3, x_29); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -return x_44; -} -} -} -LEAN_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_ctor_get(x_5, 0); -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_ctor_get(x_7, 7); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_2); -lean_ctor_set(x_10, 1, x_3); -x_11 = l_Std_PersistentHashMap_insert___at_Lean_assignDelayedMVar___spec__1(x_9, x_1, x_10); -x_12 = 1; -lean_ctor_set(x_7, 7, x_11); -lean_ctor_set_uint8(x_7, sizeof(void*)*8, x_12); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_5); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_15 = lean_ctor_get(x_7, 0); -x_16 = lean_ctor_get(x_7, 1); -x_17 = lean_ctor_get(x_7, 2); -x_18 = lean_ctor_get(x_7, 3); -x_19 = lean_ctor_get(x_7, 4); -x_20 = lean_ctor_get(x_7, 5); -x_21 = lean_ctor_get(x_7, 6); -x_22 = lean_ctor_get(x_7, 7); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_7); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_2); -lean_ctor_set(x_23, 1, x_3); -x_24 = l_Std_PersistentHashMap_insert___at_Lean_assignDelayedMVar___spec__1(x_22, x_1, x_23); -x_25 = 1; -x_26 = lean_alloc_ctor(0, 8, 1); -lean_ctor_set(x_26, 0, x_15); -lean_ctor_set(x_26, 1, x_16); -lean_ctor_set(x_26, 2, x_17); -lean_ctor_set(x_26, 3, x_18); -lean_ctor_set(x_26, 4, x_19); -lean_ctor_set(x_26, 5, x_20); -lean_ctor_set(x_26, 6, x_21); -lean_ctor_set(x_26, 7, x_24); -lean_ctor_set_uint8(x_26, sizeof(void*)*8, x_25); -lean_ctor_set(x_5, 0, x_26); -x_27 = lean_box(0); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_5); -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; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_29 = lean_ctor_get(x_5, 0); -x_30 = lean_ctor_get(x_5, 1); -x_31 = lean_ctor_get(x_5, 2); -x_32 = lean_ctor_get(x_5, 3); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_5); -x_33 = lean_ctor_get(x_29, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_29, 1); -lean_inc(x_34); -x_35 = lean_ctor_get(x_29, 2); -lean_inc(x_35); -x_36 = lean_ctor_get(x_29, 3); -lean_inc(x_36); -x_37 = lean_ctor_get(x_29, 4); -lean_inc(x_37); -x_38 = lean_ctor_get(x_29, 5); -lean_inc(x_38); -x_39 = lean_ctor_get(x_29, 6); -lean_inc(x_39); -x_40 = lean_ctor_get(x_29, 7); -lean_inc(x_40); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - lean_ctor_release(x_29, 2); - lean_ctor_release(x_29, 3); - lean_ctor_release(x_29, 4); - lean_ctor_release(x_29, 5); - lean_ctor_release(x_29, 6); - lean_ctor_release(x_29, 7); - x_41 = x_29; -} else { - lean_dec_ref(x_29); - x_41 = lean_box(0); -} -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_2); -lean_ctor_set(x_42, 1, x_3); -x_43 = l_Std_PersistentHashMap_insert___at_Lean_assignDelayedMVar___spec__1(x_40, x_1, x_42); -x_44 = 1; -if (lean_is_scalar(x_41)) { - x_45 = lean_alloc_ctor(0, 8, 1); -} else { - x_45 = x_41; -} -lean_ctor_set(x_45, 0, x_33); -lean_ctor_set(x_45, 1, x_34); -lean_ctor_set(x_45, 2, x_35); -lean_ctor_set(x_45, 3, x_36); -lean_ctor_set(x_45, 4, x_37); -lean_ctor_set(x_45, 5, x_38); -lean_ctor_set(x_45, 6, x_39); -lean_ctor_set(x_45, 7, x_43); -lean_ctor_set_uint8(x_45, sizeof(void*)*8, x_44); -x_46 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_30); -lean_ctor_set(x_46, 2, x_31); -lean_ctor_set(x_46, 3, x_32); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__5(size_t x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; -x_7 = lean_usize_dec_eq(x_4, x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; size_t x_12; size_t x_13; -x_8 = lean_array_uget(x_3, x_4); -x_9 = lean_array_get_size(x_2); -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_nat_dec_lt(x_10, x_9); -x_12 = 1; -x_13 = lean_usize_add(x_4, x_12); -if (x_11 == 0) -{ -lean_object* x_14; -lean_dec(x_9); -x_14 = lean_array_push(x_6, x_8); -x_4 = x_13; -x_6 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = lean_nat_dec_le(x_9, x_9); -if (x_16 == 0) -{ -lean_object* x_17; -lean_dec(x_9); -x_17 = lean_array_push(x_6, x_8); -x_4 = x_13; -x_6 = x_17; -goto _start; -} -else -{ -size_t x_19; uint8_t x_20; -x_19 = lean_usize_of_nat(x_9); -lean_dec(x_9); -x_20 = l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__2(x_8, x_2, x_1, x_19); -if (x_20 == 0) -{ -lean_object* x_21; -x_21 = lean_array_push(x_6, x_8); -x_4 = x_13; -x_6 = x_21; -goto _start; -} -else -{ -lean_dec(x_8); -x_4 = x_13; -goto _start; -} -} -} -} -else -{ -return x_6; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = l_Lean_mkAppN(x_1, x_2); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_3); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_6); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; -x_11 = lean_array_get_size(x_3); -x_12 = lean_usize_of_nat(x_11); -lean_dec(x_11); -x_13 = 0; -lean_inc(x_9); -x_14 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__1(x_1, x_12, x_13, x_3, x_9, x_10); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -lean_inc(x_9); -lean_inc(x_5); -x_17 = l_Lean_MetavarContext_MkBinding_collectForwardDeps(x_5, x_6, x_9, x_16); -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; uint8_t x_24; lean_object* x_25; uint8_t x_26; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_18); -lean_inc(x_5); -x_20 = l_Lean_MetavarContext_MkBinding_reduceLocalContext(x_5, x_18); -x_21 = lean_ctor_get(x_4, 4); -lean_inc(x_21); -x_22 = lean_array_get_size(x_21); -x_23 = lean_unsigned_to_nat(0u); -x_24 = lean_nat_dec_lt(x_23, x_22); -x_25 = lean_ctor_get(x_4, 2); -lean_inc(x_25); -x_26 = !lean_is_exclusive(x_19); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_19, 3); -x_28 = l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1; -lean_ctor_set(x_19, 3, x_28); -lean_inc(x_9); -lean_inc(x_18); -lean_inc(x_5); -x_29 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(x_5, x_18, x_7, x_25, x_9, x_19); -if (x_24 == 0) -{ -lean_object* x_122; -lean_dec(x_22); -lean_dec(x_21); -x_122 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_30 = x_122; -goto block_121; -} -else -{ -uint8_t x_123; -x_123 = lean_nat_dec_le(x_22, x_22); -if (x_123 == 0) -{ -lean_object* x_124; -lean_dec(x_22); -lean_dec(x_21); -x_124 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_30 = x_124; -goto block_121; -} -else -{ -size_t x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_126 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_127 = l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__5(x_13, x_18, x_21, x_13, x_125, x_126); -lean_dec(x_21); -x_30 = x_127; -goto block_121; -} -} -block_121: -{ -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -x_32 = lean_ctor_get(x_31, 2); -lean_inc(x_32); -x_33 = lean_ctor_get(x_29, 0); -lean_inc(x_33); -lean_dec(x_29); -x_34 = !lean_is_exclusive(x_31); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_35 = lean_ctor_get(x_31, 0); -x_36 = lean_ctor_get(x_31, 3); -lean_dec(x_36); -x_37 = lean_ctor_get(x_31, 2); -lean_dec(x_37); -x_38 = !lean_is_exclusive(x_32); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_39 = lean_ctor_get(x_32, 0); -x_40 = lean_ctor_get(x_32, 1); -lean_inc(x_40); -lean_inc(x_39); -x_41 = lean_name_mk_numeral(x_39, x_40); -lean_inc(x_41); -x_42 = l_Lean_mkMVar(x_41); -x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_5, x_42, x_18, x_7); -x_44 = lean_ctor_get(x_4, 5); -lean_inc(x_44); -lean_dec(x_4); -x_45 = l_Lean_Expr_getAppNumArgsAux(x_43, x_23); -x_46 = lean_nat_add(x_44, x_45); -lean_dec(x_45); -lean_dec(x_44); -x_47 = lean_box(0); -lean_inc(x_41); -x_48 = l_Lean_MetavarContext_addExprMVarDecl(x_35, x_41, x_47, x_20, x_30, x_33, x_7, x_46); -x_49 = lean_unsigned_to_nat(1u); -x_50 = lean_nat_add(x_40, x_49); -lean_dec(x_40); -lean_ctor_set(x_32, 1, x_50); -lean_ctor_set(x_31, 3, x_27); -lean_ctor_set(x_31, 0, x_48); -x_51 = lean_box(x_7); -if (lean_obj_tag(x_51) == 2) -{ -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_inc(x_8); -lean_inc(x_18); -x_52 = l_Array_append___rarg(x_18, x_8); -x_53 = l_Lean_mkMVar(x_2); -x_54 = l_Lean_mkAppN(x_53, x_8); -x_55 = l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4(x_41, x_52, x_54, x_9, x_31); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_43, x_15, x_18, x_56, x_9, x_57); -lean_dec(x_9); -lean_dec(x_56); -return x_58; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_51); -lean_dec(x_41); -lean_dec(x_8); -lean_inc(x_43); -x_59 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3(x_2, x_43, x_9, x_31); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_43, x_15, x_18, x_60, x_9, x_61); -lean_dec(x_9); -lean_dec(x_60); -return x_62; -} -} -else -{ -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; -x_63 = lean_ctor_get(x_32, 0); -x_64 = lean_ctor_get(x_32, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_32); -lean_inc(x_64); -lean_inc(x_63); -x_65 = lean_name_mk_numeral(x_63, x_64); -lean_inc(x_65); -x_66 = l_Lean_mkMVar(x_65); -x_67 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_5, x_66, x_18, x_7); -x_68 = lean_ctor_get(x_4, 5); -lean_inc(x_68); -lean_dec(x_4); -x_69 = l_Lean_Expr_getAppNumArgsAux(x_67, x_23); -x_70 = lean_nat_add(x_68, x_69); -lean_dec(x_69); -lean_dec(x_68); -x_71 = lean_box(0); -lean_inc(x_65); -x_72 = l_Lean_MetavarContext_addExprMVarDecl(x_35, x_65, x_71, x_20, x_30, x_33, x_7, x_70); -x_73 = lean_unsigned_to_nat(1u); -x_74 = lean_nat_add(x_64, x_73); -lean_dec(x_64); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_63); -lean_ctor_set(x_75, 1, x_74); -lean_ctor_set(x_31, 3, x_27); -lean_ctor_set(x_31, 2, x_75); -lean_ctor_set(x_31, 0, x_72); -x_76 = lean_box(x_7); -if (lean_obj_tag(x_76) == 2) -{ -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_inc(x_8); -lean_inc(x_18); -x_77 = l_Array_append___rarg(x_18, x_8); -x_78 = l_Lean_mkMVar(x_2); -x_79 = l_Lean_mkAppN(x_78, x_8); -x_80 = l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4(x_65, x_77, x_79, x_9, x_31); -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); -x_83 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_67, x_15, x_18, x_81, x_9, x_82); -lean_dec(x_9); -lean_dec(x_81); -return x_83; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_76); -lean_dec(x_65); -lean_dec(x_8); -lean_inc(x_67); -x_84 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3(x_2, x_67, x_9, x_31); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_67, x_15, x_18, x_85, x_9, x_86); -lean_dec(x_9); -lean_dec(x_85); -return x_87; -} -} -} -else -{ -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; -x_88 = lean_ctor_get(x_31, 0); -x_89 = lean_ctor_get(x_31, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_31); -x_90 = lean_ctor_get(x_32, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_32, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_92 = x_32; -} else { - lean_dec_ref(x_32); - x_92 = lean_box(0); -} -lean_inc(x_91); -lean_inc(x_90); -x_93 = lean_name_mk_numeral(x_90, x_91); -lean_inc(x_93); -x_94 = l_Lean_mkMVar(x_93); -x_95 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_5, x_94, x_18, x_7); -x_96 = lean_ctor_get(x_4, 5); -lean_inc(x_96); -lean_dec(x_4); -x_97 = l_Lean_Expr_getAppNumArgsAux(x_95, x_23); -x_98 = lean_nat_add(x_96, x_97); -lean_dec(x_97); -lean_dec(x_96); -x_99 = lean_box(0); -lean_inc(x_93); -x_100 = l_Lean_MetavarContext_addExprMVarDecl(x_88, x_93, x_99, x_20, x_30, x_33, x_7, x_98); -x_101 = lean_unsigned_to_nat(1u); -x_102 = lean_nat_add(x_91, x_101); -lean_dec(x_91); -if (lean_is_scalar(x_92)) { - x_103 = lean_alloc_ctor(0, 2, 0); -} else { - x_103 = x_92; -} -lean_ctor_set(x_103, 0, x_90); -lean_ctor_set(x_103, 1, x_102); -x_104 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_104, 0, x_100); -lean_ctor_set(x_104, 1, x_89); -lean_ctor_set(x_104, 2, x_103); -lean_ctor_set(x_104, 3, x_27); -x_105 = lean_box(x_7); -if (lean_obj_tag(x_105) == 2) -{ -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_inc(x_8); -lean_inc(x_18); -x_106 = l_Array_append___rarg(x_18, x_8); -x_107 = l_Lean_mkMVar(x_2); -x_108 = l_Lean_mkAppN(x_107, x_8); -x_109 = l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4(x_93, x_106, x_108, x_9, x_104); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_112 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_95, x_15, x_18, x_110, x_9, x_111); -lean_dec(x_9); -lean_dec(x_110); -return x_112; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_105); -lean_dec(x_93); -lean_dec(x_8); -lean_inc(x_95); -x_113 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3(x_2, x_95, x_9, x_104); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_116 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_95, x_15, x_18, x_114, x_9, x_115); -lean_dec(x_9); -lean_dec(x_114); -return x_116; -} -} -} -else -{ -uint8_t x_117; -lean_dec(x_30); -lean_dec(x_27); -lean_dec(x_20); -lean_dec(x_18); -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_117 = !lean_is_exclusive(x_29); -if (x_117 == 0) -{ -return x_29; -} -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_29, 0); -x_119 = lean_ctor_get(x_29, 1); -lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_29); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; -} -} -} -} -else -{ -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; -x_128 = lean_ctor_get(x_19, 0); -x_129 = lean_ctor_get(x_19, 1); -x_130 = lean_ctor_get(x_19, 2); -x_131 = lean_ctor_get(x_19, 3); -lean_inc(x_131); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_19); -x_132 = l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1; -x_133 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_133, 0, x_128); -lean_ctor_set(x_133, 1, x_129); -lean_ctor_set(x_133, 2, x_130); -lean_ctor_set(x_133, 3, x_132); -lean_inc(x_9); -lean_inc(x_18); -lean_inc(x_5); -x_134 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(x_5, x_18, x_7, x_25, x_9, x_133); -if (x_24 == 0) -{ -lean_object* x_174; -lean_dec(x_22); -lean_dec(x_21); -x_174 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_135 = x_174; -goto block_173; -} -else -{ -uint8_t x_175; -x_175 = lean_nat_dec_le(x_22, x_22); -if (x_175 == 0) -{ -lean_object* x_176; -lean_dec(x_22); -lean_dec(x_21); -x_176 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_135 = x_176; -goto block_173; -} -else -{ -size_t x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_178 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_179 = l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__5(x_13, x_18, x_21, x_13, x_177, x_178); -lean_dec(x_21); -x_135 = x_179; -goto block_173; -} -} -block_173: -{ -if (lean_obj_tag(x_134) == 0) -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_136 = lean_ctor_get(x_134, 1); -lean_inc(x_136); -x_137 = lean_ctor_get(x_136, 2); -lean_inc(x_137); -x_138 = lean_ctor_get(x_134, 0); -lean_inc(x_138); -lean_dec(x_134); -x_139 = lean_ctor_get(x_136, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_136, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - lean_ctor_release(x_136, 2); - lean_ctor_release(x_136, 3); - x_141 = x_136; -} else { - lean_dec_ref(x_136); - x_141 = lean_box(0); -} -x_142 = lean_ctor_get(x_137, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_137, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_144 = x_137; -} else { - lean_dec_ref(x_137); - x_144 = lean_box(0); -} -lean_inc(x_143); -lean_inc(x_142); -x_145 = lean_name_mk_numeral(x_142, x_143); -lean_inc(x_145); -x_146 = l_Lean_mkMVar(x_145); -x_147 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_5, x_146, x_18, x_7); -x_148 = lean_ctor_get(x_4, 5); -lean_inc(x_148); -lean_dec(x_4); -x_149 = l_Lean_Expr_getAppNumArgsAux(x_147, x_23); -x_150 = lean_nat_add(x_148, x_149); -lean_dec(x_149); -lean_dec(x_148); -x_151 = lean_box(0); -lean_inc(x_145); -x_152 = l_Lean_MetavarContext_addExprMVarDecl(x_139, x_145, x_151, x_20, x_135, x_138, x_7, x_150); -x_153 = lean_unsigned_to_nat(1u); -x_154 = lean_nat_add(x_143, x_153); -lean_dec(x_143); -if (lean_is_scalar(x_144)) { - x_155 = lean_alloc_ctor(0, 2, 0); -} else { - x_155 = x_144; -} -lean_ctor_set(x_155, 0, x_142); -lean_ctor_set(x_155, 1, x_154); -if (lean_is_scalar(x_141)) { - x_156 = lean_alloc_ctor(0, 4, 0); -} else { - x_156 = x_141; -} -lean_ctor_set(x_156, 0, x_152); -lean_ctor_set(x_156, 1, x_140); -lean_ctor_set(x_156, 2, x_155); -lean_ctor_set(x_156, 3, x_131); -x_157 = lean_box(x_7); -if (lean_obj_tag(x_157) == 2) -{ -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_inc(x_8); -lean_inc(x_18); -x_158 = l_Array_append___rarg(x_18, x_8); -x_159 = l_Lean_mkMVar(x_2); -x_160 = l_Lean_mkAppN(x_159, x_8); -x_161 = l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4(x_145, x_158, x_160, x_9, x_156); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_147, x_15, x_18, x_162, x_9, x_163); -lean_dec(x_9); -lean_dec(x_162); -return x_164; -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec(x_157); -lean_dec(x_145); -lean_dec(x_8); -lean_inc(x_147); -x_165 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3(x_2, x_147, x_9, x_156); -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_168 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_147, x_15, x_18, x_166, x_9, x_167); -lean_dec(x_9); -lean_dec(x_166); -return x_168; -} -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -lean_dec(x_135); -lean_dec(x_131); -lean_dec(x_20); -lean_dec(x_18); -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_169 = lean_ctor_get(x_134, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_134, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_171 = x_134; -} else { - lean_dec_ref(x_134); - x_171 = lean_box(0); -} -if (lean_is_scalar(x_171)) { - x_172 = lean_alloc_ctor(1, 2, 0); -} else { - x_172 = x_171; -} -lean_ctor_set(x_172, 0, x_169); -lean_ctor_set(x_172, 1, x_170); -return x_172; -} -} -} -} -else -{ -uint8_t x_180; -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_180 = !lean_is_exclusive(x_17); -if (x_180 == 0) -{ -return x_17; -} -else -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_181 = lean_ctor_get(x_17, 0); -x_182 = lean_ctor_get(x_17, 1); -lean_inc(x_182); -lean_inc(x_181); -lean_dec(x_17); -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_181); -lean_ctor_set(x_183, 1, x_182); -return x_183; -} -} -} -else -{ -uint8_t x_184; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_184 = !lean_is_exclusive(x_14); -if (x_184 == 0) -{ -return x_14; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_14, 0); -x_186 = lean_ctor_get(x_14, 1); -lean_inc(x_186); -lean_inc(x_185); -lean_dec(x_14); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; -} -} -} -} -LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get_uint8(x_4, sizeof(void*)*2 + 1); -x_7 = l_Lean_mkForall(x_3, x_6, x_1, x_2); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_5); -return x_8; -} -} -static lean_object* _init_l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("x", 1); -return x_1; -} -} -static lean_object* _init_l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_nat_dec_eq(x_4, x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_sub(x_4, x_10); -lean_dec(x_4); -x_12 = l_Lean_instInhabitedExpr; -x_13 = lean_array_get(x_12, x_2, x_11); -x_14 = l_Lean_Expr_isFVar(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_ctor_get(x_7, 0); -lean_inc(x_15); -x_16 = l_Lean_Expr_mvarId_x21(x_13); -lean_dec(x_13); -x_17 = l_Lean_MetavarContext_getDecl(x_15, x_16); -x_18 = lean_ctor_get(x_17, 2); -lean_inc(x_18); -x_19 = l_Lean_Expr_headBeta(x_18); -lean_inc(x_6); -lean_inc(x_2); -x_20 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_19, x_6, x_7); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_ctor_get(x_17, 0); -lean_inc(x_23); -lean_dec(x_17); -x_24 = l_Lean_Name_isAnonymous(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(x_21, x_5, x_23, x_6, x_22); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_4 = x_11; -x_5 = x_26; -x_7 = x_27; -goto _start; -} -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_dec(x_23); -x_29 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__2; -lean_inc(x_6); -x_30 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkFreshBinderName(x_29, x_6, x_22); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(x_21, x_5, x_31, x_6, x_32); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_4 = x_11; -x_5 = x_34; -x_7 = x_35; -goto _start; -} -} -else -{ -uint8_t x_37; -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_37 = !lean_is_exclusive(x_20); -if (x_37 == 0) -{ -return x_20; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_20, 0); -x_39 = lean_ctor_get(x_20, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_20); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_object* x_41; -lean_inc(x_1); -x_41 = l_Lean_LocalContext_getFVar_x21(x_1, x_13); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_41, 2); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 3); -lean_inc(x_43); -x_44 = lean_ctor_get_uint8(x_41, sizeof(void*)*4); -lean_dec(x_41); -x_45 = l_Lean_Expr_headBeta(x_43); -lean_inc(x_6); -lean_inc(x_2); -x_46 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_45, x_6, x_7); -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_mkForall(x_42, x_44, x_47, x_5); -x_4 = x_11; -x_5 = x_49; -x_7 = x_48; -goto _start; -} -else -{ -uint8_t x_51; -lean_dec(x_42); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_51 = !lean_is_exclusive(x_46); -if (x_51 == 0) -{ -return x_46; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_46, 0); -x_53 = lean_ctor_get(x_46, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_46); -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_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; -x_55 = lean_ctor_get(x_41, 2); -lean_inc(x_55); -x_56 = lean_ctor_get(x_41, 3); -lean_inc(x_56); -x_57 = lean_ctor_get(x_41, 4); -lean_inc(x_57); -x_58 = lean_ctor_get_uint8(x_41, sizeof(void*)*5); -lean_dec(x_41); -x_59 = l_Lean_Expr_headBeta(x_56); -lean_inc(x_6); -lean_inc(x_2); -x_60 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_59, x_6, x_7); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -lean_inc(x_6); -lean_inc(x_2); -x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_57, x_6, x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -lean_inc(x_61); -lean_inc(x_55); -x_66 = l_Lean_mkLet(x_55, x_61, x_64, x_5, x_58); -x_67 = lean_box(x_3); -if (lean_obj_tag(x_67) == 2) -{ -lean_object* x_68; uint8_t x_69; lean_object* x_70; -x_68 = lean_expr_lift_loose_bvars(x_66, x_8, x_10); -lean_dec(x_66); -x_69 = 0; -x_70 = l_Lean_mkForall(x_55, x_69, x_61, x_68); -x_4 = x_11; -x_5 = x_70; -x_7 = x_65; -goto _start; -} -else -{ -lean_dec(x_67); -lean_dec(x_61); -lean_dec(x_55); -x_4 = x_11; -x_5 = x_66; -x_7 = x_65; -goto _start; -} -} -else -{ -uint8_t x_73; -lean_dec(x_61); -lean_dec(x_55); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_73 = !lean_is_exclusive(x_63); -if (x_73 == 0) -{ -return x_63; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_63, 0); -x_75 = lean_ctor_get(x_63, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_63); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -} -else -{ -uint8_t x_77; -lean_dec(x_57); -lean_dec(x_55); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_77 = !lean_is_exclusive(x_60); -if (x_77 == 0) -{ -return x_60; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_60, 0); -x_79 = lean_ctor_get(x_60, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_60); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -} -} -else -{ -lean_object* x_81; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_5); -lean_ctor_set(x_81, 1, x_7); -return x_81; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_array_get_size(x_2); -lean_inc(x_5); -lean_inc(x_2); -x_8 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_7, x_4, x_5, x_6); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1(x_1, x_2, x_3, x_7, x_9, x_5, x_10); -return x_11; -} -else -{ -uint8_t x_12; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_12 = !lean_is_exclusive(x_8); -if (x_12 == 0) -{ -return x_8; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_8, 0); -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_8); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -} -} LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -78161,7 +75867,177 @@ return x_21; } } } -LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_eq(x_3, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_array_uget(x_2, x_3); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_expr_eqv(x_7, x_6); +lean_dec(x_6); +if (x_8 == 0) +{ +size_t x_9; size_t x_10; +x_9 = 1; +x_10 = lean_usize_add(x_3, x_9); +x_3 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +x_12 = 1; +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = 0; +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_6, 6); +x_9 = l_Std_PersistentHashMap_insert___at_Lean_assignExprMVar___spec__1(x_8, x_1, x_2); +x_10 = 1; +lean_ctor_set(x_6, 6, x_9); +lean_ctor_set_uint8(x_6, sizeof(void*)*8, x_10); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +else +{ +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; +x_13 = lean_ctor_get(x_6, 0); +x_14 = lean_ctor_get(x_6, 1); +x_15 = lean_ctor_get(x_6, 2); +x_16 = lean_ctor_get(x_6, 3); +x_17 = lean_ctor_get(x_6, 4); +x_18 = lean_ctor_get(x_6, 5); +x_19 = lean_ctor_get(x_6, 6); +x_20 = lean_ctor_get(x_6, 7); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_6); +x_21 = l_Std_PersistentHashMap_insert___at_Lean_assignExprMVar___spec__1(x_19, x_1, x_2); +x_22 = 1; +x_23 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_21); +lean_ctor_set(x_23, 7, x_20); +lean_ctor_set_uint8(x_23, sizeof(void*)*8, x_22); +lean_ctor_set(x_4, 0, x_23); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_4); +return x_25; +} +} +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; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_26 = lean_ctor_get(x_4, 0); +x_27 = lean_ctor_get(x_4, 1); +x_28 = lean_ctor_get(x_4, 2); +x_29 = lean_ctor_get(x_4, 3); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_4); +x_30 = lean_ctor_get(x_26, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_26, 2); +lean_inc(x_32); +x_33 = lean_ctor_get(x_26, 3); +lean_inc(x_33); +x_34 = lean_ctor_get(x_26, 4); +lean_inc(x_34); +x_35 = lean_ctor_get(x_26, 5); +lean_inc(x_35); +x_36 = lean_ctor_get(x_26, 6); +lean_inc(x_36); +x_37 = lean_ctor_get(x_26, 7); +lean_inc(x_37); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + lean_ctor_release(x_26, 2); + lean_ctor_release(x_26, 3); + lean_ctor_release(x_26, 4); + lean_ctor_release(x_26, 5); + lean_ctor_release(x_26, 6); + lean_ctor_release(x_26, 7); + x_38 = x_26; +} else { + lean_dec_ref(x_26); + x_38 = lean_box(0); +} +x_39 = l_Std_PersistentHashMap_insert___at_Lean_assignExprMVar___spec__1(x_36, x_1, x_2); +x_40 = 1; +if (lean_is_scalar(x_38)) { + x_41 = lean_alloc_ctor(0, 8, 1); +} else { + x_41 = x_38; +} +lean_ctor_set(x_41, 0, x_30); +lean_ctor_set(x_41, 1, x_31); +lean_ctor_set(x_41, 2, x_32); +lean_ctor_set(x_41, 3, x_33); +lean_ctor_set(x_41, 4, x_34); +lean_ctor_set(x_41, 5, x_35); +lean_ctor_set(x_41, 6, x_39); +lean_ctor_set(x_41, 7, x_37); +lean_ctor_set_uint8(x_41, sizeof(void*)*8, x_40); +x_42 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_27); +lean_ctor_set(x_42, 2, x_28); +lean_ctor_set(x_42, 3, x_29); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +} +LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4(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; @@ -78206,7 +76082,217 @@ return x_12; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_5, 0); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_ctor_get(x_7, 7); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_2); +lean_ctor_set(x_10, 1, x_3); +x_11 = l_Std_PersistentHashMap_insert___at_Lean_assignDelayedMVar___spec__1(x_9, x_1, x_10); +x_12 = 1; +lean_ctor_set(x_7, 7, x_11); +lean_ctor_set_uint8(x_7, sizeof(void*)*8, x_12); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_5); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +x_17 = lean_ctor_get(x_7, 2); +x_18 = lean_ctor_get(x_7, 3); +x_19 = lean_ctor_get(x_7, 4); +x_20 = lean_ctor_get(x_7, 5); +x_21 = lean_ctor_get(x_7, 6); +x_22 = lean_ctor_get(x_7, 7); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_7); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_2); +lean_ctor_set(x_23, 1, x_3); +x_24 = l_Std_PersistentHashMap_insert___at_Lean_assignDelayedMVar___spec__1(x_22, x_1, x_23); +x_25 = 1; +x_26 = lean_alloc_ctor(0, 8, 1); +lean_ctor_set(x_26, 0, x_15); +lean_ctor_set(x_26, 1, x_16); +lean_ctor_set(x_26, 2, x_17); +lean_ctor_set(x_26, 3, x_18); +lean_ctor_set(x_26, 4, x_19); +lean_ctor_set(x_26, 5, x_20); +lean_ctor_set(x_26, 6, x_21); +lean_ctor_set(x_26, 7, x_24); +lean_ctor_set_uint8(x_26, sizeof(void*)*8, x_25); +lean_ctor_set(x_5, 0, x_26); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_5); +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; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_29 = lean_ctor_get(x_5, 0); +x_30 = lean_ctor_get(x_5, 1); +x_31 = lean_ctor_get(x_5, 2); +x_32 = lean_ctor_get(x_5, 3); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_5); +x_33 = lean_ctor_get(x_29, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +x_35 = lean_ctor_get(x_29, 2); +lean_inc(x_35); +x_36 = lean_ctor_get(x_29, 3); +lean_inc(x_36); +x_37 = lean_ctor_get(x_29, 4); +lean_inc(x_37); +x_38 = lean_ctor_get(x_29, 5); +lean_inc(x_38); +x_39 = lean_ctor_get(x_29, 6); +lean_inc(x_39); +x_40 = lean_ctor_get(x_29, 7); +lean_inc(x_40); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + lean_ctor_release(x_29, 2); + lean_ctor_release(x_29, 3); + lean_ctor_release(x_29, 4); + lean_ctor_release(x_29, 5); + lean_ctor_release(x_29, 6); + lean_ctor_release(x_29, 7); + x_41 = x_29; +} else { + lean_dec_ref(x_29); + x_41 = lean_box(0); +} +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_2); +lean_ctor_set(x_42, 1, x_3); +x_43 = l_Std_PersistentHashMap_insert___at_Lean_assignDelayedMVar___spec__1(x_40, x_1, x_42); +x_44 = 1; +if (lean_is_scalar(x_41)) { + x_45 = lean_alloc_ctor(0, 8, 1); +} else { + x_45 = x_41; +} +lean_ctor_set(x_45, 0, x_33); +lean_ctor_set(x_45, 1, x_34); +lean_ctor_set(x_45, 2, x_35); +lean_ctor_set(x_45, 3, x_36); +lean_ctor_set(x_45, 4, x_37); +lean_ctor_set(x_45, 5, x_38); +lean_ctor_set(x_45, 6, x_39); +lean_ctor_set(x_45, 7, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*8, x_44); +x_46 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_30); +lean_ctor_set(x_46, 2, x_31); +lean_ctor_set(x_46, 3, x_32); +x_47 = lean_box(0); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__6(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = lean_usize_dec_eq(x_3, x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; size_t x_11; size_t x_12; +x_7 = lean_array_uget(x_2, x_3); +x_8 = lean_array_get_size(x_1); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_lt(x_9, x_8); +x_11 = 1; +x_12 = lean_usize_add(x_3, x_11); +if (x_10 == 0) +{ +lean_object* x_13; +lean_dec(x_8); +x_13 = lean_array_push(x_5, x_7); +x_3 = x_12; +x_5 = x_13; +goto _start; +} +else +{ +uint8_t x_15; +x_15 = lean_nat_dec_le(x_8, x_8); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_8); +x_16 = lean_array_push(x_5, x_7); +x_3 = x_12; +x_5 = x_16; +goto _start; +} +else +{ +size_t x_18; size_t x_19; uint8_t x_20; +x_18 = 0; +x_19 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_20 = l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(x_7, x_1, x_18, x_19); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_array_push(x_5, x_7); +x_3 = x_12; +x_5 = x_21; +goto _start; +} +else +{ +lean_dec(x_7); +x_3 = x_12; +goto _start; +} +} +} +} +else +{ +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__7(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -78274,6 +76360,108 @@ return x_22; } } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_3, x_2); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_5); +lean_dec(x_1); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_array_uget(x_4, x_3); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_array_uset(x_4, x_3, x_10); +lean_inc(x_5); +lean_inc(x_1); +x_12 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_9, x_5, x_6); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = 1; +x_16 = lean_usize_add(x_3, x_15); +x_17 = lean_array_uset(x_11, x_3, x_13); +x_3 = x_16; +x_4 = x_17; +x_6 = x_14; +goto _start; +} +else +{ +uint8_t x_19; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_12); +if (x_19 == 0) +{ +return x_12; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_12, 0); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_12); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lean_mkAppN(x_1, x_2); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_3); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +lean_dec(x_4); +x_9 = l_Array_append___rarg(x_1, x_8); +x_10 = l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__5(x_2, x_9, x_7, x_5, x_6); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_apply_3(x_3, x_11, x_5, x_12); +return x_13; +} +} LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -78292,7 +76480,7 @@ x_12 = lean_nat_dec_eq(x_10, x_11); lean_dec(x_10); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; +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_216; size_t x_217; size_t x_218; lean_object* x_219; uint8_t x_220; lean_inc(x_2); x_13 = l_Lean_isExprMVarAssignable___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__1(x_2, x_4, x_5); x_14 = lean_ctor_get(x_13, 0); @@ -78300,170 +76488,1271 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = lean_ctor_get_uint8(x_7, sizeof(void*)*7); -x_17 = l_Lean_MetavarKind_isSyntheticOpaque(x_16); -x_18 = lean_unbox(x_14); +x_216 = lean_array_get_size(x_3); +x_217 = lean_usize_of_nat(x_216); +lean_dec(x_216); +x_218 = 0; +lean_inc(x_4); +x_219 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__7(x_1, x_217, x_218, x_3, x_4, x_15); +x_220 = lean_unbox(x_14); lean_dec(x_14); -if (x_18 == 0) +if (x_220 == 0) { -if (x_17 == 0) +if (lean_obj_tag(x_219) == 0) { -uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_19 = 2; -x_20 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_21 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(x_1, x_2, x_3, x_7, x_8, x_9, x_19, x_20, x_4, x_15); -return x_21; +lean_object* x_221; lean_object* x_222; uint8_t x_223; +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); +x_223 = 2; +x_16 = x_223; +x_17 = x_221; +x_18 = x_222; +goto block_215; } else { -lean_object* x_22; lean_object* x_23; -lean_inc(x_2); -x_22 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(x_2, x_4, x_15); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = 2; -x_26 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_27 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(x_1, x_2, x_3, x_7, x_8, x_9, x_25, x_26, x_4, x_24); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_23, 0); -lean_inc(x_28); -lean_dec(x_23); -x_29 = lean_ctor_get(x_22, 1); -lean_inc(x_29); -lean_dec(x_22); -x_30 = lean_ctor_get(x_28, 0); -lean_inc(x_30); -lean_dec(x_28); -x_31 = 2; -x_32 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(x_1, x_2, x_3, x_7, x_8, x_9, x_31, x_30, x_4, x_29); -return x_32; -} -} -} -else -{ -if (x_17 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_34 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(x_1, x_2, x_3, x_7, x_8, x_9, x_16, x_33, x_4, x_15); -return x_34; -} -else -{ -lean_object* x_35; lean_object* x_36; -lean_inc(x_2); -x_35 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(x_2, x_4, x_15); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_39 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(x_1, x_2, x_3, x_7, x_8, x_9, x_16, x_38, x_4, x_37); -return x_39; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_36, 0); -lean_inc(x_40); -lean_dec(x_36); -x_41 = lean_ctor_get(x_35, 1); -lean_inc(x_41); -lean_dec(x_35); -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -lean_dec(x_40); -x_43 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(x_1, x_2, x_3, x_7, x_8, x_9, x_16, x_42, x_4, x_41); -return x_43; -} -} -} -} -else -{ -lean_object* x_44; size_t x_45; size_t x_46; lean_object* x_47; +uint8_t x_224; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_44 = lean_array_get_size(x_3); -x_45 = lean_usize_of_nat(x_44); -lean_dec(x_44); -x_46 = 0; -x_47 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(x_1, x_45, x_46, x_3, x_4, x_5); -if (lean_obj_tag(x_47) == 0) -{ -uint8_t x_48; -x_48 = !lean_is_exclusive(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; -x_49 = lean_ctor_get(x_47, 0); -x_50 = l_Lean_mkMVar(x_2); -x_51 = l_Lean_mkAppN(x_50, x_49); -x_52 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -lean_ctor_set(x_47, 0, x_53); -return x_47; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_54 = lean_ctor_get(x_47, 0); -x_55 = lean_ctor_get(x_47, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_47); -x_56 = l_Lean_mkMVar(x_2); -x_57 = l_Lean_mkAppN(x_56, x_54); -x_58 = l_Lean_instInhabitedMetavarDecl___closed__4; -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_55); -return x_60; -} -} -else -{ -uint8_t x_61; +lean_dec(x_4); lean_dec(x_2); -x_61 = !lean_is_exclusive(x_47); -if (x_61 == 0) +x_224 = !lean_is_exclusive(x_219); +if (x_224 == 0) { -return x_47; +return x_219; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_47, 0); -x_63 = lean_ctor_get(x_47, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_47); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_219, 0); +x_226 = lean_ctor_get(x_219, 1); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_219); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_226); +return x_227; +} +} +} +else +{ +if (lean_obj_tag(x_219) == 0) +{ +lean_object* x_228; lean_object* x_229; uint8_t x_230; +x_228 = lean_ctor_get(x_219, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_219, 1); +lean_inc(x_229); +lean_dec(x_219); +x_230 = lean_ctor_get_uint8(x_7, sizeof(void*)*7); +x_16 = x_230; +x_17 = x_228; +x_18 = x_229; +goto block_215; +} +else +{ +uint8_t x_231; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +x_231 = !lean_is_exclusive(x_219); +if (x_231 == 0) +{ +return x_219; +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_219, 0); +x_233 = lean_ctor_get(x_219, 1); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_219); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +block_215: +{ +lean_object* x_19; +lean_inc(x_4); +lean_inc(x_8); +x_19 = l_Lean_MetavarContext_MkBinding_collectForwardDeps(x_8, x_9, x_4, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +lean_inc(x_20); +lean_inc(x_8); +x_22 = l_Lean_MetavarContext_MkBinding_reduceLocalContext(x_8, x_20); +x_23 = lean_ctor_get(x_7, 4); +lean_inc(x_23); +x_24 = lean_array_get_size(x_23); +x_25 = lean_nat_dec_lt(x_11, x_24); +x_26 = lean_ctor_get(x_7, 2); +lean_inc(x_26); +x_27 = !lean_is_exclusive(x_21); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_21, 3); +x_29 = l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1; +lean_ctor_set(x_21, 3, x_29); +lean_inc(x_4); +lean_inc(x_20); +lean_inc(x_8); +x_30 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(x_8, x_20, x_16, x_26, x_4, x_21); +if (x_25 == 0) +{ +lean_object* x_144; +lean_dec(x_24); +lean_dec(x_23); +x_144 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_31 = x_144; +goto block_143; +} +else +{ +uint8_t x_145; +x_145 = lean_nat_dec_le(x_24, x_24); +if (x_145 == 0) +{ +lean_object* x_146; +lean_dec(x_24); +lean_dec(x_23); +x_146 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_31 = x_146; +goto block_143; +} +else +{ +size_t x_147; size_t x_148; lean_object* x_149; lean_object* x_150; +x_147 = 0; +x_148 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_149 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_150 = l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__6(x_20, x_23, x_147, x_148, x_149); +lean_dec(x_23); +x_31 = x_150; +goto block_143; +} +} +block_143: +{ +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_32, 2); +lean_inc(x_33); +x_34 = lean_ctor_get(x_30, 0); +lean_inc(x_34); +lean_dec(x_30); +x_35 = !lean_is_exclusive(x_32); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_32, 0); +x_37 = lean_ctor_get(x_32, 3); +lean_dec(x_37); +x_38 = lean_ctor_get(x_32, 2); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_33); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; uint8_t x_54; +x_40 = lean_ctor_get(x_33, 0); +x_41 = lean_ctor_get(x_33, 1); +lean_inc(x_41); +lean_inc(x_40); +x_42 = lean_name_mk_numeral(x_40, x_41); +lean_inc(x_42); +x_43 = l_Lean_mkMVar(x_42); +x_44 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_8, x_43, x_20, x_16); +x_45 = lean_ctor_get(x_7, 5); +lean_inc(x_45); +x_46 = l_Lean_Expr_getAppNumArgsAux(x_44, x_11); +x_47 = lean_nat_add(x_45, x_46); +lean_dec(x_46); +lean_dec(x_45); +x_48 = lean_box(0); +lean_inc(x_42); +x_49 = l_Lean_MetavarContext_addExprMVarDecl(x_36, x_42, x_48, x_22, x_31, x_34, x_16, x_47); +x_50 = lean_unsigned_to_nat(1u); +x_51 = lean_nat_add(x_41, x_50); +lean_dec(x_41); +lean_ctor_set(x_33, 1, x_51); +lean_ctor_set(x_32, 3, x_28); +lean_ctor_set(x_32, 0, x_49); +lean_inc(x_20); +lean_inc(x_17); +lean_inc(x_44); +x_52 = lean_alloc_closure((void*)(l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1___boxed), 6, 3); +lean_closure_set(x_52, 0, x_44); +lean_closure_set(x_52, 1, x_17); +lean_closure_set(x_52, 2, x_20); +x_53 = lean_ctor_get_uint8(x_7, sizeof(void*)*7); +lean_dec(x_7); +x_54 = l_Lean_MetavarKind_isSyntheticOpaque(x_53); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_52); +lean_dec(x_42); +lean_inc(x_44); +x_55 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(x_2, x_44, x_4, x_32); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1(x_44, x_17, x_20, x_56, x_4, x_57); +lean_dec(x_4); +lean_dec(x_56); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; +lean_dec(x_44); +lean_dec(x_17); +lean_inc(x_2); +x_59 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4(x_2, x_4, x_32); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_2); +lean_ctor_set(x_63, 1, x_62); +x_64 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_42, x_52, x_63, x_4, x_61); return x_64; } +else +{ +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_dec(x_2); +x_65 = lean_ctor_get(x_60, 0); +lean_inc(x_65); +lean_dec(x_60); +x_66 = lean_ctor_get(x_59, 1); +lean_inc(x_66); +lean_dec(x_59); +x_67 = lean_ctor_get(x_65, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +lean_dec(x_65); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_42, x_52, x_69, x_4, x_66); +return x_70; +} +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; uint8_t x_86; +x_71 = lean_ctor_get(x_33, 0); +x_72 = lean_ctor_get(x_33, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_33); +lean_inc(x_72); +lean_inc(x_71); +x_73 = lean_name_mk_numeral(x_71, x_72); +lean_inc(x_73); +x_74 = l_Lean_mkMVar(x_73); +x_75 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_8, x_74, x_20, x_16); +x_76 = lean_ctor_get(x_7, 5); +lean_inc(x_76); +x_77 = l_Lean_Expr_getAppNumArgsAux(x_75, x_11); +x_78 = lean_nat_add(x_76, x_77); +lean_dec(x_77); +lean_dec(x_76); +x_79 = lean_box(0); +lean_inc(x_73); +x_80 = l_Lean_MetavarContext_addExprMVarDecl(x_36, x_73, x_79, x_22, x_31, x_34, x_16, x_78); +x_81 = lean_unsigned_to_nat(1u); +x_82 = lean_nat_add(x_72, x_81); +lean_dec(x_72); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_71); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_32, 3, x_28); +lean_ctor_set(x_32, 2, x_83); +lean_ctor_set(x_32, 0, x_80); +lean_inc(x_20); +lean_inc(x_17); +lean_inc(x_75); +x_84 = lean_alloc_closure((void*)(l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1___boxed), 6, 3); +lean_closure_set(x_84, 0, x_75); +lean_closure_set(x_84, 1, x_17); +lean_closure_set(x_84, 2, x_20); +x_85 = lean_ctor_get_uint8(x_7, sizeof(void*)*7); +lean_dec(x_7); +x_86 = l_Lean_MetavarKind_isSyntheticOpaque(x_85); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_84); +lean_dec(x_73); +lean_inc(x_75); +x_87 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(x_2, x_75, x_4, x_32); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1(x_75, x_17, x_20, x_88, x_4, x_89); +lean_dec(x_4); +lean_dec(x_88); +return x_90; +} +else +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_75); +lean_dec(x_17); +lean_inc(x_2); +x_91 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4(x_2, x_4, x_32); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_2); +lean_ctor_set(x_95, 1, x_94); +x_96 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_73, x_84, x_95, x_4, x_93); +return x_96; +} +else +{ +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_dec(x_2); +x_97 = lean_ctor_get(x_92, 0); +lean_inc(x_97); +lean_dec(x_92); +x_98 = lean_ctor_get(x_91, 1); +lean_inc(x_98); +lean_dec(x_91); +x_99 = lean_ctor_get(x_97, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_97, 1); +lean_inc(x_100); +lean_dec(x_97); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_73, x_84, x_101, x_4, x_98); +return x_102; +} +} +} +} +else +{ +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; uint8_t x_121; uint8_t x_122; +x_103 = lean_ctor_get(x_32, 0); +x_104 = lean_ctor_get(x_32, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_32); +x_105 = lean_ctor_get(x_33, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_33, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_107 = x_33; +} else { + lean_dec_ref(x_33); + x_107 = lean_box(0); +} +lean_inc(x_106); +lean_inc(x_105); +x_108 = lean_name_mk_numeral(x_105, x_106); +lean_inc(x_108); +x_109 = l_Lean_mkMVar(x_108); +x_110 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_8, x_109, x_20, x_16); +x_111 = lean_ctor_get(x_7, 5); +lean_inc(x_111); +x_112 = l_Lean_Expr_getAppNumArgsAux(x_110, x_11); +x_113 = lean_nat_add(x_111, x_112); +lean_dec(x_112); +lean_dec(x_111); +x_114 = lean_box(0); +lean_inc(x_108); +x_115 = l_Lean_MetavarContext_addExprMVarDecl(x_103, x_108, x_114, x_22, x_31, x_34, x_16, x_113); +x_116 = lean_unsigned_to_nat(1u); +x_117 = lean_nat_add(x_106, x_116); +lean_dec(x_106); +if (lean_is_scalar(x_107)) { + x_118 = lean_alloc_ctor(0, 2, 0); +} else { + x_118 = x_107; +} +lean_ctor_set(x_118, 0, x_105); +lean_ctor_set(x_118, 1, x_117); +x_119 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_119, 0, x_115); +lean_ctor_set(x_119, 1, x_104); +lean_ctor_set(x_119, 2, x_118); +lean_ctor_set(x_119, 3, x_28); +lean_inc(x_20); +lean_inc(x_17); +lean_inc(x_110); +x_120 = lean_alloc_closure((void*)(l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1___boxed), 6, 3); +lean_closure_set(x_120, 0, x_110); +lean_closure_set(x_120, 1, x_17); +lean_closure_set(x_120, 2, x_20); +x_121 = lean_ctor_get_uint8(x_7, sizeof(void*)*7); +lean_dec(x_7); +x_122 = l_Lean_MetavarKind_isSyntheticOpaque(x_121); +if (x_122 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_120); +lean_dec(x_108); +lean_inc(x_110); +x_123 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(x_2, x_110, x_4, x_119); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1(x_110, x_17, x_20, x_124, x_4, x_125); +lean_dec(x_4); +lean_dec(x_124); +return x_126; +} +else +{ +lean_object* x_127; lean_object* x_128; +lean_dec(x_110); +lean_dec(x_17); +lean_inc(x_2); +x_127 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4(x_2, x_4, x_119); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +if (lean_obj_tag(x_128) == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_130 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_2); +lean_ctor_set(x_131, 1, x_130); +x_132 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_108, x_120, x_131, x_4, x_129); +return x_132; +} +else +{ +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_dec(x_2); +x_133 = lean_ctor_get(x_128, 0); +lean_inc(x_133); +lean_dec(x_128); +x_134 = lean_ctor_get(x_127, 1); +lean_inc(x_134); +lean_dec(x_127); +x_135 = lean_ctor_get(x_133, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_133, 1); +lean_inc(x_136); +lean_dec(x_133); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +x_138 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_108, x_120, x_137, x_4, x_134); +return x_138; +} +} +} +} +else +{ +uint8_t x_139; +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_22); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +x_139 = !lean_is_exclusive(x_30); +if (x_139 == 0) +{ +return x_30; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_30, 0); +x_141 = lean_ctor_get(x_30, 1); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_30); +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +return x_142; +} +} +} +} +else +{ +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; +x_151 = lean_ctor_get(x_21, 0); +x_152 = lean_ctor_get(x_21, 1); +x_153 = lean_ctor_get(x_21, 2); +x_154 = lean_ctor_get(x_21, 3); +lean_inc(x_154); +lean_inc(x_153); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_21); +x_155 = l_Lean_MetavarContext_MkBinding_State_cache___default___closed__1; +x_156 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_156, 0, x_151); +lean_ctor_set(x_156, 1, x_152); +lean_ctor_set(x_156, 2, x_153); +lean_ctor_set(x_156, 3, x_155); +lean_inc(x_4); +lean_inc(x_20); +lean_inc(x_8); +x_157 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(x_8, x_20, x_16, x_26, x_4, x_156); +if (x_25 == 0) +{ +lean_object* x_204; +lean_dec(x_24); +lean_dec(x_23); +x_204 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_158 = x_204; +goto block_203; +} +else +{ +uint8_t x_205; +x_205 = lean_nat_dec_le(x_24, x_24); +if (x_205 == 0) +{ +lean_object* x_206; +lean_dec(x_24); +lean_dec(x_23); +x_206 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_158 = x_206; +goto block_203; +} +else +{ +size_t x_207; size_t x_208; lean_object* x_209; lean_object* x_210; +x_207 = 0; +x_208 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_209 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_210 = l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__6(x_20, x_23, x_207, x_208, x_209); +lean_dec(x_23); +x_158 = x_210; +goto block_203; +} +} +block_203: +{ +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; uint8_t x_182; +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +x_160 = lean_ctor_get(x_159, 2); +lean_inc(x_160); +x_161 = lean_ctor_get(x_157, 0); +lean_inc(x_161); +lean_dec(x_157); +x_162 = lean_ctor_get(x_159, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_159, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_159)) { + lean_ctor_release(x_159, 0); + lean_ctor_release(x_159, 1); + lean_ctor_release(x_159, 2); + lean_ctor_release(x_159, 3); + x_164 = x_159; +} else { + lean_dec_ref(x_159); + x_164 = lean_box(0); +} +x_165 = lean_ctor_get(x_160, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_160, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_167 = x_160; +} else { + lean_dec_ref(x_160); + x_167 = lean_box(0); +} +lean_inc(x_166); +lean_inc(x_165); +x_168 = lean_name_mk_numeral(x_165, x_166); +lean_inc(x_168); +x_169 = l_Lean_mkMVar(x_168); +x_170 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkMVarApp(x_8, x_169, x_20, x_16); +x_171 = lean_ctor_get(x_7, 5); +lean_inc(x_171); +x_172 = l_Lean_Expr_getAppNumArgsAux(x_170, x_11); +x_173 = lean_nat_add(x_171, x_172); +lean_dec(x_172); +lean_dec(x_171); +x_174 = lean_box(0); +lean_inc(x_168); +x_175 = l_Lean_MetavarContext_addExprMVarDecl(x_162, x_168, x_174, x_22, x_158, x_161, x_16, x_173); +x_176 = lean_unsigned_to_nat(1u); +x_177 = lean_nat_add(x_166, x_176); +lean_dec(x_166); +if (lean_is_scalar(x_167)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_167; +} +lean_ctor_set(x_178, 0, x_165); +lean_ctor_set(x_178, 1, x_177); +if (lean_is_scalar(x_164)) { + x_179 = lean_alloc_ctor(0, 4, 0); +} else { + x_179 = x_164; +} +lean_ctor_set(x_179, 0, x_175); +lean_ctor_set(x_179, 1, x_163); +lean_ctor_set(x_179, 2, x_178); +lean_ctor_set(x_179, 3, x_154); +lean_inc(x_20); +lean_inc(x_17); +lean_inc(x_170); +x_180 = lean_alloc_closure((void*)(l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1___boxed), 6, 3); +lean_closure_set(x_180, 0, x_170); +lean_closure_set(x_180, 1, x_17); +lean_closure_set(x_180, 2, x_20); +x_181 = lean_ctor_get_uint8(x_7, sizeof(void*)*7); +lean_dec(x_7); +x_182 = l_Lean_MetavarKind_isSyntheticOpaque(x_181); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_180); +lean_dec(x_168); +lean_inc(x_170); +x_183 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(x_2, x_170, x_4, x_179); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +lean_dec(x_183); +x_186 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1(x_170, x_17, x_20, x_184, x_4, x_185); +lean_dec(x_4); +lean_dec(x_184); +return x_186; +} +else +{ +lean_object* x_187; lean_object* x_188; +lean_dec(x_170); +lean_dec(x_17); +lean_inc(x_2); +x_187 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4(x_2, x_4, x_179); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +if (lean_obj_tag(x_188) == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +lean_dec(x_187); +x_190 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_2); +lean_ctor_set(x_191, 1, x_190); +x_192 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_168, x_180, x_191, x_4, x_189); +return x_192; +} +else +{ +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_2); +x_193 = lean_ctor_get(x_188, 0); +lean_inc(x_193); +lean_dec(x_188); +x_194 = lean_ctor_get(x_187, 1); +lean_inc(x_194); +lean_dec(x_187); +x_195 = lean_ctor_get(x_193, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_193, 1); +lean_inc(x_196); +lean_dec(x_193); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_195); +x_198 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__2(x_20, x_168, x_180, x_197, x_4, x_194); +return x_198; +} +} +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_158); +lean_dec(x_154); +lean_dec(x_22); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +x_199 = lean_ctor_get(x_157, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_157, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_201 = x_157; +} else { + lean_dec_ref(x_157); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +} +} +else +{ +uint8_t x_211; +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +x_211 = !lean_is_exclusive(x_19); +if (x_211 == 0) +{ +return x_19; +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_19, 0); +x_213 = lean_ctor_get(x_19, 1); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_19); +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_212); +lean_ctor_set(x_214, 1, x_213); +return x_214; +} +} +} +} +else +{ +lean_object* x_235; size_t x_236; size_t x_237; lean_object* x_238; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_235 = lean_array_get_size(x_3); +x_236 = lean_usize_of_nat(x_235); +lean_dec(x_235); +x_237 = 0; +x_238 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__8(x_1, x_236, x_237, x_3, x_4, x_5); +if (lean_obj_tag(x_238) == 0) +{ +uint8_t x_239; +x_239 = !lean_is_exclusive(x_238); +if (x_239 == 0) +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_240 = lean_ctor_get(x_238, 0); +x_241 = l_Lean_mkMVar(x_2); +x_242 = l_Lean_mkAppN(x_241, x_240); +x_243 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +lean_ctor_set(x_238, 0, x_244); +return x_238; +} +else +{ +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; +x_245 = lean_ctor_get(x_238, 0); +x_246 = lean_ctor_get(x_238, 1); +lean_inc(x_246); +lean_inc(x_245); +lean_dec(x_238); +x_247 = l_Lean_mkMVar(x_2); +x_248 = l_Lean_mkAppN(x_247, x_245); +x_249 = l_Lean_instInhabitedMetavarDecl___closed__4; +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_248); +lean_ctor_set(x_250, 1, x_249); +x_251 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_246); +return x_251; +} +} +else +{ +uint8_t x_252; +lean_dec(x_2); +x_252 = !lean_is_exclusive(x_238); +if (x_252 == 0) +{ +return x_238; +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_253 = lean_ctor_get(x_238, 0); +x_254 = lean_ctor_get(x_238, 1); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_238); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_253); +lean_ctor_set(x_255, 1, x_254); +return x_255; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get_uint8(x_4, sizeof(void*)*2 + 1); +x_7 = l_Lean_mkForall(x_3, x_6, x_1, x_2); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_5); +return x_8; +} +} +static lean_object* _init_l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("x", 1); +return x_1; +} +} +static lean_object* _init_l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_4, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_4, x_10); +lean_dec(x_4); +x_12 = l_Lean_instInhabitedExpr; +x_13 = lean_array_get(x_12, x_2, x_11); +x_14 = l_Lean_Expr_isFVar(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_15 = lean_ctor_get(x_7, 0); +lean_inc(x_15); +x_16 = l_Lean_Expr_mvarId_x21(x_13); +lean_dec(x_13); +x_17 = l_Lean_MetavarContext_getDecl(x_15, x_16); +x_18 = lean_ctor_get(x_17, 2); +lean_inc(x_18); +x_19 = l_Lean_Expr_headBeta(x_18); +lean_inc(x_6); +lean_inc(x_2); +x_20 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_19, x_6, x_7); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_17, 0); +lean_inc(x_23); +lean_dec(x_17); +x_24 = l_Lean_Name_isAnonymous(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(x_21, x_5, x_23, x_6, x_22); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_4 = x_11; +x_5 = x_26; +x_7 = x_27; +goto _start; +} +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_dec(x_23); +x_29 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___closed__2; +lean_inc(x_6); +x_30 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkFreshBinderName(x_29, x_6, x_22); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(x_21, x_5, x_31, x_6, x_32); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_4 = x_11; +x_5 = x_34; +x_7 = x_35; +goto _start; +} +} +else +{ +uint8_t x_37; +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +return x_20; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_20, 0); +x_39 = lean_ctor_get(x_20, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_20); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_object* x_41; +lean_inc(x_1); +x_41 = l_Lean_LocalContext_getFVar_x21(x_1, x_13); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_41, 2); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 3); +lean_inc(x_43); +x_44 = lean_ctor_get_uint8(x_41, sizeof(void*)*4); +lean_dec(x_41); +x_45 = l_Lean_Expr_headBeta(x_43); +lean_inc(x_6); +lean_inc(x_2); +x_46 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_45, x_6, x_7); +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_mkForall(x_42, x_44, x_47, x_5); +x_4 = x_11; +x_5 = x_49; +x_7 = x_48; +goto _start; +} +else +{ +uint8_t x_51; +lean_dec(x_42); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_46); +if (x_51 == 0) +{ +return x_46; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_46, 0); +x_53 = lean_ctor_get(x_46, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_46); +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_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_41, 2); +lean_inc(x_55); +x_56 = lean_ctor_get(x_41, 3); +lean_inc(x_56); +x_57 = lean_ctor_get(x_41, 4); +lean_inc(x_57); +x_58 = lean_ctor_get_uint8(x_41, sizeof(void*)*5); +lean_dec(x_41); +x_59 = l_Lean_Expr_headBeta(x_56); +lean_inc(x_6); +lean_inc(x_2); +x_60 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_59, x_6, x_7); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_6); +lean_inc(x_2); +x_63 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_11, x_57, x_6, x_62); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +lean_inc(x_61); +lean_inc(x_55); +x_66 = l_Lean_mkLet(x_55, x_61, x_64, x_5, x_58); +x_67 = lean_box(x_3); +if (lean_obj_tag(x_67) == 2) +{ +lean_object* x_68; uint8_t x_69; lean_object* x_70; +x_68 = lean_expr_lift_loose_bvars(x_66, x_8, x_10); +lean_dec(x_66); +x_69 = 0; +x_70 = l_Lean_mkForall(x_55, x_69, x_61, x_68); +x_4 = x_11; +x_5 = x_70; +x_7 = x_65; +goto _start; +} +else +{ +lean_dec(x_67); +lean_dec(x_61); +lean_dec(x_55); +x_4 = x_11; +x_5 = x_66; +x_7 = x_65; +goto _start; +} +} +else +{ +uint8_t x_73; +lean_dec(x_61); +lean_dec(x_55); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_73 = !lean_is_exclusive(x_63); +if (x_73 == 0) +{ +return x_63; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_63, 0); +x_75 = lean_ctor_get(x_63, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_63); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_57); +lean_dec(x_55); +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_77 = !lean_is_exclusive(x_60); +if (x_77 == 0) +{ +return x_60; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_60, 0); +x_79 = lean_ctor_get(x_60, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_60); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +} +} +else +{ +lean_object* x_81; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_5); +lean_ctor_set(x_81, 1, x_7); +return x_81; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_array_get_size(x_2); +lean_inc(x_5); +lean_inc(x_2); +x_8 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux(x_2, x_7, x_4, x_5, x_6); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1(x_1, x_2, x_3, x_7, x_9, x_5, x_10); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_8); +if (x_12 == 0) +{ +return x_8; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_8, 0); +x_14 = lean_ctor_get(x_8, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_8); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; } } } @@ -78622,116 +77911,6 @@ return x_38; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___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: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_8 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_9 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__1(x_1, x_7, x_8, x_4, x_5, x_6); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__2(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; -x_7 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_8 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_9 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_10 = l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___spec__5(x_7, x_2, x_3, x_8, x_9, x_6); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -} -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_7; -} -} -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_7); -lean_dec(x_7); -x_12 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar_cont(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_3); -lean_dec(x_3); -x_9 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1(x_1, x_2, x_8, x_4, x_5, x_6, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_3); -lean_dec(x_3); -x_8 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(x_1, x_2, x_7, x_4, x_5, x_6); -return x_8; -} -} LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType_abstractRangeAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -78944,16 +78123,63 @@ lean_dec(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = l_Array_anyMUnsafe_any___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(x_1, x_2, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_assignExprMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__2(x_1, x_2, x_3); +x_4 = l_Lean_getDelayedMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__4(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___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_EXPORT lean_object* l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_assignDelayedMVar___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +size_t x_6; size_t x_7; lean_object* x_8; +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = l_Array_foldlMUnsafe_fold___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__6(x_1, x_2, x_6, x_7, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -78961,10 +78187,61 @@ x_7 = lean_unbox_usize(x_2); lean_dec(x_2); x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_9 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__3(x_1, x_7, x_8, x_4, x_5, x_6); +x_9 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__7(x_1, x_7, x_8, x_4, x_5, x_6); return x_9; } } +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___spec__8(x_1, x_7, x_8, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_3); +lean_dec(x_3); +x_9 = l_Nat_foldRevM_loop___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___spec__1(x_1, x_2, x_8, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +lean_dec(x_3); +x_8 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_mkAuxMVarType(x_1, x_2, x_7, x_4, x_5, x_6); +return x_8; +} +} LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_elimMVarDeps(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { diff --git a/stage0/stdlib/Lean/Server/Rpc/Deriving.c b/stage0/stdlib/Lean/Server/Rpc/Deriving.c index e57278cfcf..63b0cdafb1 100644 --- a/stage0/stdlib/Lean/Server/Rpc/Deriving.c +++ b/stage0/stdlib/Lean/Server/Rpc/Deriving.c @@ -31,6 +31,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFields___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__25(lean_object*); +lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__151; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4; @@ -512,7 +513,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_Rpc LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__34(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__26(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__162; -lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -583,7 +583,6 @@ lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecls___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__45___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__236; -lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_BinSearch_0__Array_binInsertAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__1; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__86; @@ -766,6 +765,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__14; LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___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___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__139; @@ -10729,7 +10729,7 @@ lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint x_41 = lean_ctor_get(x_35, 1); lean_inc(x_41); lean_dec(x_35); -x_42 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_41); +x_42 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_41); x_43 = lean_ctor_get(x_42, 0); lean_inc(x_43); x_44 = lean_ctor_get(x_42, 1); @@ -10782,7 +10782,7 @@ x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_ x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_11, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +x_30 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_11, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_13); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -16630,7 +16630,7 @@ x_43 = lean_ctor_get(x_37, 1); lean_inc(x_43); lean_dec(x_37); lean_inc(x_1); -x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_43); +x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -16689,7 +16689,7 @@ lean_ctor_set(x_30, 1, x_29); x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_18); -x_32 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_1, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_14); +x_32 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_1, x_31, x_6, x_7, x_8, x_9, x_10, x_11, x_14); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -18651,7 +18651,7 @@ x_38 = lean_ctor_get(x_32, 1); lean_inc(x_38); lean_dec(x_32); lean_inc(x_7); -x_39 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_38); +x_39 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_38); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); @@ -18690,7 +18690,7 @@ x_25 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_ x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_7, x_26, x_9, x_10, x_11, x_12, x_13, x_14, x_17); +x_27 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_7, x_26, x_9, x_10, x_11, x_12, x_13, x_14, x_17); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -18840,7 +18840,7 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); lean_dec(x_34); -x_41 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_40); +x_41 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_40); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); @@ -18892,7 +18892,7 @@ x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_ x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_10, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_29 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_10, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); diff --git a/stage0/stdlib/Lean/Util/OccursCheck.c b/stage0/stdlib/Lean/Util/OccursCheck.c index 4f8c88361c..1781c3e82d 100644 --- a/stage0/stdlib/Lean/Util/OccursCheck.c +++ b/stage0/stdlib/Lean/Util/OccursCheck.c @@ -1043,7 +1043,7 @@ lean_dec(x_25); x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); lean_dec(x_39); -x_41 = l_Lean_occursCheck_visit___rarg(x_1, x_2, x_3, x_40, x_38); +x_41 = l_Lean_occursCheck_visitMVar___rarg(x_1, x_2, x_3, x_40, x_38); return x_41; } }